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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d743ccacc9eed7a98fc0037b0cee3b6a9824523c
| 36,588
|
py
|
Python
|
billforward/apis/couponmodifier_api.py
|
billforward/bf-python
|
d2b812329ca3ed1fd94364d7f46f69ad74665596
|
[
"Apache-2.0"
] | 2
|
2016-11-23T17:32:37.000Z
|
2022-02-24T05:13:20.000Z
|
billforward/apis/couponmodifier_api.py
|
billforward/bf-python
|
d2b812329ca3ed1fd94364d7f46f69ad74665596
|
[
"Apache-2.0"
] | null | null | null |
billforward/apis/couponmodifier_api.py
|
billforward/bf-python
|
d2b812329ca3ed1fd94364d7f46f69ad74665596
|
[
"Apache-2.0"
] | 1
|
2016-12-30T20:02:48.000Z
|
2016-12-30T20:02:48.000Z
|
# coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..configuration import Configuration
from ..api_client import ApiClient
class CouponmodifierApi(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def create_coupon_modifier(self, coupon_instance, **kwargs):
"""
Create a coupon-modifier.
{\"nickname\":\"Create a new modifier\",\"request\":\"createCouponModifierRequest.html\",\"response\":\"createCouponModifierResponse.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_coupon_modifier(coupon_instance, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param CouponModifierBase coupon_instance: The coupon-instance object to be created. (required)
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.create_coupon_modifier_with_http_info(coupon_instance, **kwargs)
else:
(data) = self.create_coupon_modifier_with_http_info(coupon_instance, **kwargs)
return data
def create_coupon_modifier_with_http_info(self, coupon_instance, **kwargs):
"""
Create a coupon-modifier.
{\"nickname\":\"Create a new modifier\",\"request\":\"createCouponModifierRequest.html\",\"response\":\"createCouponModifierResponse.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_coupon_modifier_with_http_info(coupon_instance, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param CouponModifierBase coupon_instance: The coupon-instance object to be created. (required)
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['coupon_instance']
all_params.append('callback')
all_params.append('_return_http_data_only')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_coupon_modifier" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'coupon_instance' is set
if ('coupon_instance' not in params) or (params['coupon_instance'] is None):
raise ValueError("Missing the required parameter `coupon_instance` when calling `create_coupon_modifier`")
resource_path = '/coupon-modifiers'.replace('{format}', 'json')
path_params = {}
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'coupon_instance' in params:
body_params = params['coupon_instance']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['text/xml', 'application/xml', 'application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = []
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CouponModifierBasePagedMetadata',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'))
def delete_coupon_modifier(self, coupon_modifier_id, **kwargs):
"""
Retire a coupon-modifier, specified by the coupon-modifier-ID parameter.
{\"nickname\":\"Delete a modifier\",\"response\":\"deleteCouponModifierByID.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_coupon_modifier(coupon_modifier_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_modifier_id: ID of the coupon-modifier. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.delete_coupon_modifier_with_http_info(coupon_modifier_id, **kwargs)
else:
(data) = self.delete_coupon_modifier_with_http_info(coupon_modifier_id, **kwargs)
return data
def delete_coupon_modifier_with_http_info(self, coupon_modifier_id, **kwargs):
"""
Retire a coupon-modifier, specified by the coupon-modifier-ID parameter.
{\"nickname\":\"Delete a modifier\",\"response\":\"deleteCouponModifierByID.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_coupon_modifier_with_http_info(coupon_modifier_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_modifier_id: ID of the coupon-modifier. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['coupon_modifier_id', 'organizations']
all_params.append('callback')
all_params.append('_return_http_data_only')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_coupon_modifier" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'coupon_modifier_id' is set
if ('coupon_modifier_id' not in params) or (params['coupon_modifier_id'] is None):
raise ValueError("Missing the required parameter `coupon_modifier_id` when calling `delete_coupon_modifier`")
resource_path = '/coupon-modifiers/{coupon-modifier-ID}'.replace('{format}', 'json')
path_params = {}
if 'coupon_modifier_id' in params:
path_params['coupon-modifier-ID'] = params['coupon_modifier_id']
query_params = {}
if 'organizations' in params:
query_params['organizations'] = params['organizations']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['text/plain'])
# Authentication setting
auth_settings = []
return self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CouponModifierBasePagedMetadata',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'))
def get_all_coupon_modifiers(self, **kwargs):
"""
Returns a collection of coupon-modifiers. By default 10 values are returned. Records are returned in natural order.
{\"nickname\":\"Get all modifiers\",\"response\":\"getCouponModifierAll.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_all_coupon_modifiers(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:param int offset: The offset from the first product-rate-plan to return.
:param int records: The maximum number of product-rate-plans to return.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_all_coupon_modifiers_with_http_info(**kwargs)
else:
(data) = self.get_all_coupon_modifiers_with_http_info(**kwargs)
return data
def get_all_coupon_modifiers_with_http_info(self, **kwargs):
"""
Returns a collection of coupon-modifiers. By default 10 values are returned. Records are returned in natural order.
{\"nickname\":\"Get all modifiers\",\"response\":\"getCouponModifierAll.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_all_coupon_modifiers_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:param int offset: The offset from the first product-rate-plan to return.
:param int records: The maximum number of product-rate-plans to return.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['organizations', 'offset', 'records']
all_params.append('callback')
all_params.append('_return_http_data_only')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_all_coupon_modifiers" % key
)
params[key] = val
del params['kwargs']
resource_path = '/coupon-modifiers'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'organizations' in params:
query_params['organizations'] = params['organizations']
if 'offset' in params:
query_params['offset'] = params['offset']
if 'records' in params:
query_params['records'] = params['records']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type([])
# Authentication setting
auth_settings = []
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CouponModifierBasePagedMetadata',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'))
def get_coupon_modifier_by_coupon_code(self, coupon_code, **kwargs):
"""
Returns a collection of coupon-modifiers, specified by the coupon-code parameter.
{\"nickname\":\"Retrieve by coupon code\",\"response\":\"getCouponCode.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_coupon_modifier_by_coupon_code(coupon_code, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_code: The coupon-code. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:param int offset: The offset from the first product-rate-plan to return.
:param int records: The maximum number of product-rate-plans to return.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_coupon_modifier_by_coupon_code_with_http_info(coupon_code, **kwargs)
else:
(data) = self.get_coupon_modifier_by_coupon_code_with_http_info(coupon_code, **kwargs)
return data
def get_coupon_modifier_by_coupon_code_with_http_info(self, coupon_code, **kwargs):
"""
Returns a collection of coupon-modifiers, specified by the coupon-code parameter.
{\"nickname\":\"Retrieve by coupon code\",\"response\":\"getCouponCode.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_coupon_modifier_by_coupon_code_with_http_info(coupon_code, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_code: The coupon-code. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:param int offset: The offset from the first product-rate-plan to return.
:param int records: The maximum number of product-rate-plans to return.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['coupon_code', 'organizations', 'offset', 'records']
all_params.append('callback')
all_params.append('_return_http_data_only')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_coupon_modifier_by_coupon_code" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'coupon_code' is set
if ('coupon_code' not in params) or (params['coupon_code'] is None):
raise ValueError("Missing the required parameter `coupon_code` when calling `get_coupon_modifier_by_coupon_code`")
resource_path = '/coupon-modifiers/coupon-code/{coupon-code}'.replace('{format}', 'json')
path_params = {}
if 'coupon_code' in params:
path_params['coupon-code'] = params['coupon_code']
query_params = {}
if 'organizations' in params:
query_params['organizations'] = params['organizations']
if 'offset' in params:
query_params['offset'] = params['offset']
if 'records' in params:
query_params['records'] = params['records']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['text/plain'])
# Authentication setting
auth_settings = []
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CouponModifierBasePagedMetadata',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'))
def get_coupon_modifier_by_coupon_definition_id(self, coupon_definition_id, **kwargs):
"""
Returns a collection of coupon-modifiers, specified by the coupon-definition-ID parameter.
{\"nickname\":\"Retrieve by coupon definition\",\"response\":\"getCouponModifierByCouponDefinitionID.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_coupon_modifier_by_coupon_definition_id(coupon_definition_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_definition_id: ID of the coupon-definition. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_coupon_modifier_by_coupon_definition_id_with_http_info(coupon_definition_id, **kwargs)
else:
(data) = self.get_coupon_modifier_by_coupon_definition_id_with_http_info(coupon_definition_id, **kwargs)
return data
def get_coupon_modifier_by_coupon_definition_id_with_http_info(self, coupon_definition_id, **kwargs):
"""
Returns a collection of coupon-modifiers, specified by the coupon-definition-ID parameter.
{\"nickname\":\"Retrieve by coupon definition\",\"response\":\"getCouponModifierByCouponDefinitionID.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_coupon_modifier_by_coupon_definition_id_with_http_info(coupon_definition_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_definition_id: ID of the coupon-definition. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['coupon_definition_id', 'organizations']
all_params.append('callback')
all_params.append('_return_http_data_only')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_coupon_modifier_by_coupon_definition_id" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'coupon_definition_id' is set
if ('coupon_definition_id' not in params) or (params['coupon_definition_id'] is None):
raise ValueError("Missing the required parameter `coupon_definition_id` when calling `get_coupon_modifier_by_coupon_definition_id`")
resource_path = '/coupon-modifiers/coupon-definition/{coupon-definition-ID}'.replace('{format}', 'json')
path_params = {}
if 'coupon_definition_id' in params:
path_params['coupon-definition-ID'] = params['coupon_definition_id']
query_params = {}
if 'organizations' in params:
query_params['organizations'] = params['organizations']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['text/plain'])
# Authentication setting
auth_settings = []
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CouponModifierBasePagedMetadata',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'))
def get_coupon_modifier_by_id(self, coupon_modifier_id, **kwargs):
"""
Returns a single coupon-modifier, specified by the coupon-modifier-ID parameter.
{\"nickname\":\"Get existing modifier\",\"response\":\"getCouponModifierByID.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_coupon_modifier_by_id(coupon_modifier_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_modifier_id: ID of the coupon-modifier. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_coupon_modifier_by_id_with_http_info(coupon_modifier_id, **kwargs)
else:
(data) = self.get_coupon_modifier_by_id_with_http_info(coupon_modifier_id, **kwargs)
return data
def get_coupon_modifier_by_id_with_http_info(self, coupon_modifier_id, **kwargs):
"""
Returns a single coupon-modifier, specified by the coupon-modifier-ID parameter.
{\"nickname\":\"Get existing modifier\",\"response\":\"getCouponModifierByID.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_coupon_modifier_by_id_with_http_info(coupon_modifier_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str coupon_modifier_id: ID of the coupon-modifier. (required)
:param list[str] organizations: A list of organization-IDs used to restrict the scope of API calls.
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['coupon_modifier_id', 'organizations']
all_params.append('callback')
all_params.append('_return_http_data_only')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_coupon_modifier_by_id" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'coupon_modifier_id' is set
if ('coupon_modifier_id' not in params) or (params['coupon_modifier_id'] is None):
raise ValueError("Missing the required parameter `coupon_modifier_id` when calling `get_coupon_modifier_by_id`")
resource_path = '/coupon-modifiers/{coupon-modifier-ID}'.replace('{format}', 'json')
path_params = {}
if 'coupon_modifier_id' in params:
path_params['coupon-modifier-ID'] = params['coupon_modifier_id']
query_params = {}
if 'organizations' in params:
query_params['organizations'] = params['organizations']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['text/plain'])
# Authentication setting
auth_settings = []
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CouponModifierBasePagedMetadata',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'))
def update_coupon_modifier(self, coupon_instance, **kwargs):
"""
Update a coupon-instance.
{\"nickname\":\"Update a modifier\",\"request\":\"updateCouponInstanceRequest.html\",\"response\":\"updateCouponInstanceResponse.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_coupon_modifier(coupon_instance, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param CouponModifierBase coupon_instance: The coupon-instance object to be updated. (required)
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.update_coupon_modifier_with_http_info(coupon_instance, **kwargs)
else:
(data) = self.update_coupon_modifier_with_http_info(coupon_instance, **kwargs)
return data
def update_coupon_modifier_with_http_info(self, coupon_instance, **kwargs):
"""
Update a coupon-instance.
{\"nickname\":\"Update a modifier\",\"request\":\"updateCouponInstanceRequest.html\",\"response\":\"updateCouponInstanceResponse.html\"}
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_coupon_modifier_with_http_info(coupon_instance, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param CouponModifierBase coupon_instance: The coupon-instance object to be updated. (required)
:return: CouponModifierBasePagedMetadata
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['coupon_instance']
all_params.append('callback')
all_params.append('_return_http_data_only')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_coupon_modifier" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'coupon_instance' is set
if ('coupon_instance' not in params) or (params['coupon_instance'] is None):
raise ValueError("Missing the required parameter `coupon_instance` when calling `update_coupon_modifier`")
resource_path = '/coupon-modifiers'.replace('{format}', 'json')
path_params = {}
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'coupon_instance' in params:
body_params = params['coupon_instance']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['text/xml', 'application/xml', 'application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = []
return self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CouponModifierBasePagedMetadata',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'))
| 45.226205
| 148
| 0.602766
| 3,791
| 36,588
| 5.594039
| 0.064099
| 0.063375
| 0.02867
| 0.023766
| 0.94615
| 0.938369
| 0.929976
| 0.913661
| 0.910124
| 0.896591
| 0
| 0.000557
| 0.313627
| 36,588
| 808
| 149
| 45.282178
| 0.843906
| 0.389226
| 0
| 0.790885
| 1
| 0
| 0.185416
| 0.06222
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040214
| false
| 0
| 0.018767
| 0
| 0.117962
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ad018a2f54bd6c77f38f3a756696bc50adb9c64e
| 3,890
|
py
|
Python
|
backend/api/tests/unit_tests/test_workspaces.py
|
hieutt99/aidudu
|
00dff59e8dff109904b340cd7ae763d6201773e8
|
[
"MIT"
] | 3
|
2021-10-31T19:32:20.000Z
|
2022-01-02T15:31:11.000Z
|
backend/api/tests/unit_tests/test_workspaces.py
|
hieutt99/aidudu
|
00dff59e8dff109904b340cd7ae763d6201773e8
|
[
"MIT"
] | 49
|
2021-10-31T16:08:35.000Z
|
2022-01-04T16:29:06.000Z
|
backend/api/tests/unit_tests/test_workspaces.py
|
hieutt99/aidudu
|
00dff59e8dff109904b340cd7ae763d6201773e8
|
[
"MIT"
] | 2
|
2021-12-19T17:03:22.000Z
|
2022-01-03T08:27:01.000Z
|
from api.tests.unit_tests.utils import *
class WorkSpacesListTest(APITestCase):
url = reverse("workspace-list")
def setUp(self):
hook_init_APITestCase(self)
self.other_user = ['kevin bacon','lalaland@john.snow','Tremors']
self.test_user = CustomUser.objects.create_user(
username=self.other_user[0],
email=self.other_user[1],
password=self.other_user[-1]
)
# print(test_user)
self.workspace_demo = ['work_space_which_this_user_join',set([2]),"public",None]
self.workspace = Workspace.objects.create(
name=self.workspace_demo[0],
visibility = self.workspace_demo[2],
logo = self.workspace_demo[3]
)
# workspace.members.add(test_user)
self.workspace_membership = WorkspaceMembership.objects.create(workspace=self.workspace, user=self.test_user, role=WorkspaceMembership.ROLE.ADMIN)
self.list_of_my_workspace = [RowWorkspaceMembership.workspace for RowWorkspaceMembership in WorkspaceMembership.objects.filter(user=self.me)]
def test_fail_get_workspace(self):
self.client.force_authenticate(user=None,token=None)
resp = self.client.get(self.url)
self.assertEqual(401, resp.status_code)
def test_success_get_workspace(self):
resp = self.client.get(self.url)
self.assertEqual(200, resp.status_code)
self.assertEqual(len(self.list_of_my_workspace),len(resp.json()))
def test_success_post_create_workspace(self):
# test create full config
data = {"name":"my diding dong",'visibility':'public',"logo":""}
resp = self.client.post(self.url,data=data)
# print(resp.content)
self.assertEqual(201, resp.status_code)
self.assertEqual({"id","name","visibility","logo","members"}, set(resp.json()))
# test create with default config
data = {"name":"majahi majaho"}
resp = self.client.post(self.url,data=data)
# print(resp.content)
self.assertEqual(201, resp.status_code)
self.assertEqual({"id","name","visibility","logo","members"}, set(resp.json()))
def tearDown(self):
if self.me is not None: self.me.delete()
if self.test_user is not None: self.test_user.delete()
if self.workspace is not None: self.workspace.delete()
class WorkSpacesDetailTest(APITestCase):
def setUp(self):
hook_init_APITestCase(self)
self.other_user = ['kevin bacon','lalaland@john.snow','Tremors']
self.test_user = CustomUser.objects.create_user(
username=self.other_user[0],
email=self.other_user[1],
password=self.other_user[-1]
)
# print(test_user)
self.workspace_demo = ['work_space_which_this_user_join',set([2]),"public",None]
self.workspace = Workspace.objects.create(
name=self.workspace_demo[0],
visibility = self.workspace_demo[2],
logo = self.workspace_demo[3]
)
# workspace.members.add(test_user)
self.workspace_membership = WorkspaceMembership.objects.create(workspace=self.workspace, user=self.test_user, role=WorkspaceMembership.ROLE.ADMIN)
self.list_of_my_workspace = [RowWorkspaceMembership.workspace for RowWorkspaceMembership in WorkspaceMembership.objects.filter(user=self.me)]
def tearDown(self):
if self.me is not None: self.me.delete()
if self.test_user is not None: self.test_user.delete()
if self.workspace is not None: self.workspace.delete()
def get_success_workspace_via_id(self):
resp = self.client.get(reverse('workspace-detail',args=[self.workspace.id]))
self.assertEqual(200, resp.status_code)
self.assertEqual({"id","name","visibility","logo","members"},set(resp.json()))
| 45.232558
| 154
| 0.661183
| 476
| 3,890
| 5.243697
| 0.210084
| 0.098958
| 0.041667
| 0.03125
| 0.814904
| 0.796474
| 0.796474
| 0.796474
| 0.745192
| 0.745192
| 0
| 0.009474
| 0.213111
| 3,890
| 85
| 155
| 45.764706
| 0.805946
| 0.050643
| 0
| 0.723077
| 0
| 0
| 0.084714
| 0.016834
| 0
| 0
| 0
| 0
| 0.138462
| 1
| 0.123077
| false
| 0.030769
| 0.015385
| 0
| 0.184615
| 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
|
ad0b4f0605b073651b043fd484aa32a43bdd5d07
| 3,643
|
py
|
Python
|
inventario/forms.py
|
vvilche1/odin
|
ca24e727d94b34b33eb51de50fbcc8a5505cc559
|
[
"Apache-2.0"
] | null | null | null |
inventario/forms.py
|
vvilche1/odin
|
ca24e727d94b34b33eb51de50fbcc8a5505cc559
|
[
"Apache-2.0"
] | null | null | null |
inventario/forms.py
|
vvilche1/odin
|
ca24e727d94b34b33eb51de50fbcc8a5505cc559
|
[
"Apache-2.0"
] | null | null | null |
from django import forms
from .models import Usuario, Libros, Issue, Resp, Cd, Inventario
class UsuarioForm(forms.ModelForm):
class Meta:
model = Usuario
fields = ('id_cam','idusuario','nombre','rut','password')
class LibrosForm(forms.ModelForm):
class Meta:
model = Libros
fields = ('total_items',
'total_items_inventariados',
'total_items_en_prestamos_permanente',
'total_items_en_morosos_alumnos',
'total_items_morosos_academicos',
'total_items_morosos_funcionarios',
'total_items_morosos_postgrado',
'total_items_morosos_pib',
'total_items_extraviados',
'total_items_perdidos',
'total_items_inutilizados',
'total_items_deteriorados_para_empastar',
'total_items_transito',
'total_items_problemas_de_catalogacion',
'total_items_faltantes')
class IssueForm(forms.ModelForm):
class Meta:
model = Issue
fields = ('total_items',
'total_items_inventariados',
'total_items_en_prestamos_permanente',
'total_items_en_morosos_alumnos',
'total_items_morosos_academicos',
'total_items_morosos_funcionarios',
'total_items_morosos_postgrado',
'total_items_morosos_pib',
'total_items_extraviados',
'total_items_perdidos',
'total_items_inutilizados',
'total_items_deteriorados_para_empastar',
'total_items_transito',
'total_items_problemas_de_catalogacion',
'total_items_faltantes')
class RespForm(forms.ModelForm):
class Meta:
model = Resp
fields = ('total_items',
'total_items_inventariados',
'total_items_en_prestamos_permanente',
'total_items_en_morosos_alumnos',
'total_items_morosos_academicos',
'total_items_morosos_funcionarios',
'total_items_morosos_postgrado',
'total_items_morosos_pib',
'total_items_extraviados',
'total_items_perdidos',
'total_items_inutilizados',
'total_items_deteriorados_para_empastar',
'total_items_transito',
'total_items_problemas_de_catalogacion',
'total_items_faltantes')
class CdForm(forms.ModelForm):
class Meta:
model = Cd
fields = ('total_items',
'total_items_inventariados',
'total_items_en_prestamos_permanente',
'total_items_en_morosos_alumnos',
'total_items_morosos_academicos',
'total_items_morosos_funcionarios',
'total_items_morosos_postgrado',
'total_items_morosos_pib',
'total_items_extraviados',
'total_items_perdidos',
'total_items_inutilizados',
'total_items_deteriorados_para_empastar',
'total_items_transito',
'total_items_problemas_de_catalogacion',
'total_items_faltantes')
class InventarioForm(forms.ModelForm):
class Meta:
model = Inventario
fields = ('idinventario_libros',
'idinventario_issue',
'idinventario_cd',
'idinventario_resp',
'nombre_inventario',
'f_inicio',
'f_termino',
)
| 35.715686
| 65
| 0.583036
| 311
| 3,643
| 6.276527
| 0.176849
| 0.307377
| 0.139344
| 0.070697
| 0.840164
| 0.754098
| 0.754098
| 0.754098
| 0.754098
| 0.754098
| 0
| 0
| 0.342575
| 3,643
| 101
| 66
| 36.069307
| 0.815031
| 0
| 0
| 0.741573
| 0
| 0
| 0.47406
| 0.381005
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.011236
| 0.022472
| 0
| 0.157303
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ad5e89bbeacf4d05eed6ad9bd2d30785b4556f93
| 13,254
|
py
|
Python
|
tests/pytests/functional/modules/state/requisites/test_onfail.py
|
tomdoherty/salt
|
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
|
[
"Apache-2.0"
] | 9,425
|
2015-01-01T05:59:24.000Z
|
2022-03-31T20:44:05.000Z
|
tests/pytests/functional/modules/state/requisites/test_onfail.py
|
tomdoherty/salt
|
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
|
[
"Apache-2.0"
] | 33,507
|
2015-01-01T00:19:56.000Z
|
2022-03-31T23:48:20.000Z
|
tests/pytests/functional/modules/state/requisites/test_onfail.py
|
tomdoherty/salt
|
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
|
[
"Apache-2.0"
] | 5,810
|
2015-01-01T19:11:45.000Z
|
2022-03-31T02:37:20.000Z
|
import pytest
from . import normalize_ret
pytestmark = [
pytest.mark.windows_whitelisted,
]
def test_requisites_onfail_any(state, state_tree):
"""
Call sls file containing several require_in and require.
Ensure that some of them are failing and that the order is right.
"""
sls_contents = """
a:
cmd.run:
- name: exit 0
b:
cmd.run:
- name: exit 1
c:
cmd.run:
- name: exit 0
d:
cmd.run:
- name: echo itworked
- onfail_any:
- cmd: a
- cmd: b
- cmd: c
e:
cmd.run:
- name: exit 0
f:
cmd.run:
- name: exit 0
g:
cmd.run:
- name: exit 0
h:
cmd.run:
- name: echo itworked
- onfail_any:
- cmd: e
- cmd: f
- cmd: g
"""
expected_result = {
"cmd_|-a_|-exit 0_|-run": {
"__run_num__": 0,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-b_|-exit 1_|-run": {
"__run_num__": 1,
"changes": True,
"comment": 'Command "exit 1" run',
"result": False,
},
"cmd_|-c_|-exit 0_|-run": {
"__run_num__": 2,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-d_|-echo itworked_|-run": {
"__run_num__": 3,
"changes": True,
"comment": 'Command "echo itworked" run',
"result": True,
},
"cmd_|-e_|-exit 0_|-run": {
"__run_num__": 4,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-f_|-exit 0_|-run": {
"__run_num__": 5,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-g_|-exit 0_|-run": {
"__run_num__": 6,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-h_|-echo itworked_|-run": {
"__run_num__": 7,
"changes": False,
"comment": "State was not run because onfail req did not change",
"result": True,
},
}
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
result = normalize_ret(ret.raw)
assert result == expected_result
def test_requisites_onfail_all(state, state_tree):
"""
Call sls file containing several onfail-all
Ensure that some of them are failing and that the order is right.
"""
sls_contents = """
a:
cmd.run:
- name: exit 0
b:
cmd.run:
- name: exit 0
c:
cmd.run:
- name: exit 0
d:
cmd.run:
- name: exit 1
e:
cmd.run:
- name: exit 1
f:
cmd.run:
- name: exit 1
reqs not met:
cmd.run:
- name: echo itdidntonfail
- onfail_all:
- cmd: a
- cmd: e
reqs also not met:
cmd.run:
- name: echo italsodidnonfail
- onfail_all:
- cmd: a
- cmd: b
- cmd: c
reqs met:
cmd.run:
- name: echo itonfailed
- onfail_all:
- cmd: d
- cmd: e
- cmd: f
reqs also met:
cmd.run:
- name: echo itonfailed
- onfail_all:
- cmd: d
- require:
- cmd: a
"""
expected_result = {
"cmd_|-a_|-exit 0_|-run": {
"__run_num__": 0,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-b_|-exit 0_|-run": {
"__run_num__": 1,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-c_|-exit 0_|-run": {
"__run_num__": 2,
"changes": True,
"comment": 'Command "exit 0" run',
"result": True,
},
"cmd_|-d_|-exit 1_|-run": {
"__run_num__": 3,
"changes": True,
"comment": 'Command "exit 1" run',
"result": False,
},
"cmd_|-e_|-exit 1_|-run": {
"__run_num__": 4,
"changes": True,
"comment": 'Command "exit 1" run',
"result": False,
},
"cmd_|-f_|-exit 1_|-run": {
"__run_num__": 5,
"changes": True,
"comment": 'Command "exit 1" run',
"result": False,
},
"cmd_|-reqs also met_|-echo itonfailed_|-run": {
"__run_num__": 9,
"changes": True,
"comment": 'Command "echo itonfailed" run',
"result": True,
},
"cmd_|-reqs also not met_|-echo italsodidnonfail_|-run": {
"__run_num__": 7,
"changes": False,
"comment": "State was not run because onfail req did not change",
"result": True,
},
"cmd_|-reqs met_|-echo itonfailed_|-run": {
"__run_num__": 8,
"changes": True,
"comment": 'Command "echo itonfailed" run',
"result": True,
},
"cmd_|-reqs not met_|-echo itdidntonfail_|-run": {
"__run_num__": 6,
"changes": False,
"comment": "State was not run because onfail req did not change",
"result": True,
},
}
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
result = normalize_ret(ret.raw)
assert result == expected_result
def test_onfail_requisite(state, state_tree):
"""
Tests a simple state using the onfail requisite
"""
sls_contents = """
failing_state:
cmd.run:
- name: asdf
non_failing_state:
cmd.run:
- name: echo "Non-failing state"
test_failing_state:
cmd.run:
- name: echo "Success!"
- onfail:
- cmd: failing_state
test_non_failing_state:
cmd.run:
- name: echo "Should not run"
- onfail:
- cmd: non_failing_state
"""
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
assert (
ret['cmd_|-test_failing_state_|-echo "Success!"_|-run'].comment
== 'Command "echo "Success!"" run'
)
assert (
ret['cmd_|-test_non_failing_state_|-echo "Should not run"_|-run'].comment
== "State was not run because onfail req did not change"
)
def test_multiple_onfail_requisite(state, state_tree):
"""
test to ensure state is run even if only one
of the onfails fails. This is a test for the issue:
https://github.com/saltstack/salt/issues/22370
"""
sls_contents = """
a:
cmd.run:
- name: exit 0
b:
cmd.run:
- name: exit 1
c:
cmd.run:
- name: echo itworked
- onfail:
- cmd: a
- cmd: b
"""
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
assert ret["cmd_|-c_|-echo itworked_|-run"].changes["retcode"] == 0
assert ret["cmd_|-c_|-echo itworked_|-run"].changes["stdout"] == "itworked"
def test_onfail_in_requisite(state, state_tree):
"""
Tests a simple state using the onfail_in requisite
"""
sls_contents = """
failing_state:
cmd.run:
- name: asdf
- onfail_in:
- cmd: test_failing_state
non_failing_state:
cmd.run:
- name: echo "Non-failing state"
- onfail_in:
- cmd: test_non_failing_state
test_failing_state:
cmd.run:
- name: echo "Success!"
test_non_failing_state:
cmd.run:
- name: echo "Should not run"
"""
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
assert (
ret['cmd_|-test_failing_state_|-echo "Success!"_|-run'].comment
== 'Command "echo "Success!"" run'
)
assert (
ret['cmd_|-test_non_failing_state_|-echo "Should not run"_|-run'].comment
== "State was not run because onfail req did not change"
)
def test_onfail_requisite_no_state_module(state, state_tree):
"""
Tests a simple state using the onfail requisite
"""
sls_contents = """
failing_state:
cmd.run:
- name: asdf
non_failing_state:
cmd.run:
- name: echo "Non-failing state"
test_failing_state:
cmd.run:
- name: echo "Success!"
- onfail:
- failing_state
test_non_failing_state:
cmd.run:
- name: echo "Should not run"
- onfail:
- non_failing_state
"""
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
assert (
ret['cmd_|-test_failing_state_|-echo "Success!"_|-run'].comment
== 'Command "echo "Success!"" run'
)
assert (
ret['cmd_|-test_non_failing_state_|-echo "Should not run"_|-run'].comment
== "State was not run because onfail req did not change"
)
def test_onfail_requisite_with_duration(state, state_tree):
"""
Tests a simple state using the onfail requisite
"""
sls_contents = """
failing_state:
cmd.run:
- name: asdf
non_failing_state:
cmd.run:
- name: echo "Non-failing state"
test_failing_state:
cmd.run:
- name: echo "Success!"
- onfail:
- cmd: failing_state
test_non_failing_state:
cmd.run:
- name: echo "Should not run"
- onfail:
- cmd: non_failing_state
"""
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
assert (
"duration"
in ret['cmd_|-test_non_failing_state_|-echo "Should not run"_|-run']
)
def test_multiple_onfail_requisite_with_required(state, state_tree):
"""
test to ensure multiple states are run
when specified as onfails for a single state.
This is a test for the issue:
https://github.com/saltstack/salt/issues/46552
"""
sls_contents = """
a:
cmd.run:
- name: exit 1
pass:
cmd.run:
- name: exit 0
b:
cmd.run:
- name: echo b
- onfail:
- cmd: a
c:
cmd.run:
- name: echo c
- onfail:
- cmd: a
- require:
- cmd: b
d:
cmd.run:
- name: echo d
- onfail:
- cmd: a
- require:
- cmd: c
e:
cmd.run:
- name: echo e
- onfail:
- cmd: pass
- require:
- cmd: c
f:
cmd.run:
- name: echo f
- onfail:
- cmd: pass
- onchanges:
- cmd: b
"""
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
assert ret["cmd_|-b_|-echo b_|-run"].changes["retcode"] == 0
assert ret["cmd_|-c_|-echo c_|-run"].changes["retcode"] == 0
assert ret["cmd_|-d_|-echo d_|-run"].changes["retcode"] == 0
assert ret["cmd_|-b_|-echo b_|-run"].changes["stdout"] == "b"
assert ret["cmd_|-c_|-echo c_|-run"].changes["stdout"] == "c"
assert ret["cmd_|-d_|-echo d_|-run"].changes["stdout"] == "d"
assert (
ret["cmd_|-e_|-echo e_|-run"].comment
== "State was not run because onfail req did not change"
)
assert (
ret["cmd_|-f_|-echo f_|-run"].comment
== "State was not run because onfail req did not change"
)
def test_multiple_onfail_requisite_with_required_no_run(state, state_tree):
"""
test to ensure multiple states are not run
when specified as onfails for a single state
which fails.
This is a test for the issue:
https://github.com/saltstack/salt/issues/46552
"""
sls_contents = """
a:
cmd.run:
- name: exit 0
b:
cmd.run:
- name: echo b
- onfail:
- cmd: a
c:
cmd.run:
- name: echo c
- onfail:
- cmd: a
- require:
- cmd: b
d:
cmd.run:
- name: echo d
- onfail:
- cmd: a
- require:
- cmd: c
"""
expected = "State was not run because onfail req did not change"
with pytest.helpers.temp_file("requisite.sls", sls_contents, state_tree):
ret = state.sls("requisite")
assert ret["cmd_|-b_|-echo b_|-run"].comment == expected
assert ret["cmd_|-c_|-echo c_|-run"].comment == expected
assert ret["cmd_|-d_|-echo d_|-run"].comment == expected
| 25.007547
| 85
| 0.505885
| 1,511
| 13,254
| 4.195235
| 0.08405
| 0.045433
| 0.075722
| 0.059631
| 0.899353
| 0.868907
| 0.835936
| 0.818268
| 0.764474
| 0.710995
| 0
| 0.009276
| 0.36555
| 13,254
| 529
| 86
| 25.05482
| 0.744559
| 0.068885
| 0
| 0.78271
| 0
| 0
| 0.585067
| 0.030343
| 0
| 0
| 0
| 0
| 0.051402
| 1
| 0.021028
| false
| 0.007009
| 0.004673
| 0
| 0.025701
| 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
|
ad7ef914f1c2aa04c659da3945b1654027d7ade0
| 171,151
|
py
|
Python
|
src/oci/jms/java_management_service_client.py
|
pabs3/oci-python-sdk
|
437ba18ce39af2d1090e277c4bb8750c89f83021
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
src/oci/jms/java_management_service_client.py
|
pabs3/oci-python-sdk
|
437ba18ce39af2d1090e277c4bb8750c89f83021
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
src/oci/jms/java_management_service_client.py
|
pabs3/oci-python-sdk
|
437ba18ce39af2d1090e277c4bb8750c89f83021
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
# coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
from __future__ import absolute_import
from oci._vendor import requests # noqa: F401
from oci._vendor import six
from oci import retry, circuit_breaker # noqa: F401
from oci.base_client import BaseClient
from oci.config import get_config_value_or_default, validate_config
from oci.signer import Signer
from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
from .models import jms_type_mapping
missing = Sentinel("Missing")
class JavaManagementServiceClient(object):
"""
API for the Java Management Service. Use this API to view, create, and manage Fleets.
"""
def __init__(self, config, **kwargs):
"""
Creates a new service client
:param dict config:
Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
the dict using :py:meth:`~oci.config.validate_config`
:param str service_endpoint: (optional)
The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
need to specify a service endpoint.
:param timeout: (optional)
The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
:type timeout: float or tuple(float, float)
:param signer: (optional)
The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
provided in the config parameter.
One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
:type signer: :py:class:`~oci.signer.AbstractBaseSigner`
:param obj retry_strategy: (optional)
A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
Any value provided at the operation level will override whatever is specified at the client level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
:param obj circuit_breaker_strategy: (optional)
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
:param function circuit_breaker_callback: (optional)
Callback function to receive any exceptions triggerred by the circuit breaker.
:param allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
allow control characters to be in the response object.
"""
validate_config(config, signer=kwargs.get('signer'))
if 'signer' in kwargs:
signer = kwargs['signer']
elif AUTHENTICATION_TYPE_FIELD_NAME in config:
signer = get_signer_from_authentication_type(config)
else:
signer = Signer(
tenancy=config["tenancy"],
user=config["user"],
fingerprint=config["fingerprint"],
private_key_file_location=config.get("key_file"),
pass_phrase=get_config_value_or_default(config, "pass_phrase"),
private_key_content=config.get("key_content")
)
base_client_init_kwargs = {
'regional_client': True,
'service_endpoint': kwargs.get('service_endpoint'),
'base_path': '/20210610',
'service_endpoint_template': 'https://javamanagement.{region}.oci.{secondLevelDomain}',
'skip_deserialization': kwargs.get('skip_deserialization', False),
'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY)
}
if 'timeout' in kwargs:
base_client_init_kwargs['timeout'] = kwargs.get('timeout')
if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
if 'allow_control_chars' in kwargs:
base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
self.base_client = BaseClient("java_management_service", config, signer, jms_type_mapping, **base_client_init_kwargs)
self.retry_strategy = kwargs.get('retry_strategy')
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
def cancel_work_request(self, work_request_id, **kwargs):
"""
Deletes the work request specified by an identifier.
:param str work_request_id: (required)
The `OCID`__ of the asynchronous work request.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
ETag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the ETag you
provide matches the resource's current ETag value.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
"""
resource_path = "/workRequests/{workRequestId}"
method = "DELETE"
operation_name = "cancel_work_request"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/WorkRequest/CancelWorkRequest"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"cancel_work_request got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
"if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, **kwargs):
"""
Move a specified Fleet into the compartment identified in the POST form. When provided, If-Match is checked against ETag values of the resource.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.jms.models.ChangeFleetCompartmentDetails change_fleet_compartment_details: (required)
Compartment identifier.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
ETag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the ETag you
provide matches the resource's current ETag value.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/change_fleet_compartment.py.html>`__ to see an example of how to use change_fleet_compartment API.
"""
resource_path = "/fleets/{fleetId}/actions/changeCompartment"
method = "POST"
operation_name = "change_fleet_compartment"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Fleet/ChangeFleetCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_retry_token",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"change_fleet_compartment got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=change_fleet_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=change_fleet_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def create_blocklist(self, fleet_id, create_blocklist_details, **kwargs):
"""
Add a new record to the fleet blocklist.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.jms.models.CreateBlocklistDetails create_blocklist_details: (required)
Details for the new blocklist record.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.Blocklist`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/create_blocklist.py.html>`__ to see an example of how to use create_blocklist API.
"""
resource_path = "/fleets/{fleetId}/blocklists"
method = "POST"
operation_name = "create_blocklist"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Blocklist/CreateBlocklist"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_retry_token",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"create_blocklist got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-retry-token": kwargs.get("opc_retry_token", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=create_blocklist_details,
response_type="Blocklist",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=create_blocklist_details,
response_type="Blocklist",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def create_fleet(self, create_fleet_details, **kwargs):
"""
Create a new Fleet using the information provided.
:param oci.jms.models.CreateFleetDetails create_fleet_details: (required)
Details for the new Fleet.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/create_fleet.py.html>`__ to see an example of how to use create_fleet API.
"""
resource_path = "/fleets"
method = "POST"
operation_name = "create_fleet"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Fleet/CreateFleet"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_retry_token",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"create_fleet got unknown kwargs: {!r}".format(extra_kwargs))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-retry-token": kwargs.get("opc_retry_token", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
header_params=header_params,
body=create_fleet_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
header_params=header_params,
body=create_fleet_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def delete_blocklist(self, fleet_id, blocklist_key, **kwargs):
"""
Deletes the blocklist record specified by an identifier.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str blocklist_key: (required)
The unique identifier of the blocklist record.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
ETag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the ETag you
provide matches the resource's current ETag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/delete_blocklist.py.html>`__ to see an example of how to use delete_blocklist API.
"""
resource_path = "/fleets/{fleetId}/blocklists/{blocklistKey}"
method = "DELETE"
operation_name = "delete_blocklist"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Blocklist/DeleteBlocklist"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"delete_blocklist got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id,
"blocklistKey": blocklist_key
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def delete_fleet(self, fleet_id, **kwargs):
"""
Deletes the Fleet specified by an identifier.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
ETag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the ETag you
provide matches the resource's current ETag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/delete_fleet.py.html>`__ to see an example of how to use delete_fleet API.
"""
resource_path = "/fleets/{fleetId}"
method = "DELETE"
operation_name = "delete_fleet"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Fleet/DeleteFleet"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"delete_fleet got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def get_fleet(self, fleet_id, **kwargs):
"""
Retrieve a Fleet with the specified identifier.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.Fleet`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/get_fleet.py.html>`__ to see an example of how to use get_fleet API.
"""
resource_path = "/fleets/{fleetId}"
method = "GET"
operation_name = "get_fleet"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Fleet/GetFleet"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"get_fleet got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="Fleet",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="Fleet",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def get_fleet_agent_configuration(self, fleet_id, **kwargs):
"""
Retrieve a Fleet Agent Configuration for the specified Fleet.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.FleetAgentConfiguration`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/get_fleet_agent_configuration.py.html>`__ to see an example of how to use get_fleet_agent_configuration API.
"""
resource_path = "/fleets/{fleetId}/agentConfiguration"
method = "GET"
operation_name = "get_fleet_agent_configuration"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/FleetAgentConfiguration/GetFleetAgentConfiguration"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"get_fleet_agent_configuration got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="FleetAgentConfiguration",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="FleetAgentConfiguration",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def get_work_request(self, work_request_id, **kwargs):
"""
Retrieve the details of a work request with the specified ID.
:param str work_request_id: (required)
The `OCID`__ of the asynchronous work request.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.WorkRequest`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
"""
resource_path = "/workRequests/{workRequestId}"
method = "GET"
operation_name = "get_work_request"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/WorkRequest/GetWorkRequest"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"get_work_request got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="WorkRequest",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
response_type="WorkRequest",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_blocklists(self, fleet_id, **kwargs):
"""
Returns a list of blocklist entities contained by a fleet.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str operation: (optional)
The operation type.
Allowed values are: "CREATE_FLEET", "DELETE_FLEET", "MOVE_FLEET", "UPDATE_FLEET", "UPDATE_FLEET_AGENT_CONFIGURATION", "DELETE_JAVA_INSTALLATION"
:param str managed_instance_id: (optional)
The Fleet-unique identifier of the related managed instance.
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort blocklist records. Only one sort order may be provided.
Default order for _operation_ is **ascending**.
If no value is specified _operation_ is default.
Allowed values are: "operation"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.BlocklistCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_blocklists.py.html>`__ to see an example of how to use list_blocklists API.
"""
resource_path = "/fleets/{fleetId}/blocklists"
method = "GET"
operation_name = "list_blocklists"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Blocklist/ListBlocklists"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"operation",
"managed_instance_id",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_blocklists got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'operation' in kwargs:
operation_allowed_values = ["CREATE_FLEET", "DELETE_FLEET", "MOVE_FLEET", "UPDATE_FLEET", "UPDATE_FLEET_AGENT_CONFIGURATION", "DELETE_JAVA_INSTALLATION"]
if kwargs['operation'] not in operation_allowed_values:
raise ValueError(
"Invalid value for `operation`, must be one of {0}".format(operation_allowed_values)
)
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["operation"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
query_params = {
"operation": kwargs.get("operation", missing),
"managedInstanceId": kwargs.get("managed_instance_id", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="BlocklistCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="BlocklistCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_fleets(self, **kwargs):
"""
Returns a list of all the Fleets contained by a compartment. The query parameter `compartmentId`
is required unless the query parameter `id` is specified.
:param str compartment_id: (optional)
The `OCID`__ of the compartment in which to list resources.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str id: (optional)
The ID of the Fleet.
:param str lifecycle_state: (optional)
The state of the lifecycle.
Allowed values are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "NEEDS_ATTENTION", "UPDATING"
:param str display_name: (optional)
The display name.
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort Fleets. Only one sort order may be provided.
Default order for _timeCreated_, _approximateJreCount_, _approximateInstallationCount_,
_approximateApplicationCount_ and _approximateManagedInstanceCount_ is **descending**.
Default order for _displayName_ is **ascending**.
If no value is specified _timeCreated_ is default.
Allowed values are: "displayName", "timeCreated"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.FleetCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_fleets.py.html>`__ to see an example of how to use list_fleets API.
"""
resource_path = "/fleets"
method = "GET"
operation_name = "list_fleets"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Fleet/ListFleets"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"compartment_id",
"id",
"lifecycle_state",
"display_name",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_fleets got unknown kwargs: {!r}".format(extra_kwargs))
if 'lifecycle_state' in kwargs:
lifecycle_state_allowed_values = ["ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "NEEDS_ATTENTION", "UPDATING"]
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
raise ValueError(
"Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
)
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["displayName", "timeCreated"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
query_params = {
"compartmentId": kwargs.get("compartment_id", missing),
"id": kwargs.get("id", missing),
"lifecycleState": kwargs.get("lifecycle_state", missing),
"displayName": kwargs.get("display_name", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="FleetCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="FleetCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_installation_sites(self, fleet_id, **kwargs):
"""
List Java installation sites in a Fleet filtered by query parameters.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str jre_vendor: (optional)
The vendor of the related Java Runtime.
:param str jre_distribution: (optional)
The distribution of the related Java Runtime.
:param str jre_version: (optional)
The version of the related Java Runtime.
:param str installation_path: (optional)
The file system path of the installation.
:param str application_id: (optional)
The Fleet-unique identifier of the related application.
:param str managed_instance_id: (optional)
The Fleet-unique identifier of the related managed instance.
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort installation sites. Only one sort order may be provided.
Default order for _timeLastSeen_, and _jreVersion_, _approximateApplicationCount_ is **descending**.
Default order for _managedInstanceId_, _jreDistribution_, _jreVendor_ and _osName_ is **ascending**.
If no value is specified _managedInstanceId_ is default.
Allowed values are: "managedInstanceId", "jreDistribution", "jreVendor", "jreVersion", "path", "approximateApplicationCount", "osName", "securityStatus"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param list[str] os_family: (optional)
The operating system type.
Allowed values are: "LINUX", "WINDOWS", "MACOS", "UNKNOWN"
:param str jre_security_status: (optional)
The security status of the Java Runtime.
Allowed values are: "UNKNOWN", "UP_TO_DATE", "UPDATE_REQUIRED", "UPGRADE_REQUIRED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.InstallationSiteCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_installation_sites.py.html>`__ to see an example of how to use list_installation_sites API.
"""
resource_path = "/fleets/{fleetId}/installationSites"
method = "GET"
operation_name = "list_installation_sites"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/InstallationSiteSummary/ListInstallationSites"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"jre_vendor",
"jre_distribution",
"jre_version",
"installation_path",
"application_id",
"managed_instance_id",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id",
"os_family",
"jre_security_status"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_installation_sites got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["managedInstanceId", "jreDistribution", "jreVendor", "jreVersion", "path", "approximateApplicationCount", "osName", "securityStatus"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
if 'os_family' in kwargs:
os_family_allowed_values = ["LINUX", "WINDOWS", "MACOS", "UNKNOWN"]
for os_family_item in kwargs['os_family']:
if os_family_item not in os_family_allowed_values:
raise ValueError(
"Invalid value for `os_family`, must be one of {0}".format(os_family_allowed_values)
)
if 'jre_security_status' in kwargs:
jre_security_status_allowed_values = ["UNKNOWN", "UP_TO_DATE", "UPDATE_REQUIRED", "UPGRADE_REQUIRED"]
if kwargs['jre_security_status'] not in jre_security_status_allowed_values:
raise ValueError(
"Invalid value for `jre_security_status`, must be one of {0}".format(jre_security_status_allowed_values)
)
query_params = {
"jreVendor": kwargs.get("jre_vendor", missing),
"jreDistribution": kwargs.get("jre_distribution", missing),
"jreVersion": kwargs.get("jre_version", missing),
"installationPath": kwargs.get("installation_path", missing),
"applicationId": kwargs.get("application_id", missing),
"managedInstanceId": kwargs.get("managed_instance_id", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"osFamily": self.base_client.generate_collection_format_param(kwargs.get("os_family", missing), 'multi'),
"jreSecurityStatus": kwargs.get("jre_security_status", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="InstallationSiteCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="InstallationSiteCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_jre_usage(self, **kwargs):
"""
List Java Runtime usage in a specified host filtered by query parameters.
:param str compartment_id: (optional)
The `OCID`__ of the compartment in which to list resources.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str host_id: (optional)
The host `OCID`__ of the managed instance.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str application_id: (optional)
The Fleet-unique identifier of the application.
:param str application_name: (optional)
The name of the application.
:param datetime time_start: (optional)
The start of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param datetime time_end: (optional)
The end of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort JRE usages. Only one sort order may be provided.
Default order for _timeFirstSeen_, _timeLastSeen_, and _version_ is **descending**.
Default order for _timeFirstSeen_, _timeLastSeen_, _version_, _approximateInstallationCount_,
_approximateApplicationCount_ and _approximateManagedInstanceCount_ is **descending**.
Default order for _distribution_, _vendor_, and _osName_ is **ascending**.
If no value is specified _timeLastSeen_ is default.
Allowed values are: "distribution", "timeFirstSeen", "timeLastSeen", "vendor", "version", "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount", "osName", "securityStatus"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.JreUsageCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_jre_usage.py.html>`__ to see an example of how to use list_jre_usage API.
"""
resource_path = "/listJreUsage"
method = "GET"
operation_name = "list_jre_usage"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/JreUsage/ListJreUsage"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"compartment_id",
"host_id",
"application_id",
"application_name",
"time_start",
"time_end",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_jre_usage got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["distribution", "timeFirstSeen", "timeLastSeen", "vendor", "version", "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount", "osName", "securityStatus"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
query_params = {
"compartmentId": kwargs.get("compartment_id", missing),
"hostId": kwargs.get("host_id", missing),
"applicationId": kwargs.get("application_id", missing),
"applicationName": kwargs.get("application_name", missing),
"timeStart": kwargs.get("time_start", missing),
"timeEnd": kwargs.get("time_end", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="JreUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="JreUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_work_items(self, work_request_id, **kwargs):
"""
Retrieve a (paginated) list of work items for a specified work request.
:param str work_request_id: (required)
The `OCID`__ of the asynchronous work request.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.WorkItemCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_work_items.py.html>`__ to see an example of how to use list_work_items API.
"""
resource_path = "/workRequests/{workRequestId}/workItems"
method = "GET"
operation_name = "list_work_items"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/WorkItemSummary/ListWorkItems"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_work_items got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkItemCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkItemCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_work_request_errors(self, work_request_id, **kwargs):
"""
Retrieve a (paginated) list of errors for a specified work request.
:param str work_request_id: (required)
The `OCID`__ of the asynchronous work request.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.WorkRequestErrorCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
"""
resource_path = "/workRequests/{workRequestId}/errors"
method = "GET"
operation_name = "list_work_request_errors"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/WorkRequestError/ListWorkRequestErrors"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_work_request_errors got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestErrorCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestErrorCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_work_request_logs(self, work_request_id, **kwargs):
"""
Retrieve a (paginated) list of logs for a specified work request.
:param str work_request_id: (required)
The `OCID`__ of the asynchronous work request.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.WorkRequestLogEntryCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
"""
resource_path = "/workRequests/{workRequestId}/logs"
method = "GET"
operation_name = "list_work_request_logs"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/WorkRequestLogEntry/ListWorkRequestLogs"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_request_id",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_work_request_logs got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"workRequestId": work_request_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestLogEntryCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestLogEntryCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def list_work_requests(self, **kwargs):
"""
List the work requests in a compartment. The query parameter `compartmentId` is required unless the query parameter `id` or `fleetId` is specified.
:param str compartment_id: (optional)
The `OCID`__ of the compartment in which to list resources.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str id: (optional)
The ID of an asynchronous work request.
:param str fleet_id: (optional)
The `OCID`__ of the fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
The client request ID for tracing.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param int limit: (optional)
The maximum number of items to return.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.WorkRequestCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
"""
resource_path = "/workRequests"
method = "GET"
operation_name = "list_work_requests"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/WorkRequest/ListWorkRequests"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"compartment_id",
"id",
"fleet_id",
"opc_request_id",
"page",
"limit"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_work_requests got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
"compartmentId": kwargs.get("compartment_id", missing),
"id": kwargs.get("id", missing),
"fleetId": kwargs.get("fleet_id", missing),
"page": kwargs.get("page", missing),
"limit": kwargs.get("limit", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="WorkRequestCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def remove_fleet_installation_sites(self, fleet_id, remove_fleet_installation_sites_details, **kwargs):
"""
Remove Java installation sites in a Fleet.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.jms.models.RemoveFleetInstallationSitesDetails remove_fleet_installation_sites_details: (required)
List of installation sites to be deleted.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
ETag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the ETag you
provide matches the resource's current ETag value.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/remove_fleet_installation_sites.py.html>`__ to see an example of how to use remove_fleet_installation_sites API.
"""
resource_path = "/fleets/{fleetId}/actions/removeInstallationSites"
method = "POST"
operation_name = "remove_fleet_installation_sites"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/InstallationSiteSummary/RemoveFleetInstallationSites"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_retry_token",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"remove_fleet_installation_sites got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-retry-token": kwargs.get("opc_retry_token", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_retry_token_if_needed(header_params)
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=remove_fleet_installation_sites_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=remove_fleet_installation_sites_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def summarize_application_usage(self, fleet_id, **kwargs):
"""
List application usage in a Fleet filtered by query parameters.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str application_id: (optional)
The Fleet-unique identifier of the application.
:param str display_name: (optional)
The display name.
:param str application_type: (optional)
The type of the application.
:param str jre_vendor: (optional)
The vendor of the related Java Runtime.
:param str jre_distribution: (optional)
The distribution of the related Java Runtime.
:param str jre_version: (optional)
The version of the related Java Runtime.
:param str installation_path: (optional)
The file system path of the installation.
:param str managed_instance_id: (optional)
The Fleet-unique identifier of the related managed instance.
:param list[str] fields: (optional)
Additional fields to include into the returned model on top of the required ones.
This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'.
For example 'approximateJreCount,approximateInstallationCount'.
Allowed values are: "approximateJreCount", "approximateInstallationCount", "approximateManagedInstanceCount"
:param datetime time_start: (optional)
The start of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param datetime time_end: (optional)
The end of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort application views. Only one sort order may be provided.
Default order for _timeFirstSeen_, _timeLastSeen_, _approximateJreCount_, _approximateInstallationCount_
and _approximateManagedInstanceCount_ is **descending**.
Default order for _displayName_ and _osName_ is **ascending**.
If no value is specified _timeLastSeen_ is default.
Allowed values are: "timeFirstSeen", "timeLastSeen", "displayName", "approximateJreCount", "approximateInstallationCount", "approximateManagedInstanceCount", "osName"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param list[str] os_family: (optional)
The operating system type.
Allowed values are: "LINUX", "WINDOWS", "MACOS", "UNKNOWN"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.ApplicationUsageCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/summarize_application_usage.py.html>`__ to see an example of how to use summarize_application_usage API.
"""
resource_path = "/fleets/{fleetId}/actions/summarizeApplicationUsage"
method = "GET"
operation_name = "summarize_application_usage"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/ApplicationUsage/SummarizeApplicationUsage"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"application_id",
"display_name",
"application_type",
"jre_vendor",
"jre_distribution",
"jre_version",
"installation_path",
"managed_instance_id",
"fields",
"time_start",
"time_end",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id",
"os_family"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"summarize_application_usage got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'fields' in kwargs:
fields_allowed_values = ["approximateJreCount", "approximateInstallationCount", "approximateManagedInstanceCount"]
for fields_item in kwargs['fields']:
if fields_item not in fields_allowed_values:
raise ValueError(
"Invalid value for `fields`, must be one of {0}".format(fields_allowed_values)
)
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["timeFirstSeen", "timeLastSeen", "displayName", "approximateJreCount", "approximateInstallationCount", "approximateManagedInstanceCount", "osName"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
if 'os_family' in kwargs:
os_family_allowed_values = ["LINUX", "WINDOWS", "MACOS", "UNKNOWN"]
for os_family_item in kwargs['os_family']:
if os_family_item not in os_family_allowed_values:
raise ValueError(
"Invalid value for `os_family`, must be one of {0}".format(os_family_allowed_values)
)
query_params = {
"applicationId": kwargs.get("application_id", missing),
"displayName": kwargs.get("display_name", missing),
"applicationType": kwargs.get("application_type", missing),
"jreVendor": kwargs.get("jre_vendor", missing),
"jreDistribution": kwargs.get("jre_distribution", missing),
"jreVersion": kwargs.get("jre_version", missing),
"installationPath": kwargs.get("installation_path", missing),
"managedInstanceId": kwargs.get("managed_instance_id", missing),
"fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'),
"timeStart": kwargs.get("time_start", missing),
"timeEnd": kwargs.get("time_end", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"osFamily": self.base_client.generate_collection_format_param(kwargs.get("os_family", missing), 'multi')
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="ApplicationUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="ApplicationUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def summarize_installation_usage(self, fleet_id, **kwargs):
"""
List Java installation usage in a Fleet filtered by query parameters.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str jre_vendor: (optional)
The vendor of the related Java Runtime.
:param str jre_distribution: (optional)
The distribution of the related Java Runtime.
:param str jre_version: (optional)
The version of the related Java Runtime.
:param str installation_path: (optional)
The file system path of the installation.
:param str application_id: (optional)
The Fleet-unique identifier of the related application.
:param str managed_instance_id: (optional)
The Fleet-unique identifier of the related managed instance.
:param list[str] fields: (optional)
Additional fields to include into the returned model on top of the required ones.
This parameter can also include 'approximateApplicationCount' and 'approximateManagedInstanceCount'.
For example 'approximateApplicationCount,approximateManagedInstanceCount'.
Allowed values are: "approximateApplicationCount", "approximateManagedInstanceCount"
:param datetime time_start: (optional)
The start of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param datetime time_end: (optional)
The end of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort installation views. Only one sort order may be provided.
Default order for _timeFirstSeen_, _timeLastSeen_, and _jreVersion_, _approximateApplicationCount_
and _approximateManagedInstanceCount_ is **descending**.
Default order for _jreDistribution_ and _jreVendor_ is **ascending**. If no value is specified _timeLastSeen_ is default.
Allowed values are: "jreDistribution", "jreVendor", "jreVersion", "path", "timeFirstSeen", "timeLastSeen", "approximateApplicationCount", "approximateManagedInstanceCount", "osName"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param list[str] os_family: (optional)
The operating system type.
Allowed values are: "LINUX", "WINDOWS", "MACOS", "UNKNOWN"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.InstallationUsageCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/summarize_installation_usage.py.html>`__ to see an example of how to use summarize_installation_usage API.
"""
resource_path = "/fleets/{fleetId}/actions/summarizeInstallationUsage"
method = "GET"
operation_name = "summarize_installation_usage"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/InstallationUsage/SummarizeInstallationUsage"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"jre_vendor",
"jre_distribution",
"jre_version",
"installation_path",
"application_id",
"managed_instance_id",
"fields",
"time_start",
"time_end",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id",
"os_family"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"summarize_installation_usage got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'fields' in kwargs:
fields_allowed_values = ["approximateApplicationCount", "approximateManagedInstanceCount"]
for fields_item in kwargs['fields']:
if fields_item not in fields_allowed_values:
raise ValueError(
"Invalid value for `fields`, must be one of {0}".format(fields_allowed_values)
)
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["jreDistribution", "jreVendor", "jreVersion", "path", "timeFirstSeen", "timeLastSeen", "approximateApplicationCount", "approximateManagedInstanceCount", "osName"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
if 'os_family' in kwargs:
os_family_allowed_values = ["LINUX", "WINDOWS", "MACOS", "UNKNOWN"]
for os_family_item in kwargs['os_family']:
if os_family_item not in os_family_allowed_values:
raise ValueError(
"Invalid value for `os_family`, must be one of {0}".format(os_family_allowed_values)
)
query_params = {
"jreVendor": kwargs.get("jre_vendor", missing),
"jreDistribution": kwargs.get("jre_distribution", missing),
"jreVersion": kwargs.get("jre_version", missing),
"installationPath": kwargs.get("installation_path", missing),
"applicationId": kwargs.get("application_id", missing),
"managedInstanceId": kwargs.get("managed_instance_id", missing),
"fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'),
"timeStart": kwargs.get("time_start", missing),
"timeEnd": kwargs.get("time_end", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"osFamily": self.base_client.generate_collection_format_param(kwargs.get("os_family", missing), 'multi')
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="InstallationUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="InstallationUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def summarize_jre_usage(self, fleet_id, **kwargs):
"""
List Java Runtime usage in a specified Fleet filtered by query parameters.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str jre_vendor: (optional)
The vendor of the Java Runtime.
:param str jre_distribution: (optional)
The distribution of the Java Runtime.
:param str jre_version: (optional)
The version of the Java Runtime.
:param str application_id: (optional)
The Fleet-unique identifier of the related application.
:param str managed_instance_id: (optional)
The Fleet-unique identifier of the related managed instance.
:param list[str] fields: (optional)
Additional fields to include into the returned model on top of the required ones.
This parameter can also include 'approximateApplicationCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'.
For example 'approximateApplicationCount,approximateManagedInstanceCount'.
Allowed values are: "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount"
:param datetime time_start: (optional)
The start of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param datetime time_end: (optional)
The end of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort JRE usages. Only one sort order may be provided.
Default order for _timeFirstSeen_, _timeLastSeen_, and _version_ is **descending**.
Default order for _timeFirstSeen_, _timeLastSeen_, _version_, _approximateInstallationCount_,
_approximateApplicationCount_ and _approximateManagedInstanceCount_ is **descending**.
Default order for _distribution_, _vendor_, and _osName_ is **ascending**.
If no value is specified _timeLastSeen_ is default.
Allowed values are: "distribution", "timeFirstSeen", "timeLastSeen", "vendor", "version", "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount", "osName", "securityStatus"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param list[str] os_family: (optional)
The operating system type.
Allowed values are: "LINUX", "WINDOWS", "MACOS", "UNKNOWN"
:param str jre_security_status: (optional)
The security status of the Java Runtime.
Allowed values are: "UNKNOWN", "UP_TO_DATE", "UPDATE_REQUIRED", "UPGRADE_REQUIRED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.JreUsageCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/summarize_jre_usage.py.html>`__ to see an example of how to use summarize_jre_usage API.
"""
resource_path = "/fleets/{fleetId}/actions/summarizeJreUsage"
method = "GET"
operation_name = "summarize_jre_usage"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/JreUsage/SummarizeJreUsage"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"jre_vendor",
"jre_distribution",
"jre_version",
"application_id",
"managed_instance_id",
"fields",
"time_start",
"time_end",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id",
"os_family",
"jre_security_status"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"summarize_jre_usage got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'fields' in kwargs:
fields_allowed_values = ["approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount"]
for fields_item in kwargs['fields']:
if fields_item not in fields_allowed_values:
raise ValueError(
"Invalid value for `fields`, must be one of {0}".format(fields_allowed_values)
)
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["distribution", "timeFirstSeen", "timeLastSeen", "vendor", "version", "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount", "osName", "securityStatus"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
if 'os_family' in kwargs:
os_family_allowed_values = ["LINUX", "WINDOWS", "MACOS", "UNKNOWN"]
for os_family_item in kwargs['os_family']:
if os_family_item not in os_family_allowed_values:
raise ValueError(
"Invalid value for `os_family`, must be one of {0}".format(os_family_allowed_values)
)
if 'jre_security_status' in kwargs:
jre_security_status_allowed_values = ["UNKNOWN", "UP_TO_DATE", "UPDATE_REQUIRED", "UPGRADE_REQUIRED"]
if kwargs['jre_security_status'] not in jre_security_status_allowed_values:
raise ValueError(
"Invalid value for `jre_security_status`, must be one of {0}".format(jre_security_status_allowed_values)
)
query_params = {
"jreVendor": kwargs.get("jre_vendor", missing),
"jreDistribution": kwargs.get("jre_distribution", missing),
"jreVersion": kwargs.get("jre_version", missing),
"applicationId": kwargs.get("application_id", missing),
"managedInstanceId": kwargs.get("managed_instance_id", missing),
"fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'),
"timeStart": kwargs.get("time_start", missing),
"timeEnd": kwargs.get("time_end", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"osFamily": self.base_client.generate_collection_format_param(kwargs.get("os_family", missing), 'multi'),
"jreSecurityStatus": kwargs.get("jre_security_status", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="JreUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="JreUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def summarize_managed_instance_usage(self, fleet_id, **kwargs):
"""
List managed instance usage in a Fleet filtered by query parameters.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str managed_instance_id: (optional)
The Fleet-unique identifier of the managed instance.
:param str managed_instance_type: (optional)
The type of the managed instance.
Allowed values are: "ORACLE_MANAGEMENT_AGENT"
:param str jre_vendor: (optional)
The vendor of the related Java Runtime.
:param str jre_distribution: (optional)
The distribution of the related Java Runtime.
:param str jre_version: (optional)
The version of the related Java Runtime.
:param str installation_path: (optional)
The file system path of the installation.
:param str application_id: (optional)
The Fleet-unique identifier of the related application.
:param list[str] fields: (optional)
Additional fields to include into the returned model on top of the required ones.
This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateApplicationCount'.
For example 'approximateJreCount,approximateInstallationCount'.
Allowed values are: "approximateJreCount", "approximateInstallationCount", "approximateApplicationCount"
:param datetime time_start: (optional)
The start of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param datetime time_end: (optional)
The end of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param int limit: (optional)
The maximum number of items to return.
:param str page: (optional)
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
:param str sort_order: (optional)
The sort order, either 'asc' or 'desc'.
Allowed values are: "ASC", "DESC"
:param str sort_by: (optional)
The field to sort managed instance views. Only one sort order may be provided.
Default order for _timeFirstSeen_, _timeLastSeen_, approximateJreCount_, _approximateInstallationCount_
and _approximateApplicationCount_ is **descending**.
Default order for _osName_ is **ascending**.
If no value is specified _timeLastSeen_ is default.
Allowed values are: "timeFirstSeen", "timeLastSeen", "approximateJreCount", "approximateInstallationCount", "approximateApplicationCount", "osName"
:param str opc_request_id: (optional)
The client request ID for tracing.
:param list[str] os_family: (optional)
The operating system type.
Allowed values are: "LINUX", "WINDOWS", "MACOS", "UNKNOWN"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.ManagedInstanceUsageCollection`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/summarize_managed_instance_usage.py.html>`__ to see an example of how to use summarize_managed_instance_usage API.
"""
resource_path = "/fleets/{fleetId}/actions/summarizeManagedInstanceUsage"
method = "GET"
operation_name = "summarize_managed_instance_usage"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/ManagedInstanceUsage/SummarizeManagedInstanceUsage"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"managed_instance_id",
"managed_instance_type",
"jre_vendor",
"jre_distribution",
"jre_version",
"installation_path",
"application_id",
"fields",
"time_start",
"time_end",
"limit",
"page",
"sort_order",
"sort_by",
"opc_request_id",
"os_family"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"summarize_managed_instance_usage got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'managed_instance_type' in kwargs:
managed_instance_type_allowed_values = ["ORACLE_MANAGEMENT_AGENT"]
if kwargs['managed_instance_type'] not in managed_instance_type_allowed_values:
raise ValueError(
"Invalid value for `managed_instance_type`, must be one of {0}".format(managed_instance_type_allowed_values)
)
if 'fields' in kwargs:
fields_allowed_values = ["approximateJreCount", "approximateInstallationCount", "approximateApplicationCount"]
for fields_item in kwargs['fields']:
if fields_item not in fields_allowed_values:
raise ValueError(
"Invalid value for `fields`, must be one of {0}".format(fields_allowed_values)
)
if 'sort_order' in kwargs:
sort_order_allowed_values = ["ASC", "DESC"]
if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'sort_by' in kwargs:
sort_by_allowed_values = ["timeFirstSeen", "timeLastSeen", "approximateJreCount", "approximateInstallationCount", "approximateApplicationCount", "osName"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
)
if 'os_family' in kwargs:
os_family_allowed_values = ["LINUX", "WINDOWS", "MACOS", "UNKNOWN"]
for os_family_item in kwargs['os_family']:
if os_family_item not in os_family_allowed_values:
raise ValueError(
"Invalid value for `os_family`, must be one of {0}".format(os_family_allowed_values)
)
query_params = {
"managedInstanceId": kwargs.get("managed_instance_id", missing),
"managedInstanceType": kwargs.get("managed_instance_type", missing),
"jreVendor": kwargs.get("jre_vendor", missing),
"jreDistribution": kwargs.get("jre_distribution", missing),
"jreVersion": kwargs.get("jre_version", missing),
"installationPath": kwargs.get("installation_path", missing),
"applicationId": kwargs.get("application_id", missing),
"fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'),
"timeStart": kwargs.get("time_start", missing),
"timeEnd": kwargs.get("time_end", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"osFamily": self.base_client.generate_collection_format_param(kwargs.get("os_family", missing), 'multi')
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="ManagedInstanceUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
query_params=query_params,
header_params=header_params,
response_type="ManagedInstanceUsageCollection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def summarize_resource_inventory(self, **kwargs):
"""
Retrieve the inventory of JMS resources in the specified compartment: a list of the number of _active_ fleets, managed instances, Java Runtimes, Java installations, and applications.
:param str compartment_id: (optional)
The `OCID`__ of the compartment in which to list resources.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param datetime time_start: (optional)
The start of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param datetime time_end: (optional)
The end of the time period during which resources are searched (formatted according to `RFC3339`__).
__ https://datatracker.ietf.org/doc/html/rfc3339
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms.models.ResourceInventory`
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/summarize_resource_inventory.py.html>`__ to see an example of how to use summarize_resource_inventory API.
"""
resource_path = "/summarizeResourceInventory"
method = "GET"
operation_name = "summarize_resource_inventory"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Fleet/SummarizeResourceInventory"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"compartment_id",
"time_start",
"time_end",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"summarize_resource_inventory got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
"compartmentId": kwargs.get("compartment_id", missing),
"timeStart": kwargs.get("time_start", missing),
"timeEnd": kwargs.get("time_end", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="ResourceInventory",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
response_type="ResourceInventory",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def update_fleet(self, fleet_id, update_fleet_details, **kwargs):
"""
Update the Fleet specified by an identifier.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.jms.models.UpdateFleetDetails update_fleet_details: (required)
The new details for the Fleet.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
ETag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the ETag you
provide matches the resource's current ETag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/update_fleet.py.html>`__ to see an example of how to use update_fleet API.
"""
resource_path = "/fleets/{fleetId}"
method = "PUT"
operation_name = "update_fleet"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/Fleet/UpdateFleet"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"update_fleet got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_fleet_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_fleet_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
def update_fleet_agent_configuration(self, fleet_id, update_fleet_agent_configuration_details, **kwargs):
"""
Update the Fleet Agent Configuration for the specified Fleet.
:param str fleet_id: (required)
The `OCID`__ of the Fleet.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.jms.models.UpdateFleetAgentConfigurationDetails update_fleet_agent_configuration_details: (required)
The new details for the Fleet Agent Configuration.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call
for a resource, set the `if-match` parameter to the value of the
ETag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the ETag you
provide matches the resource's current ETag value.
:param str opc_request_id: (optional)
The client request ID for tracing.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
:param bool allow_control_chars: (optional)
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
By default, the response will not allow control characters in strings
:return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/jms/update_fleet_agent_configuration.py.html>`__ to see an example of how to use update_fleet_agent_configuration API.
"""
resource_path = "/fleets/{fleetId}/agentConfiguration"
method = "PUT"
operation_name = "update_fleet_agent_configuration"
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/jms/20210610/FleetAgentConfiguration/UpdateFleetAgentConfiguration"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"update_fleet_agent_configuration got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
"fleetId": fleet_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
for (k, v) in six.iteritems(path_params):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
header_params = {
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
"opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.base_client.get_preferred_retry_strategy(
operation_retry_strategy=kwargs.get('retry_strategy'),
client_retry_strategy=self.retry_strategy
)
if retry_strategy is None:
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
if retry_strategy:
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
self.base_client.add_opc_client_retries_header(header_params)
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_fleet_agent_configuration_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
body=update_fleet_agent_configuration_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link)
| 48.63626
| 245
| 0.646061
| 20,432
| 171,151
| 5.196457
| 0.028044
| 0.0622
| 0.028821
| 0.005143
| 0.925528
| 0.912125
| 0.901379
| 0.888749
| 0.880912
| 0.870335
| 0
| 0.003113
| 0.271696
| 171,151
| 3,518
| 246
| 48.650085
| 0.848664
| 0.383036
| 0
| 0.824818
| 0
| 0.013034
| 0.189414
| 0.027838
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013556
| false
| 0.000521
| 0.004692
| 0
| 0.044838
| 0.000521
| 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
|
66fd66879d72c204d9658a9b23c6921e36b36b71
| 235
|
py
|
Python
|
graphene_pony/__init__.py
|
sostholm/graphene-pony
|
c38f9c340d344306015a9963b701d56f2e381e90
|
[
"MIT"
] | null | null | null |
graphene_pony/__init__.py
|
sostholm/graphene-pony
|
c38f9c340d344306015a9963b701d56f2e381e90
|
[
"MIT"
] | null | null | null |
graphene_pony/__init__.py
|
sostholm/graphene-pony
|
c38f9c340d344306015a9963b701d56f2e381e90
|
[
"MIT"
] | null | null | null |
# from .fields import MongoengineConnectionField
# from .types import MongoengineObjectType
# __version__ = "0.1.1"
# __all__ = ["__version__", "MongoengineObjectType", "MongoengineConnectionField"]
from .types import PonyObjectType
| 29.375
| 82
| 0.791489
| 20
| 235
| 8.7
| 0.55
| 0.344828
| 0.402299
| 0.471264
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014354
| 0.110638
| 235
| 8
| 83
| 29.375
| 0.818182
| 0.808511
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
0f3b16eba797aafdd705d96a38707edba7d36245
| 54,743
|
py
|
Python
|
py_files/field.py
|
jagarciap/SCSI
|
0972548adf17a27b78ef2865a837bf20aadca3e9
|
[
"MIT"
] | null | null | null |
py_files/field.py
|
jagarciap/SCSI
|
0972548adf17a27b78ef2865a837bf20aadca3e9
|
[
"MIT"
] | null | null | null |
py_files/field.py
|
jagarciap/SCSI
|
0972548adf17a27b78ef2865a837bf20aadca3e9
|
[
"MIT"
] | 1
|
2022-01-18T10:24:39.000Z
|
2022-01-18T10:24:39.000Z
|
#Data structures that contain the fields of the system
from functools import reduce
import copy
import numpy
import pdb
import sys
from vtk.util.numpy_support import vtk_to_numpy
import accelerated_functions as af
import constants as c
from mesh import Mesh_recursive
from pic import PIC_recursive
import solver as slv
from timing import Timing
#Field (Abstract):
#
#Definition = Indicate the attributes and methods that all fields have to implement. The fields obtain the functions to compute the fields from 'solver.py'
#Attributes:
# +type (string) = some string that describes the source and type of the field (created by the interaction plasma-spacecraft, user-defined, constant, etc.)
# +pic (PIC) = Class that contains PIC methods.
# +boundaries ([Boundary]) = Class that represents the methods which apply boundaries to the fields.
# +nPoints (int) = number of nodes in the mesh (Same as mesh class).
# +field ([double, double]) = components (columns) of field at each node.
#Methods:
# +__init__(...) = This function, for each subclass, will take care of the initial condition of the field.
# +computeField([Species] species) = Computes the updated field values.
# +fieldAtParticles([double,double] position) [double,double] = return an array indicating by component (columns) and particles (rows) the field at every position.
# +saveVTK(Mesh mesh): dictionary = Return the attributes of field to be printed in the VTK file.
# The process is handled inside each particular field, and the final result can be constructed from the output of different subclasses.
# +loadVTK(Mesh mesh, output) = Takes information of the field from a VTK file through 'output' and stores it in the corresponding attributes.
# The process is handled inside each particular field, and the final result can be constructed from the output of different subclasses.
class Field(object):
def __init__(self, n_pic, field_dim, n_type):
self.type = n_type
self.pic = n_pic
self.field = numpy.zeros((self.pic.mesh.nPoints, field_dim))
self.ind_calc = self.getIndexCalculation(self.pic.mesh)
def __add__(self, obj2):
try:
self.field += obj2.field
return self
except ValueError:
print("Both Field objects must have the same array size")
print(sys.exc_info())
raise
def getIndexCalculation(self, mesh):
pass
def computeField(self, species):
pass
def fieldAtParticles(self, position):
return self.pic.gather(position, self.field)
def saveVTK(self, mesh):
return {self.type+"-field" : mesh.vtkOrdering(self.field)}
def loadVTK(self, mesh, output):
self.field = mesh.reverseVTKOrdering(vtk_to_numpy(output.GetPointData().GetArray(self.type+"-field")))
#Field_recursive(Abstract, Inherits from Field):
#
#Definition = Abstract class that gives to its children the blueprint for including recursive behavior. It should be added as the first parent of its children classes, so that its methods
# are chosen by default when invoking super().
#Attributes:
# +children ([Field]) = Objects that are the children of this instance.
# +root (Boolean) = Indicates whether the object is the root Field (True) or not (False).
#Methods:
# +__init__ = adds " - Recursive" and initialize the list of children.
# + total_field(): [Double, Double] = This method creates an array containing all the values of the field in all the meshes of the domain, organized by the flat indexation rule.
# +Field methods.
class Field_recursive(Field):
def __init__(self, n_children, n_root, n_type):
n_type += " - Recursive"
self.children = n_children
self.root = n_root
def __add__(self, obj2):
try:
for i in range(len(self.children)):
self.children[i].__add__(ob2.children[i])
super().__add__(self, obj2)
except (IndexError, ValueError):
print("Both Field objects must have the same Tree structure, referring to the same underlying meshes")
print(sys.exc_info())
raise
def assignValuesToArray_recursive(self, name, indices, values, accIndex = None):
if self.root:
indices = self.pic.mesh.sortIndexByMeshes(indices)
accIndex = [0]
ind = indices.pop(0)
array_t = self.__getattribute__(name)
array_t[ind] = values[accIndex[0]:accIndex[0]+len(ind)]
self.__setattr__(name, array_t)
accIndex[0] += len(ind)
for child in self.children:
child.assignValuesToArray_recursive(name, indices, values, accIndex = accIndex)
def getTotalArray(self, name, seedList = None, index = None):
field = self.__getattribute__(name)
if self.root:
dims = list(numpy.shape(field))
dims[0] = self.pic.mesh.accPoints
seedList = numpy.zeros(dims)
index = [0]
temp = index[0]
index[0] += self.pic.mesh.nPoints
seedList[temp:index[0]] += field
for child in self.children:
child.getTotalArray(name, seedList = seedList, index = index)
return seedList
def getTotalField(self):
return self.getTotalArray("field")
def fieldAtParticles(self, position):
if self.root:
tot_field = self.getTotalField()
return self.pic.gather(position, tot_field)
else:
raise Exception('This instance of the functions should not have been executed')
def saveVTK(self, mesh):
return {self.type+"-field" : mesh.vtkOrdering(self.getTotalField())}
#Fix this. The 'field' value from the vtr file is not coming with the information of all the meshes
def loadVTK(self, mesh, output):
temp = mesh.reverseVTKOrdering(vtk_to_numpy(output.GetPointData().GetArray(self.type+"-field")))
self.assignValuesToArray_recursive("field", numpy.arange(self.pic.mesh.accPoints, dtype ='uint'), temp)
#Electric_Field (Inherits from Field):
#
#Definition = Electric field
#Attributes:
# +potential ([double]) = Electric potential at each node of the mesh.
# +Field attributes.
#Methods:
# +Field methods.
class Electric_Field(Field):
def __init__(self, n_pic, field_dim, n_string):
self.potential = numpy.zeros((n_pic.mesh.nPoints))
super().__init__(n_pic, field_dim, "Electric"+n_string)
def getIndexCalculation(self, mesh):
pass
def computeField(self, species):
pass
def saveVTK(self, mesh):
dic = super().saveVTK(mesh)
dic[self.type+"-potential"] = mesh.vtkOrdering(self.potential)
return dic
def loadVTK(self, mesh, output):
self.potential = mesh.reverseVTKOrdering(vtk_to_numpy(output.GetPointData().GetArray(self.type+"-potential")))
super().loadVTK(mesh, output)
#Constant_Electric_Field(Electric_Field):
#
#Definition = Constant electric field impsoed by the user. Does not change through time.
#Attributes:
# +type (string) = "Electric field - Constant".
# +Electric_Field attributes.
#Methods:
# +Electric_Field methods.
class Constant_Electric_Field(Electric_Field):
def __init__(self, n_pic, field_dim):
super().__init__(n_pic, field_dim, " - Constant")
self.field[:,0] += 0.27992
def computeField(self, species):
pass
#Electrostatic_2D_rm_Electric_Field (Inherits from Electric_Field):
#
#Definition = Electric field for a 2D rectangular mesh, detached from the magnetic field. Uses methods from "solver.py" to calculate electric potential, and then electric field.
#Attributes:
# +type (string) = "Electric - Electrostatic_2D_rm".
# +Elctric_Field attributes.
#Methods:
# +Electric_Field methods.
class Electrostatic_2D_rm(Electric_Field):
def __init__(self, n_pic, field_dim):
super().__init__(n_pic, field_dim, " - Electrostatic_2D_rm")
def getIndexCalculation(self, mesh):
temp = numpy.arange((mesh.nPoints))
loc = numpy.unique(mesh.location)
return numpy.delete(temp, loc)
@Timing
def computeField(self, species):
#Prepare the right-hand-side of the Poisson equation
loc = numpy.unique(self.pic.mesh.location_sat)
rho = numpy.zeros_like(species[0].mesh_values.density)
for specie in species:
rho += specie.mesh_values.density*specie.q
rho[loc] += specie.mesh_values.accDensity*specie.q
rho /= -c.EPS_0
slv.poissonSolver_2D_rm_SORCA_p(self.pic.mesh, self.potential, rho, self.ind_calc)
self.field = -slv.derive_2D_rm(self.pic.mesh, self.potential, self.ind_calc)
for boundary in self.pic.mesh.boundaries:
boundary.applyElectricBoundary(self)
# +Computation of Dirichlet boundary condition at every node in location ([ind]). Every row in value ([double]) corresponds to one node in location.
# boundary indicates whether the boundary is an 'inner' or 'outer' boundary. This is used for the calculation of the electric field.
def dirichlet(self, values, boundary, nx, ny, dx, dy):
#Dirichlet
location, u_ind = numpy.unique(boundary.location, return_index = True)
self.potential[location] = values[u_ind]
#Electric field trough Pade 2nd order in the boundaries
self.field[location, :] = -slv.derive_2D_rm_boundaries(self.potential, boundary, nx, ny, dx, dy)
# +Neumann([ind] location, [double] valus) = Set Neumann conditions in the nodes at 'location'.
# +values account for the values of the e_field normal to the border.
# +Note: The Function doesn't handle the situation of the corners.
def neumann(self, location, values):
# Variables at hand
nx = self.pic.mesh.nx
ny = self.pic.mesh.ny
dx = self.pic.mesh.dx
dy = self.pic.mesh.dy
#Field and potential
for i in range(len(location)):
if location[i] < nx:
self.field[location[i],1] = values[i]
self.potential[location[i]] = self.field[location[i],1]*dy+self.potential[location[i]+nx]
elif location[i] > nx*(ny-1):
self.field[location[i],1] = values[i]
self.potential[location[i]] = -self.field[location[i],1]*dy+self.potential[location[i]-nx]
elif location[i]%nx == 0:
self.field[location[i],0] = values[i]
self.potential[location[i]] = self.field[location[i],0]*dx+self.potential[location[i]+1]
else:
self.field[location[i],0] = values[i]
self.potential[location[i]] = -self.field[location[i], 0]*dx+self.potential[location[i]-1]
#Electrostatic_2D_rm_sat (Inherits from Electrostatic_2D_rm):
#
#Definition = Same characteristics as Electrostatic_2D_rm but with an inner boundary representing the satellite.
# For the class it is assumed that the satellite is stored as the second boundary in mesh. The surface is treated as a dielectric.
#Attributes:
# +type (string) = "Electric - Electrostatic_2D_rm_sat".
# +inv_capacity ([double,double]) = Inverse of the Capacity matrix for the nodes of the satellite.
# The matrix is organized such that V = C^{-1}*q[location], with 'location' being the location of the nodes in the mesh in sorted order.
# +Elctric_Field attributes.
#Methods:
# +floating_potential([Species] species) = Computes the floating potential in a dielectric surface, updating the involved nodes of the 'potential' array.
# This is done through the Capacity matrix method.
# +computeField([Species] species) = First, the floating potential of a dielectric surface is calculated based on the accumulated charge.
# Then, is the same behavior as the method in parent class.
# +Electrostatic_2D_rm methods.
class Electrostatic_2D_rm_sat(Electrostatic_2D_rm):
def __init__(self, n_pic, field_dim, capacity_file = c.CAPACITY_FILE):
Electric_Field.__init__(self, n_pic, field_dim, " - Electrostatic_2D_rm_sat")
tot_loc = len(numpy.unique(self.pic.mesh.location_sat))
self.inv_capacity = numpy.zeros((tot_loc, tot_loc))
if capacity_file is None:
slv.capacity_Inv_Matrix_asym(self)
else:
self.inv_capacity = numpy.loadtxt('./data/'+capacity_file)
try:
self.capacity = numpy.linalg.inv(self.inv_capacity)
att = 5e-4
self.capacity *= c.EPS_0*att
self.inv_capacity /= c.EPS_0*att
except numpy.linalg.LinAlgError:
print("Problem in Capacity Matrix")
print(sys.exc_info())
pdb.set_trace()
def getIndexCalculation(self, mesh, border = False):
temp = numpy.arange((mesh.nPoints))
mask = numpy.ones((mesh.nPoints), dtype = bool)
for boundary in mesh.boundaries:
if "Inner - 2D" in boundary.type:
mask[boundary.ind_inner] = False
if not border:
mask[boundary.location] = False
return temp[mask]
@Timing
def computeField(self, species):
self.floating_potential(species)
super().computeField(species)
def floating_potential(self, species):
loc = numpy.unique(self.pic.mesh.location_sat)
charges = [specie.q*specie.mesh_values.accDensity*self.pic.mesh.volumes[loc] for specie in species]
self.potential[loc] = numpy.matmul(self.inv_capacity, reduce(lambda x,y: x+y, charges).T)
#Electrostatic_2D_rm_sat_cond (Inherits from Electrostatic_2D_rm_sat):
#
#Definition = Same characteristics as Electrostatic_2D_rm_sat but the surface is conductive, as opposed to dielectric as in Electrostatic_2D_rm_sat.
# For the class it is assumed that the satellite is stored as the second boundary in mesh.
#Attributes:
# +type (string) = "Electric - Electrostatic_2D_rm_sat_cond".
# +inv_capacity ([double,double]) = Inverse of the Capacity matrix for the nodes of the satellite.
# The matrix is organized such that V = C^{-1}*q[location], with 'location' being the location of the nodes in the mesh in sorted order.
# +capacity ([double,double]) = Capacity matrix for the nodes of the satellite. It is organized the same way as inv_caparcity.
# +Electric_Field attributes.
#Methods:
# +floating_potential([Species] species) = Computes the floating potential in a conductive surface, updating the involved nodes of the 'potential' array.
# This is done through the Capacity matrix method.
# WARNING: Here, first, the charges are accumuated as the particles impact or leave the surface. Then, the charges are redistributed to account for the
# conductive surface. The change in densities in the surface is updated in 'Electron - Solar wind' class. In reality, all the electrons in the surface
# can move, including, for example, photoelectrons that return to the surface. However, since this code does not track the movement of particles
# in the surface, it is impossible to distingish among different types of electrons. Thus, changes are accumulated in the aforementioned class.
# +Electrostatic_2D_rm_sat methods.
class Electrostatic_2D_rm_sat_cond(Electrostatic_2D_rm_sat):
def __init__(self, n_pic, field_dim):
super().__init__(n_pic, field_dim)
self.type += "_cond"
@Timing
def computeField(self, species):
#Potential at the material surfaces
self.floating_potential(species)
#Prepare the right-hand-side of the Poisson equation
loc = numpy.unique(self.pic.mesh.location_sat)
rho = numpy.zeros_like(species[0].mesh_values.density)
for specie in species:
rho += specie.mesh_values.density*specie.q
rho[loc] += specie.mesh_values.accDensity*specie.q
rho /= -c.EPS_0
slv.poissonSolver_2D_rm_SORCA_p(self.pic.mesh, self.potential, rho, self.ind_calc)
self.field = -slv.derive_2D_rm(self.pic.mesh, self.potential, self.ind_calc)
for boundary in self.pic.mesh.boundaries:
boundary.applyElectricBoundary(self)
def floating_potential(self, species):
super().floating_potential(species)
loc = numpy.unique(self.pic.mesh.location_sat)
phi_c = numpy.sum(numpy.matmul(self.capacity, self.potential[loc].T))/numpy.sum(self.capacity)
d_q = numpy.matmul(self.capacity, (phi_c-self.potential[loc]).T)
#assert abs(numpy.sum(d_q)) < -c.QE or numpy.sum(d_q)/numpy.max(numpy.abs(d_q)) < 1e-4, "The redistribution of charge is creating or eliminating charge"
#WARNING: See class documentation for more explanation.
electron = list(filter(lambda specie: specie.name == "Electron - Solar wind", species))[0]
#d_n = d_q/electron.q/self.pic.mesh.volumes[loc]
#electron.mesh_values.accDensity += d_n
self.potential[loc] = phi_c
for boundary in self.pic.mesh.boundaries:
if boundary.type == 'Inner - 2D_Rectangular':
self.potential[boundary.ind_inner] = phi_c
#Electrostatic_2D_cm_Electric_Field (Inherits from Electrostatic_2D_rm):
#
#Definition = Electric field for a 2D cylindrical mesh (z-r), detached from the magnetic field. Uses methods from "solver.py" to calculate electric potential, and then electric field.
#Attributes:
# +type (string) = "Electric - Electrostatic_2D_rm".
# +Electric_Field attributes.
#Methods:
# +Electric_Field methods.
#NOTE: In the current state of the code, the Dirichlet function is working such that the electric field at r = 0 is 0.
class Electrostatic_2D_cm(Electrostatic_2D_rm):
def __init__(self, n_pic, field_dim):
Electric_Field.__init__(self, n_pic, field_dim, " - Electrostatic_2D_cm")
@Timing
def computeField(self, species):
#Prepare the right-hand-side of the Poisson equation
loc = numpy.unique(self.pic.mesh.location_sat)
rho = numpy.zeros_like(species[0].mesh_values.density)
for specie in species:
rho += specie.mesh_values.density*specie.q
rho[loc] += specie.mesh_values.accDensity*specie.q
rho /= -c.EPS_0
slv.poissonSolver_2D_cm_SORCA_p(self.pic.mesh, self.potential, rho, self.ind_calc)
self.field = -slv.derive_2D_cm(self.pic.mesh, self.potential, self.ind_calc)
for boundary in self.pic.mesh.boundaries:
boundary.applyElectricBoundary(self)
#Electrostatic_2D_cm_sat (Inherits from Electrostatic_2D_cm):
#
#Definition = Same characteristics as Electrostatic_2D_cm but with an inner boundary representing the satellite.
# For the class it is assumed that the satellite is stored as the second boundary in mesh. The surface is treated as a dielectric.
#Attributes:
# +type (string) = "Electric - Electrostatic_2D_cm_sat".
# +inv_capacity ([double,double]) = Inverse of the Capacity matrix for the nodes of the satellite.
# The matrix is organized such that V = C^{-1}*q[location], with 'location' being the location of the nodes in the mesh in sorted order.
# +Elctric_Field attributes.
#Methods:
# +floating_potential([Species] species) = Computes the floating potential in a dielectric surface, updating the involved nodes of the 'potential' array.
# This is done through the Capacity matrix method.
# +computeField([Species] species) = First, the floating potential of a dielectric surface is calculated based on the accumulated charge.
# Then, is the same behavior as the method in parent class.
# +Electrostatic_2D_rm methods.
class Electrostatic_2D_cm_sat(Electrostatic_2D_cm):
def __init__(self, n_pic, field_dim, capacity_file = c.CAPACITY_FILE):
Electric_Field.__init__(self, n_pic, field_dim, " - Electrostatic_2D_cm_sat")
tot_loc = len(numpy.unique(self.pic.mesh.location_sat))
self.inv_capacity = numpy.zeros((tot_loc, tot_loc))
if capacity_file is None:
slv.capacity_Inv_Matrix_asym(self)
else:
self.inv_capacity = numpy.loadtxt('./data/'+capacity_file)
try:
self.capacity = numpy.linalg.inv(self.inv_capacity)
att = 5e-4
self.capacity *= c.EPS_0*att
self.inv_capacity /= c.EPS_0*att
except numpy.linalg.LinAlgError:
print("Problem in Capacity Matrix")
print(sys.exc_info())
pdb.set_trace()
def getIndexCalculation(self, mesh, border = False):
temp = numpy.arange((mesh.nPoints))
mask = numpy.ones((mesh.nPoints), dtype = bool)
for boundary in mesh.boundaries:
if boundary.type.split(sep="-")[0] == "Inner ":
mask[boundary.ind_inner] = False
if not border:
mask[boundary.location] = False
return temp[mask]
@Timing
def computeField(self, species):
self.floating_potential(species)
super().computeField(species)
def floating_potential(self, species):
loc = numpy.unique(self.pic.mesh.location_sat)
charges = [specie.q*specie.mesh_values.accDensity*self.pic.mesh.volumes[loc] for specie in species]
self.potential[loc] = numpy.matmul(self.inv_capacity, reduce(lambda x,y: x+y, charges).T)
#Electrostatic_2D_cm_sat_cond (Inherits from Electrostatic_2D_cm_sat):
#
#Definition = Same characteristics as Electrostatic_2D_cm_sat but the surface is conductive, as opposed to dielectric as in Electrostatic_2D_cm_sat.
# For the class it is assumed that the satellite is stored as the second boundary in mesh.
#Attributes:
# +type (string) = "Electric - Electrostatic_2D_cm_sat_cond".
# +inv_capacity ([double,double]) = Inverse of the Capacity matrix for the nodes of the satellite.
# The matrix is organized such that V = C^{-1}*q[location], with 'location' being the location of the nodes in the mesh in sorted order.
# +capacity ([double,double]) = Capacity matrix for the nodes of the satellite. It is organized the same way as inv_capacity.
# +Electric_Field attributes.
#Methods:
# +floating_potential([Species] species) = Computes the floating potential in a conductive surface, updating the involved nodes of the 'potential' array.
# This is done through the Capacity matrix method.
# WARNING: Here, first, the charges are accumuated as the particles impact or leave the surface. Then, the charges are redistributed to account for the
# conductive surface. The change in densities in the surface is updated in 'Electron - Solar wind' class. In reality, all the electrons in the surface
# can move, including, for example, photoelectrons that return to the surface. However, since this code does not track the movement of particles
# in the surface, it is impossible to distingish among different types of electrons. Thus, changes are accumulated in the aforementioned class.
# +Electrostatic_2D_rm_sat methods.
class Electrostatic_2D_cm_sat_cond(Electrostatic_2D_cm_sat):
def __init__(self, n_pic, field_dim):
super().__init__(n_pic, field_dim)
self.type += "_cond"
@Timing
def computeField(self, species):
#Potential at the material surfaces
self.floating_potential(species)
#Prepare the right-hand-side of the Poisson equation
loc = numpy.unique(self.pic.mesh.location_sat)
rho = numpy.zeros_like(species[0].mesh_values.density)
for specie in species:
rho += specie.mesh_values.density*specie.q
rho[loc] += specie.mesh_values.accDensity*specie.q
rho /= -c.EPS_0
slv.poissonSolver_2D_cm_SORCA_p(self.pic.mesh, self.potential, rho, self.ind_calc)
self.field = -slv.derive_2D_cm(self.pic.mesh, self.potential, self.ind_calc)
for boundary in self.pic.mesh.boundaries:
boundary.applyElectricBoundary(self)
def floating_potential(self, species):
super().floating_potential(species)
loc = numpy.unique(self.pic.mesh.location_sat)
phi_c = numpy.sum(numpy.matmul(self.capacity, self.potential[loc].T))/numpy.sum(self.capacity)
d_q = numpy.matmul(self.capacity, (phi_c-self.potential[loc]).T)
#assert abs(numpy.sum(d_q)) < -c.QE or numpy.sum(d_q)/numpy.max(numpy.abs(d_q)) < 1e-4, "The redistribution of charge is creating or eliminating charge"
#WARNING: See class documentation for more explanation.
electron = list(filter(lambda specie: specie.name == "Electron - Solar wind", species))[0]
#d_n = d_q/electron.q/self.pic.mesh.volumes[loc]
#electron.mesh_values.accDensity += d_n
self.potential[loc] = phi_c
for boundary in self.pic.mesh.boundaries:
if boundary.type == 'Inner - 2D_Cylindrical':
self.potential[boundary.ind_inner] = phi_c
class Electrostatic_2D_rm_sat_cond_recursive(Field_recursive, Electrostatic_2D_rm_sat_cond):
def __init__(self, n_pic, field_dim, n_children, n_root, capacity_file = c.CAPACITY_FILE):
Electric_Field.__init__(self, n_pic, field_dim, " - Electrostatic_2D_rm_sat_cond")
super().__init__(n_children, n_root, self.type)
if self.root == True:
tot_loc = len(numpy.unique(self.pic.mesh.overall_location_sat))
self.inv_capacity = numpy.zeros((tot_loc, tot_loc))
if capacity_file is None:
slv.capacity_Inv_Matrix_asym_recursive(self)
else:
self.inv_capacity = numpy.loadtxt('./data/'+capacity_file)
try:
self.capacity = numpy.linalg.inv(self.inv_capacity)
att = 5e-4
self.capacity *= c.EPS_0*att
self.inv_capacity /= c.EPS_0*att
except numpy.linalg.LinAlgError:
print("Problem in Capacity Matrix")
print(sys.exc_info())
pdb.set_trace()
def getIndexCalculation(self, mesh, border = False):
return super(Field_recursive, self).getIndexCalculation(mesh, border = border)
def computeField(self, species, rho = None, border = False, interpolate = False, adjustment = False):
if self.root == True:
if rho is None:
loc = self.pic.mesh.overall_location_sat
#Prepare the right-hand-side of the Poisson equation
rho = numpy.zeros_like(species[0].mesh_values.density)
for specie in species:
rho += specie.mesh_values.density*specie.q
rho[loc] += specie.mesh_values.accDensity*specie.q
rho /= -c.EPS_0
self.floating_potential(species, rho)
rho = self.pic.mesh.sortArrayByMeshes(rho)
indices = self.ind_calc if not border else self.getIndexCalculation(self.pic.mesh, border = border)
slv.poissonSolver_2D_rm_SORCA_p(self.pic.mesh, self.potential, rho.pop(0), indices, border = border, adjustment = adjustment)
self.field = -slv.derive_2D_rm(self.pic.mesh, self.potential, self.ind_calc)
if self.root == True and border == False:
for boundary in self.pic.mesh.boundaries:
boundary.applyElectricBoundary(self)
else:
for boundary in self.pic.mesh.boundaries:
if boundary.type == "Inner - 1D_HET":
boundary.applyElectricBoundary(self)
#if boundary.material != 'satellite':
self.field[boundary.location, :] = -slv.derive_2D_rm_boundaries(self.potential, boundary,\
self.pic.mesh.nx, self.pic.mesh.ny, self.pic.mesh.dx, self.pic.mesh.dy)
self.assignChildrenBoundaries(border = border, interpolate = interpolate)
for child in self.children:
child.computeField(species, rho = rho, border = border, interpolate = interpolate)
# +induced_charge([double] rho) [double] charge = This functions computes the induced charge in the surface of the satellite due to the
# electric field generated by the presence of the charge density distribution 'rho' in the domain.
def induced_charge(self, rho, charge = None, acc_index = 0):
#Charge induced by the electric field
if self.root:
rho = self.pic.mesh.sortArrayByMeshes(rho)
charge = numpy.zeros_like(self.pic.mesh.overall_location_sat, dtype = 'float64')
loc = self.pic.mesh.location_sat
base_pot = copy.copy(self.potential)
base_field = numpy.zeros_like(self.field)
base_pot[self.pic.mesh.location] = 0
slv.poissonSolver_2D_rm_SORCA_p(self.pic.mesh, base_pot, rho.pop(0), self.ind_calc)
#Electric field in sat boundaires is calculated
for boundary in self.pic.mesh.boundaries:
if boundary.material == 'satellite':
base_field[boundary.location,:] = -slv.derive_2D_rm_boundaries(base_pot, boundary,\
self.pic.mesh.nx, self.pic.mesh.ny, self.pic.mesh.dx, self.pic.mesh.dy, conductor = True)
inner = -1 if boundary.type.split(sep= "-")[0] == "Inner " else 1
base_field[boundary.location,1] *= numpy.where(boundary.directions == 0, 1*inner, 1)
base_field[boundary.location,0] *= numpy.where(boundary.directions == 3, 1*inner, 1)
base_field[boundary.location,0] *= numpy.where(boundary.directions == 1, -1*inner, 1)
base_field[boundary.location,1] *= numpy.where(boundary.directions == 2, -1*inner, 1)
#Induced charge is calculated
charge[acc_index: acc_index+len(loc)] = af.induced_charge_p(base_field[loc,0], base_field[loc,1], self.pic.mesh.area_sat, c.EPS_0)
acc_index += len(loc)
#induced charge is calculed for children meshes' nodes
for child in self.children:
child.induced_charge(rho, charge = charge, acc_index = acc_index)
#Returning induced charge for all the nodes
return charge
def floating_potential(self, species, rho):
loc = self.pic.mesh.overall_location_sat
#Charge induced by the electric field
induced_charge = self.induced_charge(rho)
#Charge acumulated in the surface
charges = [specie.q*specie.mesh_values.accDensity*self.pic.mesh.volumes[loc] for specie in species]
charge = reduce(lambda x,y: x+y, charges)
#For later distribution of surface charges in electron specie
electron = list(filter(lambda specie: specie.name == "Electron - Solar wind", species))[0]
#Computation of potential and charge/density distribution
phi_c, d_q, d_n = af.floating_potential_p(self.inv_capacity, self.capacity, charge-induced_charge, self.pic.mesh.volumes[loc], -c.QE)
#I/O
max_d_q = numpy.max(d_q)
max_d_q = max_d_q if max_d_q > 0 else 1.0
print("Satellite potential: ", phi_c, flush = True)
print("Sum of d_q over max d_q: ", numpy.abs(numpy.sum(d_q)/max_d_q),"Sum of d_q: ", numpy.sum(d_q), flush = True)
#assert abs(numpy.sum(d_q)) < -c.QE or numpy.abs(numpy.sum(d_q)/numpy.max(d_q)) < 1e-1, "The redistribution of charge is creating or eliminating charge"
##NOTE: Only for diagnostics
#new_potential = self.inv_capacity@charge
#print("max, min of new potential: ", numpy.max(new_potential), numpy.min(new_potential))
print("max, min of charge: ", numpy.max(charge), numpy.min(charge))
print("max, min of induced charge: ", numpy.max(induced_charge), numpy.min(induced_charge))
print("sum q and sum normal: ", numpy.sum(charge-induced_charge))
#print("sum capacity: ", numpy.sum(self.capacity))
#print("sum inv capacity: ", numpy.sum(self.inv_capacity))
#Assign to 'Electron - Solar wind' the task of recording the changes in density in the conductive surface
#electron.mesh_values.accDensity += d_n
#Assigning the value to the surface nodes
self.assignValuesToArray_recursive('potential', loc, phi_c*numpy.ones_like(loc))
#Set same potential for interior nodes
self.assignValuesToInteriorNodes(phi_c)
##NOTE: Floating potential with selection over one mesh
# def floating_potential(self, species):
# loc = self.pic.mesh.overall_location_sat
# charges = [specie.q*specie.mesh_values.accDensity*self.pic.mesh.volumes[loc] for specie in species]
# charge = reduce(lambda x,y: x+y, charges)
# #For later distribution of surface charges in electron specie
# electron = list(filter(lambda specie: specie.name == "Electron - Solar wind", species))[0]
# #Computation of potential and charge/density distribution
# #TODO: let's try
# sel = len(self.pic.mesh.children[0].children[0].children[0].location_sat)
# phi_c, d_q, d_n = af.floating_potential_p(self.inv_capacity[-sel:,-sel:], self.capacity[-sel:,-sel:], charge[-sel:], self.pic.mesh.volumes[loc][-sel:], electron.q)
# #I/O
# max_d_q = numpy.max(d_q)
# max_d_q = max_d_q if max_d_q > 0 else 1.0
# print("Satellite potential: ", phi_c, flush = True)
# print("Sum of d_q over max d_q: ", numpy.abs(numpy.sum(d_q)/max_d_q),"Sum of d_q: ", numpy.sum(d_q), flush = True)
# #assert abs(numpy.sum(d_q)) < -c.QE or numpy.abs(numpy.sum(d_q)/numpy.max(d_q)) < 1e-1, "The redistribution of charge is creating or eliminating charge"
# #NOTE: Only for diagnostics
# #new_potential = self.inv_capacity@charge
# #print("max, min of new potential: ", numpy.max(new_potential), numpy.min(new_potential))
# print("max, min of charge: ", numpy.max(charge), numpy.min(charge))
# print("sum_q and sum_q_sel: ", numpy.sum(charge), numpy.sum(charge[-sel:]))
# print("sum_capacity: ", numpy.sum(self.capacity))
# print("sum_capacity_sel: ", numpy.sum(self.capacity[-sel:,-sel:]))
# print("sum_inv_capacity: ", numpy.sum(self.inv_capacity))
# print("sum_inv_capacity_sel: ", numpy.sum(self.inv_capacity[-sel:,-sel:]))
#
# #Assign to 'Electron - Solar wind' the task of recording the changes in density in the conductive surface
# #electron.mesh_values.accDensity += d_n
# #Assigning the value to the surface nodes
# self.assignValuesToArray_recursive('potential', loc, phi_c*numpy.ones_like(loc))
# #Set same potential for interior nodes
# self.assignValuesToInteriorNodes(phi_c)
# Puts the values of the boundaries to the children of the mesh, so that they it can be used for computeField in these meshes.
def assignChildrenBoundaries(self, border = False, interpolate = False):
for child in self.children:
#NOTE: This part of the code was included to avoid doing the scatter process over the satellite boundaries, since those nodes
# have already the potential stored from the Capacity Matrix method.
border_i = numpy.zeros((0), dtype = numpy.uint32)
for boundary in child.pic.mesh.boundaries:
if (boundary.type.split(sep="-")[0] == "Outer ") or (border and boundary.type.split(sep="-")[0] == "Inner "):
border_i = numpy.append(border_i, boundary.location, axis = 0)
if interpolate:
border_i = numpy.append(border_i, child.ind_calc)
pos = super(Mesh_recursive, child.pic.mesh).getPosition(border_i)
child.potential[border_i] = super(PIC_recursive, self.pic).gather(pos, self.potential[:,None])[:,0]
# +assignValueToInteriorNodes(double value) = Assign 'value' to all the nodes in the meshes that are the interior of an inner boundary.
def assignValuesToInteriorNodes(self, value):
for boundary in self.pic.mesh.boundaries:
if boundary.type == 'Inner - 2D_Rectangular':
self.potential[boundary.ind_inner] = value
for child in self.children:
child.assignValuesToInteriorNodes(value)
def saveVTK(self, mesh):
dic = super().saveVTK(mesh)
dic[self.type+"-potential"] = mesh.vtkOrdering(self.getTotalArray('potential'))
return dic
#Fix this. The 'field' value from the vtr file is not coming with the information of all the meshes
def loadVTK(self, mesh, output):
temp = mesh.reverseVTKOrdering(vtk_to_numpy(output.GetPointData().GetArray(self.type+"-potential")))
self.assignValuesToArray_recursive("potential", numpy.arange(self.pic.mesh.accPoints, dtype ='uint'), temp)
super().loadVTK(mesh, output)
class Electrostatic_2D_cm_recursive(Field_recursive, Electrostatic_2D_cm):
def __init__(self, n_pic, field_dim, n_children, n_root, capacity_file = c.CAPACITY_FILE):
Electric_Field.__init__(self, n_pic, field_dim, " - Electrostatic_2D_cm")
super().__init__(n_children, n_root, self.type)
def getIndexCalculation(self, mesh, border = False):
return super(Field_recursive, self).getIndexCalculation(mesh)
def computeField(self, species, rho = None, border = False, interpolate = False, adjustment = False):
if self.root == True:
if rho is None:
#Prepare the right-hand-side of the Poisson equation
rho = numpy.zeros_like(species[0].mesh_values.density)
for specie in species:
rho += specie.mesh_values.density*specie.q
rho /= -c.EPS_0
rho = self.pic.mesh.sortArrayByMeshes(rho)
indices = self.ind_calc if not border else self.getIndexCalculation(self.pic.mesh, border = border)
slv.poissonSolver_2D_cm_SORCA_p(self.pic.mesh, self.potential, rho.pop(0), indices, border = border, adjustment = adjustment)
#NOTE: Delete this
self.potential *= 0
self.field = -slv.derive_2D_cm(self.pic.mesh, self.potential, self.ind_calc)
if self.root == True and border == False:
for boundary in self.pic.mesh.boundaries:
boundary.applyElectricBoundary(self)
else:
for boundary in self.pic.mesh.boundaries:
#if boundary.material != 'satellite':
self.field[boundary.location, :] = -slv.derive_2D_rm_boundaries(self.potential, boundary,\
self.pic.mesh.nx, self.pic.mesh.ny, self.pic.mesh.dx, self.pic.mesh.dy)
self.assignChildrenBoundaries(border = border, interpolate = interpolate)
for child in self.children:
child.computeField(species, rho = rho, border = border, interpolate = interpolate)
# Puts the values of the boundaries to the children of the mesh, so that they it can be used for computeField in these meshes.
def assignChildrenBoundaries(self, border = False, interpolate = False):
for child in self.children:
#NOTE: This part of the code was included to avoid doing the scatter process over the satellite boundaries, since those nodes
# have already the potential stored from the Capacity Matrix method.
border_i = numpy.zeros((0), dtype = numpy.uint32)
for boundary in child.pic.mesh.boundaries:
if (boundary.type.split(sep="-")[0] == "Outer ") or (border and boundary.type.split(sep="-")[0] == "Inner "):
border_i = numpy.append(border_i, boundary.location, axis = 0)
if interpolate:
border_i = numpy.append(border_i, child.ind_calc)
pos = super(Mesh_recursive, child.pic.mesh).getPosition(border_i)
child.potential[border_i] = super(PIC_recursive, self.pic).gather(pos, self.potential[:,None])[:,0]
def saveVTK(self, mesh):
dic = super().saveVTK(mesh)
dic[self.type+"-potential"] = mesh.vtkOrdering(self.getTotalArray('potential'))
return dic
#Fix this. The 'field' value from the vtr file is not coming with the information of all the meshes
def loadVTK(self, mesh, output):
temp = mesh.reverseVTKOrdering(vtk_to_numpy(output.GetPointData().GetArray(self.type+"-potential")))
self.assignValuesToArray_recursive("potential", numpy.arange(self.pic.mesh.accPoints, dtype ='uint'), temp)
super().loadVTK(mesh, output)
class Electrostatic_2D_cm_sat_cond_recursive(Field_recursive, Electrostatic_2D_cm_sat_cond):
def __init__(self, n_pic, field_dim, n_children, n_root, capacity_file = c.CAPACITY_FILE):
Electric_Field.__init__(self, n_pic, field_dim, " - Electrostatic_2D_cm_sat_cond")
super().__init__(n_children, n_root, self.type)
if self.root == True:
tot_loc = len(numpy.unique(self.pic.mesh.overall_location_sat))
self.inv_capacity = numpy.zeros((tot_loc, tot_loc))
if capacity_file is None:
slv.capacity_Inv_Matrix_asym_recursive(self)
else:
self.inv_capacity = numpy.loadtxt('./data/'+capacity_file)
try:
self.capacity = numpy.linalg.inv(self.inv_capacity)
att = 4e-4
self.capacity *= c.EPS_0*att
self.inv_capacity /= c.EPS_0*att
except numpy.linalg.LinAlgError:
print("Problem in Capacity Matrix")
print(sys.exc_info())
pdb.set_trace()
def getIndexCalculation(self, mesh, border = False):
return super(Field_recursive, self).getIndexCalculation(mesh, border = border)
def computeField(self, species, rho = None, border = False, interpolate = False, adjustment = False):
if self.root == True:
if rho is None:
loc = self.pic.mesh.overall_location_sat
#Prepare the right-hand-side of the Poisson equation
rho = numpy.zeros_like(species[0].mesh_values.density)
for specie in species:
rho += specie.mesh_values.density*specie.q
#NOTE: Changed 2021/12/13
#rho[loc] += specie.mesh_values.accDensity*specie.q
rho /= -c.EPS_0
self.floating_potential(species, rho)
rho = self.pic.mesh.sortArrayByMeshes(rho)
indices = self.ind_calc if not border else self.getIndexCalculation(self.pic.mesh, border = border)
slv.poissonSolver_2D_cm_SORCA_p(self.pic.mesh, self.potential, rho.pop(0), indices, border = border, adjustment = adjustment)
self.field = -slv.derive_2D_cm(self.pic.mesh, self.potential, self.ind_calc)
if self.root == True and border == False:
for boundary in self.pic.mesh.boundaries:
boundary.applyElectricBoundary(self)
else:
for boundary in self.pic.mesh.boundaries:
#if boundary.material != 'satellite':
self.field[boundary.location, :] = -slv.derive_2D_rm_boundaries(self.potential, boundary,\
self.pic.mesh.nx, self.pic.mesh.ny, self.pic.mesh.dx, self.pic.mesh.dy)
self.assignChildrenBoundaries(border = border, interpolate = interpolate)
for child in self.children:
child.computeField(species, rho = rho, border = border, interpolate = interpolate)
# +induced_charge([double] rho) [double] charge = This functions computes the induced charge in the surface of the satellite due to the
# electric field generated by the presence of the charge density distribution 'rho' in the domain.
def induced_charge(self, rho, charge = None, acc_index = 0):
#Charge induced by the electric field
if self.root:
rho = self.pic.mesh.sortArrayByMeshes(rho)
charge = numpy.zeros_like(self.pic.mesh.overall_location_sat, dtype = 'float64')
loc = self.pic.mesh.location_sat
base_pot = copy.copy(self.potential)
base_field = numpy.zeros_like(self.field)
base_pot[self.pic.mesh.location] = 0
slv.poissonSolver_2D_cm_SORCA_p(self.pic.mesh, base_pot, rho.pop(0), self.ind_calc)
#Electric field in sat boundaires is calculated
for boundary in self.pic.mesh.boundaries:
if boundary.material == 'satellite':
base_field[boundary.location,:] = -slv.derive_2D_rm_boundaries(base_pot, boundary,\
self.pic.mesh.nx, self.pic.mesh.ny, self.pic.mesh.dx, self.pic.mesh.dy, conductor = True)
inner = -1 if boundary.type.split(sep= "-")[0] == "Inner " else 1
base_field[boundary.location,1] *= numpy.where(boundary.directions == 0, 1*inner, 1)
base_field[boundary.location,0] *= numpy.where(boundary.directions == 3, 1*inner, 1)
base_field[boundary.location,0] *= numpy.where(boundary.directions == 1, -1*inner, 1)
base_field[boundary.location,1] *= numpy.where(boundary.directions == 2, -1*inner, 1)
#Induced charge is calculated
charge[acc_index: acc_index+len(loc)] = af.induced_charge_p(base_field[loc,0], base_field[loc,1], self.pic.mesh.area_sat, c.EPS_0)
acc_index += len(loc)
#induced charge is calculed for children meshes' nodes
for child in self.children:
child.induced_charge(rho, charge = charge, acc_index = acc_index)
#Returning induced charge for all the nodes
return charge
def floating_potential(self, species, rho):
loc = self.pic.mesh.overall_location_sat
#Charge induced by the electric field
#NOTE: Changed to check the effects of induced charge
#induced_charge = self.induced_charge(rho)
induced_charge = 0
#Charge acumulated in the surface
charges = [specie.q*specie.mesh_values.accDensity*self.pic.mesh.volumes[loc] for specie in species]
charge = reduce(lambda x,y: x+y, charges)
#For later distribution of surface charges in electron specie
electron = list(filter(lambda specie: specie.name == "Electron - Solar wind", species))[0]
#Computation of potential and charge/density distribution
phi_c, d_q, d_n = af.floating_potential_p(self.inv_capacity, self.capacity, charge-induced_charge, self.pic.mesh.volumes[loc], -c.QE)
#I/O
max_d_q = numpy.max(d_q)
max_d_q = max_d_q if max_d_q > 0 else 1.0
print("Satellite potential: ", phi_c, flush = True)
print("Sum of d_q over max d_q: ", numpy.abs(numpy.sum(d_q)/max_d_q),"Sum of d_q: ", numpy.sum(d_q), flush = True)
#assert abs(numpy.sum(d_q)) < -c.QE or numpy.abs(numpy.sum(d_q)/numpy.max(d_q)) < 1e-1, "The redistribution of charge is creating or eliminating charge"
##NOTE: Only for diagnostics
#new_potential = self.inv_capacity@charge
#print("max, min of new potential: ", numpy.max(new_potential), numpy.min(new_potential))
print("max, min of charge: ", numpy.max(charge), numpy.min(charge))
print("max, min of induced charge: ", numpy.max(induced_charge), numpy.min(induced_charge))
print("sum q and sum normal: ", numpy.sum(charge-induced_charge))
#print("sum capacity: ", numpy.sum(self.capacity))
#print("sum inv capacity: ", numpy.sum(self.inv_capacity))
#Assign to 'Electron - Solar wind' the task of recording the changes in density in the conductive surface
#electron.mesh_values.accDensity += d_n
#Assigning the value to the surface nodes
self.assignValuesToArray_recursive('potential', loc, phi_c*numpy.ones_like(loc))
#Set same potential for interior nodes
self.assignValuesToInteriorNodes(phi_c)
##NOTE: Floating potential with selection over one mesh
# def floating_potential(self, species):
# loc = self.pic.mesh.overall_location_sat
# charges = [specie.q*specie.mesh_values.accDensity*self.pic.mesh.volumes[loc] for specie in species]
# charge = reduce(lambda x,y: x+y, charges)
# #For later distribution of surface charges in electron specie
# electron = list(filter(lambda specie: specie.name == "Electron - Solar wind", species))[0]
# #Computation of potential and charge/density distribution
# #TODO: let's try
# sel = len(self.pic.mesh.children[0].children[0].children[0].location_sat)
# phi_c, d_q, d_n = af.floating_potential_p(self.inv_capacity[-sel:,-sel:], self.capacity[-sel:,-sel:], charge[-sel:], self.pic.mesh.volumes[loc][-sel:], electron.q)
# #I/O
# max_d_q = numpy.max(d_q)
# max_d_q = max_d_q if max_d_q > 0 else 1.0
# print("Satellite potential: ", phi_c, flush = True)
# print("Sum of d_q over max d_q: ", numpy.abs(numpy.sum(d_q)/max_d_q),"Sum of d_q: ", numpy.sum(d_q), flush = True)
# #assert abs(numpy.sum(d_q)) < -c.QE or numpy.abs(numpy.sum(d_q)/numpy.max(d_q)) < 1e-1, "The redistribution of charge is creating or eliminating charge"
# #NOTE: Only for diagnostics
# #new_potential = self.inv_capacity@charge
# #print("max, min of new potential: ", numpy.max(new_potential), numpy.min(new_potential))
# print("max, min of charge: ", numpy.max(charge), numpy.min(charge))
# print("sum_q and sum_q_sel: ", numpy.sum(charge), numpy.sum(charge[-sel:]))
# print("sum_capacity: ", numpy.sum(self.capacity))
# print("sum_capacity_sel: ", numpy.sum(self.capacity[-sel:,-sel:]))
# print("sum_inv_capacity: ", numpy.sum(self.inv_capacity))
# print("sum_inv_capacity_sel: ", numpy.sum(self.inv_capacity[-sel:,-sel:]))
#
# #Assign to 'Electron - Solar wind' the task of recording the changes in density in the conductive surface
# #electron.mesh_values.accDensity += d_n
# #Assigning the value to the surface nodes
# self.assignValuesToArray_recursive('potential', loc, phi_c*numpy.ones_like(loc))
# #Set same potential for interior nodes
# self.assignValuesToInteriorNodes(phi_c)
# Puts the values of the boundaries to the children of the mesh, so that they it can be used for computeField in these meshes.
def assignChildrenBoundaries(self, border = False, interpolate = False):
for child in self.children:
#NOTE: This part of the code was included to avoid doing the scatter process over the satellite boundaries, since those nodes
# have already the potential stored from the Capacity Matrix method.
border_i = numpy.zeros((0), dtype = numpy.uint32)
for boundary in child.pic.mesh.boundaries:
if (boundary.type.split(sep="-")[0] == "Outer ") or (border and boundary.type.split(sep="-")[0] == "Inner "):
border_i = numpy.append(border_i, boundary.location, axis = 0)
if interpolate:
border_i = numpy.append(border_i, child.ind_calc)
pos = super(Mesh_recursive, child.pic.mesh).getPosition(border_i)
child.potential[border_i] = super(PIC_recursive, self.pic).gather(pos, self.potential[:,None])[:,0]
# +assignValueToInteriorNodes(double value) = Assign 'value' to all the nodes in the meshes that are the interior of an inner boundary.
def assignValuesToInteriorNodes(self, value):
for boundary in self.pic.mesh.boundaries:
if boundary.type.split(sep="-")[0] == "Inner ":
self.potential[boundary.ind_inner] = value
for child in self.children:
child.assignValuesToInteriorNodes(value)
def saveVTK(self, mesh):
dic = super().saveVTK(mesh)
dic[self.type+"-potential"] = mesh.vtkOrdering(self.getTotalArray('potential'))
return dic
#Fix this. The 'field' value from the vtr file is not coming with the information of all the meshes
def loadVTK(self, mesh, output):
temp = mesh.reverseVTKOrdering(vtk_to_numpy(output.GetPointData().GetArray(self.type+"-potential")))
self.assignValuesToArray_recursive("potential", numpy.arange(self.pic.mesh.accPoints, dtype ='uint'), temp)
super().loadVTK(mesh, output)
class Constant_Electric_Field_recursive(Field_recursive, Constant_Electric_Field):
def __init__(self, n_pic, field_dim, n_children, n_root):
super(Field_recursive, self).__init__(n_pic, field_dim)
self.field *= 0.0
super().__init__(n_children, n_root, self.type)
def computeField(self, species, rho = None, border = False, interpolate = False, adjustment = False):
pass
#Time_Electric_Field(Electric_Field):
#
#Definition = Electric field dependent on time.
#Attributes:
# +type (string) = "Electric field - Constant".
# +Electric_Field attributes.
#Methods:
# +Electric_Field methods.
# +computeField(Species species, int p_step, int e_step = 0) = Recieves the steps in the simulation and computes the time from the start of the execution. Then, updates the field accordingly
# with this and any function imposed by the user inside of this method.
class Time_Electric_Field(Electric_Field):
def __init__(self, n_pic, field_dim):
super().__init__(n_pic, field_dim, " - Constant")
#Initial electric field
self.field[:,0] += 0.27992
def computeField(self, species, p_step, e_step = 0):
time = p_step*c.P_DT+e_step*c.E_DT
gradient = 98.4658
self.field[:,0] = 0.27992+gradient*time
#Magnetic_Field (Inherits from Field):
#
#Definition = Magnetic field
#Attibutes:
# +Field attributes.
#Methods:
# +Field methods.
class Magnetic_Field(Field):
def __init__(self, n_pic, field_dim, n_string):
super().__init__(n_pic, field_dim, "Magnetic"+n_string)
def computeField(self, species):
pass
#Constant_Magnetic_Field(Inherits from Magnetic_Field):
#
#Definition = Constant Magnetic field impsoed by the user. Does not change through time. It works as a perpendicular field to the 2D dominion of the electric field and particular. Thus, field_dim = 1.
#Attributes:
# +type (string) = "Magnetic - Constant".
# +Magnetic_Field attributes.
#Methods:
# +Magnetic_Field methods.
class Constant_Magnetic_Field(Magnetic_Field):
def __init__(self, n_pic, field_dim):
super().__init__(n_pic, field_dim, " - Constant")
self.field += c.B_STRENGTH
def computeField(self, species):
pass
class Constant_Magnetic_Field_recursive(Field_recursive, Constant_Magnetic_Field):
def __init__(self, n_pic, field_dim, n_children, n_root):
super(Field_recursive, self).__init__(n_pic, field_dim)
super().__init__(n_children, n_root, self.type)
| 54.040474
| 200
| 0.671739
| 7,376
| 54,743
| 4.833107
| 0.069008
| 0.023563
| 0.034868
| 0.011108
| 0.85691
| 0.838537
| 0.82151
| 0.809055
| 0.807288
| 0.796376
| 0
| 0.007135
| 0.224303
| 54,743
| 1,012
| 201
| 54.093874
| 0.832376
| 0.379373
| 0
| 0.785592
| 0
| 0
| 0.039187
| 0.003033
| 0
| 0
| 0
| 0.000988
| 0
| 1
| 0.13036
| false
| 0.013722
| 0.020583
| 0.012007
| 0.214408
| 0.037736
| 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
|
0f66ba79bdda8f7c73b260585daa7102329cf4eb
| 7,494
|
py
|
Python
|
tests/test_wrangler_admin.py
|
douglatornell/randopony-tetra
|
258b0a8223b2a820d66b1a4d98eb0a54e07afa25
|
[
"BSD-3-Clause"
] | 1
|
2020-06-30T18:56:22.000Z
|
2020-06-30T18:56:22.000Z
|
tests/test_wrangler_admin.py
|
douglatornell/randopony-tetra
|
258b0a8223b2a820d66b1a4d98eb0a54e07afa25
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_wrangler_admin.py
|
douglatornell/randopony-tetra
|
258b0a8223b2a820d66b1a4d98eb0a54e07afa25
|
[
"BSD-3-Clause"
] | null | null | null |
"""Tests for RandoPony administrator (aka wrangler) admin views and
functionality.
"""
import unittest
from unittest.mock import MagicMock, patch
from pyramid import testing
from sqlalchemy import create_engine
from randopony.models.meta import (
Base,
DBSession,
)
class TestWranglerCreate(unittest.TestCase):
"""Unit tests for administrator (aka pony wrangler) object creation
admin interface views.
*TODO*: Add integration tests:
* form renders empty email input control
* POST with valid email address adds record to database
* POST with email address already in db fails gracefully
"""
def _get_target_class(self):
from randopony.views.admin.wrangler import WranglerCreate
return WranglerCreate
def _make_one(self, *args, **kwargs):
return self._get_target_class()(*args, **kwargs)
def setUp(self):
self.config = testing.setUp()
engine = create_engine('sqlite://')
DBSession.configure(bind=engine)
Base.metadata.create_all(engine)
def tearDown(self):
DBSession.remove()
testing.tearDown()
def test_list_url(self):
"""list_url returns expected wranglers list URL
"""
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
create = self._make_one(request)
url = create.list_url()
self.assertEqual(url, 'http://example.com/admin/wranglers/')
def test_show(self):
"""show returns expected template variables
"""
from randopony import __pkg_metadata__ as version
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
create = self._make_one(request)
mock_form = MagicMock(name='form')
tmpl_vars = create.show(mock_form)
self.assertEqual(
tmpl_vars,
{
'version': version.number + version.release,
'form': mock_form.render(),
'list_url': 'http://example.com/admin/wranglers/',
})
@patch(
'randopony.views.admin.wrangler.custom_app_context.encrypt',
return_value='hash'
)
def test_add_success(self, m_encrypt):
"""create wrangler success adds email to database
"""
from randopony.models import Administrator
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
create = self._make_one(request)
url = create.add_success(
{'email': 'tom@example.com', 'password': 'password'})
wrangler = DBSession.query(Administrator).first()
self.assertEqual(wrangler.email, 'tom@example.com')
self.assertEqual(wrangler.password_hash, 'hash')
self.assertEqual(url.location, 'http://example.com/admin/wranglers/')
def test_failure(self):
"""create wrangler failure returns expected template variables
"""
from randopony import __pkg_metadata__ as version
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
create = self._make_one(request)
mock_val_err = MagicMock(name='ValidationError')
tmpl_vars = create.failure(mock_val_err)
self.assertEqual(
tmpl_vars,
{
'version': version.number + version.release,
'form': mock_val_err.render(),
'list_url': 'http://example.com/admin/wranglers/',
})
class TestWranglerEdit(unittest.TestCase):
"""Unit tests for administrator (aka pony wrangler) object edit
admin interface views.
*TODO*: Add integration tests:
* form renders populated email input control
* POST with valid email address updates record in database
"""
def _get_target_class(self):
from randopony.views.admin.wrangler import WranglerEdit
return WranglerEdit
def _make_one(self, *args, **kwargs):
return self._get_target_class()(*args, **kwargs)
def setUp(self):
self.config = testing.setUp()
engine = create_engine('sqlite://')
DBSession.configure(bind=engine)
Base.metadata.create_all(engine)
def tearDown(self):
DBSession.remove()
testing.tearDown()
def test_appstruct(self):
"""admin edit wrangler appstruct method returns dict to populate form
"""
from randopony.models import Administrator
admin = Administrator(email='tom@example.com', password_hash='hash')
DBSession.add(admin)
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
request.matchdict['item'] = 'tom@example.com'
edit = self._make_one(request)
appstruct = edit.appstruct()
self.assertEqual(
appstruct, {
'id': 1,
'email': 'tom@example.com',
})
def test_show(self):
"""admin edit wrangler show returns expected template variables
"""
from randopony import __pkg_metadata__ as version
from randopony.models import Administrator
admin = Administrator(email='tom@example.com', password_hash='hash')
DBSession.add(admin)
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
request.matchdict['item'] = 'tom@example.com'
edit = self._make_one(request)
mock_form = MagicMock(name='form')
tmpl_vars = edit.show(mock_form)
self.assertEqual(
tmpl_vars,
{
'version': version.number + version.release,
'form': mock_form.render(),
'list_url': 'http://example.com/admin/wranglers/',
})
@patch(
'randopony.views.admin.wrangler.custom_app_context.encrypt',
return_value='hash'
)
def test_save_success(self, m_encrypt):
"""admin edit wrangler success updates email in database
"""
from randopony.models import Administrator
admin = Administrator(email='tom@example.com', password_hash='hash')
DBSession.add(admin)
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
edit = self._make_one(request)
url = edit.save_success({
'id': 1,
'email': 'harry@example.com',
'password': 'password',
})
wrangler = DBSession.query(Administrator).first()
self.assertEqual(wrangler.email, 'harry@example.com')
self.assertEqual(wrangler.password_hash, 'hash')
self.assertEqual(
url.location, 'http://example.com/admin/wranglers/')
def test_failure(self):
"""admin edit wrangler failure returns expected template variables
"""
from randopony import __pkg_metadata__ as version
self.config.add_route('admin.list', '/admin/{list}/')
request = testing.DummyRequest()
edit = self._make_one(request)
mock_val_err = MagicMock(name='ValidationError')
tmpl_vars = edit.failure(mock_val_err)
self.assertEqual(
tmpl_vars,
{
'version': version.number + version.release,
'form': mock_val_err.render(),
'list_url': 'http://example.com/admin/wranglers/',
})
| 35.856459
| 77
| 0.618495
| 798
| 7,494
| 5.654135
| 0.16416
| 0.037677
| 0.02305
| 0.031915
| 0.804521
| 0.802083
| 0.78945
| 0.781693
| 0.763076
| 0.739583
| 0
| 0.000365
| 0.267948
| 7,494
| 208
| 78
| 36.028846
| 0.822093
| 0.14625
| 0
| 0.723684
| 0
| 0
| 0.147415
| 0.018188
| 0
| 0
| 0
| 0.009615
| 0.078947
| 1
| 0.105263
| false
| 0.046053
| 0.098684
| 0.013158
| 0.243421
| 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
|
0f7067c3d7a5792f5be66297bfcace6f1afe8681
| 82
|
py
|
Python
|
docx2txt/__init__.py
|
ankushshah89/python-docx2text
|
c94663234d2882aa75932f9c9973eb5a804df13b
|
[
"MIT"
] | 369
|
2015-10-29T08:59:07.000Z
|
2022-03-21T11:02:19.000Z
|
docx2txt/__init__.py
|
ankushshah89/python-docx2text
|
c94663234d2882aa75932f9c9973eb5a804df13b
|
[
"MIT"
] | 34
|
2015-11-04T19:06:22.000Z
|
2021-08-24T16:07:37.000Z
|
docx2txt/__init__.py
|
ankushshah89/python-docx2text
|
c94663234d2882aa75932f9c9973eb5a804df13b
|
[
"MIT"
] | 87
|
2015-11-12T20:39:44.000Z
|
2022-02-12T21:41:03.000Z
|
from .docx2txt import process
from .docx2txt import process_args
VERSION = '0.8'
| 16.4
| 34
| 0.780488
| 12
| 82
| 5.25
| 0.666667
| 0.380952
| 0.571429
| 0.793651
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057143
| 0.146341
| 82
| 4
| 35
| 20.5
| 0.842857
| 0
| 0
| 0
| 0
| 0
| 0.036585
| 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
|
7e13dce1a7b4c574cc719f7dbcc2185b76c4cb20
| 17,352
|
py
|
Python
|
apps/superbonus/calculations.py
|
MiloshBogdanovic/Auri-Soft
|
ab9f1540f3a9c91463bfb965d7399779f97717c0
|
[
"MIT"
] | null | null | null |
apps/superbonus/calculations.py
|
MiloshBogdanovic/Auri-Soft
|
ab9f1540f3a9c91463bfb965d7399779f97717c0
|
[
"MIT"
] | null | null | null |
apps/superbonus/calculations.py
|
MiloshBogdanovic/Auri-Soft
|
ab9f1540f3a9c91463bfb965d7399779f97717c0
|
[
"MIT"
] | null | null | null |
from .models import *
from django.core.exceptions import ValidationError
from django.contrib import messages
from decimal import Decimal
def overall_calculation_villa(costs):
try:
excluding_vat = OverallInterCostsNOVat.objects.get(pk=costs.excluding_vat_id)
if costs.taxable_vat:
taxable_vat = OverallInterCostsTaxableVat.objects.get(pk=costs.taxable_vat_id)
else:
taxable_vat = OverallInterCostsTaxableVat()
taxable_vat.total_amt_of_work = excluding_vat.total_amt_of_work
taxable_vat.total_amt_safety_charges = excluding_vat.total_amt_safety_charges
taxable_vat.tech_exp_designer = excluding_vat.tech_exp_designer * (1 + excluding_vat.ss_cash_for_designer)
taxable_vat.tech_exp_coordinator_safety_des = excluding_vat.tech_exp_coordinator_safety_des * \
(1 + excluding_vat.ss_cash_for_coordinator_safety_des)
taxable_vat.tech_exp_coordinator_safety_exe = excluding_vat.tech_exp_coordinator_safety_exe * \
(1 + excluding_vat.ss_cash_for_coordinator_safety_exe)
taxable_vat.tech_exp_director_of_work = excluding_vat.tech_exp_director_of_work * \
(1 + excluding_vat.ss_cash_for_director_of_work)
taxable_vat.tech_exp_thermotechnical = excluding_vat.tech_exp_thermotechnical * \
(1 + excluding_vat.ss_cash_for_thermotechnical)
taxable_vat.tech_exp_energy_expert = excluding_vat.tech_exp_energy_expert * \
(1 + excluding_vat.ss_cash_for_energy_expert)
taxable_vat.poss_respo_work = excluding_vat.poss_respo_work * (1 + excluding_vat.ss_cash_for_respo_work)
taxable_vat.app_for_conformity_visa = excluding_vat.app_for_conformity_visa * \
(1 + excluding_vat.ss_app_for_conformity_visa)
taxable_vat.save()
costs.taxable_vat = OverallInterCostsTaxableVat.objects.get(pk=taxable_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.included_vat:
included_vat = OverallInterCostsVatIncluded.objects.get(pk=costs.included_vat_id)
else:
included_vat = OverallInterCostsVatIncluded()
included_vat.total_amt_of_work = taxable_vat.total_amt_of_work * Decimal('1.22')
included_vat.total_amt_safety_charges = taxable_vat.total_amt_safety_charges * Decimal('1.22')
included_vat.tech_exp_designer = taxable_vat.tech_exp_designer * Decimal('1.22')
included_vat.tech_exp_coordinator_safety_des = taxable_vat.tech_exp_coordinator_safety_des * Decimal('1.22')
included_vat.tech_exp_coordinator_safety_exe = taxable_vat.tech_exp_coordinator_safety_exe * Decimal('1.22')
included_vat.tech_exp_director_of_work = taxable_vat.tech_exp_director_of_work * Decimal('1.22')
included_vat.tech_exp_thermotechnical = taxable_vat.tech_exp_thermotechnical * Decimal('1.22')
included_vat.tech_exp_energy_expert = taxable_vat.tech_exp_energy_expert * Decimal('1.22')
included_vat.poss_respo_work = taxable_vat.poss_respo_work * Decimal('1.22')
included_vat.app_for_conformity_visa = taxable_vat.app_for_conformity_visa * Decimal('1.22')
included_vat.save()
costs.included_vat = OverallInterCostsVatIncluded.objects.get(pk=included_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.amount_vat:
amount_vat = OverallInterCostsAmountVat.objects.get(pk=costs.amount_vat_id)
else:
amount_vat = OverallInterCostsAmountVat()
amount_vat.total_amt_of_work = included_vat.total_amt_of_work - taxable_vat.total_amt_of_work
amount_vat.total_amt_safety_charges = included_vat.total_amt_safety_charges - taxable_vat.total_amt_safety_charges
amount_vat.tech_exp_designer = included_vat.tech_exp_designer - taxable_vat.tech_exp_designer
amount_vat.tech_exp_coordinator_safety_des = included_vat.tech_exp_coordinator_safety_des - \
taxable_vat.tech_exp_coordinator_safety_des
amount_vat.tech_exp_coordinator_safety_exe = included_vat.tech_exp_coordinator_safety_exe - \
taxable_vat.tech_exp_coordinator_safety_exe
amount_vat.tech_exp_director_of_work = included_vat.tech_exp_director_of_work - \
taxable_vat.tech_exp_director_of_work
amount_vat.tech_exp_thermotechnical = included_vat.tech_exp_thermotechnical - \
taxable_vat.tech_exp_thermotechnical
amount_vat.tech_exp_energy_expert = included_vat.tech_exp_energy_expert - \
taxable_vat.tech_exp_energy_expert
amount_vat.poss_respo_work = included_vat.poss_respo_work - taxable_vat.poss_respo_work
amount_vat.app_for_conformity_visa = included_vat.app_for_conformity_visa - \
taxable_vat.app_for_conformity_visa
amount_vat.save()
costs.amount_vat = OverallInterCostsAmountVat.objects.get(pk=amount_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.report:
report = OverallInterCostsReport.objects.get(pk=costs.report_id)
else:
report = OverallInterCostsReport()
report.total_amt_inc_vat = included_vat.total_of_the_order
report.save()
costs.report = OverallInterCostsReport.objects.get(pk=report.id)
costs.save()
except ValidationError as e:
return messages.error(e)
def driving_calculation_villa(costs):
try:
excluding_vat = InterDrivingWorkNOVat.objects.get(pk=costs.excluding_vat_id)
if costs.taxable_vat:
taxable_vat = InterDrivingWorkTaxableVat.objects.get(pk=costs.taxable_vat_id)
else:
taxable_vat = InterDrivingWorkTaxableVat()
taxable_vat.total_amt_of_work = excluding_vat.total_amt_of_work
taxable_vat.total_amt_safety_charges = excluding_vat.total_amt_safety_charges
taxable_vat.tech_exp_designer = excluding_vat.tech_exp_designer * (1 + excluding_vat.ss_cash_for_designer)
taxable_vat.tech_exp_coordinator_safety_des = excluding_vat.tech_exp_coordinator_safety_des * \
(1 + excluding_vat.ss_cash_for_coordinator_safety_des)
taxable_vat.tech_exp_coordinator_safety_exe = excluding_vat.tech_exp_coordinator_safety_exe * \
(1 + excluding_vat.ss_cash_for_coordinator_safety_exe)
taxable_vat.tech_exp_director_of_work = excluding_vat.tech_exp_director_of_work * \
(1 + excluding_vat.ss_cash_for_director_of_work)
taxable_vat.tech_exp_thermotechnical = excluding_vat.tech_exp_thermotechnical * \
(1 + excluding_vat.ss_cash_for_thermotechnical)
taxable_vat.tech_exp_energy_expert = excluding_vat.tech_exp_energy_expert * \
(1 + excluding_vat.ss_cash_for_energy_expert)
taxable_vat.poss_respo_work = excluding_vat.poss_respo_work * (1 + excluding_vat.ss_cash_for_respo_work)
taxable_vat.app_for_conformity_visa = excluding_vat.app_for_conformity_visa * \
(1 + excluding_vat.ss_app_for_conformity_visa)
taxable_vat.save()
costs.taxable_vat = InterDrivingWorkTaxableVat.objects.get(pk=taxable_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.included_vat:
included_vat = InterDrivingWorkVatIncluded.objects.get(pk=costs.included_vat_id)
else:
included_vat = InterDrivingWorkVatIncluded()
included_vat.total_amt_of_work = taxable_vat.total_amt_of_work * Decimal('1.22')
included_vat.total_amt_safety_charges = taxable_vat.total_amt_safety_charges * Decimal('1.22')
included_vat.tech_exp_designer = taxable_vat.tech_exp_designer * Decimal('1.22')
included_vat.tech_exp_coordinator_safety_des = taxable_vat.tech_exp_coordinator_safety_des * Decimal('1.22')
included_vat.tech_exp_coordinator_safety_exe = taxable_vat.tech_exp_coordinator_safety_exe * Decimal('1.22')
included_vat.tech_exp_director_of_work = taxable_vat.tech_exp_director_of_work * Decimal('1.22')
included_vat.tech_exp_thermotechnical = taxable_vat.tech_exp_thermotechnical * Decimal('1.22')
included_vat.tech_exp_energy_expert = taxable_vat.tech_exp_energy_expert * Decimal('1.22')
included_vat.poss_respo_work = taxable_vat.poss_respo_work * Decimal('1.22')
included_vat.app_for_conformity_visa = taxable_vat.app_for_conformity_visa * Decimal('1.22')
included_vat.save()
costs.included_vat = InterDrivingWorkVatIncluded.objects.get(pk=included_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.amount_vat:
amount_vat = InterDrivingWorkAmountVat.objects.get(pk=costs.amount_vat_id)
else:
amount_vat = InterDrivingWorkAmountVat()
amount_vat.total_amt_of_work = included_vat.total_amt_of_work - taxable_vat.total_amt_of_work
amount_vat.total_amt_safety_charges = included_vat.total_amt_safety_charges - taxable_vat.total_amt_safety_charges
amount_vat.tech_exp_designer = included_vat.tech_exp_designer - taxable_vat.tech_exp_designer
amount_vat.tech_exp_coordinator_safety_des = included_vat.tech_exp_coordinator_safety_des - \
taxable_vat.tech_exp_coordinator_safety_des
amount_vat.tech_exp_coordinator_safety_exe = included_vat.tech_exp_coordinator_safety_exe - \
taxable_vat.tech_exp_coordinator_safety_exe
amount_vat.tech_exp_director_of_work = included_vat.tech_exp_director_of_work - \
taxable_vat.tech_exp_director_of_work
amount_vat.tech_exp_thermotechnical = included_vat.tech_exp_thermotechnical - \
taxable_vat.tech_exp_thermotechnical
amount_vat.tech_exp_energy_expert = included_vat.tech_exp_energy_expert - \
taxable_vat.tech_exp_energy_expert
amount_vat.poss_respo_work = included_vat.poss_respo_work - taxable_vat.poss_respo_work
amount_vat.app_for_conformity_visa = included_vat.app_for_conformity_visa - \
taxable_vat.app_for_conformity_visa
amount_vat.save()
costs.amount_vat = InterDrivingWorkAmountVat.objects.get(pk=amount_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.report:
report = InterDrivingWorkReport.objects.get(pk=costs.report_id)
else:
report = InterDrivingWorkReport()
report.total_amt_inc_vat = included_vat.total_of_the_order
report.save()
costs.report = InterDrivingWorkReport.objects.get(pk=report.id)
costs.save()
except ValidationError as e:
return messages.error(e)
def trailed_calculation_villa(costs):
try:
excluding_vat = InterTrailedWorkNOVat.objects.get(pk=costs.excluding_vat_id)
if costs.taxable_vat:
taxable_vat = InterTrailedWorkTaxableVat.objects.get(pk=costs.taxable_vat_id)
else:
taxable_vat = InterTrailedWorkTaxableVat()
taxable_vat.total_amt_of_work = excluding_vat.total_amt_of_work
taxable_vat.total_amt_safety_charges = excluding_vat.total_amt_safety_charges
taxable_vat.tech_exp_designer = excluding_vat.tech_exp_designer * (1 + excluding_vat.ss_cash_for_designer)
taxable_vat.tech_exp_coordinator_safety_des = excluding_vat.tech_exp_coordinator_safety_des * \
(1 + excluding_vat.ss_cash_for_coordinator_safety_des)
taxable_vat.tech_exp_coordinator_safety_exe = excluding_vat.tech_exp_coordinator_safety_exe * \
(1 + excluding_vat.ss_cash_for_coordinator_safety_exe)
taxable_vat.tech_exp_director_of_work = excluding_vat.tech_exp_director_of_work * \
(1 + excluding_vat.ss_cash_for_director_of_work)
taxable_vat.tech_exp_thermotechnical = excluding_vat.tech_exp_thermotechnical * \
(1 + excluding_vat.ss_cash_for_thermotechnical)
taxable_vat.tech_exp_energy_expert = excluding_vat.tech_exp_energy_expert * \
(1 + excluding_vat.ss_cash_for_energy_expert)
taxable_vat.poss_respo_work = excluding_vat.poss_respo_work * (1 + excluding_vat.ss_cash_for_respo_work)
taxable_vat.app_for_conformity_visa = excluding_vat.app_for_conformity_visa * \
(1 + excluding_vat.ss_app_for_conformity_visa)
taxable_vat.save()
costs.taxable_vat = InterTrailedWorkTaxableVat.objects.get(pk=taxable_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.included_vat:
included_vat = InterTrailedWorkVatIncluded.objects.get(pk=costs.included_vat_id)
else:
included_vat = InterTrailedWorkVatIncluded()
included_vat.total_amt_of_work = taxable_vat.total_amt_of_work * Decimal('1.22')
included_vat.total_amt_safety_charges = taxable_vat.total_amt_safety_charges * Decimal('1.22')
included_vat.tech_exp_designer = taxable_vat.tech_exp_designer * Decimal('1.22')
included_vat.tech_exp_coordinator_safety_des = taxable_vat.tech_exp_coordinator_safety_des * Decimal('1.22')
included_vat.tech_exp_coordinator_safety_exe = taxable_vat.tech_exp_coordinator_safety_exe * Decimal('1.22')
included_vat.tech_exp_director_of_work = taxable_vat.tech_exp_director_of_work * Decimal('1.22')
included_vat.tech_exp_thermotechnical = taxable_vat.tech_exp_thermotechnical * Decimal('1.22')
included_vat.tech_exp_energy_expert = taxable_vat.tech_exp_energy_expert * Decimal('1.22')
included_vat.poss_respo_work = taxable_vat.poss_respo_work * Decimal('1.22')
included_vat.app_for_conformity_visa = taxable_vat.app_for_conformity_visa * Decimal('1.22')
included_vat.save()
costs.included_vat = InterTrailedWorkVatIncluded.objects.get(pk=included_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.amount_vat:
amount_vat = InterTrailedWorkAmountVat.objects.get(pk=costs.amount_vat_id)
else:
amount_vat = InterTrailedWorkAmountVat()
amount_vat.total_amt_of_work = included_vat.total_amt_of_work - taxable_vat.total_amt_of_work
amount_vat.total_amt_safety_charges = included_vat.total_amt_safety_charges - taxable_vat.total_amt_safety_charges
amount_vat.tech_exp_designer = included_vat.tech_exp_designer - taxable_vat.tech_exp_designer
amount_vat.tech_exp_coordinator_safety_des = included_vat.tech_exp_coordinator_safety_des - \
taxable_vat.tech_exp_coordinator_safety_des
amount_vat.tech_exp_coordinator_safety_exe = included_vat.tech_exp_coordinator_safety_exe - \
taxable_vat.tech_exp_coordinator_safety_exe
amount_vat.tech_exp_director_of_work = included_vat.tech_exp_director_of_work - \
taxable_vat.tech_exp_director_of_work
amount_vat.tech_exp_thermotechnical = included_vat.tech_exp_thermotechnical - \
taxable_vat.tech_exp_thermotechnical
amount_vat.tech_exp_energy_expert = included_vat.tech_exp_energy_expert - \
taxable_vat.tech_exp_energy_expert
amount_vat.poss_respo_work = included_vat.poss_respo_work - taxable_vat.poss_respo_work
amount_vat.app_for_conformity_visa = included_vat.app_for_conformity_visa - \
taxable_vat.app_for_conformity_visa
amount_vat.save()
costs.amount_vat = InterTrailedWorkAmountVat.objects.get(pk=amount_vat.id)
except ValidationError as e:
return messages.error(e)
try:
if costs.report:
report = InterTrailedWorkReport.objects.get(pk=costs.report_id)
else:
report = InterTrailedWorkReport()
report.total_amt_inc_vat = included_vat.total_of_the_order
report.save()
costs.report = InterTrailedWorkReport.objects.get(pk=report.id)
costs.save()
except ValidationError as e:
return messages.error(e)
| 59.834483
| 122
| 0.693811
| 2,106
| 17,352
| 5.206553
| 0.037987
| 0.080438
| 0.114911
| 0.083721
| 0.953671
| 0.94145
| 0.888372
| 0.888372
| 0.878796
| 0.878796
| 0
| 0.008698
| 0.244698
| 17,352
| 290
| 123
| 59.834483
| 0.827941
| 0
| 0
| 0.816
| 0
| 0
| 0.006915
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.012
| false
| 0
| 0.016
| 0
| 0.076
| 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
|
7e823081530edfced4083eb407969d82c1d1559a
| 19,526
|
py
|
Python
|
AutomationFramework/page_objects/interfaces/interfaces.py
|
sbarguil/Testing-framework
|
f3ef69f1c4f0aeafd02e222d846162c711783b15
|
[
"Apache-2.0"
] | 1
|
2020-04-23T15:22:16.000Z
|
2020-04-23T15:22:16.000Z
|
AutomationFramework/page_objects/interfaces/interfaces.py
|
sbarguil/Testing-framework
|
f3ef69f1c4f0aeafd02e222d846162c711783b15
|
[
"Apache-2.0"
] | 44
|
2020-08-13T19:35:41.000Z
|
2021-03-01T09:08:00.000Z
|
AutomationFramework/page_objects/interfaces/interfaces.py
|
sbarguil/Testing-framework
|
f3ef69f1c4f0aeafd02e222d846162c711783b15
|
[
"Apache-2.0"
] | 6
|
2020-04-23T15:29:38.000Z
|
2022-03-03T14:23:38.000Z
|
import xmltodict
from AutomationFramework.page_objects.base.base_page_object import BasePageObject
class Interfaces(BasePageObject):
variables_paths = {
'if_subif_description': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'description': 'interfaces/interface/subinterfaces/subinterface/config/description',
}
],
'if_subif_enabled': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'enabled': 'interfaces/interface/subinterfaces/subinterface/config/enabled',
}
],
'if_subif_ip_prefix_length': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'ip': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/ip',
'prefix_length': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/config/prefix-length',
}
],
'if_subif_ip_state': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'ip': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/ip',
'prefix_length': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/config/prefix-length',
},
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'ip': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/state/ip',
}
],
'if_subif_origin': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'ip': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/ip',
'prefix_length': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/config/prefix-length',
},
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'origin': 'interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/state/origin',
}
],
'if_subif_dhcp_client': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'dhcp_client': 'interfaces/interface/subinterfaces/subinterface/ipv4/config/dhcp-client',
}
],
'if_subif_mtu': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'mtu': 'interfaces/interface/subinterfaces/subinterface/ipv4/config/mtu',
}
],
'if_subif_vlan_id': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'vlan_id': 'interfaces/interface/subinterfaces/subinterface/vlan/config/vlan-id',
}
],
'if_subif_inner_outer_vlan_id': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'inner_vlan_id': 'interfaces/interface/subinterfaces/subinterface/vlan/match/double-tagged/config/inner-vlan-id',
'outer_vlan_id': 'interfaces/interface/subinterfaces/subinterface/vlan/match/double-tagged/config/outer-vlan-id',
}
],
'if_subif_match_vlan_id': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
'vlan_id': 'interfaces/interface/subinterfaces/subinterface/vlan/match/single-tagged/config/vlan-id',
}
],
'if_status_admin_status': [
{
'interface_name': 'interfaces/interface/name',
'admin_status': 'interfaces/interface/state/admin-status',
}
],
'if_status_enabled': [
{
'interface_name': 'interfaces/interface/name',
'enabled': 'interfaces/interface/state/enabled',
}
],
'if_status_name': [
{
'interface_name': 'interfaces/interface/name',
'empty_name': 'interfaces/interface/state/name',
}
],
'if_status_oper_status': [
{
'interface_name': 'interfaces/interface/name',
'oper_status': 'interfaces/interface/state/oper-status',
}
],
'if_lag_type': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'enabled': 'interfaces/interface/config/enabled',
'lag_type': 'interfaces/interface/aggregation/config/lag-type',
}
],
'if_lag_min_links': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'enabled': 'interfaces/interface/config/enabled',
'min_links': 'interfaces/interface/aggregation/config/min-links',
}
],
'if_ethernet_auto_negotiate': [
{
'interface_name': 'interfaces/interface/name',
'auto_negotiate': 'interfaces/interface/ethernet/config/auto-negotiate',
}
],
'if_ethernet_port_speed': [
{
'interface_name': 'interfaces/interface/name',
'port_speed': 'interfaces/interface/ethernet/config/port-speed',
}
],
'if_ethernet_duplex_mode': [
{
'interface_name': 'interfaces/interface/name',
'duplex_mode': 'interfaces/interface/ethernet/config/duplex-mode',
}
],
'if_ethernet_port_speed_state': [
{
'interface_name': 'interfaces/interface/name',
'port_speed': 'interfaces/interface/ethernet/state/port-speed',
}
],
'if_ethernet_aggregate_id': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'enabled': 'interfaces/interface/config/enabled',
},
{
'interface_name': 'interfaces/interface/name',
'aggregate_id': 'interfaces/interface/ethernet/config/aggregate-id',
}
],
'if_gre_dst': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'dst': 'interfaces/interface/tunnel/config/dst',
}
],
'if_gre_src': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'src': 'interfaces/interface/tunnel/config/src',
}
],
'if_gre_ttl': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'ttl': 'interfaces/interface/tunnel/config/ttl',
}
],
'if_gre_ip_prefix_length': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'ip': 'interfaces/interface/tunnel/ipv4/addresses/address/ip',
'prefix_length': 'interfaces/interface/tunnel/ipv4/addresses/address/config/prefix-length',
}
],
'if_gre_mtu': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'mtu': 'interfaces/interface/tunnel/ipv4/config/mtu',
}
],
'if_config_loopback_mode': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
'loopback_mode': 'interfaces/interface/config/loopback-mode',
}
],
'if_config_tpid': [
{
'interface_name': 'interfaces/interface/name',
'tpid': 'interfaces/interface/config/tpid',
}
],
'if_config_type': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/config/type',
}
],
'if_config_description': [
{
'interface_name': 'interfaces/interface/name',
'description': 'interfaces/interface/config/description',
}
],
'if_config_enabled': [
{
'interface_name': 'interfaces/interface/name',
'enabled': 'interfaces/interface/config/enabled',
}
],
'if_config_mtu': [
{
'interface_name': 'interfaces/interface/name',
'mtu': 'interfaces/interface/config/mtu',
}
],
'ni_ospf_subinterface': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
},
{
'name': 'network-instances/network-instance/name',
'identifier': 'network-instances/network-instance/protocols/protocol/identifier',
'protocol_name': 'network-instances/network-instance/protocols/protocol/name',
'area_identifier': 'network-instances/network-instance/protocols/protocol/ospfv2/areas/area/identifier',
'id': 'network-instances/network-instance/protocols/protocol/ospfv2/areas/area/interfaces/interface/id',
'interface': 'network-instances/network-instance/protocols/protocol/ospfv2/areas/area/interfaces/interface/interface-ref/config/interface',
'subinterface': 'network-instances/network-instance/protocols/protocol/ospfv2/areas/area/interfaces/interface/interface-ref/config/subinterface',
}
],
'ni_interface_subinterface': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/subinterfaces/subinterface/index',
},
{
'name': 'network-instances/network-instance/name',
'id': 'network-instances/network-instance/interfaces/interface/id',
'interface': 'network-instances/network-instance/interfaces/interface/config/interface',
'subinterface': 'network-instances/network-instance/interfaces/interface/config/subinterface',
}
],
'if_status_type': [
{
'interface_name': 'interfaces/interface/name',
'type': 'interfaces/interface/state/type',
}
],
}
values_before_commit = {
'interface_name': None,
'type': None,
'enabled': None,
'description': None,
'mtu': None,
'loopback_mode': None,
'tpid': None,
'auto_negotiate': None,
'duplex_mode': None,
'port_speed': None,
'aggregate_id': None,
'aggregation:config:lag_type': None,
'aggregation:config:min_links': None,
}
values_after_commit = {
'interface_name': None,
'type': None,
'enabled': None,
'description': None,
'mtu': None,
'loopback_mode': None,
'tpid': None,
'auto_negotiate': None,
'duplex_mode': None,
'port_speed': None,
'aggregate_id': None,
'aggregation:config:lag_type': None,
'aggregation:config:min_links': None,
}
def execute_interfaces_edit_config_test_case(self):
filter_to_use = """
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{}</name>
</interface>
</interfaces>
</filter>
"""
interface_name = self.get_variable_value_for_rpc_in_test_case(rpc_index=0, variable='interface_name')
self.set_filter(filter_to_use.format(interface_name))
self.execute_edit_config_test_case()
self.set_values_before_commit_dict()
self.set_values_after_commit_dict()
def execute_generic_interfaces_edit_config_test_case(self):
filter_to_use = """
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{}</name>
</interface>
</interfaces>
</filter>
"""
interface_name = self.get_variable_value_for_rpc_in_test_case(rpc_index=self.rpc_idx_in_test_case,
variable='interface_name')
self.set_filter(filter_to_use.format(interface_name))
self.execute_generic_edit_config_test_case()
def execute_rpc(self):
self.execute_interface_rpc()
def execute_interface_rpc(self):
if self.rpcs_list[self.rpc_idx_in_test_case]['operation'] == 'edit-config':
self.execute_generic_interfaces_edit_config_test_case()
elif self.rpcs_list[self.rpc_idx_in_test_case]['operation'] == 'get':
self.execute_get_test_case_with_dispatch()
def set_values_before_commit_dict(self):
rpc_reply_key = self.get_rpc_reply_key_from_get_config()
data_key = self.get_data_key_from_get_config(rpc_reply_key=rpc_reply_key)
parsed_dict = xmltodict.parse(
self.edit_config_first_get_config_response.xml)[rpc_reply_key][data_key]['interfaces']['interface']
if 'config' in parsed_dict:
if 'name' in parsed_dict['config']:
self.values_before_commit['interface_name'] = parsed_dict['config']['name']
if 'type' in parsed_dict['config']:
self.values_before_commit['type'] = parsed_dict['config']['type']
if 'enabled' in parsed_dict['config']:
self.values_before_commit['enabled'] = parsed_dict['config']['enabled']
if 'description' in parsed_dict['config']:
self.values_before_commit['description'] = parsed_dict['config']['description']
if 'mtu' in parsed_dict['config']:
self.values_before_commit['mtu'] = parsed_dict['config']['mtu']
if 'loopback-mode' in parsed_dict['config']:
self.values_before_commit['loopback_mode'] = parsed_dict['config']['loopback-mode']
if 'tpid' in parsed_dict['config']:
self.values_before_commit['tpid'] = parsed_dict['config']['tpid']
if 'ethernet' in parsed_dict:
if 'auto-negotiate' in parsed_dict['ethernet']['config']:
self.values_before_commit['auto_negotiate'] = parsed_dict['ethernet']['config']['auto-negotiate']
if 'duplex-mode' in parsed_dict['ethernet']['config']:
self.values_before_commit['duplex_mode'] = parsed_dict['ethernet']['config']['duplex-mode']
if 'port-speed' in parsed_dict['ethernet']['config']:
self.values_before_commit['port_speed'] = parsed_dict['ethernet']['config']['port-speed']
if 'aggregate-id' in parsed_dict['ethernet']['config']:
self.values_before_commit['aggregate_id'] = parsed_dict['ethernet']['config']['aggregate-id']
if 'aggregation' in parsed_dict:
if 'lag-type' in parsed_dict['aggregation']['config']:
self.values_before_commit['aggregation:config:lag_type'] = parsed_dict['aggregation']['config']['lag-type']
if 'min-links' in parsed_dict['aggregation']['config']:
self.values_before_commit['aggregation:config:min_links'] = parsed_dict['aggregation']['config']['min-links']
def set_values_after_commit_dict(self):
rpc_reply_key = self.get_rpc_reply_key_from_get_config()
data_key = self.get_data_key_from_get_config(rpc_reply_key=rpc_reply_key)
parsed_dict = xmltodict.parse(
self.edit_config_second_get_config_response.xml)[rpc_reply_key][data_key]['interfaces']['interface']
if 'config' in parsed_dict:
if 'name' in parsed_dict['config']:
self.values_after_commit['interface_name'] = parsed_dict['config']['name']
if 'type' in parsed_dict['config']:
self.values_after_commit['type'] = parsed_dict['config']['type']
if 'enabled' in parsed_dict['config']:
self.values_after_commit['enabled'] = parsed_dict['config']['enabled']
if 'description' in parsed_dict['config']:
self.values_after_commit['description'] = parsed_dict['config']['description']
if 'mtu' in parsed_dict['config']:
self.values_after_commit['mtu'] = parsed_dict['config']['mtu']
if 'loopback-mode' in parsed_dict['config']:
self.values_after_commit['loopback_mode'] = parsed_dict['config']['loopback-mode']
if 'tpid' in parsed_dict['config']:
self.values_after_commit['tpid'] = parsed_dict['config']['tpid']
if 'ethernet' in parsed_dict:
if 'auto-negotiate' in parsed_dict['ethernet']['config']:
self.values_after_commit['auto_negotiate'] = parsed_dict['ethernet']['config']['auto-negotiate']
if 'duplex-mode' in parsed_dict['ethernet']['config']:
self.values_after_commit['duplex_mode'] = parsed_dict['ethernet']['config']['duplex-mode']
if 'port-speed' in parsed_dict['ethernet']['config']:
self.values_after_commit['port_speed'] = parsed_dict['ethernet']['config']['port-speed']
if 'aggregate-id' in parsed_dict['ethernet']['config']:
self.values_after_commit['aggregate_id'] = parsed_dict['ethernet']['config']['aggregate-id']
if 'aggregation' in parsed_dict:
if 'lag-type' in parsed_dict['aggregation']['config']:
self.values_after_commit['aggregation:config:lag_type'] = parsed_dict['aggregation']['config']['lag-type']
if 'min-links' in parsed_dict['aggregation']['config']:
self.values_after_commit['aggregation:config:min_links'] = parsed_dict['aggregation']['config']['min-links']
| 46.601432
| 161
| 0.573441
| 1,788
| 19,526
| 6.007271
| 0.069351
| 0.201657
| 0.085653
| 0.113211
| 0.858579
| 0.817894
| 0.768364
| 0.737548
| 0.709897
| 0.681221
| 0
| 0.001312
| 0.297552
| 19,526
| 418
| 162
| 46.712919
| 0.781788
| 0
| 0
| 0.477723
| 0
| 0.014851
| 0.47383
| 0.293301
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014851
| false
| 0
| 0.004951
| 0
| 0.029703
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7ed03c6cc9317ca2813840905cca5fd99f09ff3a
| 1,774
|
py
|
Python
|
PullNames.py
|
CorySparks/TwitterBots
|
5e30fbe1d23c5818e95a9a4201202144e87124a8
|
[
"MIT"
] | 5
|
2017-12-03T11:53:20.000Z
|
2022-01-08T22:23:34.000Z
|
PullNames.py
|
CorySparks/TwitterBots
|
5e30fbe1d23c5818e95a9a4201202144e87124a8
|
[
"MIT"
] | null | null | null |
PullNames.py
|
CorySparks/TwitterBots
|
5e30fbe1d23c5818e95a9a4201202144e87124a8
|
[
"MIT"
] | null | null | null |
import requests
from bs4 import BeautifulSoup
while True:
def GirlNames():
print "Working"
# Collect first page of boy name list
page = requests.get("http://www.babywonderland.co.uk/baby-names/girls-names/girls-a-z-traditional.html")
# Create a BeautifulSoup object
soup = BeautifulSoup(page.text, "html.parser")
# Pull text from all instances of <a> tag within div
NameClass = soup.find(class_="article-content")
name = NameClass.find_all("li")
print "Collecting Names"
# Create for loop to print out all boy names
for names in name:
justName = names.contents[0]
f = open('Names.txt','a')
f.write('\n' + justName)
f.close()
print justName
print "All names added to Names.txt"
def BoyNames():
print "Working"
# Collect first page of boy name list
page = requests.get("http://www.babywonderland.co.uk/baby-names/boys-names/boys-a-z-traditional.html")
# Create a BeautifulSoup object
soup = BeautifulSoup(page.text, "html.parser")
# Pull text from all instances of <a> tag within div
NameClass = soup.find(class_="article-content")
name = NameClass.find_all("li")
print "Collecting Names"
# Create for loop to print out all boy names
for names in name:
justName = names.contents[0]
f = open('Names.txt','a')
f.write('\n' + justName)
f.close()
print justName
print "All names added to Names.txt"
choice = int(raw_input("1. Girl Names\n2. Boy Names\n"))
options = { 1 : GirlNames,
2 : BoyNames
}
options[choice]()
| 32.254545
| 112
| 0.588501
| 224
| 1,774
| 4.638393
| 0.334821
| 0.030799
| 0.036574
| 0.046198
| 0.829644
| 0.829644
| 0.829644
| 0.829644
| 0.829644
| 0.829644
| 0
| 0.005682
| 0.305524
| 1,774
| 54
| 113
| 32.851852
| 0.837662
| 0.180947
| 0
| 0.666667
| 0
| 0.055556
| 0.256925
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.055556
| null | null | 0.222222
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7d1acb1e8a82de5afddc218ee1db14b31828aec4
| 7,775
|
py
|
Python
|
pyQPanda/example/test_circuit_draw.py
|
QianJianhua1/QPanda-2
|
a13c7b733031b1d0007dceaf1dae6ad447bb969c
|
[
"Apache-2.0"
] | 631
|
2019-01-21T01:33:38.000Z
|
2022-03-31T07:33:04.000Z
|
pyQPanda/example/test_circuit_draw.py
|
QianJianhua1/QPanda-2
|
a13c7b733031b1d0007dceaf1dae6ad447bb969c
|
[
"Apache-2.0"
] | 24
|
2019-02-01T10:12:45.000Z
|
2021-12-02T01:49:57.000Z
|
pyQPanda/example/test_circuit_draw.py
|
QianJianhua1/QPanda-2
|
a13c7b733031b1d0007dceaf1dae6ad447bb969c
|
[
"Apache-2.0"
] | 80
|
2019-01-21T03:04:20.000Z
|
2022-03-29T15:38:45.000Z
|
import pyqpanda.pyQPanda as pq
from pyqpanda.Visualization.circuit_draw import *
import numpy as np
import math
import networkx as nx
import matplotlib.pyplot as plt
import unittest
class InitQMachine:
def __init__(self, machineType=pq.QMachineType.CPU):
self.m_machine = pq.init_quantum_machine(machineType)
def __del__(self):
pq.destroy_quantum_machine(self.m_machine)
class Test_circuit_draw(unittest.TestCase):
def plot(self, list):
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams["font.sans-serif"] = ["SimHei"]
mpl.rcParams["axes.unicode_minus"] = False
x = [key for key in list.keys()]
y = [val for val in list.values()]
y1 = [val / sum(y) for val in list.values()]
plt.bar(x, y1, align="center", color="b", alpha=0.6)
plt.ylabel("Probabilities")
plt.grid(True, axis="y", ls=":", color="r", alpha=0.3)
plt.show()
def test_layer1(self):
init_machine = InitQMachine()
machine = init_machine.m_machine
q = machine.qAlloc_many(6)
c = machine.cAlloc_many(6)
prog = pq.QProg()
cir = pq.QCircuit()
cir.insert(pq.T(q[0])).insert(pq.SWAP(q[1], q[5])).insert(pq.S(q[1])).insert(pq.CNOT(q[1], q[0]))
cir.insert(pq.CZ(q[0], q[2])).insert(pq.CU(np.pi / 3, 3, 4, 5, q[5], q[2]))
cir.set_control([q[4], q[3]])
cir.set_dagger(True)
# prog.insert(pq.T(q[0])).insert(pq.SWAP(q[1], q[2])).insert(pq.X1(q[3]))
# prog.insert(pq.X(q[0])).insert(pq.CZ(q[1], q[2])).insert(pq.Y(q[3])).insert(pq.Z(q[3]))
# prog.insert(pq.S(q[3])).insert(pq.CNOT(q[1], q[4]))
# prog.insert(pq.CR(q[0], q[2], 2.3)).insert(pq.CR(q[0], q[1], np.pi/2.3)).insert(pq.Y1(q[4])).insert(pq.Z1(q[5]))
# prog.insert(pq.CR(q[5], q[2], np.pi/3))
# prog.insert(pq.CR(q[2], q[3], np.pi/5))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.iSWAP(q[4], q[1]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(pq.U1(q[0], np.pi/4)).insert(pq.U2(q[1], 1, np.pi/2)).insert(pq.U3(q[2], 1.2, 2, np.pi/3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(pq.U1(q[0], np.pi/4)).insert(pq.U2(q[1], 1, np.pi/2)).insert(pq.U3(q[2], 1.2, 2, np.pi/3))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[5], q[2]))
# prog.insert(pq.T(q[0])).insert(pq.SWAP(q[1], q[2])).insert(pq.X1(q[3]))
# prog.insert(pq.X(q[0])).insert(pq.CZ(q[1], q[2])).insert(pq.Y(q[3])).insert(pq.Z(q[3]))
# prog.insert(pq.S(q[3]))
# prog.insert(cir)
# prog.insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[1]))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[3], q[2]))
# prog.insert(pq.CR(q[0], q[2], 2.3)).insert(pq.CR(q[0], q[1], np.pi/2.3)).insert(pq.Y1(q[4])).insert(pq.Z1(q[5]))
# prog.insert(pq.CR(q[5], q[2], np.pi/3))
# prog.insert(pq.CR(q[2], q[3], np.pi/5))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.iSWAP(q[4], q[1]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(pq.CR(q[0], q[2], 2.3)).insert(pq.CR(q[0], q[1], np.pi/2.3)).insert(pq.Y1(q[4])).insert(pq.Z1(q[5]))
# prog.insert(pq.CR(q[5], q[2], np.pi/3))
# prog.insert(pq.CR(q[2], q[3], np.pi/5))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.iSWAP(q[4], q[1]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(pq.U1(q[0], np.pi/4)).insert(pq.U2(q[1], 1, np.pi/2)).insert(pq.U3(q[2], 1.2, 2, np.pi/3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(pq.U1(q[0], np.pi/4)).insert(pq.U2(q[1], 1, np.pi/2)).insert(pq.U3(q[2], 1.2, 2, np.pi/3))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[5], q[2]))
# prog.insert(pq.T(q[0])).insert(pq.SWAP(q[1], q[2])).insert(pq.X1(q[3]))
# prog.insert(pq.X(q[0])).insert(pq.CZ(q[1], q[2])).insert(pq.Y(q[3])).insert(pq.Z(q[3]))
# prog.insert(pq.S(q[3]))
# prog.insert(cir)
# prog.insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[1]))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[3], q[2]))
# prog.insert(pq.S(q[3]))
# prog.insert(cir)
# prog.insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[1]))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[3], q[2]))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[5], q[2]))
# prog.insert(pq.T(q[0])).insert(pq.SWAP(q[1], q[2])).insert(pq.X1(q[3]))
# prog.insert(pq.X(q[0])).insert(pq.CZ(q[1], q[2])).insert(pq.Y(q[3])).insert(pq.Z(q[3]))
# prog.insert(pq.S(q[3]))
prog.insert(cir)
# prog.insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[1]))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[3], q[2]))
# prog.insert(pq.S(q[3]))
# prog.insert(cir)
# prog.insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[5]))
# prog.insert(pq.CR(q[0], q[2], 2.3)).insert(pq.CR(q[0], q[1], np.pi/2.3)).insert(pq.Y1(q[4])).insert(pq.Z1(q[5]))
# prog.insert(pq.CR(q[5], q[2], np.pi/3))
# prog.insert(pq.CR(q[2], q[3], np.pi/5))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.iSWAP(q[4], q[1]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(pq.U1(q[0], np.pi/4)).insert(pq.U2(q[1], 1, np.pi/2)).insert(pq.U3(q[2], 1.2, 2, np.pi/3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(cir)
# prog.insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[5]))
# prog.insert(pq.CR(q[0], q[2], 2.3)).insert(pq.CR(q[0], q[1], np.pi/2.3)).insert(pq.Y1(q[4])).insert(pq.Z1(q[5]))
# prog.insert(pq.CR(q[5], q[2], np.pi/3))
# prog.insert(pq.CR(q[2], q[3], np.pi/5))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.iSWAP(q[4], q[1]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[2], np.pi/3))
# prog.insert(pq.U1(q[0], np.pi/4)).insert(pq.U2(q[5], 1, np.pi/2)).insert(pq.U3(q[5], 1.2, 2, np.pi/3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.U4(1.5, 2.2, np.pi/3, np.pi/4, q[3]))
# prog.insert(pq.RX(q[2], np.pi/6.2)).insert(pq.RY(q[2], 6.6)).insert(pq.RZ(q[5], np.pi/3))
# prog.insert(pq.U1(q[0], np.pi/4)).insert(pq.U2(q[1], 1, np.pi/2)).insert(pq.U3(q[2], 1.2, 2, np.pi/3))
# prog.insert(pq.CU(np.pi/3, 3, 4, 5, q[5], q[2]))
# prog.insert(pq.H(q[0])).insert(pq.iSWAP(q[5], q[2], np.pi/2.3)).insert(pq.iSWAP(q[4], q[1]))
# prog.insert(pq.H(q[0])).insert(pq.H(q[1])).insert(pq.H(q[2])).insert(pq.H(q[3])).insert(pq.H(q[4])).insert(pq.H(q[5])).insert(pq.measure_all(q, c))
# prog.insert(pq.H(q[0])).insert(pq.H(q[1])).insert(pq.Measure(q[0], c[0]))
# print(prog)
# draw_qprog(prog, 'text')
# draw_qprog(prog, 'pic', filename='D:/test_cir_draw.jpg')
if __name__ == "__main__":
unittest.main(verbosity=2)
| 59.807692
| 160
| 0.530675
| 1,712
| 7,775
| 2.387266
| 0.070678
| 0.328848
| 0.208466
| 0.049914
| 0.784928
| 0.776119
| 0.75263
| 0.75263
| 0.747737
| 0.747737
| 0
| 0.086112
| 0.178521
| 7,775
| 129
| 161
| 60.271318
| 0.553781
| 0.700322
| 0
| 0.051282
| 0
| 0
| 0.031111
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.102564
| false
| 0
| 0.230769
| 0
| 0.384615
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7d2d81b868d78570f829b82f7e1a603d8f307c26
| 25,424
|
py
|
Python
|
causallearn/score/LocalScoreFunction.py
|
softsys4ai/causal-config-labyrinth
|
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
|
[
"MIT"
] | 15
|
2022-01-20T12:35:35.000Z
|
2022-03-24T16:25:24.000Z
|
causallearn/score/LocalScoreFunction.py
|
softsys4ai/unicorn
|
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
|
[
"MIT"
] | 14
|
2022-01-23T00:20:00.000Z
|
2022-02-22T01:40:43.000Z
|
causallearn/score/LocalScoreFunction.py
|
softsys4ai/causal-config-labyrinth
|
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
|
[
"MIT"
] | 1
|
2022-02-23T08:59:24.000Z
|
2022-02-23T08:59:24.000Z
|
import math
import pandas as pd
from causallearn.utils.ScoreUtils import *
def local_score_BIC(Data, i, PAi, parameters=None):
'''
Calculate the *negative* local score with BIC for the linear Gaussian continue data case
Parameters
----------
Data: ndarray, (sample, features)
i: current index
PAi: parent indexes
parameters: lambda_value, the penalty discount of bic
Returns
-------
score: local BIC score
'''
if parameters is None:
lambda_value = 1
else:
lambda_value = parameters['lambda_value']
Data = np.mat(Data)
T = Data.shape[0]
X = Data[:, i]
if len(PAi) != 0:
PA = Data[:, PAi]
D = PA.shape[1]
# derive the parameters by maximum likelihood
H = PA * pdinv(PA.T * PA) * PA.T
E = X - H * X
sigma2 = np.sum(np.power(E, 2)) / T
# BIC
score = T * np.log(sigma2) + lambda_value * D * np.log(T)
else:
sigma2 = np.sum(np.power(X, 2)) / T
# BIC
score = T * np.log(sigma2)
return score
def local_score_BDeu(Data, i, PAi, parameters=None):
'''
Calculate the *negative* local score with BDeu for the discrete case
Parameters
----------
Data: (sample, features)
i: current index
PAi: parent indexes
parameters:
sample_prior: sample prior
structure_prior: structure prior
r_i_map: number of states of the finite random variable X_{i}
Returns
-------
score: local BDeu score
'''
if parameters is None:
sample_prior = 1 # default sample_prior = 1
structure_prior = 1 # default structure_prior = 1
r_i_map = {i: len(np.unique(np.asarray(Data[:, i]))) for i in range(Data.shape[1])}
else:
sample_prior = parameters['sample_prior']
structure_prior = parameters['structure_prior']
r_i_map = parameters['r_i_map']
# calculate q_{i}
q_i = 1
for pa in PAi:
q_i *= r_i_map[pa]
if len(PAi) != 0:
# calculate N_{ij}
names = ['x{}'.format(i) for i in range(Data.shape[1])]
Data_pd = pd.DataFrame(Data, columns=names)
parant_names = ['x{}'.format(i) for i in PAi]
Data_pd_group_Nij = Data_pd.groupby(parant_names)
Nij_map = {key: len(Data_pd_group_Nij.indices.get(key)) for key in Data_pd_group_Nij.indices.keys()}
Nij_map_keys_list = list(Nij_map.keys())
# calculate N_{ijk}
Nijk_map = {ij: Data_pd_group_Nij.get_group(ij).groupby('x{}'.format(i)).apply(len).reset_index() for ij in
Nij_map.keys()}
for v in Nijk_map.values():
v.columns = ['x{}'.format(i), 'times']
else:
# calculate N_{ij}
names = ['x{}'.format(i) for i in range(Data.shape[1])]
Nij_map = {'': len(Data[:, i])}
Nij_map_keys_list = ['']
Data_pd = pd.DataFrame(Data, columns=names)
# calculate N_{ijk}
Nijk_map = {ij: Data_pd.groupby('x{}'.format(i)).apply(len).reset_index() for ij in Nij_map_keys_list}
for v in Nijk_map.values():
v.columns = ['x{}'.format(i), 'times']
BDeu_score = 0
# first term
vm = Data.shape[0] - 1
BDeu_score += len(PAi) * np.log(structure_prior / vm) + (vm - len(PAi)) * np.log(1 - (structure_prior / vm))
# second term
for pa in range(len(Nij_map_keys_list)):
Nij = Nij_map.get(Nij_map_keys_list[pa])
first_term = math.lgamma(sample_prior / q_i) - math.lgamma(Nij + sample_prior / q_i)
second_term = 0
Nijk_list = Nijk_map.get(Nij_map_keys_list[pa])['times'].to_numpy()
for Nijk in Nijk_list:
second_term += math.lgamma(Nijk + sample_prior / (r_i_map[i] * q_i)) - math.lgamma(
sample_prior / (r_i_map[i] * q_i))
BDeu_score += first_term + second_term
return -BDeu_score
def local_score_cv_general(Data, Xi, PAi, parameters):
'''
Calculate the local score
using negative k-fold cross-validated log likelihood as the score
based on a regression model in RKHS
Parameters
----------
Data: (sample, features)
i: current index
PAi: parent indexes
parameters:
kfold: k-fold cross validation
lambda: regularization parameter
Returns
-------
score: local score
'''
Data = np.mat(Data)
PAi = list(PAi)
T = Data.shape[0]
X = Data[:, Xi]
var_lambda = parameters['lambda'] # regularization parameter
k = parameters['kfold'] # k-fold cross validation
n0 = math.floor(T / k)
gamma = 0.01
Thresh = 1E-5
if (len(PAi)):
PA = Data[:, PAi]
# set the kernel for X
GX = np.sum(np.multiply(X, X), axis=1)
Q = np.tile(GX, (1, T))
R = np.tile(GX.T, (T, 1))
dists = Q + R - 2 * X * X.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
width = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0]) # median value
width = width * 2
theta = 1 / (width ** 2)
Kx, _ = kernel(X, X, (theta, 1)) # Gaussian kernel
H0 = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / (T) # for centering of the data in feature space
Kx = H0 * Kx * H0 # kernel matrix for X
# eig_Kx, eix = eigdec((Kx + Kx.T)/2, np.min([400, math.floor(T/2)]), evals_only=False) # /2
# IIx = np.where(eig_Kx > np.max(eig_Kx) * Thresh)[0]
# eig_Kx = eig_Kx[IIx]
# eix = eix[:, IIx]
# mx = len(IIx)
# set the kernel for PA
Kpa = np.mat(np.ones((T, T)))
for m in range(PA.shape[1]):
G = np.sum((np.multiply(PA[:, m], PA[:, m])), axis=1)
Q = np.tile(G, (1, T))
R = np.tile(G.T, (T, 1))
dists = Q + R - 2 * PA[:, m] * PA[:, m].T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
width = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0]) # median value
width = width * 2
theta = 1 / (width ** 2)
Kpa = np.multiply(Kpa, kernel(PA[:, m], PA[:, m], (theta, 1))[0])
H0 = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / (T) # for centering of the data in feature space
Kpa = H0 * Kpa * H0 # kernel matrix for PA
CV = 0
for kk in range(k):
if (kk == 0):
Kx_te = Kx[0:n0, 0:n0]
Kx_tr = Kx[n0: T, n0: T]
Kx_tr_te = Kx[n0: T, 0: n0]
Kpa_te = Kpa[0:n0, 0: n0]
Kpa_tr = Kpa[n0: T, n0: T]
Kpa_tr_te = Kpa[n0: T, 0: n0]
nv = n0 # sample size of validated data
if (kk == k - 1):
Kx_te = Kx[kk * n0:T, kk * n0: T]
Kx_tr = Kx[0:kk * n0, 0: kk * n0]
Kx_tr_te = Kx[0:kk * n0, kk * n0: T]
Kpa_te = Kpa[kk * n0:T, kk * n0: T]
Kpa_tr = Kpa[0: kk * n0, 0: kk * n0]
Kpa_tr_te = Kpa[0:kk * n0, kk * n0: T]
nv = T - kk * n0
if (kk < k - 1 and kk > 0):
Kx_te = Kx[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kx_tr = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]))]
Kx_tr_te = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.arange(kk * n0, (kk + 1) * n0))]
Kpa_te = Kpa[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kpa_tr = Kpa[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]))]
Kpa_tr_te = Kpa[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.arange(kk * n0, (kk + 1) * n0))]
nv = n0
n1 = T - nv
tmp1 = pdinv(Kpa_tr + n1 * var_lambda * np.mat(np.eye(n1)))
tmp2 = tmp1 * Kx_tr * tmp1
tmp3 = tmp1 * pdinv(np.mat(np.eye(n1)) + n1 * var_lambda ** 2 / gamma * tmp2) * tmp1
A = (Kx_te + Kpa_tr_te.T * tmp2 * Kpa_tr_te - 2 * Kx_tr_te.T * tmp1 * Kpa_tr_te
- n1 * var_lambda ** 2 / gamma * Kx_tr_te.T * tmp3 * Kx_tr_te
- n1 * var_lambda ** 2 / gamma * Kpa_tr_te.T * tmp1 * Kx_tr * tmp3 * Kx_tr * tmp1 * Kpa_tr_te
+ 2 * n1 * var_lambda ** 2 / gamma * Kx_tr_te.T * tmp3 * Kx_tr * tmp1 * Kpa_tr_te) / gamma
B = n1 * var_lambda ** 2 / gamma * tmp2 + np.mat(np.eye(n1))
L = np.linalg.cholesky(B)
C = np.sum(np.log(np.diag(L)))
# CV = CV + (nv*nv*log(2*pi) + nv*C + nv*mx*log(gamma) + trace(A))/2;
CV = CV + (nv * nv * np.log(2 * np.pi) + nv * C + np.trace(A)) / 2
CV = CV / k
else:
# set the kernel for X
GX = np.sum(np.multiply(X, X), axis=1)
Q = np.tile(GX, (1, T))
R = np.tile(GX.T, (T, 1))
dists = Q + R - 2 * X * X.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
width = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0]) # median value
width = width * 2
theta = 1 / (width ** 2)
Kx, _ = kernel(X, X, (theta, 1)) # Gaussian kernel
H0 = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / (T) # for centering of the data in feature space
Kx = H0 * Kx * H0 # kernel matrix for X
# eig_Kx, eix = eigdec((Kx + Kx.T) / 2, np.min([400, math.floor(T / 2)]), evals_only=False) # /2
# IIx = np.where(eig_Kx > np.max(eig_Kx) * Thresh)[0]
# mx = len(IIx)
CV = 0
for kk in range(k):
if (kk == 0):
Kx_te = Kx[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kx_tr = Kx[(kk + 1) * n0:T, (kk + 1) * n0: T]
Kx_tr_te = Kx[(kk + 1) * n0:T, kk * n0: (kk + 1) * n0]
nv = n0
if (kk == k - 1):
Kx_te = Kx[kk * n0: T, kk * n0: T]
Kx_tr = Kx[0: kk * n0, 0: kk * n0]
Kx_tr_te = Kx[0:kk * n0, kk * n0: T]
nv = T - kk * n0
if (kk < k - 1 and kk > 0):
Kx_te = Kx[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kx_tr = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]))]
Kx_tr_te = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.arange(kk * n0, (kk + 1) * n0))]
nv = n0
n1 = T - nv
A = (Kx_te - 1 / (gamma * n1) * Kx_tr_te.T * pdinv(
np.mat(np.eye(n1)) + 1 / (gamma * n1) * Kx_tr) * Kx_tr_te) / gamma
B = 1 / (gamma * n1) * Kx_tr + np.mat(np.eye(n1))
L = np.linalg.cholesky(B)
C = np.sum(np.log(np.diag(L)))
# CV = CV + (nv*nv*log(2*pi) + nv*C + nv*mx*log(gamma) + trace(A))/2;
CV = CV + (nv * nv * np.log(2 * np.pi) + nv * C + np.trace(A)) / 2
CV = CV / k
score = CV # negative cross-validated likelihood
return score
def local_score_cv_multi(Data, Xi, PAi, parameters):
'''
Calculate the local score
using negative k-fold cross-validated log likelihood as the score
based on a regression model in RKHS
for variables with multi-variate dimensions
Parameters
----------
Data: (sample, features)
i: current index
PAi: parent indexes
parameters:
kfold: k-fold cross validation
lambda: regularization parameter
dlabel: for variables with multi-dimensions,
indicate which dimensions belong to the i-th variable.
Returns
-------
score: local score
'''
T = Data.shape[0]
X = Data[:, parameters['dlabel'][Xi]]
var_lambda = parameters['lambda'] # regularization parameter
k = parameters['kfold'] # k-fold cross validation
n0 = math.floor(T / k)
gamma = 0.01
Thresh = 1E-5
if (len(PAi)):
# set the kernel for X
GX = np.sum(np.multiply(X, X), axis=1)
Q = np.tile(GX, (1, T))
R = np.tile(GX.T, (T, 1))
dists = Q + R - 2 * X * X.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
width = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0]) # median value
width = width * 3 ###
theta = 1 / (width ** 2 * X.shape[1]) #
Kx, _ = kernel(X, X, (theta, 1)) # Gaussian kernel
H0 = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / (T) # for centering of the data in feature space
Kx = H0 * Kx * H0 # kernel matrix for X
# set the kernel for PA
Kpa = np.mat(np.ones((T, T)))
for m in range(len(PAi)):
PA = Data[:, parameters['dlabel'][PAi[m]]]
G = np.sum((np.multiply(PA, PA)), axis=1)
Q = np.tile(G, (1, T))
R = np.tile(G.T, (T, 1))
dists = Q + R - 2 * PA * PA.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
width = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0]) # median value
width = width * 3 ###
theta = 1 / (width ** 2 * PA.shape[1])
Kpa = np.multiply(Kpa, kernel(PA, PA, (theta, 1))[0])
H0 = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / (T) # for centering of the data in feature space
Kpa = H0 * Kpa * H0 # kernel matrix for PA
CV = 0
for kk in range(k):
if (kk == 0):
Kx_te = Kx[0:n0, 0:n0]
Kx_tr = Kx[n0: T, n0: T]
Kx_tr_te = Kx[n0: T, 0: n0]
Kpa_te = Kpa[0:n0, 0: n0]
Kpa_tr = Kpa[n0: T, n0: T]
Kpa_tr_te = Kpa[n0: T, 0: n0]
nv = n0 # sample size of validated data
if (kk == k - 1):
Kx_te = Kx[kk * n0:T, kk * n0: T]
Kx_tr = Kx[0:kk * n0, 0: kk * n0]
Kx_tr_te = Kx[0:kk * n0, kk * n0: T]
Kpa_te = Kpa[kk * n0:T, kk * n0: T]
Kpa_tr = Kpa[0: kk * n0, 0: kk * n0]
Kpa_tr_te = Kpa[0:kk * n0, kk * n0: T]
nv = T - kk * n0
if (kk < k - 1 and kk > 0):
Kx_te = Kx[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kx_tr = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]))]
Kx_tr_te = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.arange(kk * n0, (kk + 1) * n0))]
Kpa_te = Kpa[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kpa_tr = Kpa[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]))]
Kpa_tr_te = Kpa[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.arange(kk * n0, (kk + 1) * n0))]
nv = n0
n1 = T - nv
tmp1 = pdinv(Kpa_tr + n1 * var_lambda * np.mat(np.eye(n1)))
tmp2 = tmp1 * Kx_tr * tmp1
tmp3 = tmp1 * pdinv(np.mat(np.eye(n1)) + n1 * var_lambda ** 2 / gamma * tmp2) * tmp1
A = (Kx_te + Kpa_tr_te.T * tmp2 * Kpa_tr_te - 2 * Kx_tr_te.T * tmp1 * Kpa_tr_te
- n1 * var_lambda ** 2 / gamma * Kx_tr_te.T * tmp3 * Kx_tr_te
- n1 * var_lambda ** 2 / gamma * Kpa_tr_te.T * tmp1 * Kx_tr * tmp3 * Kx_tr * tmp1 * Kpa_tr_te
+ 2 * n1 * var_lambda ** 2 / gamma * Kx_tr_te.T * tmp3 * Kx_tr * tmp1 * Kpa_tr_te) / gamma
B = n1 * var_lambda ** 2 / gamma * tmp2 + np.mat(np.eye(n1))
L = np.linalg.cholesky(B)
C = np.sum(np.log(np.diag(L)))
# CV = CV + (nv*nv*log(2*pi) + nv*C + nv*mx*log(gamma) + trace(A))/2;
CV = CV + (nv * nv * np.log(2 * np.pi) + nv * C + np.trace(A)) / 2
CV = CV / k
else:
# set the kernel for X
GX = np.sum(np.multiply(X, X), axis=1)
Q = np.tile(GX, (1, T))
R = np.tile(GX.T, (T, 1))
dists = Q + R - 2 * X * X.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
width = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0]) # median value
width = width * 3 ###
theta = 1 / (width ** 2 * X.shape[1]) #
Kx, _ = kernel(X, X, (theta, 1)) # Gaussian kernel
H0 = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / (T) # for centering of the data in feature space
Kx = H0 * Kx * H0 # kernel matrix for X
CV = 0
for kk in range(k):
if (kk == 0):
Kx_te = Kx[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kx_tr = Kx[(kk + 1) * n0:T, (kk + 1) * n0: T]
Kx_tr_te = Kx[(kk + 1) * n0:T, kk * n0: (kk + 1) * n0]
nv = n0
if (kk == k - 1):
Kx_te = Kx[kk * n0: T, kk * n0: T]
Kx_tr = Kx[0: kk * n0, 0: kk * n0]
Kx_tr_te = Kx[0:kk * n0, kk * n0: T]
nv = T - kk * n0
if (kk < k - 1 and kk > 0):
Kx_te = Kx[kk * n0: (kk + 1) * n0, kk * n0: (kk + 1) * n0]
Kx_tr = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]))]
Kx_tr_te = Kx[np.ix_(np.concatenate([np.arange(0, kk * n0), np.arange((kk + 1) * n0, T)]),
np.arange(kk * n0, (kk + 1) * n0))]
nv = n0
n1 = T - nv
A = (Kx_te - 1 / (gamma * n1) * Kx_tr_te.T * pdinv(
np.mat(np.eye(n1)) + 1 / (gamma * n1) * Kx_tr) * Kx_tr_te) / gamma
B = 1 / (gamma * n1) * Kx_tr + np.mat(np.eye(n1))
L = np.linalg.cholesky(B)
C = np.sum(np.log(np.diag(L)))
# CV = CV + (nv*nv*log(2*pi) + nv*C + nv*mx*log(gamma) + trace(A))/2;
CV = CV + (nv * nv * np.log(2 * np.pi) + nv * C + np.trace(A)) / 2
CV = CV / k
score = CV # negative cross-validated likelihood
return score
def local_score_marginal_general(Data, Xi, PAi, parameters):
'''
Calculate the local score by negative marginal likelihood
based on a regression model in RKHS
Parameters
----------
Data: (sample, features)
i: current index
PAi: parent indexes
parameters: None
Returns
-------
score: local score
'''
T = Data.shape[0]
X = Data[:, Xi]
dX = X.shape[1]
# set the kernel for X
GX = np.sum(np.multiply(X, X), axis=1)
Q = np.tile(GX, (1, T))
R = np.tile(GX.T, (T, 1))
dists = Q + R - 2 * X * X.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
width = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0])
width = width * 2.5 # kernel width
theta = 1 / (width ** 2)
H = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / T
Kx, _ = kernel(X, X, (theta, 1))
Kx = H * Kx * H
Thresh = 1E-5
eig_Kx, eix = eigdec((Kx + Kx.T) / 2, np.min([400, math.floor(T / 4)]), evals_only=False) # /2
IIx = np.where(eig_Kx > np.max(eig_Kx) * Thresh)[0]
eig_Kx = eig_Kx[IIx]
eix = eix[:, IIx]
if (len(PAi)):
PA = Data[:, PAi]
widthPA = np.mat(np.empty((PA.shape[1], 1)))
# set the kernel for PA
for m in range(PA.shape[1]):
G = np.sum((np.multiply(PA[:, m], PA[:, m])), axis=1)
Q = np.tile(G, (1, T))
R = np.tile(G.T, (T, 1))
dists = Q + R - 2 * PA[:, m] * PA[:, m].T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
widthPA[m] = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0])
widthPA = widthPA * 2.5 # kernel width
covfunc = np.asarray(['covSum', ['covSEard', 'covNoise']])
logtheta0 = np.vstack([np.log(widthPA), 0, np.log(np.sqrt(0.1))])
logtheta, fvals, iter = minimize(logtheta0, 'gpr_multi_new', -300, covfunc, PA,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]))
nlml, dnlml = gpr_multi_new(logtheta, covfunc, PA,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]),
nargout=2)
else:
covfunc = np.asarray(['covSum', ['covSEard', 'covNoise']])
PA = np.mat(np.zeros((T, 1)))
logtheta0 = np.mat([100, 0, np.log(np.sqrt(0.1))]).T
logtheta, fvals, iter = minimize(logtheta0, 'gpr_multi_new', -300, covfunc, PA,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]))
nlml, dnlml = gpr_multi_new(logtheta, covfunc, PA,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]),
nargout=2)
score = nlml # negative log-likelihood
return score
def local_score_marginal_multi(Data, Xi, PAi, parameters):
'''
Calculate the local score by negative marginal likelihood
based on a regression model in RKHS
for variables with multi-variate dimensions
Parameters
----------
Data: (sample, features)
i: current index
PAi: parent indexes
parameters:
dlabel: for variables with multi-dimensions,
indicate which dimensions belong to the i-th variable.
Returns
-------
score: local score
'''
T = Data.shape[0]
X = Data[:, parameters['dlabel'][Xi]]
dX = X.shape[1]
# set the kernel for X
GX = np.sum(np.multiply(X, X), axis=1)
Q = np.tile(GX, (1, T))
R = np.tile(GX.T, (T, 1))
dists = Q + R - 2 * X * X.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
widthX = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0])
widthX = widthX * 2.5 # kernel width
theta = 1 / (widthX ** 2)
H = np.mat(np.eye(T)) - np.mat(np.ones((T, T))) / T
Kx, _ = kernel(X, X, (theta, 1))
Kx = H * Kx * H
Thresh = 1E-5
eig_Kx, eix = eigdec((Kx + Kx.T) / 2, np.min([400, math.floor(T / 4)]), evals_only=False) # /2
IIx = np.where(eig_Kx > np.max(eig_Kx) * Thresh)[0]
eig_Kx = eig_Kx[IIx]
eix = eix[:, IIx]
if (len(PAi)):
widthPA_all = np.mat(np.empty((1, 0)))
# set the kernel for PA
PA_all = np.mat(np.empty((Data.shape[0], 0)))
for m in range(len(PAi)):
PA = Data[:, parameters['dlabel'][PAi[m]]]
PA_all = np.hstack([PA_all, PA])
G = np.sum((np.multiply(PA, PA)), axis=1)
Q = np.tile(G, (1, T))
R = np.tile(G.T, (T, 1))
dists = Q + R - 2 * PA * PA.T
dists = dists - np.tril(dists)
dists = np.reshape(dists, (T ** 2, 1))
widthPA = np.sqrt(0.5 * np.median(dists[np.where(dists > 0)], axis=1)[0, 0])
widthPA_all = np.hstack(
[widthPA_all, widthPA * np.mat(np.ones((1, np.size(parameters['dlabel'][PAi[m]]))))])
widthPA_all = widthPA_all * 2.5 # kernel width
covfunc = np.asarray(['covSum', ['covSEard', 'covNoise']])
logtheta0 = np.vstack([np.log(widthPA_all.T), 0, np.log(np.sqrt(0.1))])
logtheta, fvals, iter = minimize(logtheta0, 'gpr_multi_new', -300, covfunc, PA_all,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]))
nlml, dnlml = gpr_multi_new(logtheta, covfunc, PA_all,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]),
nargout=2)
else:
covfunc = np.asarray(['covSum', ['covSEard', 'covNoise']])
PA = np.mat(np.zeros((T, 1)))
logtheta0 = np.mat([100, 0, np.log(np.sqrt(0.1))]).T
logtheta, fvals, iter = minimize(logtheta0, 'gpr_multi_new', -300, covfunc, PA,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]))
nlml, dnlml = gpr_multi_new(logtheta, covfunc, PA,
2 * np.sqrt(T) * eix * np.diag(np.sqrt(eig_Kx)) / np.sqrt(eig_Kx[0]),
nargout=2)
score = nlml # negative log-likelihood
return score
| 40.484076
| 115
| 0.48411
| 3,883
| 25,424
| 3.07726
| 0.05949
| 0.02745
| 0.020085
| 0.01406
| 0.876893
| 0.854046
| 0.844255
| 0.829693
| 0.816303
| 0.809859
| 0
| 0.042765
| 0.352502
| 25,424
| 627
| 116
| 40.548644
| 0.683088
| 0.16158
| 0
| 0.826923
| 0
| 0
| 0.013142
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014423
| false
| 0
| 0.007212
| 0
| 0.036058
| 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
|
ada6f6bc8f31f3064b8d889f66103c621edb2090
| 2,019
|
py
|
Python
|
tests/addons/criterions/test_ts_triplet_loss.py
|
khirotaka/enchanter
|
71faa51f998da5c8d9185a979a4f5849c9b5f9e6
|
[
"Apache-2.0"
] | 8
|
2020-04-18T03:09:19.000Z
|
2021-05-05T17:57:27.000Z
|
tests/addons/criterions/test_ts_triplet_loss.py
|
khirotaka/enchanter
|
71faa51f998da5c8d9185a979a4f5849c9b5f9e6
|
[
"Apache-2.0"
] | 107
|
2020-02-12T11:35:06.000Z
|
2022-03-24T20:49:43.000Z
|
tests/addons/criterions/test_ts_triplet_loss.py
|
khirotaka/enchanter
|
71faa51f998da5c8d9185a979a4f5849c9b5f9e6
|
[
"Apache-2.0"
] | 2
|
2020-02-12T12:23:51.000Z
|
2021-07-19T11:41:04.000Z
|
import torch
import enchanter.addons.criterions as C
import enchanter
def test_generate_sample_indices_1():
n_rand_samples: int = 10
batch_size: int = 32
length: int = 100
begin_batches, len_anchor, end_pos, len_pos_neg, begin_neg_samples = C.generate_sample_indices(
n_rand_samples, batch_size, length
)
assert (length > begin_batches).all()
assert length > len_pos_neg
assert length > len_anchor
assert (length > end_pos).all()
assert (length > begin_neg_samples.numpy()).all()
def test_generate_sample_indices_2():
is_pass = False
n_rand_samples: int = 10
batch_size: int = 32
length: int = -1
try:
begin_batches, len_anchor, end_pos, len_pos_neg, begin_neg_samples = C.generate_sample_indices(
n_rand_samples, batch_size, length
)
except ValueError:
is_pass = True
assert is_pass
def test_generate_sample_indices_3():
is_pass = False
n_rand_samples: int = -1
batch_size: int = 32
length: int = 1
try:
begin_batches, len_anchor, end_pos, len_pos_neg, begin_neg_samples = C.generate_sample_indices(
n_rand_samples, batch_size, length
)
except ValueError:
is_pass = True
assert is_pass
def test_generate_sample_indices_4():
is_pass = False
n_rand_samples: int = 10
batch_size: int = -1
length: int = 10
try:
begin_batches, len_anchor, end_pos, len_pos_neg, begin_neg_samples = C.generate_sample_indices(
n_rand_samples, batch_size, length
)
except ValueError:
is_pass = True
assert is_pass
def test_generate_sample_indices_5():
is_pass = False
n_rand_samples: int = -1
batch_size: int = -1
length: int = -1
try:
begin_batches, len_anchor, end_pos, len_pos_neg, begin_neg_samples = C.generate_sample_indices(
n_rand_samples, batch_size, length
)
except ValueError:
is_pass = True
assert is_pass
| 24.035714
| 103
| 0.67162
| 284
| 2,019
| 4.373239
| 0.15493
| 0.057971
| 0.169082
| 0.084541
| 0.842995
| 0.797907
| 0.78905
| 0.78905
| 0.78905
| 0.78905
| 0
| 0.019359
| 0.258049
| 2,019
| 83
| 104
| 24.325301
| 0.809746
| 0
| 0
| 0.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 1
| 0.079365
| false
| 0.190476
| 0.047619
| 0
| 0.126984
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
70e6e506219e02474fd560b66dca20f49f176cea
| 63,377
|
py
|
Python
|
machine-learning-gists/dd4b5aa1e205d8984595b20eed060aec214c74d0/snippet.py
|
qwbjtu2015/dockerizeme
|
9039beacf281ea7058d721784ed4eff054453b09
|
[
"Apache-2.0"
] | null | null | null |
machine-learning-gists/dd4b5aa1e205d8984595b20eed060aec214c74d0/snippet.py
|
qwbjtu2015/dockerizeme
|
9039beacf281ea7058d721784ed4eff054453b09
|
[
"Apache-2.0"
] | null | null | null |
machine-learning-gists/dd4b5aa1e205d8984595b20eed060aec214c74d0/snippet.py
|
qwbjtu2015/dockerizeme
|
9039beacf281ea7058d721784ed4eff054453b09
|
[
"Apache-2.0"
] | null | null | null |
{
"metadata": {
"name": "Random Forest Variable Importance"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import pandas as pd\n",
"import numpy as np\n",
"import pylab as pl\n",
"import random"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 107
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from sklearn.ensemble import RandomForestClassifier\n",
"from sklearn.metrics import f1_score"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 108
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#read in the data and combine it\n",
"#data from: http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/\n",
"red = pd.read_csv(\"data/winequality-red.csv\", sep=\";\")\n",
"red['color'] = \"red\"\n",
"white = pd.read_csv(\"data/winequality-white.csv\", sep=\";\")\n",
"white['color'] = \"white\"\n",
"df = red.append(white)\n",
"df.head()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>fixed acidity</th>\n",
" <th>volatile acidity</th>\n",
" <th>citric acid</th>\n",
" <th>residual sugar</th>\n",
" <th>chlorides</th>\n",
" <th>free sulfur dioxide</th>\n",
" <th>total sulfur dioxide</th>\n",
" <th>density</th>\n",
" <th>pH</th>\n",
" <th>sulphates</th>\n",
" <th>alcohol</th>\n",
" <th>quality</th>\n",
" <th>color</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td> 7.4</td>\n",
" <td> 0.70</td>\n",
" <td> 0.00</td>\n",
" <td> 1.9</td>\n",
" <td> 0.076</td>\n",
" <td> 11</td>\n",
" <td> 34</td>\n",
" <td> 0.9978</td>\n",
" <td> 3.51</td>\n",
" <td> 0.56</td>\n",
" <td> 9.4</td>\n",
" <td> 5</td>\n",
" <td> red</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td> 7.8</td>\n",
" <td> 0.88</td>\n",
" <td> 0.00</td>\n",
" <td> 2.6</td>\n",
" <td> 0.098</td>\n",
" <td> 25</td>\n",
" <td> 67</td>\n",
" <td> 0.9968</td>\n",
" <td> 3.20</td>\n",
" <td> 0.68</td>\n",
" <td> 9.8</td>\n",
" <td> 5</td>\n",
" <td> red</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td> 7.8</td>\n",
" <td> 0.76</td>\n",
" <td> 0.04</td>\n",
" <td> 2.3</td>\n",
" <td> 0.092</td>\n",
" <td> 15</td>\n",
" <td> 54</td>\n",
" <td> 0.9970</td>\n",
" <td> 3.26</td>\n",
" <td> 0.65</td>\n",
" <td> 9.8</td>\n",
" <td> 5</td>\n",
" <td> red</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td> 11.2</td>\n",
" <td> 0.28</td>\n",
" <td> 0.56</td>\n",
" <td> 1.9</td>\n",
" <td> 0.075</td>\n",
" <td> 17</td>\n",
" <td> 60</td>\n",
" <td> 0.9980</td>\n",
" <td> 3.16</td>\n",
" <td> 0.58</td>\n",
" <td> 9.8</td>\n",
" <td> 6</td>\n",
" <td> red</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td> 7.4</td>\n",
" <td> 0.70</td>\n",
" <td> 0.00</td>\n",
" <td> 1.9</td>\n",
" <td> 0.076</td>\n",
" <td> 11</td>\n",
" <td> 34</td>\n",
" <td> 0.9978</td>\n",
" <td> 3.51</td>\n",
" <td> 0.56</td>\n",
" <td> 9.4</td>\n",
" <td> 5</td>\n",
" <td> red</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"output_type": "pyout",
"prompt_number": 109,
"text": [
" fixed acidity volatile acidity citric acid residual sugar chlorides \\\n",
"0 7.4 0.70 0.00 1.9 0.076 \n",
"1 7.8 0.88 0.00 2.6 0.098 \n",
"2 7.8 0.76 0.04 2.3 0.092 \n",
"3 11.2 0.28 0.56 1.9 0.075 \n",
"4 7.4 0.70 0.00 1.9 0.076 \n",
"\n",
" free sulfur dioxide total sulfur dioxide density pH sulphates alcohol \\\n",
"0 11 34 0.9978 3.51 0.56 9.4 \n",
"1 25 67 0.9968 3.20 0.68 9.8 \n",
"2 15 54 0.9970 3.26 0.65 9.8 \n",
"3 17 60 0.9980 3.16 0.58 9.8 \n",
"4 11 34 0.9978 3.51 0.56 9.4 \n",
"\n",
" quality color \n",
"0 5 red \n",
"1 5 red \n",
"2 5 red \n",
"3 6 red \n",
"4 5 red "
]
}
],
"prompt_number": 109
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"df.describe()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>fixed acidity</th>\n",
" <th>volatile acidity</th>\n",
" <th>citric acid</th>\n",
" <th>residual sugar</th>\n",
" <th>chlorides</th>\n",
" <th>free sulfur dioxide</th>\n",
" <th>total sulfur dioxide</th>\n",
" <th>density</th>\n",
" <th>pH</th>\n",
" <th>sulphates</th>\n",
" <th>alcohol</th>\n",
" <th>quality</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>count</th>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" <td> 6497.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>mean</th>\n",
" <td> 7.215307</td>\n",
" <td> 0.339666</td>\n",
" <td> 0.318633</td>\n",
" <td> 5.443235</td>\n",
" <td> 0.056034</td>\n",
" <td> 30.525319</td>\n",
" <td> 115.744574</td>\n",
" <td> 0.994697</td>\n",
" <td> 3.218501</td>\n",
" <td> 0.531268</td>\n",
" <td> 10.491801</td>\n",
" <td> 5.818378</td>\n",
" </tr>\n",
" <tr>\n",
" <th>std</th>\n",
" <td> 1.296434</td>\n",
" <td> 0.164636</td>\n",
" <td> 0.145318</td>\n",
" <td> 4.757804</td>\n",
" <td> 0.035034</td>\n",
" <td> 17.749400</td>\n",
" <td> 56.521855</td>\n",
" <td> 0.002999</td>\n",
" <td> 0.160787</td>\n",
" <td> 0.148806</td>\n",
" <td> 1.192712</td>\n",
" <td> 0.873255</td>\n",
" </tr>\n",
" <tr>\n",
" <th>min</th>\n",
" <td> 3.800000</td>\n",
" <td> 0.080000</td>\n",
" <td> 0.000000</td>\n",
" <td> 0.600000</td>\n",
" <td> 0.009000</td>\n",
" <td> 1.000000</td>\n",
" <td> 6.000000</td>\n",
" <td> 0.987110</td>\n",
" <td> 2.720000</td>\n",
" <td> 0.220000</td>\n",
" <td> 8.000000</td>\n",
" <td> 3.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25%</th>\n",
" <td> 6.400000</td>\n",
" <td> 0.230000</td>\n",
" <td> 0.250000</td>\n",
" <td> 1.800000</td>\n",
" <td> 0.038000</td>\n",
" <td> 17.000000</td>\n",
" <td> 77.000000</td>\n",
" <td> 0.992340</td>\n",
" <td> 3.110000</td>\n",
" <td> 0.430000</td>\n",
" <td> 9.500000</td>\n",
" <td> 5.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50%</th>\n",
" <td> 7.000000</td>\n",
" <td> 0.290000</td>\n",
" <td> 0.310000</td>\n",
" <td> 3.000000</td>\n",
" <td> 0.047000</td>\n",
" <td> 29.000000</td>\n",
" <td> 118.000000</td>\n",
" <td> 0.994890</td>\n",
" <td> 3.210000</td>\n",
" <td> 0.510000</td>\n",
" <td> 10.300000</td>\n",
" <td> 6.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>75%</th>\n",
" <td> 7.700000</td>\n",
" <td> 0.400000</td>\n",
" <td> 0.390000</td>\n",
" <td> 8.100000</td>\n",
" <td> 0.065000</td>\n",
" <td> 41.000000</td>\n",
" <td> 156.000000</td>\n",
" <td> 0.996990</td>\n",
" <td> 3.320000</td>\n",
" <td> 0.600000</td>\n",
" <td> 11.300000</td>\n",
" <td> 6.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>max</th>\n",
" <td> 15.900000</td>\n",
" <td> 1.580000</td>\n",
" <td> 1.660000</td>\n",
" <td> 65.800000</td>\n",
" <td> 0.611000</td>\n",
" <td> 289.000000</td>\n",
" <td> 440.000000</td>\n",
" <td> 1.038980</td>\n",
" <td> 4.010000</td>\n",
" <td> 2.000000</td>\n",
" <td> 14.900000</td>\n",
" <td> 9.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"output_type": "pyout",
"prompt_number": 110,
"text": [
" fixed acidity volatile acidity citric acid residual sugar chlorides \\\n",
"count 6497.000000 6497.000000 6497.000000 6497.000000 6497.000000 \n",
"mean 7.215307 0.339666 0.318633 5.443235 0.056034 \n",
"std 1.296434 0.164636 0.145318 4.757804 0.035034 \n",
"min 3.800000 0.080000 0.000000 0.600000 0.009000 \n",
"25% 6.400000 0.230000 0.250000 1.800000 0.038000 \n",
"50% 7.000000 0.290000 0.310000 3.000000 0.047000 \n",
"75% 7.700000 0.400000 0.390000 8.100000 0.065000 \n",
"max 15.900000 1.580000 1.660000 65.800000 0.611000 \n",
"\n",
" free sulfur dioxide total sulfur dioxide density pH \\\n",
"count 6497.000000 6497.000000 6497.000000 6497.000000 \n",
"mean 30.525319 115.744574 0.994697 3.218501 \n",
"std 17.749400 56.521855 0.002999 0.160787 \n",
"min 1.000000 6.000000 0.987110 2.720000 \n",
"25% 17.000000 77.000000 0.992340 3.110000 \n",
"50% 29.000000 118.000000 0.994890 3.210000 \n",
"75% 41.000000 156.000000 0.996990 3.320000 \n",
"max 289.000000 440.000000 1.038980 4.010000 \n",
"\n",
" sulphates alcohol quality \n",
"count 6497.000000 6497.000000 6497.000000 \n",
"mean 0.531268 10.491801 5.818378 \n",
"std 0.148806 1.192712 0.873255 \n",
"min 0.220000 8.000000 3.000000 \n",
"25% 0.430000 9.500000 5.000000 \n",
"50% 0.510000 10.300000 6.000000 \n",
"75% 0.600000 11.300000 6.000000 \n",
"max 2.000000 14.900000 9.000000 "
]
}
],
"prompt_number": 110
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"clf = RandomForestClassifier(compute_importances=True)\n",
"df['is_red'] = np.where(df['color']=='red', 1.0, 0.0)\n",
"features = df.columns[0:12]\n",
"clf.fit(df[features], df['is_red'])"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 111,
"text": [
"RandomForestClassifier(bootstrap=True, compute_importances=True,\n",
" criterion='gini', max_depth=None, max_features='auto',\n",
" min_density=0.1, min_samples_leaf=1, min_samples_split=2,\n",
" n_estimators=10, n_jobs=1, oob_score=False, random_state=None,\n",
" verbose=0)"
]
}
],
"prompt_number": 111
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"importances = pd.DataFrame({\n",
" \"feature\": features,\n",
" \"importance\": clf.feature_importances_\n",
"})\n",
"importances = importances.sort([\"importance\"], ascending=[0])\n",
"importances"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>feature</th>\n",
" <th>importance</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>4 </th>\n",
" <td> chlorides</td>\n",
" <td> 0.434997</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6 </th>\n",
" <td> total sulfur dioxide</td>\n",
" <td> 0.225794</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7 </th>\n",
" <td> density</td>\n",
" <td> 0.077465</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1 </th>\n",
" <td> volatile acidity</td>\n",
" <td> 0.071125</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3 </th>\n",
" <td> residual sugar</td>\n",
" <td> 0.068697</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9 </th>\n",
" <td> sulphates</td>\n",
" <td> 0.048883</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8 </th>\n",
" <td> pH</td>\n",
" <td> 0.019856</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5 </th>\n",
" <td> free sulfur dioxide</td>\n",
" <td> 0.018856</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2 </th>\n",
" <td> citric acid</td>\n",
" <td> 0.013202</td>\n",
" </tr>\n",
" <tr>\n",
" <th>0 </th>\n",
" <td> fixed acidity</td>\n",
" <td> 0.012037</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td> alcohol</td>\n",
" <td> 0.006845</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td> quality</td>\n",
" <td> 0.002242</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"output_type": "pyout",
"prompt_number": 112,
"text": [
" feature importance\n",
"4 chlorides 0.434997\n",
"6 total sulfur dioxide 0.225794\n",
"7 density 0.077465\n",
"1 volatile acidity 0.071125\n",
"3 residual sugar 0.068697\n",
"9 sulphates 0.048883\n",
"8 pH 0.019856\n",
"5 free sulfur dioxide 0.018856\n",
"2 citric acid 0.013202\n",
"0 fixed acidity 0.012037\n",
"10 alcohol 0.006845\n",
"11 quality 0.002242"
]
}
],
"prompt_number": 112
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"importances = importances.sort([\"importance\"], ascending=[1])\n",
"names = importances['feature'].tolist()\n",
"pl.barh(np.arange(len(importances)), importances['importance'])\n",
"pl.yticks(0.5 + np.arange(len(importances)), names)\n",
"pl.title(\"Feature Importance\")\n",
"pl.xlabel(\"Relative Importance\")"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 115,
"text": [
"<matplotlib.text.Text at 0x10cb811d0>"
]
},
{
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAcgAAAEWCAYAAADilQe1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlclNX+B/DPiAsqg2CKu+JSKgkzMIBXZBlQUAvMldwo\nUOtqm2VZmhZwu3bzuqWZZv4M1KumYuIW5o2cRMRwIbEURWUwzQwVZZft/P4gnsvAsCkwA37er9e8\nmmfmnPN8n4fky3me85wjE0IIEBERkY5mhg6AiIjIGDFBEhER6cEESUREpAcTJBERkR5MkERERHow\nQRIREenBBElUD6ytrdGmTRvI5XLI5XKYm5vjjz/+eOQ2f/jhhzqKsHohISEICAhosP1VJTw8HG5u\nboYOgx4zTJBE9UAmk+HAgQPIzMxEZmYmMjIy0Llz50du81EeWy4qKqr1/oxBYWGhoUOgxxQTJFED\nun//PmbMmIGuXbuie/fu+OCDD1BcXAwAuHLlCry8vNChQwd07NgR06ZNw/379wEAAQEBuHbtGvz8\n/CCXy7Fs2TJoNBr06NFDp/2yvcyQkBBMmDABAQEBaNeuHTZt2lTl/ssrn4ybNWuGdevW4cknn4S5\nuTk+/PBDXLlyBUOGDIGFhQUmTZqEgoICAIBGo0H37t3xr3/9Cx07dkTv3r2xbds2nfPwwgsvwMrK\nCtbW1li8eLG0v/DwcAwdOhRz585Fhw4dMGnSJMyePRtxcXGQy+Vo3749AODgwYOwt7dHu3bt0LNn\nT4SGhkrta7VaNGvWDJs3b0avXr3QsWNHfPzxx9L3xcXF+Pjjj9GvXz+Ym5vD0dER169fBwAkJSXB\n29sbTzzxBAYMGIBdu3bV8qdMTYYgojpnbW0tvv/++wqfjxkzRsyaNUvk5OSIP//8Uzg7O4v169cL\nIYS4fPmy+P7770V+fr5IS0sT7u7u4s0339RpMzo6Wto+cuSI6N69e4X9lpYJDg4WLVq0EHv37hVC\nCJGbm1vl/ssLDg4W06ZNk7ZlMpkYM2aMyMzMFL/++qto2bKl8PT0FCkpKeL+/fvCxsZGbNq0SYqt\nefPm4u233xb5+fnixx9/FG3bthUXL14UQggREBAgxowZI7KysoRWqxVPPfWU2LhxoxBCiLCwMNG8\neXOxZs0aUVRUJHJzc0V4eLhwdXXViU+j0YhffvlFCCFEYmKi6NSpk4iMjBRCCJGSkiJkMpl4+eWX\nRV5enjh79qxo1aqVSEpKEkII8e9//1vY2tqKS5cuSfXv3LkjsrKyRPfu3UV4eLgoKioSCQkJokOH\nDuL8+fOV/KSpKWOCJKoHvXr1EmZmZsLCwkJYWFiIsWPHij/++EO0atVK5ObmSuW2bdsmPD099bax\nZ88eYW9vL20/TIL08PCQvqvt/vUlyOPHj0vbKpVK/Pvf/5a23377bSmhlybInJwc6Xt/f3/x0Ucf\nicLCQtGyZUtx4cIF6bv169cLtVothChJkD179tSJJSwsrEKCLG/OnDnirbfeEkL8L0HeuHFD+t7Z\n2Vns2LFDCCHEU089Jfbt21ehja+//lq4ubnpfPbyyy+L0NDQKvdNTVNzQ/dgiZoimUyGvXv3wsvL\nS/osPj4eBQUF6NKli/RZcXExevbsCQC4desW5syZg2PHjiEzMxPFxcXS5cSH1b17d+l9ampqlfuv\niU6dOknvW7durbNtamqKW7duSduWlpZo3bq1tN2rVy/cvHkTd+7cQUFBAXr16iV917NnT9y4cUPa\nLn/pWJ+ffvoJ8+fPx6+//or8/Hw8ePAA/v7+OmXK3vdt06YNsrKyAADXr19H3759K7SZmpqKn376\nCZaWltJnhYWFeOGFF6qNh5oe3oMkaiA9evRAq1atcOfOHaSnpyM9PR3379/HuXPnAADvv/8+TExM\n8Msvv+D+/fvYsmWLzv3B8oNm2rZti5ycHGm7qKgIaWlpOmXK1qlu/+XVdpBO+fLp6ek68aWmpqJr\n167o0KEDWrRoAa1WK3137do1nWRevi19sUyZMgVjxozB9evXce/ePcyaNavS+6nl9ejRA5cvX67w\nec+ePeHh4SGdn/T0dGRmZuLzzz+vUbvUtDBBEjWQLl26wMfHB3PnzpV6iFeuXMHRo0cBAFlZWWjb\nti3Mzc1x48YNLF26VKd+p06dcOXKFWn7qaeeQl5eHr799lsUFBTgn//8Jx48ePDQ+y9P1GDEbNky\n+soHBwejoKAAMTExOHjwICZOnIhmzZrB398fCxcuRFZWFlJTU7Fy5UpMmzat0v107twZ169flwYB\nASXny9LSEi1btkR8fDy2bdtW46Q+c+ZMfPDBB7h8+TKEEEhMTMTdu3fh6+uLS5cu4T//+Q8KCgpQ\nUFCAkydPIikpqUbtUtPCBEnUgDZv3oz8/HzY2Nigffv2mDhxovR8ZHBwMM6cOYN27drBz88P48eP\n1/mFv2DBAvzzn/+EpaUlVqxYgXbt2mHt2rWYOXMmunfvDjMzM51LkzKZrELCqGr/5ZWvry/5lP++\n7Hbnzp1haWmJrl27IiAgAOvXr8dTTz0FAPjss8/Qtm1b9OnTB25ubpg6dSqCgoIqjdvLywtPP/00\nOnfuDCsrKwDA2rVr8eGHH8Lc3BwfffQRnn/++UpjK2/u3Lnw9/eHj48P2rVrh5deegl5eXkwMzPD\n4cOH8fXXX6Nbt27o0qULFixYgPz8/ErboqZLJmryZyIRUS1oNBoEBATgt99+M3QoRA+NPUgiIiI9\nmCCJqF4Yy0w8RA+Ll1iJiIj04HOQRo5/hRMR1V5d9P14ibURECUzHhnNKzg42OAxMKamE5OxxsWY\nGm9MdYUJkoiISA/egzRyvMRKRATI5ZbIyLhbo7KPujRcKfYgGwVhZK8jRhADY2o6MRlrXIzJmGLK\nzExHQ2MP0siV9CD5IyKix13Ne4XsQT6CwMBA7N69u8LnWq0Wtra2tWrr999/x8SJE/V+p1arcfr0\n6YeKkYiIDOuxTJB1dV+vsLAQXbt2rXTFcX1zShIRUePwWCTIzZs3Q6FQQKlUSuu6HT16FEOHDkXf\nvn319ibz8vIQFBQEOzs7ODg4QKPRAADCw8MxevRoDBs2DN7e3khNTcWgQYMAALm5uZg0aRJsbGww\nbtw45ObmSu0dPnwYLi4uUKlU8Pf3R3Z2NgBg/vz5ePrpp6FQKDBv3rx6PhNERFRTTX6igF9//RWL\nFy9GXFwc2rdvj/T0dMydOxd//PEHYmNjceHCBYwePRrjx4/Xqff555/DxMQEiYmJuHjxInx8fHDp\n0iUAQEJCAs6dOwcLCwtotVqpl7hu3TqYmZnh/PnzOHfuHBwcHAAAt2/fxuLFixEdHY3WrVtjyZIl\nWLFiBV599VVERkZKS+lkZGRUchQhZd6r/3oRERFQMjl+aSemLjX5BPnDDz/A399fWpm9dKXwMWPG\nAAAGDhyoswp6qdjYWLzxxhsAgP79+6NXr164dOkSZDIZvL29YWFhUaFOTEwM5syZAwCwtbWFnZ0d\nAODEiRM4f/48XFxcAAD5+flwcXFBu3btYGpqihkzZsDX1xe+vr6VHEXIQx8/EVFTp1aroVarpe3Q\n0NA6abfJJ8jKRjO1bNlSel/ZaKfKPm/btm2l+ytfp3Tb29sb27Ztq1A+Pj4e0dHRiIiIwJo1axAd\nHV1p20RE1HCa/D1ILy8v7Nq1C3fvljxgWvrf6ri5uWHr1q0AgEuXLuHatWsYMGBAlUOH3d3dpST4\nyy+/IDExETKZDH/7298QGxsrrQafnZ2N5ORkZGdn4969exg1ahRWrFiBs2fPPsqhEhFRHWryPUgb\nGxssXLgQHh4eMDExgb29fZUrpZe+f+WVVzB79mzY2dmhefPm2LRpE1q0aKF3ZGrp9uzZsxEUFAQb\nGxsMHDgQjo6OAIAOHTogPDwckydPxoMHDwAAixcvhlwux3PPPYe8vDwIIbBy5cp6PRdERFRznCjA\nyHGiACIigBMFEBERGQkmSCIiIj2YIImIiPRo8oN0mgZOV0dEjze53LLB98kE2QhwHBURUcPjJVYi\nIiI9mCCJiIj04CXWRoBLZpGxksstkZFRs9mpiBobThRg5DhRABm3unkgm6gucaIAIiKielRlgrx/\n/z7WrVtXbSOpqanYvn17teW0Wi1sbW1rHl0lQkJCsHz5cgBAUlISlEolVCoVUlJSHrltALC2tpYm\nNR86dOhDtbF+/Xps2bKlwud1dQ6IiKh+VZkg09PTsXbt2mobSUlJ0buUU30pO2F4ZGQkJk6ciNOn\nT6N37941ql9UVFRt+6ViY2MfKsa///3vCAgIeKi6RERkeFUmyPnz5+PKlSuwt7fHe++9BwCYN2+e\ntBjwzp07pXIxMTGwt7fHqlWrkJqaCnd3d6hUKqhUKsTFxVUZxM2bN+Hu7g57e3vY2tpKScnMzEwq\nExERgaCgIGlbCIGoqCisWrUK69atw7Bhw5CamqrTO1u2bJm0cKZarcZbb70FJycnrF69Wmf/d+7c\ngY+PDwYNGoSXXnpJ59p1aQxCCL3H/uabb+Kjjz4CAHz33Xfw8PCAEEKnl3v69GkoFAoolUqdPziK\nioowb948ODs7Q6FQ4Msvv6zyPBERUcOpchTrkiVL8OuvvyIhIQEAsHv3bpw9exaJiYlIS0uDk5MT\n3N3dsWTJEixbtgz79+8HAOTm5uK///0vWrVqheTkZEyZMgUnT56sdD/bt2/HyJEj8f7776O4uBg5\nOTkA9C9DVdaoUaMwa9YsyOVyzJ07F1qtVuf7sj1NmUyGgoICvXGEhobC3d0dixYtwrfffouNGzdW\n2O8333xT4dg9PDzwr3/9C05OTnB1dcWcOXMQFRUl7be0blBQENauXQtXV1e8++67UtsbN26EhYUF\n4uPj8eDBA7i6usLHxwfW1tblIgwp817914uIiABAo9FAo9HUebtVJsjyo4BiY2MxZcoUyGQyWFlZ\nwcPDAydPnoS5ublOufz8fLz22ms4e/YsTExMcOnSpSqDcHJywvTp01FQUIAxY8ZAoVDU6iCqGq1U\n9rvnn39eb5mYmBjs2bMHAPDMM8/A0rLilEbHjh2rcOzx8fHw8/PDhg0b4ObmhlWrVlW4zHv//n3c\nv38frq6uAICAgABERUUBAA4fPoxz584hIiICAJCRkYHLly9XkyCJiKgstVoNtVotbZdeOXxUtR7F\nWj4Z6evZrVy5El26dEFiYiJOnTqF/Pz8Ktt0c3NDTEwMunXrhsDAQGlwS9m2c3Nzq42tefPmKC4u\n1qlTto22bdtWWre6IcHlhw0LIaS2ExMT0bFjR9y4caPaGMvvZ82aNUhISEBCQgKuXLmC4cOHV9sG\nERHVvyoTpFwuR2ZmprTt5uaGHTt2oLi4GGlpaTh69CicnZ1hZmamUy4jIwOdO3cGAGzevLnaQTHX\nrl1Dx44dMXPmTMyYMUO6pNupUyckJSWhuLhY6uEBlSezTp064c8//8Tdu3fx4MEDHDhwoJrDL+Hu\n7i4NMoqKikJ6enqFMuWPPSYmBs7OzkhNTcWKFSuQkJCAqKgoxMfH68TZrl07WFhYSPdVt27dKn0/\nYsQIrF27FoWFhQCAS5cuSZeXiYjIsKq8xPrEE09g6NChsLW1xTPPPIMlS5YgLi4OCoUCMpkMS5cu\nhZWVFdq3bw8TExMolUoEBQXhlVdewfjx47F582aMHDlSZ7CNvh6nRqPB0qVL0aJFC8jlcmzevBkA\n8Mknn8DX1xcdO3aEo6MjsrOzpTb03Z9s0aIFPvzwQzg7O6Nbt26wsbGp0UkIDg7G5MmTsX37dri4\nuKBXr14V2h47dqzeY/f29sby5cvRuXNnbNy4EYGBgdJ9ztK6YWFhmD59OmQyGXx8fKTPZ86cCa1W\nCwcHBwghYGVlpfOHABERGQ5n0jFynEmHjBtn0iHjw5l0iIiI6hETJBERkR5MkERERHpwuatGgctd\nkXGSyys+M0zUVDBBNgIcBEFE1PB4iZWIiEgPJkgiIiI9eIm1EdA3uUJTIpdbIiPjrqHDICLSwR5k\nOWWXqaoLzz77LDIyMmq8+LR+okm/MjMrTu1HRGRoTJDl1HVv7eDBgzA3N6/x4tNERGQcmCABLF68\nGP3794ebmxsuXrwIALhy5QpGjRoFR0dHuLu7S58HBgZizpw5GDp0KPr27Yvdu3cDqHzRZ2tra9y5\nc0dn8el3330XL774Ivbu3SvFMHXqVOzbt6+Bj5yIiColHnOnTp0Stra2Ijc3V2RkZIh+/fqJZcuW\niWHDhonk5GQhhBAnTpwQXl5eQgghXnzxReHv7y+EEOL8+fOiX79+Qgghli1bJhYvXiyEEKKoqEhk\nZmYKIYSwtrYWd+7cEVqtVgwaNEja748//ijGjBkjhBDi3r17onfv3qKoqKhCfAAEIJr467H/35CI\n6lBd/U557AfpxMTEYNy4cTA1NYWpqSlGjx6NvLw8HD9+HBMnTpTKla5pKZPJMGbMGADAwIEDcevW\nLQCAs7NzlYs+i3LPMrq7u+OVV17B7du3ERERgQkTJqBZs8o69CFl3qv/ehEREVCyIpRGo6nzdh/7\nBKlv1vfi4mJYWFhI61KW17JlS+l9ad3SRZ8PHDiAwMBAzJ07FwEBAVXu+4UXXsCWLVuwY8cOhIeH\nV1EypCaHQkT0WFKr1VCr1dJ2aGhonbT72N+DdHd3R2RkJPLy8pCZmYn9+/ejTZs26N27NyIiIgCU\nJMHExMQq26ls0edS5RefBkruZ3766aeQyWQYMGBA3R4YERE9ksc+Qdrb2+P555+HQqHAM888A2dn\nZ8hkMmzduhUbN26EUqnEoEGDdAbQ6Fus+ciRI1AqlXBwcMCuXbswZ84cnf2UXXz6vffeAwBYWVnB\nxsYGQUFBDXCkRERUG1ww2YBycnJgZ2eHhIQEyOVyvWUejwWTueguEdUdLpjcyH3//fewsbHBG2+8\nUWlyJCIiw2EP0sixB0lEVDvsQRIREdUjJkgiIiI9HvvnIBuHpr+aBxGRsWGCbAR4f46IqOHxEisR\nEZEeTJBERER68BJrI1DXa1QaklxuiYyMu4YOg4ioWnwO0sg1vecg+cwjEdWvx+I5SK1WC1tb2yrL\npKamYvv27dL26dOnpXlQw8PD8frrr9dbfMHBwYiOjq7wuUajgZ+fHwBg//79WLJkCQAgMjISFy5c\nqLd4iIio7jT6S6wpKSnYtm0bJk+eDABQqVRQqVQA6v/SZE2WVPHz85OSZWRkJPz8/DBw4MB6jYuI\niB5dg/YgFyxYgLVr10rbISEhWL58OQBg3rx5sLW1hZ2dHXbu3Fmhrlarhbu7u5QA4+LiAADz589H\nTEwM7O3t8emnn+r03sp2sdPS0jBhwgQ4OzvD2dkZx48fr/E+AGDJkiWws7ODUqnE+++/D6Bkuard\nu3cDAA4dOoSBAwdCpVJhz549Ur3SXmxcXBz279+PefPmwcHBAVevXpUSOQAkJyfrbBMRkYGJBpSQ\nkCA8PDykbRsbG3H9+nUREREhvL29RXFxsbh165bo2bOn+OOPP0RKSooYNGiQEEKInJwckZeXJ4QQ\n4tKlS8LR0VEIIYRGoxG+vr5Sm0eOHJG2w8LCxGuvvSaEEGLy5Mni2LFjQgghUlNTxcCBAyvEV9k+\nvv32W+Hi4iJyc3OFEEKkp6cLIYQIDAwUu3fvFrm5uaJHjx7i8uXLQggh/P39hZ+fX4UYSsuX8vT0\nFD///LMQQogFCxaINWvWVIgJgABEE3o16P9yRPQYqqvfMw16iVWpVOLPP//EzZs38eeff8LS0hLd\nunXDsWPHMGXKFMhkMlhZWcHDwwPx8fE69x/z8/Px2muv4ezZszAxMUFycnJpgq/Rvr///nud+3+Z\nmZnIyclBmzZtqt3H999/j+nTp8PU1BQAYGFhIdURQiApKQm9e/dG3759AQDTpk3Dl19+qTeOsvHO\nnDkTYWFhWLFiBXbu3ImTJ09WEn1Imffqv15ERASUjPvQaDR13m6D34OcOHEiIiIi8Mcff2DSpEkA\n9I84Kn//cOXKlejSpQu2bNmCoqIiKVnVlBACP/30E1q2bFlpmcr2Ud2IqPKx1rTs+PHjERoaCi8v\nLzg6OsLSsrIp10IqbY+I6HGnVquhVqul7ZqMD6mJBh/F+vzzz2P79u2IiIjAxIkTAQBubm7YsWMH\niouLkZaWhqNHj8LZ2VmnXkZGBjp37gwA2Lx5M4qKigAAcrkcmZmZ1e7Xx8cHq1evlrZ//vnnCmUq\n24e3tzfCwsKQm5sLAEhPT5fqyGQyDBgwAFqtFlevXgUAnVG1ZcnlcmRkZEjbrVq1wogRIzB79mwE\nBQVVewxERNRwGjxB2tjYICsrC927d0enTp0AAGPHjoWdnR0UCgWGDRuGpUuXwsrKCsD/elyvvPIK\nNm3aBKVSiYsXL8LMzAwAoFAoYGJiAqVSiU8//RQymUyqU/b96tWrcerUKSgUCjz99NN6L4FWto8R\nI0Zg9OjRcHR0hL29vTSwqFSrVq3w5Zdf4tlnn4VKpUKnTp30xjBp0iQsXboUKpUKKSkpAIApU6ag\nWbNm8PHxqbuTTEREj4wTBRjYsmXLkJmZWeklAU4UQERUO3U1UUCjfw6yMRs7dixSUlLwww8/GDoU\nIiIqhz1II8ceJBFR7TwWU80REREZChMkERGRHrwH2Sg0reWuiIgaAybIRoD37IiIGh4vsRIREenB\nBElERKQHL7E2AvW9rmVDkcstkZFx19BhEBHVSKPsQb700ks6K3OUKl178WGVTi1nfESTeGVm/m8O\nWyIiY2fwHmTpAJTa9JI2bNhQL7EYQ0+tuLgYzZo1yr9biIiaFIP8JtZqtejfvz9efPFF2Nra4rff\nfsPSpUvh7OwMhUKBkJAQAEB2djaeffZZKJVK2NraYteuXQBKljY5ffo0ACAsLAz9+/fH4MGDcfz4\ncWkfgYGB2L17t7Rd2jvMysrC8OHDoVKpYGdnh3379lUZa2UxWFtb4+7dksuFp06dgqenJwAgLS0N\n3t7eGDRoEF566SWdcmPHjoWjoyMGDRqkk+TNzMzwzjvvQKlU4sSJEw99XomIqO4YrAd5+fJlbNmy\nBc7Ozjh8+DAuX76M+Ph4FBcX47nnnkNMTAzS0tLQrVs3HDx4EACkpaJKV8i4efMmQkJCcObMGZib\nm8PT0xMODg5SmbJKt1u3bo09e/ZALpfj9u3bGDJkCEaPHl1pnIcOHdKJoXRprcp6m6GhoRg+fDje\ne+89fPfdd9i4caP03VdffQVLS0vk5ubC2dkZEyZMgKWlJXJycvC3v/0Ny5Yte5hTSURE9cBgCbJX\nr17Smo+HDx/G4cOHYW9vD6Ck13b58mW4urri7bffxvz58+Hr6wtXV1epfukCyGq1Gk888QSAkrUm\nL126VOV+i4uLsWDBAsTExKBZs2b4/fff8eeff0rLa5VnZ2eHd955R28M+sTGxiIyMhJAyTJZZRdB\nXrVqlfTdb7/9huTkZDg7O8PExATjx4+votWQMu/Vf72IiAgANBoNNBpNnbdrsATZtm1bne0FCxbg\n5ZdfrlAuISEBBw8exKJFizBs2DB88MEH0nfle3FlH6hv3rw5iouLAZQkxfz8fADA1q1bcfv2bZw5\ncwYmJibo3bs38vLyKo3zySef1BtD2fbL19f3YL9Go0F0dDROnDgBU1NTeHp6SvVMTU2ruf8ZUsV3\nRESPN7VaDbVaLW1XtnxgbRnFaJARI0bgq6++QnZ2NgDgxo0bSEtLw82bN2FqaoqpU6finXfeQUJC\nglRHJpNh8ODB+PHHH3H37l0UFBRg165dUqKxtraW7lPu27cPBQUFAEou01pZWcHExARHjhxBampq\nlbFVFoO1tTVOnToFADr3OocOHYqdO3cCKOkZp6enS/u1tLSEqakpkpKSeK+RiMjIGawHWbbH5O3t\njQsXLmDIkCEAALlcji1btuDy5cuYN28emjVrhhYtWuCLL77QaaNz584ICQnBkCFDYGFhIV2iBUoe\nBXnuueegVCoxcuRIaZDO1KlT4efnBzs7Ozg6OmLgwIF6Yyp17tw5vTEEBwdjxowZMDc3h1qtluoG\nBwdj8uTJ2LJlC4YMGYLOnTtDLpdj5MiR+OKLL2BjY4P+/ftLx1rZfomIyLC4HmQdy8/Ph4mJCUxM\nTBAXF4dXX30VZ86ceej2mtZ6kFwLkojqX12tB2nw5yCbmmvXrsHf3x/FxcVo2bJlvT2zSURE9Ys9\nSCPHHiQRUe3UVQ/SKAbpEBERGRsmSCIiIj2YIImIiPTgIJ1GoWk8BiKXW1ZfiIjISDBBNgIc2EJE\n1PB4iZWIiEgP9iAbAWOaaUcut0RGxl1Dh0FEVO/4HKSRM77nIPksIxEZNz4HWUfCw8Px+uuvP3KZ\n8j799FPk5uY+SmhERGRAj32CrMnly4e5xLlq1Srk5OQ8TEhERGQEmmSCzM7OxrPPPgulUglbW1vs\n3LkTvXv3xt27JffOTp06BU9PTwC6I0QDAwMxa9YsODk5oX///jh48KD03e+//45Ro0bhqaeewnvv\nvSd9/sorr8DJyQmDBg1CSEgIAGD16tX4/fff4enpiWHDhgEoWfrKxcUFKpUK/v7+0tJe8+fPx9NP\nPw2FQoF58+bV63khIqKaa5KDdA4dOoRu3bpJCS4jI0MnqVXl2rVrOHnyJC5fvgxPT09cvnwZQgj8\n/PPP+Pnnn9GyZUv0798fb7zxBrp164bFixfD0tISRUVFGD58OH755Re88cYbWLlyJTQaDdq3b4/b\nt29j8eLFiI6ORuvWrbFkyRKsWLECr776KiIjI5GUlCTFSURExqFJJkg7Ozu88847mD9/Pnx9feHq\n6lqjejKZDP7+/gCAfv36oU+fPkhKSoJMJsOwYcMgl8sBADY2NkhNTUW3bt2wY8cObNiwAYWFhbh5\n8ybOnz+PQYMG6bR74sQJnD9/Hi4uLgBKlsRycXFBu3btYGpqihkzZsDX1xe+vr6VRBZS5r36rxcR\nEQGARqOBRqOp83abZIJ88sknkZCQgIMHD2LRokXw8vJC8+bNUVxcDADIy8urcVul9x9btWolfWZi\nYoLCwkLsgiMrAAAgAElEQVSkpKRg+fLlOHXqFNq1a4egoKBK2/b29sa2bdsqfB4fH4/o6GhERERg\nzZo1iI6O1lM7pMbxEhE9btRqNdRqtbQdGhpaJ+02yXuQN2/ehKmpKaZOnYp33nkHCQkJ6N27N06d\nOgUA2L17t956Qgjs2rULQghcuXIFV69exYABA/QOFxZCIDMzE23btoW5uTlu3bqFqKgo6Xu5XC5d\nMh08eDBiY2Nx5coVACX3SJOTk5GdnY179+5h1KhRWLFiBc6ePVvXp4KIiB5Sk+xBnjt3DvPmzUOz\nZs3QsmVLrFu3Djk5OZgxYwbMzc2hVqulnqFMJtN537NnTzg7OyMjIwPr169Hy5YtdcqUkslksLOz\ng729PQYMGIAePXroXMp9+eWXMXLkSHTr1g3R0dEIDw/H5MmT8eDBAwDA4sWLIZfL8dxzzyEvLw9C\nCKxcubKBzhAREVWHEwWUERQUBD8/P4wbN87QoUg4UQARUe1wogAiIqJ6xB6kkWMPkoiodtiDJCIi\nqkdMkERERHo0yVGsTY9xLXdFRPQ4YIJsBHjPj4io4fESKxERkR5MkERERHowQTYCpTP51OZlbt7e\n0GETETVqfA7SyD38c5B8XpGIHk98DrKRU6vVOH36tLSt1Wpha2trwIiIiKgsJkgD0TcBOhERGQ8m\nyHqm1WoxYMAATJs2DTY2Npg4cSJyc3MB8PENIiJjxnuQ9Uyr1aJPnz6IjY3FkCFDMGPGDNjY2ODA\ngQO4efMmWrduDQDIz8+HiYkJEhMTderzHiQRUe3U1T1IThTQAHr06IEhQ4YAAKZNm4bVq1cDALZt\n2wYHBwcAQGpqKnx9fStpIaTMe/VfLyIiAgCNRgONRlPn7TJBNoCy9xqFENJ22b9wqv5rJ6SeIiMi\navzUajXUarW0HRoaWift8h5kA7h27RpOnDgBoKTX6OrqauCIiIioOkyQDaB///74/PPPYWNjg/v3\n72P27NkAUGEUK0e1EhEZDw7SqWdarRZ+fn44d+7cQ9XnIB0iotrhRAGNCHuGRESND3uQRo49SCKi\n2mEPkoiIqB4xQRIREenB5yAbhdrfw5TLLeshDiKixwcTZCPAe4lERA2Pl1iJiIj0YIIkIiLSgwmy\nEShdO7I2L3Pz9oYOm4ioUeNzkEaOz0ESEdWOQZ6DXL16NWxsbBAQEPDIO34UISEhWL58OQAgKSkJ\nSqUSKpUKKSkpddK+tbU17t69CwAYOnToQ7Wxfv16bNmypcLnWq0Wtra2jxQfERHVv1qNYl23bh2i\no6PRtWtXnc8LCwvRvHnDDYgtvYwIAJGRkZg4cSIWLlxY4/pFRUUwMTGpsv1SsbGxDxXj3//+94eq\nR0RExqHGPchZs2bh6tWrGDlyJD799FOEhoYiICAArq6uePHFF3H79m1MmDABzs7OcHZ2xvHjxwEA\n2dnZmD59OgYPHgwHBwfs27evQts3b96Eu7s77O3tYWtrKyUlMzMzqUxERASCgoKkbSEEoqKisGrV\nKqxbtw7Dhg1DamqqTu9s2bJl0rpgarUab731FpycnKQFi0vduXMHPj4+GDRoEF566SWdrnlpDEII\nzJs3D7a2trCzs8POnTsBAG+++SY++ugjAMB3330HDw8PCCF0ermnT5+GQqGAUqnE2rVrpbaLioow\nb948ODs7Q6FQ4Msvv6zpj4OIiOpZjbt9X3zxBb777jtoNBq0b98eISEhSEpKwrFjx9CqVStMmTIF\nb731FoYOHYpr165h5MiROH/+PBYvXoxhw4bhq6++wr179zB48GAMHz4cbdq0kdrevn07Ro4cifff\nfx/FxcXIyckBoNuT0zfh96hRozBr1izI5XLMnTsXWq1W5/uyPU2ZTIaCggKcPHmyQjuhoaFwd3fH\nokWL8O2332Ljxo0V9vvNN9/g7NmzSExMRFpaGpycnODh4YF//etfcHJygqurK+bMmYOoqCidwTIA\nEBQUhLVr18LV1RXvvvuu1PbGjRthYWGB+Ph4PHjwAK6urvDx8YG1tXW5CEPKvFf/9SIiIgDQaDTQ\naDR13u5DXxeVyWQYPXo0WrVqBQD4/vvvceHCBen7zMxMZGdn4/Dhw9i/fz+WLVsGAHjw4AF+++03\n9O/fXyrr5OSE6dOno6CgAGPGjIFCoahVLFXdjC373fPPP6+3TExMDPbs2QMAeOaZZ2BpWXEWmmPH\njmHKlCmQyWSwsrKCh4cH4uPj4efnhw0bNsDNzQ2rVq1C7969derdv38f9+/flxZJDggIQFRUFADg\n8OHDOHfuHCIiIgAAGRkZuHz5cjUJkoiIylKr1VCr1dJ26ZXDR/VINw7L9gKFEPjpp5/QsmXLCuW+\n+eYbPPnkk5W24+bmhpiYGBw4cACBgYGYO3cuAgICdHqNubm51cbTvHlzFBcX69Qp20bbtm0rrVvd\niKfyo6KEEFLbiYmJ6NixI27cuFFtjOX3s2bNGnh7e1dbj4iIGladPQfp4+Ojc2/v7NmzAIARI0bo\nfJ6QkFCh7rVr19CxY0fMnDkTM2bMkMp06tQJSUlJKC4ulnp4QOXJrFOnTvjzzz9x9+5dPHjwAAcO\nHKhR7O7u7ti2bRsAICoqCunp6RXKuLm5YceOHSguLkZaWhpiYmLg7OyM1NRUrFixAgkJCYiKikJ8\nfLxOnO3atYOFhYV0X3Xr1q3S9yNGjMDatWtRWFgIALh06ZJ0eZmIiAyrVj3I8vcBy26vXr0ar776\nKhQKBQoLC+Hh4YG1a9figw8+wJtvvgk7OzsUFxejT58+FQbqaDQaLF26FC1atIBcLsfmzZsBAJ98\n8gl8fX3RsWNHODo6Ijs7W9qvvvuTLVq0wIcffghnZ2d069YNNjY2NTqu4OBgTJ48Gdu3b4eLiwt6\n9epVoe2xY8ciLi4OCoUCMpkMS5cuhZWVFby9vbF8+XJ07twZGzduRGBgoHSfs7RuWFgYpk+fDplM\nBh8fH+nzmTNnQqvVwsHBAUIIWFlZ6fwhQEREhsOJAowcJwogIqodLphMRERUj5ggiYiI9GCCJCIi\n0oMLJjcKFSdJqI5cXvFZTiIiqjkmyEaAg22IiBoeL7ESERHpwQRJRESkBxNkI1B28nN9L3Pz9oYO\nkYioyeFEAUauZhMFcFIAIqJSnCiAiIioHj02CXL9+vXYsmULACA8PBw3b96stGxwcDCio6PrPY6y\ntFqtzmLPRERkWI/lJVZPT08sW7YMKpWqwnfFxcVo1qzh/27QarXw8/PDuXPndD7nJVYiotrhJdYq\nbN68GQqFAkqlEi+++CIAICQkBMuXL8fu3btx6tQpTJ06FQ4ODsjLy4O1tTXmz58PlUqFXbt2ITAw\nELt37wYAnDx5EkOHDoVSqcTgwYORlZWls6/s7GwMHz4cKpUKdnZ2OiuVVBUHAJw+fVr6fu3atQ1x\naoiIqIaa3EQBv/76KxYvXoy4uDi0b98e9+7dA/C/kaDjx4/HmjVrsHz5cjg4OEjfdejQAadPnwYA\nHDp0CDKZDPn5+Zg0aRJ27twJlUqFrKwstG7dWmd/pqam2LNnD+RyOW7fvo0hQ4Zg9OjR1cYBAEFB\nQVi7di1cXV3x7rvvVnFUIWXeq/96ERERULJkokajqfN2m1yC/OGHH+Dv74/27UsefbCwsNBbrnz3\n+/nnn6/w/cWLF9GlSxfpUqyZmVmFdoqLi7FgwQLExMSgWbNm+P3333Hr1q1q47h//z7u378PV1dX\nAEBAQACioqIqOaqQKo+ZiOhxplaroVarpe3Q0NA6abfJJciaXnsuv/hz27Ztqy2jz9atW3H79m2c\nOXMGJiYm6N27N/Ly8mp9DZz3EImIjEuTuwfp5eWFXbt24e7duwCA9PR06bvSJCSXy5GRkVFlOzKZ\nDP3798fNmzdx6tQpAEBmZiaKiop0ymVkZMDKygomJiY4cuQIUlNTIZPJqo2jXbt2sLCwQGxsLICS\nREtERMajyfUgbWxssHDhQnh4eMDExAQODg746quvAPyvRxgYGIhZs2ahTZs2OH78eKVttWjRAjt2\n7MDrr7+O3NxctGnTBv/97391eptTp06Fn58f7Ozs4OjoiIEDB9Y4jrCwMEyfPh0ymQw+Pj416rES\nEVHDeCwf82hM+JgHEVHt8DEPIiKiesQESUREpAcTJBERkR5NbpBO01T14B253LKB4iAienwwQTYC\nHIBDRNTweImViIhIDyZIIiIiPZggG4HSCc71vczN2xs6PCKiJsnoE+Tq1athY2ODgIAA7N+/H0uW\nLHnkNjUaDfz8/B65ncoWVi7bftmYIyMjceHChYfYk6j0lZmZXlVFIiJ6SEY/SGfdunWIjo5G165d\nAaBOEltdqcmM8X5+flLMkZGR8PPzk6ajIyIi42XUPchZs2bh6tWrGDlyJD799FOEh4fj9ddfBwCM\nGTMGW7ZsAQCsX78e06ZNAwAcPnwYLi4uUKlU8Pf3R3Z2NoCSNR4HDhwIlUqFPXv26N2fVquFu7s7\nVCoVVCoV4uLipO+WLFkCOzs7KJVKvP/++wCgs7ByZe2XxhwXF4f9+/dj3rx5cHBwwNWrV6VltAAg\nOTlZZ5uIiAxMGDlra2tx584dIYQQ4eHh4rXXXhNCCHHr1i3Rr18/cfToUfHUU0+J9PR0kZaWJtzd\n3UVOTo4QQohPPvlE/OMf/xC5ubmiR48e4vLly0IIIfz9/YWfn1+FfeXk5Ii8vDwhhBCXLl0Sjo6O\nQgghvv32W+Hi4iJyc3OFEEKkp6cLIYQIDAwUu3fvrrL9sLAwKebS8qU8PT3Fzz//LIQQYsGCBWLN\nmjUVYgIgAFHFy+h/hEREDaqufi8a/SXWylhZWeEf//gHvLy8EBkZCQsLCxw4cADnz5+Hi4sLACA/\nPx8uLi64ePEievfujb59+wIApk2bhi+//LJCm/n5+Xjttddw9uxZmJiYIDk5GQDw/fffY/r06TA1\nNQWgu/ixEAJJSUk1ar+0fKmZM2ciLCwMK1aswM6dO3Hy5MlKjjakzHv1Xy8iIgJKxn1oNJo6b7fR\nJkgASExMRIcOHXDjxg3pM29vb2zbtk2n3NmzZ3W2RSUP3q9cuRJdunTBli1bUFRUJCXE6maGL79M\nVU3Ljh8/HqGhofDy8oKjoyMsLSubESek0vaIiB53arUaarVa2q7J+JCaMOp7kOWVTTzx8fE4dOgQ\nzpw5g2XLlkGr1WLw4MGIjY3FlStXAADZ2dlITk7GgAEDoNVqcfXqVQDA9u3b9bafkZGBzp07AwA2\nb94sLY7s7e2NsLAw5ObmAtBd/Fgmk9W4/fILNbdq1QojRozA7NmzERQU9FDnhIiI6ofRJ8iyPa7S\nZ//y8/Px8ssvIywsDF26dMHy5csxffp0dOzYEeHh4Zg8eTIUCoV0ebVVq1b48ssv8eyzz0KlUqFT\np056Fyd+5ZVXsGnTJiiVSly8eBFmZmYAgBEjRmD06NFwdHSEvb09li9frlOvqvZLYwaASZMmYenS\npVCpVEhJSQEATJkyBc2aNYOPj0+9nD8iIno4XDDZwJYtW4bMzMxKLwlUv2AyF0smIiqrrhZMbtT3\nIBu7sWPHIiUlBT/88IOhQyEionLYgzRy7EESEdVOXfUgjf4eJBERkSEwQRIREenBBElERKQHB+k0\nChUfSSkll1c2uQARET0KJshGgINwiIgaHi+xEhER6cEE2QiUzsZT+jI3b2/okIiImjw+B2nk9D8H\nyWcfiYgqw+cgiYiI6hETZDWsra1x9+7dWtcLDAzE7t27a1xeq9XC1ta21vshIqL6wQRZDX2rftRn\nPSIiMg5MkGWMHTsWjo6OGDRoEDZs2FDh+82bN0OhUECpVOKFF14AUNLz8/LygkKhwPDhw/Hbb79J\n5Y8ePYqhQ4eib9++Um9SCIF58+bB1tYWdnZ22LlzZ8McHBER1Qqfgyzjq6++gqWlJXJzc+Hs7Izx\n48dL3/36669YvHgx4uLi0L59e9y7dw8A8PrrryMoKAgBAQEICwvDG2+8gT179kAIgT/++AOxsbG4\ncOECRo8ejfHjx+Obb77B2bNnkZiYiLS0NDg5OcHDw6OayELKvFfX9WETETVqGo0GGo2mzttlgixj\n1apViIyMBABcv34dycnJAEp6fT/88AP8/f3Rvn3JIxYWFhYAgBMnTkh1pk2bhnfffRdAySXWMWPG\nAAAGDhyIW7duAQCOHTuGKVOmQCaTwcrKCh4eHoiPj6/m/mNIXR8qEVGToVaroVarpe3K1tetLSbI\nv2g0GkRHR+PEiRMwNTWFp6cn8vLypO+rGjZc2ectW7asUEZfO7xfSURkfHgP8i8ZGRmwtLSEqakp\nLly4gBMnTkjfyWQyeHl5YdeuXdKI1vT0dACAi4sLvv76awDA1q1b4e7uXuV+3NzcsGPHDhQXFyMt\nLQ1Hjx6Fs7NzPR0VERE9LPYg/zJy5Eh88cUXsLGxQf/+/TFkyBAA/+vd2djYYOHChfDw8ICJiQkc\nHBzw1Vdf4bPPPkNQUBCWLl0KKysrhIWFSW2W7RmWvh87dizi4uKgUCggk8mkelqtlj1JIiIjwpl0\njBxn0iEiqh3OpENERFSPmCCJiIj0YIIkIiLSg4N0GgXdwTtyuaWB4iAienwwQTYCHJBDRNTweImV\niIhIDyZIIiIiPZggGwFz8/aGDoGI6LHDiQKMXOnsOvwxERHVDCcKMFJarVZamePUqVOYM2cOAODH\nH39EXFycIUMjIqJa4CjWeuTo6AhHR0cAwJEjRyCXy6U5XomIyLixB1nG4sWL0b9/f7i5uWHKlClY\nvnw5PD09cfr0aQDA7du30bt3bwAlPUV3d3eoVCqoVCq9vUONRgM/Pz+kpqZi/fr1WLlyJRwcHHDs\n2DH06dMHhYWFAEpWEunTpw+Kiooa7mCJiKhK7EH+5fTp09ixYwfOnj2LgoICODg4QKVSAdC/XmOn\nTp3w3//+F61atUJycjKmTJmCkydP6m27V69emDVrFuRyOebOnQugZIHPgwcP4rnnnsPXX3+N8ePH\nw8TEpP4OkIiIaoUJ8i8xMTEYN24cTE1NYWpqitGjR1dZPj8/H6+99hrOnj0LExMTXLp0qdp9lL1p\nPHPmTPz73//Gc889h/DwcPzf//1flXVDQkIAVFw5m4jocafRaKDRaOq8XSbIv1Q26ql58+bSpc+8\nvDzp85UrV6JLly7YsmULioqKYGpqWqv9ubi4QKvVQqPRoKioCDY2NlWWL02QRESkq3zHITQ0tE7a\n5T3Iv7i7uyMyMhJ5eXnIzMzE/v37AQDW1tbSPciIiAipfEZGBjp37gwA2Lx5c7X3D+VyOTIzM3U+\ne+GFFzB16lRMnz69Lg+FiIjqABPkX+zt7fH8889DoVDgmWeegZOTEwDgnXfewbp16+Dg4IA7d+5I\n9yNfeeUVbNq0CUqlEhcvXoSZmZnUVtl7lqXv/fz8sGfPHtjb2+PYsWMAgClTpiA9PR2TJ09uqMMk\nIqIa4kQBlQgNDYWZmRnefvvtettHREQE9u/fj02bNlVahhMFEBHVDicKaAD6Rq/Wlddffx3vv/8+\nPvjgg3rbR32pj5vhj4ox1YwxxgQYZ1yMqWaMMaa6wgRZieDgYOmRjPrw2Wef4dKlS+jXr1+97aO+\nGOM/CMZUM8YYE2CccTGmmjHGmOoKEyQREZEeTJBERER6cJCOkavP+6BERE1VXaQ2ThRg5Pj3CxGR\nYfASKxERkR5MkERERHowQRIREenBBGlAhw4dwoABA/Dkk09iyZIlesu88cYbePLJJ6FQKJCQkFCr\nug0dk7W1Nezs7GBvbw9nZ+cGiykpKQlDhgyBqakpli9fXuvjaeiYDHWetm7dCoVCATs7OwwdOhSJ\niYk1rmuouAx1rvbu3QuFQgF7e3uoVCr88MMPNa5riJgMdZ5KnTx5Es2bN8fu3btrXbchY6r1eRJk\nEIWFhaJv374iJSVF5OfnC4VCIc6fP69T5uDBg2LUqFFCCCFOnDghBg8eXOO6DR2TEEJYW1uLO3fu\nPHIctY3pzz//FCdPnhQLFy4Uy5Ytq1Xdho5JCMOdp+PHj4t79+4JIYSIioqq9/+fHjUuIQx3rrKy\nsqT3iYmJom/fvjWu29AxCWG481RaztPTUzz77LMiIiKiVnUbMiYhan+e2IM0kPj4ePTr1w/W1tZo\n0aIFJk2ahL179+qU2bdvH1588UUAwODBg3Hv3j388ccfNarbkDHdunVL+l7U8ajbmsTUsWNHODo6\nokWLFrWu29AxlTLEeRoyZAjatWsHoORnd/369RrXNURcpQxxrtq2bSu9z8rKQocOHWpct6FjKmWI\n8wSUzAo2YcIEdOzYsdZ1GzKmUrU5T0yQBnLjxg306NFD2u7evTtu3LhRozK///57tXUbOiag5JnN\n4cOHw9HRERs2bHjkeGoaU33Urc92jeE8bdy4Ec8888xD1W2ouADDnqvIyEgMHDgQo0aNwurVq2tV\ntyFjAgx3nm7cuIG9e/di9uzZUhy1OZ6GjKn0fW3OE5+DNJCaTgBQ138VVuVRYzp27Bi6du2KtLQ0\neHt7Y8CAAXBzc2uQmOq6bn22Gxsbiy5duhjsPB05cgRfffUVYmNja123th4lLsCw52rMmDEYM2YM\nYmJiEBAQgKSkpEfab33EdPHiRQCGO09vvvkmPvnkE2n1jNLfDYb8t1dZTEDtzxMTpIF069YNv/32\nm7T922+/oXv37lWWuX79Orp3746CgoJq6zZkTN26dQMAdO3aFUDJ5cWxY8ciPj7+kf+R1iSm+qhb\nn+126dIFgGHOU2JiIl566SUcOnQIlpaWtarb0HEBhj1Xpdzc3FBYWIi7d++ie/fuRvH/VGlMd+7c\nwRNPPGGw83T69GlMmjQJAHD79m1ERUWhRYsWBv23V1lMo0ePrv15evjbpfQoCgoKRJ8+fURKSop4\n8OBBtQNi4uLipMELNanb0DFlZ2eLjIwMIUTJYAIXFxfx3XffNUhMpYKDg3UGxBjyPFUWkyHPU2pq\nqujbt6+Ii4t76ONpyLgMea4uX74siouLhRBCnD59WvTp06fGdRs6JmP4tyeEEIGBgWL37t0PVbch\nYnqY88QEaUDffvuteOqpp0Tfvn3Fxx9/LIQQ4osvvhBffPGFVObVV18Vffv2FXZ2duL06dNV1jVk\nTFeuXBEKhUIoFArx9NNPN2hMN2/eFN27dxfm5ubCwsJC9OjRQ2RmZlZa15AxGfI8zZgxQ7Rv314o\nlUqhVCqFk5NTlXUNHZchz9WSJUvE008/LZRKpXB1dRXx8fFV1jVkTIY8T2WVTUaV1TVkTA9znjhZ\nORERkR4cxUpERKQHEyQREZEeTJBERER6MEESERHpwQRJZCAmJiawt7eHnZ0dxo0bh6ysrCrLh4SE\nVJj4vLy9e/fiwoUL0nZwcDCio6MfOdbAwECdSZ8bwqefforc3NwG3SdRWUyQRAbSpk0bJCQkIDEx\nEebm5li/fn2V5Wsyi8iePXtw/vx5aTs0NBTDhg175FhlMlm9zrhTXlFREVatWoWcnJwG2ydReUyQ\nREZgyJAhuHLlCgDgypUrGDVqFBwdHeHu7i5NJ1bWhg0b4OzsDKVSiQkTJiA3NxfHjx/H/v37MW/e\nPDg4OODq1atSz++7776Dv7+/VF+j0cDPzw8AcPjwYbi4uEClUsHf3x/Z2dlVxmptbY33338f9vb2\ncHR0xJkzZ+Dj44N+/fpJSV6j0cDd3R2+vr4YMGAAZs+eLU35tX37dtjZ2cHW1hbz58+X2jUzM8M7\n77wDpVKJjz/+GL///js8PT2lBD979mw4OTlh0KBBCAkJ0YknJCQEKpUKdnZ20vnKyspCUFAQ7Ozs\noFAo8M033zzU8dJjrM6e3iSiWjEzMxNClCzNM27cOPH5558LIYTw8vISycnJQoiSJcW8vLyEEEKE\nhIRIs/KUXbJn0aJF4rPPPhNCVHxYu3S7sLBQ9OzZU+Tk5AghhJg1a5bYunWrSEtLE+7u7tLnn3zy\nifjHP/5RIday7VpbW0sPZb/11lvC1tZWZGVlibS0NNGpUychhBBHjhwRpqamIiUlRRQVFQlvb28R\nEREhbty4IXr27Clu374tCgsLhZeXl4iMjBRCCCGTycSuXbukfZZfmuju3bvS+VKr1eLcuXNSuTVr\n1gghhFi7dq2YOXOmEEKId999V7z11ltS/fT09BofL5EQQnAuViIDyc3Nhb29PW7cuAFra2vMmjUL\nWVlZiIuLw8SJE6Vy+fn5FeqeO3cOixYtwv3795GVlYWRI0dK3wk9c3+YmJhg5MiR2LdvH8aPH49v\nv/0Wy5Ytw5EjR3D+/Hm4uLhI+yp9X5XRo0cDAGxtbZGdnY22bduibdu2aNWqFTIyMgAAzs7OsLa2\nBgBMnjwZx44dQ4sWLaBWq/HEE08AAKZOnYqjR4/iueeeg4mJCcaPH1/pPnfs2IENGzagsLAQN2/e\nxPnz5zFo0CAAwLhx4wAADg4OUk8xOjoaO3bskOpbWFjgwIEDD3W89HhigiQykNatWyMhIQG5ubkY\nMWIE9u7di+HDh8PCwgIJCQl665TeBwwMDMS+fftga2uLTZs2QaPRVChT3qRJk7BmzRq0b98eTk5O\n0vqC3t7e2LZtW61ib9WqFQCgWbNmaNmypfR5s2bNUFhYWCEOIYTeuMp+bmpqWmnsKSkpWL58OU6d\nOoV27dohKCgIeXl5FeIxMTGR9l/afnkPc7z0eOI9SCIDa926NVavXo2FCxfCzMwMvXv3RkREBICS\nX/CJiYlS2dJf+FlZWejcuTMKCgrwn//8R0oscrlc6sGVr+Pu7o4zZ85gw4YN0moHgwcPRmxsrHT/\nMzs7G8nJyTWOXV8CKhUfHw+tVovi4mLs3LkTbm5ucHZ2xo8//og7d+6gqKgIX3/9NTw8PPTWL3ss\nGRkZaNu2LczNzXHr1i1ERUVVG5u3tzc+//xzafvevXv429/+9kjHS48XJkgiAynbW1IqlejXrx92\n7tiR9S4AAAEVSURBVNyJrVu3YuPGjVAqlRg0aBD27dtXoc5HH32EwYMHw9XVFQMHDpS+nzRpEpYu\nXQqVSoWrV6/q1DExMYGvry8OHToEX19fACXL/oSHh2Py5MlQKBRwcXHROyioqmMovyBtKScnJ7z2\n2muwsbFBnz59MHbsWHTu3BmffPIJPD09oVQq4ejoKA0WKt97fPnllzFy5EgMGzYMCoUC9vb2GDBg\nAKZOnQpXV9dq41m0aBHS09Nha2sLpVIJjUaDDh06PNLx0uOFk5UTUZ3TaDRYvnw59u/fb+hQiB4a\ne5BEVOca+rlJovrAHiQREZEe7EESERHpwQRJRESkBxMkERGRHkyQREREejBBEhER6cEESUREpMf/\nAxu5VsAZW5bOAAAAAElFTkSuQmCC\n"
}
],
"prompt_number": 115
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"idx = np.random.uniform(0, 1, len(df))\n",
"train, test = df[idx <= 0.75], df[idx > 0.75]\n",
"\n",
"f1_scores = []\n",
"for i in range(1, len(names)):\n",
" best_n_features = names[-i:]\n",
" clf = RandomForestClassifier()\n",
" clf.fit(train[best_n_features], train['is_red'])\n",
" f1 = f1_score(test['is_red'], clf.predict(test[best_n_features]))\n",
" f1_scores.append(f1)\n",
"\n",
"pl.plot(0.5 + np.arange(len(f1_scores)), f1_scores)\n",
"pl.xticks(0.5 + np.arange(len(f1_scores)), 1 + np.arange(len(f1_scores)))\n",
"pl.title(\"Feature Count vs. F1 Score\")\n",
"pl.xlabel(\"# of Features\")\n",
"pl.ylabel(\"F1 Score\")"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 117,
"text": [
"<matplotlib.text.Text at 0x107e50a10>"
]
},
{
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEUCAYAAADJB1rpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtclGX+//EXCGoKeEBFZEAQjLMwilpmK5qG6xabp8JD\n5iltN1ttrdTavmHbT7PDFkW7S66HLCNsO2BlZGSYxQKVgCaIhxgcsEyNo2jAcP3+mJwcOaozHD/P\nx2MezD33dd/XNaD3+77v676v20YppRBCCNGp2bZ2A4QQQrQ+CQMhhBASBkIIISQMhBBCIGEghBAC\nCQMhhBBIGIh6eHp60qNHDxwdHXF0dMTJyYkff/zxmte5Z88eC7WweY4cOcLMmTPp378/vXv3JiQk\nhBdeeIHa2lqr1jt//nwef/xxq9ZRn8b+bkuWLMHPz48uXbrw2muvNbqewsJCpk+fbvq9BQcHN7mM\naP8kDEQdNjY2fPjhh5SXl1NeXk5ZWRkDBw685nVeyy0tBoPhisofP36c0aNHM3jwYL777jtKSkp4\n++23+fbbbykvL7/qdrRljf3dQkND+ec//8nw4cOxsbFpdD133303gwcP5sSJE/z888+8/vrruLi4\nWLStV/r3FC1ACXEZT09P9dlnn9X5vKSkRC1cuFC5uroqNzc39be//U0ZDAallFLHjh1T48ePV87O\nzqpfv35qzpw5qqSkRCml1Ny5c5Wtra267rrrlIODg3r22WfV559/rjQajdn6Bw8ebKr3iSeeUNOn\nT1dz585VTk5OatOmTY3Wf7k5c+ao2267rdHvmZiYqAICAlTv3r1VeHi4ys3NNc2zsbFRx48fN03f\nc8896m9/+5tSSqnPP/9cubm5qeeff14NGDBAubq6qi1btiillIqLi1P29vaqa9euysHBQUVGRtap\n97777lMPPfSQ2WeRkZHqhRdeUEop9fTTTys3Nzfl6OiofH196/1b1Kehv9ulxo4dq1577bVGyzg4\nOKjs7OwG5+/bt0/deOONqnfv3srd3V1t3bpVKWX893H33Xer/v37q8GDB6unnnpK1dbWKqWU2rJl\nixozZox68MEHlbOzs3r88cfVL7/8olauXKk8PDyUi4uLuu+++9T58+eb9V2F5cmRgaiXqmcvfv78\n+XTt2pXjx4+TmZnJ7t27+c9//mOa/9hjj/HDDz+Qm5uLXq8nOjoagNdffx0PDw/TXutDDz1Ub52X\n77Hu3LmTmTNnUlpayuzZs5us/1KfffYZM2bMaPD7HTlyhNmzZ/PSSy9x5swZpkyZwu23305NTU2D\nbbu0fadOnaKsrIyTJ0+yadMm7r//fkpLS1myZAlz5sxh1apVlJeXk5iYWGdds2fPJiEhwTRdXFzM\np59+SlRUFHl5ebzyyit88803lJWVsXv3bjw9PRv8Hper7+92pW644Qb+/Oc/k5CQwIkTJ8zmFRQU\nMGXKFJYvX86ZM2fIysoiNDQUgAceeIDy8nLy8/PZu3cv27ZtY8uWLaZlMzIy8Pb25qeffuLRRx9l\n1apVHDt2jOzsbI4dO0ZRURFPPvnkNbdfXKXWTiPR9gwePFg5ODio3r17q969e6upU6eqH3/8UXXr\n1s1sz+3NN99U48ePr3cd7733ntJqtabpy/da6zsyuLTME088ocaNG2ead6X129vbq08++aTB7/jk\nk0+qu+66yzRdW1ur3Nzc1N69e5VSdY8M5s+fb3ZkcN1115kdlQwYMEClp6fXKVuf2tpa5eHhob74\n4gullFKvvvqquuWWW5RSSh09elQNGDBAJScnq6qqqgbXUZ/6/m6Xa86RQXFxsVq9erUKDAxUXbp0\nUaGhoerrr79WSim1bt06NW3atDrL1NTUqK5du5odXcXFxanw8HCllPHIwMPDw+x30LNnT7PfcWpq\nqvLy8rqi7ywsx661w0i0PTY2NiQmJjJhwgTTZxkZGVRXV+Pq6mr6rLa2Fg8PD8C4p7x8+XK+/PJL\nysvLqa2tpW/fvtfUDo1GY3pfUFDQaP2Xc3Z25uTJkw2u+4cffjBb1sbGBnd3d4qKiprVNmdnZ2xt\nfzuw7tGjBxUVFc1a1sbGhqioKOLj47n55pt58803mTdvHgA+Pj68+OKLREdHc+jQISIiIvjHP/5h\n9r0bW+/lf7er0bt3b9avX8/69es5e/YsDz30EHfccQeFhYXo9XqGDBlSZ5kzZ85QXV3N4MGDTZ95\neHiY/T7d3d1N70+fPk1lZSUjRowwfaaUsnrnvmiYnCYSzeLu7k63bt04e/YsxcXFFBcXU1paysGD\nBwF49NFH6dKlC9999x2lpaW8/vrrZv+xLz8F1LNnTyorK03TBoOB06dPm5W5dJmm6r/cxIkTeeed\ndxr8PoMGDaKgoMA0rZRCr9fj5uYGGDful7bvhx9+aLLjtb52N2TWrFn897//paCggIyMDKZPn242\nb9++fRQUFGBjY8OqVauaVa81ODs7s3LlSk6ePMnPP/+Mh4cHx48fr1OuX79+2Nvbo9PpTJ+dOHHC\nLNAv/b3069eP6667jpycHNPfs6SkhLKyMqt+H9EwCQPRLK6urtx666389a9/Ne35Hz9+nC+++AKA\niooKevbsiZOTE0VFRTz77LNmy7u4uJhtRK6//nouXLjArl27qK6u5qmnnuKXX3656vovt3btWlJT\nU3nkkUc4deoUAMeOHePuu++mrKyMO++8k48++og9e/ZQXV3N888/T/fu3RkzZgxgvPpm+/btGAwG\nkpKSGqynPi4uLnz//feNlgkNDaVfv34sXryYyZMn4+TkBBj7Mvbs2cMvv/xCt27d6N69O126dGl2\n3Q2prq7mwoUL1NbWUlVVxYULFxrsX1i1ahWHDh2ipqaG8vJy/vWvfzF06FD69u3L7NmzSU5O5u23\n36ampoazZ8+SnZ1Nly5duPPOO3nssceoqKigoKCAF154gblz59Zbh62tLffeey8rVqww7QQUFRWx\ne/fua/6u4upIGIhm27ZtG1VVVQQEBNC3b19mzpxpuo79iSeeYP/+/fTq1Yvbb7+d6dOnm+0Jrlmz\nhqeeeoo+ffrwj3/8g169evHPf/6TxYsXo9FocHBwMDuNcHmHbVP1X27IkCH873//Q6fTERgYSO/e\nvZkxYwYjR47EwcGB66+/njfeeIMHHniA/v3789FHH/HBBx9gZ2c8cxoTE8MHH3xAnz59ePPNN5k6\ndarZ+hvb+1+0aBE5OTn06dOHadOmNVhu9uzZ7Nmzh9mzZ5s+++WXX1izZg39+/fH1dWVM2fOsH79\negC2b99OUFBQg+trzKRJk+jRowdpaWksWbKEHj16sG/fvnrLnj9/nqlTp9KnTx+8vb3R6/Xs3LkT\nMJ762bVrF88//zzOzs5otVoOHDgAwMsvv0zPnj0ZMmQIN998M3PmzGHBggVA/X/PDRs24OPjww03\n3ECvXr2YNGkSR44cuarvJ66djWpo90AIIUSnYfEjg4ULF+Li4kJwcHCDZf7yl78wdOhQQkJCyMzM\nNH2elJSEn58fQ4cOZcOGDZZumhBCiAZYPAwWLFhAUlJSg/N37drFsWPHOHr0KK+++ip/+tOfAGMH\n4rJly0hKSiInJ4f4+Hhyc3Mt3TwhhBD1sHgY3HzzzfTp06fB+Tt37uSee+4BYPTo0ZSUlPDjjz+S\nkZGBj48Pnp6e2NvbExUVVe8NO0IIISyvxe8zKCoqMuso1Gg0FBUVcfLkyTqfp6en11m+uZf3CSGE\nMNdYF3GrXE10rX3WSqkrfj3xxBNXtdzVvqQ+qU/q6/jfrTXqu9pXU1r8yMDNzQ29Xm+aLiwsRKPR\nUF1dbfa5Xq83u2FFCCGE9bT4kUFkZCTbtm0DIC0tjd69e+Pi4kJYWBhHjx5Fp9NRVVVFQkICkZGR\nLd08IYTolCx+ZDBr1iz27t3LmTNncHd3Z+3atVRXVwOwdOlSpkyZwq5du/Dx8aFnz56mUQ3t7OyI\njY0lIiICg8HAokWL8Pf3t1i7wsPDLbYuqU/qk/raZl2doT5raXc3nV3rQ1KEEKIzamrbKcNRCCGE\nkDAQQgghYSCEEAIJAyGEEEgYCCGEQMJACCEEEgZCCCGQMBBCCIGEgRBCCCQMhBBCIGEghBACCQMh\nhBBIGAghhEDCQAghBK3wpDMhRMdWWwsFBZCTY3wdOgT5+dCtGzg4gKPjlf/s0QOs+fhzgwEqKoyv\n8nLj6+L75vz08YFXX7Ve+1qCPM9AiHqcOGH8T+7oCE5Oxo1Sly6t3aq2xWAAne63Df7Fjf/hw9Cn\nDwQEQGCg8ae3N1RXX/lG9uLPCxeMgdDcAOneHc6da34dv/wCPXteXVA5OICLCwQFtfZfpHFNbTut\nEgZJSUmsWLECg8HA4sWLWbVqldn84uJiFi5cyPfff0/37t3ZvHkzgYGBAKxfv5433ngDW1tbgoOD\n2bJlC926dWv2FxLiap0/D++8A5s2wXffQf/+UFb220aje3djMFwMiEt/1vdZY2XaU7AYDPD993U3\n+nl50K+f+UY/IAD8/aFXL8u34dy5KwuPK9m4W/vIoy1o8TAwGAz4+vqSnJyMm5sbI0eOJD4+3uwR\nlg8//DBOTk48/vjj5OXlcf/995OcnIxOp2PChAnk5ubSrVs37rrrLqZMmcI999zT7C8kxJVQCvbv\nNwZAQgKMGgWLFkFkJHTt+lu52lqorPwtHMrLf3t/+c+mPisvNwbL5YFx8dWrl/nP+j67+NPOgid6\na2rg+PG6G/0jR4x7vvVt9B0dLVe/sK6mtp0W7zPIyMjAx8cHT09PAKKiokhMTDQLg9zcXFavXg2A\nr68vOp2O06dP4+TkhL29PZWVlXTp0oXKykrc3Nzq1BEdHW16Hx4e3mGeQSpaTnExbN8O//kPlJTA\nwoWQmQkeHvWXt7U17kE6OFx73UrVHywXX6Wlxp8//2w8DXNx+uLPS99369Z0YNT32XXX1d3bP3oU\nBg36baM/eTL89a/GjX7Pntf+vUXLSklJISUlpdnlLR4GRUVFuLu7m6Y1Gg3p6elmZUJCQnj33XcZ\nO3YsGRkZFBQUUFhYiFarZeXKlXh4eHDdddcRERHBxIkT69RxaRgI0Vy1tfD558ajgF274Pe/h+ee\ngwkTjBv7lmJjY9y49uwJrq5Xv55LQ6WxwPjhB+MpnUvLVFaCp6dxw3/bbfDII+DnZzxdIjqGy3eU\n165d22h5i4eBTTNOvK1evZrly5ej1WoJDg5Gq9XSpUsXjh8/zosvvohOp6NXr17MnDmT7du3M2fO\nHEs3U3QihYWwdSts3mw8rbFoEbz8Mjg7t3bLro2lQkUIsEIYuLm5odfrTdN6vR6NRmNWxtHRkc2b\nN5umvby8GDJkCB999BFjxozB+df/pdOmTSM1NVXCQFyxqir44APjUUBaGtx1F+zYASNGdPyOQiGu\nhsUPjsPCwjh69Cg6nY6qqioSEhKIjIw0K1NaWkpVVRUAGzduZNy4cTg4OODr60taWhrnz59HKUVy\ncjIBAQGWbqLowHJz4aGHwN0dXnoJZs0yHhn8618QFiZBIERDLH5kYGdnR2xsLBERERgMBhYtWoS/\nvz9xcXEALF26lJycHObPn4+NjQ1BQUFs2rQJgNDQUObNm0dYWBi2trYMHz6cJUuWWLqJooOpqDBe\nCbRpk7HD9Z574MsvYejQ1m6ZEO2H3HQm2iWljKd/Nm0y3hvwu9/B4sXGTmFLXm4pREfR4peWCmFN\np0/D668bLwmtqTF2BufkSAeqENdKwkC0eVVVsHu38Yqg5GS44w6Ii4OxY6UPQAhLkdNEok2qrjZu\n+HfsgMRE401Qc+dCVJTlhzoQojNolbGJrEnCoOOqrjbeFLZjB7z/Pvj6wp13wowZUM+N6EKIKyBh\nINq0mhpISTEGwHvvGUe3vOsuYwBcciO7EOIaSQeyaHMMBvjiC2MAvPsuDB5sPAL4+mvjEAlCiJYn\nYSBahMEAX31lvB/gnXeMp33uvBP+9z8YMqS1WyeEkDAQVlNbC6mpxiOA//7XOAzynXcabwjz8Wnt\n1gkhLiVhICyqthbS041HAP/9L/TtawyAzz83dggLIdomCQNxzZSCjAzjEcDbbxtHBr3rLvj0U+NY\n+EKItk/CQFwVpeDbb40BsGOH8cldd90FH39svCdACNG+SBiIOpQyPgClsND40uvr/+nqajwF9MEH\nxoeBy93AQrRfcp9BJ6OU8WlXDW3gL/4E43X+Gk3DP+VOYCHaD7nprJO5uEff2MZeKeMGvbGNvZOT\n7OkL0ZFIGHQC+fnw2GPw4YfGq3mas0cvG3ohOpemtp1WeQx4UlISfn5+DB06lA0bNtSZX1xczNSp\nUwkJCWH06NEcOnTINK+kpIQZM2bg7+9PQEAAaWlp1mhih/Dzz7BypfEJXr6+8P33UF5ufNrXp58a\nn/n75JNw773Gcf6DgqB3bwkCIURdFg8Dg8HAsmXLSEpKIicnh/j4eHJzc83KrFu3juHDh5Odnc22\nbdtYvny5ad7y5cuZMmUKubm5HDhwAH+5NrGOCxfg+eeNAVBRAYcOwRNPQL9+sqEXQlwdi4dBRkYG\nPj4+eHp6Ym9vT1RUFImJiWZlcnNzGT9+PAC+vr7odDpOnz5NaWkp+/btY+HChYDxEZq9pJfSpLYW\n4uON1+6npMDevcZx/QcObO2WCSHaO4tfWlpUVIT7JcNNajQa0tPTzcqEhITw7rvvMnbsWDIyMigo\nKKCwsBAbGxv69+/PggULyM7OZsSIEcTExNCjRw+z5aOjo03vw8PDCQ8Pt/TXaHP27jU+6F0p2LIF\nOsFXFkJcg5SUFFJSUppd3uIdyO+88w5JSUls3LgRgDfeeIP09HRefvllU5ny8nKWL19OZmYmwcHB\nHD58mP/85z9UVVVx4403kpqaysiRI1mxYgVOTk48+eSTvzW4k3Ug5+bCqlVw4ACsW2d8uIutVXp6\nhBAdWYsPYe3m5oZerzdN6/V6NBqNWRlHR0c2b95smvby8mLIkCFUVFSg0WgYOXIkADNmzODpp5+2\ndBPbhR9/hOho4wifq1b9dpevEEJYg8X3McPCwjh69Cg6nY6qqioSEhKIjIw0K1NaWkpVVRUAGzdu\nZNy4cTg4ODBw4EDc3d05cuQIAMnJyQR2srENzp0zXgEUGAg9ekBenvH0kASBEMKaLH5kYGdnR2xs\nLBERERgMBhYtWoS/vz9xcXEALF26lJycHObPn4+NjQ1BQUFs2rTJtPzLL7/MnDlzqKqqwtvbmy1b\ntli6iW2SwWDsC3jiCbj5ZuODXmScfyFES5GbzlqZUsbB3R55xDjc83PPwahRrd0qIURHI4+9bMP2\n74eHH4aiItiwASIj5T4BIUTrkOtSWkFBAdx9N/zhD8YHvx88CH/8owSBEKL1SBi0oJIS45VBw4cb\nH/x+5Aj86U9gb9/aLRNCdHYSBi2gqgpiYozDR5w5Y7xn4O9/Nz4RTAgh2gLpM7AipYzPAV6zBoYO\nheRkCA5u7VYJIURdEgZWUlgIM2caB5X7979h4sTWbpEQQjRMwsBK/vtf8PKCN96Q4SOEEG2fbKas\nJDMTJkyQIBBCtA+yqbKSzEwIDW3tVgghRPPIHchWcOEC9OkDxcUyppAQom1olcdednaHDhmvHpIg\nEEK0FxIGVpCZCVpta7dCCCGaT8LACiQMhBDtjYSBFUgYCCHaG+lAtjCDAXr1Mt501rt3a7dGCCGM\npAO5hR07BgMGSBAIIdoXq4RBUlISfn5+DB06lA0bNtSZX1xczNSpUwkJCWH06NEcOnTIbL7BYECr\n1XL77bdbo3lWJaeIhBDtkcXDwGAwsGzZMpKSksjJySE+Pp7c3FyzMuvWrWP48OFkZ2ezbds2li9f\nbjY/JiaGgIAAbNrhAP8SBkKI9sjiYZCRkYGPjw+enp7Y29sTFRVFYmKiWZnc3FzGjx8PgK+vLzqd\njtOnTwNQWFjIrl27WLx4cZvuG2iIhIEQoj2y+EB1RUVFuLu7m6Y1Gg3p6elmZUJCQnj33XcZO3Ys\nGRkZFBQUUFhYSP/+/XnwwQd59tlnKSsra7CO6Oho0/vw8HDCw8Mt/TWuilISBkKItiElJYWUlJRm\nl7d4GDTn1M7q1atZvnw5Wq2W4OBgtFottra2fPjhhwwYMACtVtvol7g0DNqSoiLjoytdXVu7JUKI\nzu7yHeW1a9c2Wt7iYeDm5oZerzdN6/V6NBqNWRlHR0c2b95smvby8mLIkCEkJCSwc+dOdu3axYUL\nFygrK2PevHls27bN0s20iqws41FBO+zqEEJ0chbvMwgLC+Po0aPodDqqqqpISEggMjLSrExpaSlV\nVVUAbNy4kXHjxuHo6Mi6devQ6/Xk5+fz1ltvMWHChHYTBCCniIQQ7ZfFjwzs7OyIjY0lIiICg8HA\nokWL8Pf3Jy4uDoClS5eSk5PD/PnzsbGxISgoiE2bNtW7rvZ2NVFmJtx1V2u3QgghrpzcgWxBXl7w\nySdw/fWt3RIhhDDX1LZTwsBCiovBwwNKS+XpZkKItkeGo2gh2dkwbJgEgRCifZJNl4VI57EQoj2T\nMLAQCQMhRHsmYWAhEgZCiPZMOpAt4Px56NsXSkqgW7fWbo0QQtQlHcgt4LvvjJeTShAIIdorCQML\nuDgMhRBCtFcSBhYg/QVCiPZOwsACJAyEEO2ddCBfI4MBevUyDl/dq1drt0YIIeonHchWduQIuLhI\nEAgh2rdmhcG+ffvYsmULAKdPnyY/P9+qjWpPpPNYCNERNBkG0dHRPPPMM6xfvx6Aqqoq5s6da/WG\ntRfSXyCE6AiaDIP33nuPxMREevbsCRifZFZeXm71hrUXEgZCiI6gyTDo1q0btpcMxXnu3DmrNqg9\nUUrCQAjRMTQZBjNnzmTp0qWUlJTw6quvcsstt7B48eJGl0lKSsLPz4+hQ4eyYcOGOvOLi4uZOnUq\nISEhjB49mkOHDgHG5yWPHz+ewMBAgoKCeOmll67ya7WMwkKwswNX19ZuiRBCXJtGLy1VSqHX6zl8\n+DC7d+8GICIigkmTJjW4QoPBgK+vL8nJybi5uTFy5Eji4+Px9/c3lXn44YdxcnLi8ccfJy8vj/vv\nv5/k5GR+/PFHfvzxR0JDQ6moqGDEiBG8//77Zsu2pUtLd+6Ef/4TkpJauyVCCNG4pradTT4DecqU\nKXz33XfceuutzaowIyMDHx8fPD09AYiKiiIxMdFsg56bm8vq1asB8PX1RafTcfr0aQYOHMjAgQMB\ncHBwwN/fn5MnT5ot25bIlURCiI6i0TCwsbFhxIgRZGRkMGrUqGatsKioCHd3d9O0RqMhPT3drExI\nSAjvvvsuY8eOJSMjg4KCAgoLC+nfv7+pjE6nIzMzk9GjR9epIzo62vQ+PDyc8PDwZrXN0jIzYdas\nVqlaCCEalZKSQkpKSrPLN3lkkJaWxhtvvMHgwYNNVxTZ2Nhw4MCBesvb2Ng0Wenq1atZvnw5Wq2W\n4OBgtFotXbp0Mc2vqKhgxowZxMTE4ODgUGf5S8OgNWVmwjPPtHYrhBCirst3lNeuXdto+SbD4JNP\nPgF+28g3db7ezc0NvV5vmtbr9Wg0GrMyjo6ObN682TTt5eXFkCFDAKiurmb69OnMnTuXO+64o6nm\ntZqffza+vL1buyVCCHHtmryayNPTk5KSEnbu3MkHH3xAaWmpqT+gPmFhYRw9ehSdTkdVVRUJCQlE\nRkaalSktLaWqqgqAjRs3Mm7cOBwcHFBKsWjRIgICAlixYsW1fTMry8qCkBCwlQE9hBAdQJObspiY\nGObOncvp06c5deoUc+fObfSSTzs7O2JjY4mIiCAgIIC77roLf39/4uLiiIuLAyAnJ4fg4GD8/Pz4\n5JNPiImJAeCrr77ijTfe4PPPP0er1aLVaklqo5fqZGZCaGhrt0IIISyjyVFLg4ODSUtLM/UXnDt3\njhtuuIGDBw+2SAMv11YuLb37bhg/HhYubO2WCCFE0ywyaumldyDbynkRQO48FkJ0LE12IC9YsIDR\no0czbdo0lFK8//77LOzku8Pnz8P330NgYGu3RAghLKNZD7f59ttv+fLLL7GxseHmm29G24q7xG3h\nNFFGBixdajw6EEKI9uCa70BOS0sjICCAESNGAFBWVkZ6enq9N4N1FtJ5LIToaJrsALjvvvtwdHQ0\nTffs2ZP77rvPqo1q62QYCiFER9Os3uBL7yru0qULBoPBag1qD6TzWAjR0TQZBl5eXrz00ktUV1dT\nVVVFTEyM6W7hzshggO++M95wJoQQHUWTYfDvf/+br776Cjc3NzQaDWlpabz66qst0bY2KS/P+PwC\nJ6fWbokQQlhOkx3ILi4uJCQktERb2gU5RSSE6IgaPDJ49dVXOXLkCGAcnG7BggU4OTkxbNgw9u/f\n32INbGvkSiIhREfUYBjExMTg5eUFQHx8PNnZ2eTn5/OPf/yD5cuXt1gD2xq5kkgI0RE1GAb29vbY\n29sD8OGHHzJv3jycnZ2ZOHEiFRUVLdbAtkQpOU0khOiYGgwDW1tbTp48yYULF/jss8+YOHGiad75\n8+dbpHFtjV4PXbvCr0/mFEKIDqPBDuQnn3ySkSNHUlNTQ2RkJEFBQYDxUWrenfSJLnJUIIToqBod\nm6i6upry8nL69u1r+uzcuXMopep9HGVLaM2xiaKjoboa/t//a5XqhRDiql3TENb29vZmQQDG4Sha\nKwhaW1aWXEkkhOiYrPJwgqSkJPz8/Bg6dCgbNmyoM7+4uJipU6cSEhLC6NGjOXToULOXbU1ymkgI\n0VE1awjrK2EwGPD19SU5ORk3NzdGjhxJfHw8/v7+pjIPP/wwTk5OPP744+Tl5XH//feTnJzcrGVb\n6zTR2bMwZAgUF8tzj4UQ7Y9FnnR2ucOHDzc4LyMjAx8fHzw9PbG3tycqKorExESzMrm5uYwfPx4A\nX19fdDodP/30U7OWbS1ZWcbxiCQIhBAdUZPDUdTn1ltv5cSJE/XOKyoqwt3d3TSt0WhIT083KxMS\nEsK7777L2LFjycjIoKCggMLCwmYtCxAdHW16Hx4eTnh4+NV8jSsip4iEEO1JSkoKKSkpzS7fYBg8\n8MADDS7yLWsSAAAXjUlEQVRUXFzc4LxLh7tuyOrVq1m+fDlarZbg4GC0Wi1dunRp1rJgHgYtJTMT\nLrnVQggh2rTLd5TXrl3baPkGw2Dr1q0899xzdOvWzWwjrZTizTffbHCFbm5u6PV607Rer0ej0ZiV\ncXR0ZPPmzaZpLy8vvL29OX/+fJPLtpasLHj44dZuhRBCWEeDYRAWFkZQUBA33XRTnXmN7ZmHhYVx\n9OhRdDodgwYNIiEhgfj4eLMypaWlXHfddXTt2pWNGzcybtw4HBwcmrVsa6ishPx8CAho7ZYIIYR1\nNBgG77zzDt27d693nk6na3iFdnbExsYSERGBwWBg0aJF+Pv7ExcXB8DSpUvJyclh/vz52NjYEBQU\nxKZNmxpdtrUdPAh+fsahKIQQoiNq8NLSEydO4OHh0dLtaVJrXFr673/D11/Dr5klhBDtzlVfWvrH\nP/7R9H769OmWbVU7I1cSCSE6umZdNf/9999bux1tmjzQRgjR0cktVE2oqYFDh4w3nAkhREfVYAfy\ngQMHcHR0BIzPL7j4HoznnsrKyqzfujYgLw/c3OCSry+EEB1Og2FgMBhash1tlvQXCCE6AzlN1AQJ\nAyFEZyBh0AQJAyFEZ2DxIaytrSXvM1AKnJ0hNxdcXFqkSiGEsAqrDGHdWZw4Ad27SxAIITo+CYNG\nyCkiIURnIWHQCAkDIURnIWHQCAkDIURnIWHQCBmGQgjRWUgYNODMGSgrAy+v1m6JEEJYn4RBA7Ky\njEcFtvIbEkJ0ArKpa4D0FwghOhOrhEFSUhJ+fn4MHTqUDRs21Jl/5swZJk+eTGhoKEFBQWzdutU0\nb/369QQGBhIcHMzs2bP55ZdfrNHEJkkYCCE6E4uHgcFgYNmyZSQlJZGTk0N8fDy5ublmZWJjY9Fq\ntWRlZZGSksLKlSupqalBp9OxceNG9u/fz8GDBzEYDLz11luWbmKzSBgIITqTBkctvVoZGRn4+Pjg\n6ekJQFRUFImJiWbPMnZ1deXAgQMAlJWV4ezsjJ2dHU5OTtjb21NZWUmXLl2orKzEzc2tTh3R0dGm\n9+Hh4YSHh1v0O5w7BwUF0AYevyyEEFclJSWFlJSUZpe3eBgUFRXh7u5umtZoNKSnp5uVuffee5kw\nYQKDBg2ivLycHTt2ANC3b19WrlyJh4cH1113HREREUycOLFOHZeGgTUcPGgMAnt7q1YjhBBWc/mO\n8tq1axstb/HTRDY2Nk2WWbduHaGhoZw8eZKsrCzuv/9+KioqOH78OC+++CI6nY6TJ09SUVHB9u3b\nLd3EJskpIiFEZ2PxMHBzc0Ov15um9Xo9Go3GrExqaiozZ84EwNvbGy8vL3Jzc/n2228ZM2aM6bTR\ntGnTSE1NtXQTmyRhIITobCweBmFhYRw9ehSdTkdVVRUJCQlERkaalfHz8yM5ORmAU6dOkZeXh7e3\nN76+vqSlpXH+/HmUUiQnJxMQEGDpJjZJwkAI0dlYvM/Azs6O2NhYIiIiMBgMLFq0CH9/f+Li4gBY\nunQpjz76KAsWLCAkJITa2lqeeeYZ+vbtS9++fZk3bx5hYWHY2toyfPhwlixZYukmNqq6Gg4dgmHD\nWrRaIYRoVfJwm8t89x1Mnw55eVarQgghWpw83OYKySkiIURnJGFwGQkDIURnJGFwGQkDIURnJH0G\nl1AK+vY19hcMGGCVKoQQolVIn8EVKCiAHj0kCIQQnY+EwSXkFJEQorOSMLiEhIEQorOSMLiEhIEQ\norOSMLiEhIEQorOSMPjV6dNQUQG/PoZBCCE6FQmDX2VlQWgoNGMEbiGE6HAkDH4lp4iEEJ2ZhMGv\nJAyEEJ2ZhMGvJAyEEJ2ZDEeBseN4wAAoLZXnHgshOqZWGY4iKSkJPz8/hg4dyoYNG+rMP3PmDJMn\nTyY0NJSgoCC2bt1qmldSUsKMGTPw9/cnICCAtLQ0azTRzIEDEBAgQSCE6LwsHgYGg4Fly5aRlJRE\nTk4O8fHx5ObmmpWJjY1Fq9WSlZVFSkoKK1eupKamBoDly5czZcoUcnNzOXDgAP7+/pZuYh1ZWXKK\nSAjRuVk8DDIyMvDx8cHT0xN7e3uioqJITEw0K+Pq6kpZWRkAZWVlODs7Y2dnR2lpKfv27WPhwoWA\n8RGavXr1snQT65D+AiFEZ2fxZyAXFRXh7u5umtZoNKSnp5uVuffee5kwYQKDBg2ivLycHTt2AJCf\nn0///v1ZsGAB2dnZjBgxgpiYGHr06GG2fHR0tOl9eHg44eHh19TmzEz4NX+EEKJDSElJISUlpdnl\nLR4GNs24a2vdunWEhoaSkpLC8ePHmTRpEtnZ2dTU1LB//35iY2MZOXIkK1as4Omnn+bJJ580W/7S\nMLhW1dWQkwPDhllslUII0eou31Feu3Zto+UtfprIzc0NvV5vmtbr9Wg0GrMyqampzJw5EwBvb2+8\nvLzIy8tDo9Gg0WgYOXIkADNmzGD//v2WbqKZ3FwYPBh69rRqNUII0aZZPAzCwsI4evQoOp2Oqqoq\nEhISiIyMNCvj5+dHcnIyAKdOnSIvL48hQ4YwcOBA3N3dOXLkCADJyckEBgZauolmLg5DIYQQnZnF\nTxPZ2dkRGxtLREQEBoOBRYsW4e/vT1xcHABLly7l0UcfZcGCBYSEhFBbW8szzzxD3759AXj55ZeZ\nM2cOVVVVeHt7s2XLFks30Yx0HgshhNx0Rng4PPYYTJpksVUKIUSb09S2s1OHgVLQpw8cOwb9+llk\nlUII0Sa1yh3I7UV+Pjg6ShAIIUSnDgPpLxBCCKNOHQZyJZEQQhh16jCQIwMhhDCSMJAwEEKIzhsG\nP/0E588b7z4WQojOrtOGQWamsb+gGUMpCSFEh9dpw0A6j4UQ4jedNgykv0AIIX4jYSCEEKJzDkdR\nUQEuLlBaCnYWH6pPCCHaHhmOoh7Z2RAYKEEghBAXdcowkFNEQghhrlOGgVxJJIQQ5jplGMiRgRBC\nmLNKGCQlJeHn58fQoUPZsGFDnflnzpxh8uTJhIaGEhQUxNatW83mGwwGtFott99+u8XbVl1tfO7x\nsGEWX7UQQrRbFg8Dg8HAsmXLSEpKIicnh/j4eHJzc83KxMbGotVqycrKIiUlhZUrV1JTU2OaHxMT\nQ0BAADZWuD04Jwc8PaFHD4uvWggh2i2Lh0FGRgY+Pj54enpib29PVFQUiYmJZmVcXV0pKysDoKys\nDGdnZ+x+vbSnsLCQXbt2sXjxYos+3vIiOUUkhBB1WfziyqKiItzd3U3TGo2G9PR0szL33nsvEyZM\nYNCgQZSXl7Njxw7TvAcffJBnn33WFBb1iY6ONr0PDw8nPDy82e2TMBBCdAYpKSmkpKQ0u7zFw6A5\np3bWrVtHaGgoKSkpHD9+nEmTJpGdnc3evXsZMGAAWq220S9xaRhcqawssEJXhBBCtCmX7yivXbu2\n0fIWP03k5uaGXq83Tev1ejQajVmZ1NRUZs6cCYC3tzdeXl4cPnyY1NRUdu7ciZeXF7NmzWLPnj3M\nmzfPYm2rrTWGgRwZCCGEOYuHQVhYGEePHkWn01FVVUVCQgKRkZFmZfz8/EhOTgbg1KlT5OXl4e3t\nzbp169Dr9eTn5/PWW28xYcIEtm3bZrG25edDr17g7GyxVQohRIdg8dNEdnZ2xMbGEhERgcFgYNGi\nRfj7+xMXFwfA0qVLefTRR1mwYAEhISHU1tbyzDPP0Ldv3zrrsvTVRNJfIIQQ9etUA9U99hjY28M1\ndDkIIUS7JAPVXUKGoRBCiPp1qjCQ00RCCFG/ThMGp07BhQvg4dHaLRFCiLan04TBTz/BzJlghREu\nhBCi3etUHchCCNFZSQeyEEKIJkkYCCGEkDAQQgghYSCEEAIJAyGEEEgYCCGEQMJACCEEEgZCCCGQ\nMBBCCIGEgRBCCDpRGFzJg6GlPqlP6mufdXWG+qzFKmGQlJSEn58fQ4cOZcOGDXXmnzlzhsmTJxMa\nGkpQUBBbt24FjM9LHj9+PIGBgQQFBfHSSy9ZrE0d/R+I1Cf1tdX6OvJ3a436rMXiYWAwGFi2bBlJ\nSUnk5OQQHx9Pbm6uWZnY2Fi0Wi1ZWVmkpKSwcuVKampqsLe354UXXuDQoUOkpaXxyiuv1FlWCCGE\n5Vk8DDIyMvDx8cHT0xN7e3uioqJITEw0K+Pq6kpZWRkAZWVlODs7Y2dnx8CBAwn99VFkDg4O+Pv7\nc/LkSUs3UQghxOWUhb399ttq8eLFpunXX39dLVu2zKyMwWBQ48aNU66ursrBwUHt2rWrznry8/OV\nh4eHKi8vN/sckJe85CUveV3FqzF2WJhNM54es27dOkJDQ0lJSeH48eNMmjSJ7OxsHB0dAaioqGDG\njBnExMTg4OBgtqySZxkIIYTFWfw0kZubG3q93jSt1+vRaDRmZVJTU5k5cyYA3t7eeHl5kZeXB0B1\ndTXTp09n7ty53HHHHZZunhBCiHpYPAzCwsI4evQoOp2OqqoqEhISiIyMNCvj5+dHcnIyAKdOnSIv\nL48hQ4aglGLRokUEBASwYsUKSzdNCCFEA6zy2MuPP/6YFStWYDAYWLRoEWvWrCEuLg6ApUuXcubM\nGRYsWMCJEyeora1lzZo1zJ49my+//JLf/e53DBs2zHS6af369UyePNnSTRRCCHGpq+wnblcWLFig\nBgwYoIKCgqxe14kTJ1R4eLgKCAhQgYGBKiYmxqr1nT9/Xo0aNUqFhIQof39/tXr1aqvWd1FNTY0K\nDQ1Vt912m9XrGjx4sAoODlahoaFq5MiRVq+vuLhYTZ8+Xfn5+Sl/f3/1v//9z2p1HT58WIWGhppe\nTk5OVv83s27dOhUQEKCCgoLUrFmz1IULF6xW14svvqiCgoJUYGCgevHFFy2+/vr+b589e1ZNnDhR\nDR06VE2aNEkVFxdbtb4dO3aogIAAZWtrq7799luL1dXSOkUYfPHFF2r//v0tEgY//PCDyszMVEop\nVV5erq6//nqVk5Nj1TrPnTunlFKqurpajR49Wu3bt8+q9Sml1PPPP69mz56tbr/9dqvX5enpqc6e\nPWv1ei6aN2+e2rRpk1LK+DstKSlpkXoNBoMaOHCgOnHihNXqyM/PV15eXqYAuPPOO9XWrVutUtfB\ngwdVUFCQOn/+vKqpqVETJ05Ux44ds2gd9f3ffvjhh9WGDRuUUko9/fTTatWqVVatLzc3V+Xl5anw\n8PB2HQadYjiKm2++mT59+rRIXa1xr0SPHj0AqKqqwmAw0LdvX6vWV1hYyK5du1i8eHGLXd3VUvWU\nlpayb98+Fi5cCICdnR29evVqkbqTk5Px9vbG3d3danU4OTlhb29PZWUlNTU1VFZW4ubmZpW6Dh8+\nzOjRo+nevTtdunRh3LhxvPvuuxato77/2zt37uSee+4B4J577uH999+3an1+fn5cf/31FqujtXSK\nMGgtOp2OzMxMRo8ebdV6amtrCQ0NxcXFhfHjxxMQEGDV+h588EGeffZZbG1b5p+PjY0NEydOJCws\njI0bN1q1rvz8fPr378+CBQsYPnw49957L5WVlVat86K33nqL2bNnW7WOvn37snLlSjw8PBg0aBC9\ne/dm4sSJVqkrKCiIffv28fPPP1NZWclHH31EYWGhVeq61KlTp3BxcQHAxcWFU6dOWb3OjkDCwEoa\nu1fC0mxtbcnKyqKwsJAvvvjCqmOlfPjhhwwYMACtVttie+tfffUVmZmZfPzxx7zyyivs27fPanXV\n1NSwf/9+/vznP7N//3569uzJ008/bbX6LqqqquKDDz4wXXJtLcePH+fFF19Ep9Nx8uRJKioq2L59\nu1Xq8vPzY9WqVdx66638/ve/R6vVttgOxEU2NjbNuvdJSBhYRWvdK9GrVy/+8Ic/8M0331itjtTU\nVHbu3ImXlxezZs1iz549zJs3z2r1gXH4EoD+/fszdepUMjIyrFaXRqNBo9EwcuRIAGbMmMH+/fut\nVt9FH3/8MSNGjKB///5Wreebb75hzJgxpiFgpk2bRmpqqtXqW7hwId988w179+6ld+/e+Pr6Wq2u\ni1xcXPjxxx8B+OGHHxgwYIDV6+wIJAwsTLXwvRJnzpyhpKQEgPPnz/Ppp5+i1WqtVt+6devQ6/Xk\n5+fz1ltvMWHCBLZt22a1+iorKykvLwfg3Llz7N69m+DgYKvVN3DgQNzd3Tly5AhgPI8fGBhotfou\nio+PZ9asWVavx8/Pj7S0NM6fP49SiuTkZKueVvzpp58AOHHiBO+9957VT4MBREZG8tprrwHw2muv\ntegOWUsdLVtFa/Zet5SoqCjl6uqqunbtqjQajdq8ebPV6tq3b5+ysbFRISEhpssFP/74Y6vVd+DA\nAaXValVISIgKDg5WzzzzjNXqulxKSorVryb6/vvvVUhIiAoJCVGBgYFq3bp1Vq1PKaWysrJUWFiY\nGjZsmJo6darVryaqqKhQzs7OqqyszKr1XLRhwwbTpaXz5s1TVVVVVqvr5ptvVgEBASokJETt2bPH\n4uu/+H/b3t7e9H/77Nmz6pZbbrHKpaWX17dp0yb13nvvKY1Go7p3765cXFzU5MmTLVZfS7LKTWdC\nCCHaFzlNJIQQQsJACCGEhIEQQggkDIQQQiBhIDqoNWvWkJKSwvvvv3/FN42dPn2a0aNHM2LECL76\n6iuzeeHh4fj5+aHVatFqtVc1vEJ2djYff/zxFS8nhDVJGIgOKSMjgxtuuIG9e/fyu9/97oqW/eyz\nzxg2bBjffvstN910k9k8Gxsb3nzzTTIzM8nMzGTatGlX3LbMzEx27dp1Rcso46CSV1yXEM0lYSA6\nlEceeYSQkBC+/vprbrzxRjZt2sSf/vQnnnrqqTpldTodEyZMICQkhIkTJ6LX68nKymLVqlUkJiai\n1Wq5cOFCneUu3yifPn2aGTNmMGrUKEaNGmW6ozcjI4MxY8YwfPhwbrrpJo4cOUJVVRX/93//R0JC\nAlqtlh07dhAdHc3zzz9vWl9QUBAnTpxAp9Ph6+vLPffcQ3BwMHq9nmeffZZRo0YREhJCdHQ0YLwZ\n7w9/+AOhoaEEBwezY8cOC/5GRafRqnc5CGEFX3/9tfrLX/6iqqur1U033dRgudtuu01t27ZNKaXU\n5s2b1R133KGUUmrr1q3qgQceqHeZcePGKV9fXxUaGqq0Wq06e/asmjVrlvryyy+VUkoVFBQof39/\npZRSZWVlqqamRiml1KeffqqmT59e7/qjo6PVc889Z5oOCgpSBQUFKj8/X9na2qr09HSllFKffPKJ\nWrJkiVLKONz1bbfdpr744gv1zjvvqHvvvde0fGlp6RX8toQwsmvtMBLC0r799luGDRtGbm4u/v7+\nDZZLS0szDW88d+5cHnnkEaDxUzIXTxMNHz7c9FlycjK5ubmm6fLyciorKykpKWHevHkcO3YMGxsb\nampqmlz/5QYPHsyoUaMA2L17N7t37zYNN3Lu3DmOHTvG2LFjWblyJatXr+a2225j7NixzVq3EJeS\nMBAdRnZ2NvPnz6ewsJB+/fpRWVmJUorhw4eTmppK9+7d6yzT3I1yY8sopUhPT6dr165mn//5z3/m\nlltu4b333qOgoIDw8PB612dnZ0dtba1p+tJTUz179jQru2bNGpYsWVJnHZmZmXz00Uf87W9/45Zb\nbuHxxx+/0q8lOjnpMxAdRkhICJmZmVx//fXk5uYyYcIEdu/ezf79++sNgjFjxvDWW28BsH379mZ3\nNF8+JPKtt97KSy+9ZJrOzs4GoKysjEGDBgGwZcsW03wnJyfT4HsAnp6eppFR9+/fT35+fr31RkRE\nsHnzZs6dOwdAUVERp0+f5ocffqB79+7MmTOHhx56qEVGWRUdj4SB6FBOnz5tetLb4cOH8fPza7Ds\nyy+/zJYtWwgJCWH79u3ExMQAVz4G/ksvvcQ333xDSEgIgYGBxMXFAcbO7DVr1jB8+HAMBoNpnePH\njycnJwetVsvbb7/N9OnT+fnnnwkKCuKVV14xG+b50nZMmjSJ2bNnc+ONNzJs2DDuvPNOysvLOXjw\nIKNHj0ar1fL3v/9djgrEVZGB6oQQQsiRgRBCCAkDIYQQSBgIIYRAwkAIIQQSBkIIIZAwEEIIAfx/\noVCkQHqsOZgAAAAASUVORK5CYII=\n"
}
],
"prompt_number": 117
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
| 106.695286
| 22,978
| 0.757357
| 4,014
| 63,377
| 11.940708
| 0.465371
| 0.011579
| 0.016691
| 0.008888
| 0.070979
| 0.062487
| 0.055164
| 0.049614
| 0.046067
| 0.041957
| 0
| 0.159945
| 0.143128
| 63,377
| 594
| 22,979
| 106.695286
| 0.722646
| 0
| 0
| 0.454545
| 0
| 0.010101
| 0.884755
| 0.682193
| 0
| 1
| 0.000347
| 0
| 0
| 1
| 0
| true
| 0
| 0.035354
| 0
| 0.035354
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cb4f633acb40deac6a0408add28957990f49aa42
| 123,611
|
py
|
Python
|
030_ClassificationWebsite/apps/words/titles.py
|
cogeorg/RegulatoryComplexity_Public
|
c9578ce012ba1e84dbebb029e30d98eff3430fd6
|
[
"Apache-2.0"
] | null | null | null |
030_ClassificationWebsite/apps/words/titles.py
|
cogeorg/RegulatoryComplexity_Public
|
c9578ce012ba1e84dbebb029e30d98eff3430fd6
|
[
"Apache-2.0"
] | null | null | null |
030_ClassificationWebsite/apps/words/titles.py
|
cogeorg/RegulatoryComplexity_Public
|
c9578ce012ba1e84dbebb029e30d98eff3430fd6
|
[
"Apache-2.0"
] | null | null | null |
from flask import request, jsonify, redirect, url_for,flash, render_template, request, session, abort
from views import app
@app.route('/title_0_Y')
def title_0_Y():
return render_template('PreClass/title_0.html')
@app.route('/title_1_Y')
def title_1_Y():
return render_template('PreClass/title_1.html')
@app.route('/title_10_Y')
def title_10_Y():
return render_template('PreClass/title_10.html')
@app.route('/title_100_Y')
def title_100_Y():
return render_template('PreClass/title_100.html')
@app.route('/title_101_Y')
def title_101_Y():
return render_template('PreClass/title_101.html')
@app.route('/title_102_Y')
def title_102_Y():
return render_template('PreClass/title_102.html')
@app.route('/title_103_Y')
def title_103_Y():
return render_template('PreClass/title_103.html')
@app.route('/title_104_Y')
def title_104_Y():
return render_template('PreClass/title_104.html')
@app.route('/title_105_Y')
def title_105_Y():
return render_template('PreClass/title_105.html')
@app.route('/title_106_Y')
def title_106_Y():
return render_template('PreClass/title_106.html')
@app.route('/title_107_Y')
def title_107_Y():
return render_template('PreClass/title_107.html')
@app.route('/title_108_Y')
def title_108_Y():
return render_template('PreClass/title_108.html')
@app.route('/title_109_Y')
def title_109_Y():
return render_template('PreClass/title_109.html')
@app.route('/title_11_Y')
def title_11_Y():
return render_template('PreClass/title_11.html')
@app.route('/title_110_Y')
def title_110_Y():
return render_template('PreClass/title_110.html')
@app.route('/title_111_Y')
def title_111_Y():
return render_template('PreClass/title_111.html')
@app.route('/title_112_Y')
def title_112_Y():
return render_template('PreClass/title_112.html')
@app.route('/title_113_Y')
def title_113_Y():
return render_template('PreClass/title_113.html')
@app.route('/title_114_Y')
def title_114_Y():
return render_template('PreClass/title_114.html')
@app.route('/title_115_Y')
def title_115_Y():
return render_template('PreClass/title_115.html')
@app.route('/title_116_Y')
def title_116_Y():
return render_template('PreClass/title_116.html')
@app.route('/title_117_Y')
def title_117_Y():
return render_template('PreClass/title_117.html')
@app.route('/title_118_Y')
def title_118_Y():
return render_template('PreClass/title_118.html')
@app.route('/title_119_Y')
def title_119_Y():
return render_template('PreClass/title_119.html')
@app.route('/title_12_Y')
def title_12_Y():
return render_template('PreClass/title_12.html')
@app.route('/title_120_Y')
def title_120_Y():
return render_template('PreClass/title_120.html')
@app.route('/title_121_Y')
def title_121_Y():
return render_template('PreClass/title_121.html')
@app.route('/title_122_Y')
def title_122_Y():
return render_template('PreClass/title_122.html')
@app.route('/title_123_Y')
def title_123_Y():
return render_template('PreClass/title_123.html')
@app.route('/title_124_Y')
def title_124_Y():
return render_template('PreClass/title_124.html')
@app.route('/title_125_Y')
def title_125_Y():
return render_template('PreClass/title_125.html')
@app.route('/title_126_Y')
def title_126_Y():
return render_template('PreClass/title_126.html')
@app.route('/title_127_Y')
def title_127_Y():
return render_template('PreClass/title_127.html')
@app.route('/title_128_Y')
def title_128_Y():
return render_template('PreClass/title_128.html')
@app.route('/title_129_Y')
def title_129_Y():
return render_template('PreClass/title_129.html')
@app.route('/title_13_Y')
def title_13_Y():
return render_template('PreClass/title_13.html')
@app.route('/title_130_Y')
def title_130_Y():
return render_template('PreClass/title_130.html')
@app.route('/title_131_Y')
def title_131_Y():
return render_template('PreClass/title_131.html')
@app.route('/title_132_Y')
def title_132_Y():
return render_template('PreClass/title_132.html')
@app.route('/title_133_Y')
def title_133_Y():
return render_template('PreClass/title_133.html')
@app.route('/title_134_Y')
def title_134_Y():
return render_template('PreClass/title_134.html')
@app.route('/title_135_Y')
def title_135_Y():
return render_template('PreClass/title_135.html')
@app.route('/title_136_Y')
def title_136_Y():
return render_template('PreClass/title_136.html')
@app.route('/title_137_Y')
def title_137_Y():
return render_template('PreClass/title_137.html')
@app.route('/title_138_Y')
def title_138_Y():
return render_template('PreClass/title_138.html')
@app.route('/title_139_Y')
def title_139_Y():
return render_template('PreClass/title_139.html')
@app.route('/title_14_Y')
def title_14_Y():
return render_template('PreClass/title_14.html')
@app.route('/title_140_Y')
def title_140_Y():
return render_template('PreClass/title_140.html')
@app.route('/title_141_Y')
def title_141_Y():
return render_template('PreClass/title_141.html')
@app.route('/title_142_Y')
def title_142_Y():
return render_template('PreClass/title_142.html')
@app.route('/title_143_Y')
def title_143_Y():
return render_template('PreClass/title_143.html')
@app.route('/title_144_Y')
def title_144_Y():
return render_template('PreClass/title_144.html')
@app.route('/title_145_Y')
def title_145_Y():
return render_template('PreClass/title_145.html')
@app.route('/title_146_Y')
def title_146_Y():
return render_template('PreClass/title_146.html')
@app.route('/title_147_Y')
def title_147_Y():
return render_template('PreClass/title_147.html')
@app.route('/title_148_Y')
def title_148_Y():
return render_template('PreClass/title_148.html')
@app.route('/title_149_Y')
def title_149_Y():
return render_template('PreClass/title_149.html')
@app.route('/title_15_Y')
def title_15_Y():
return render_template('PreClass/title_15.html')
@app.route('/title_150_Y')
def title_150_Y():
return render_template('PreClass/title_150.html')
@app.route('/title_151_Y')
def title_151_Y():
return render_template('PreClass/title_151.html')
@app.route('/title_152_Y')
def title_152_Y():
return render_template('PreClass/title_152.html')
@app.route('/title_153_Y')
def title_153_Y():
return render_template('PreClass/title_153.html')
@app.route('/title_154_Y')
def title_154_Y():
return render_template('PreClass/title_154.html')
@app.route('/title_155_Y')
def title_155_Y():
return render_template('PreClass/title_155.html')
@app.route('/title_156_Y')
def title_156_Y():
return render_template('PreClass/title_156.html')
@app.route('/title_157_Y')
def title_157_Y():
return render_template('PreClass/title_157.html')
@app.route('/title_158_Y')
def title_158_Y():
return render_template('PreClass/title_158.html')
@app.route('/title_159_Y')
def title_159_Y():
return render_template('PreClass/title_159.html')
@app.route('/title_16_Y')
def title_16_Y():
return render_template('PreClass/title_16.html')
@app.route('/title_160_Y')
def title_160_Y():
return render_template('PreClass/title_160.html')
@app.route('/title_161_Y')
def title_161_Y():
return render_template('PreClass/title_161.html')
@app.route('/title_162_Y')
def title_162_Y():
return render_template('PreClass/title_162.html')
@app.route('/title_163_Y')
def title_163_Y():
return render_template('PreClass/title_163.html')
@app.route('/title_164_Y')
def title_164_Y():
return render_template('PreClass/title_164.html')
@app.route('/title_165_Y')
def title_165_Y():
return render_template('PreClass/title_165.html')
@app.route('/title_166_Y')
def title_166_Y():
return render_template('PreClass/title_166.html')
@app.route('/title_167_Y')
def title_167_Y():
return render_template('PreClass/title_167.html')
@app.route('/title_168_Y')
def title_168_Y():
return render_template('PreClass/title_168.html')
@app.route('/title_169_Y')
def title_169_Y():
return render_template('PreClass/title_169.html')
@app.route('/title_17_Y')
def title_17_Y():
return render_template('PreClass/title_17.html')
@app.route('/title_170_Y')
def title_170_Y():
return render_template('PreClass/title_170.html')
@app.route('/title_171_Y')
def title_171_Y():
return render_template('PreClass/title_171.html')
@app.route('/title_172_Y')
def title_172_Y():
return render_template('PreClass/title_172.html')
@app.route('/title_173_Y')
def title_173_Y():
return render_template('PreClass/title_173.html')
@app.route('/title_174_Y')
def title_174_Y():
return render_template('PreClass/title_174.html')
@app.route('/title_175_Y')
def title_175_Y():
return render_template('PreClass/title_175.html')
@app.route('/title_176_Y')
def title_176_Y():
return render_template('PreClass/title_176.html')
@app.route('/title_177_Y')
def title_177_Y():
return render_template('PreClass/title_177.html')
@app.route('/title_178_Y')
def title_178_Y():
return render_template('PreClass/title_178.html')
@app.route('/title_179_Y')
def title_179_Y():
return render_template('PreClass/title_179.html')
@app.route('/title_18_Y')
def title_18_Y():
return render_template('PreClass/title_18.html')
@app.route('/title_180_Y')
def title_180_Y():
return render_template('PreClass/title_180.html')
@app.route('/title_181_Y')
def title_181_Y():
return render_template('PreClass/title_181.html')
@app.route('/title_182_Y')
def title_182_Y():
return render_template('PreClass/title_182.html')
@app.route('/title_183_Y')
def title_183_Y():
return render_template('PreClass/title_183.html')
@app.route('/title_184_Y')
def title_184_Y():
return render_template('PreClass/title_184.html')
@app.route('/title_185_Y')
def title_185_Y():
return render_template('PreClass/title_185.html')
@app.route('/title_186_Y')
def title_186_Y():
return render_template('PreClass/title_186.html')
@app.route('/title_187_Y')
def title_187_Y():
return render_template('PreClass/title_187.html')
@app.route('/title_188_Y')
def title_188_Y():
return render_template('PreClass/title_188.html')
@app.route('/title_189_Y')
def title_189_Y():
return render_template('PreClass/title_189.html')
@app.route('/title_19_Y')
def title_19_Y():
return render_template('PreClass/title_19.html')
@app.route('/title_190_Y')
def title_190_Y():
return render_template('PreClass/title_190.html')
@app.route('/title_191_Y')
def title_191_Y():
return render_template('PreClass/title_191.html')
@app.route('/title_192_Y')
def title_192_Y():
return render_template('PreClass/title_192.html')
@app.route('/title_193_Y')
def title_193_Y():
return render_template('PreClass/title_193.html')
@app.route('/title_194_Y')
def title_194_Y():
return render_template('PreClass/title_194.html')
@app.route('/title_195_Y')
def title_195_Y():
return render_template('PreClass/title_195.html')
@app.route('/title_196_Y')
def title_196_Y():
return render_template('PreClass/title_196.html')
@app.route('/title_197_Y')
def title_197_Y():
return render_template('PreClass/title_197.html')
@app.route('/title_198_Y')
def title_198_Y():
return render_template('PreClass/title_198.html')
@app.route('/title_199_Y')
def title_199_Y():
return render_template('PreClass/title_199.html')
@app.route('/title_2_Y')
def title_2_Y():
return render_template('PreClass/title_2.html')
@app.route('/title_20_Y')
def title_20_Y():
return render_template('PreClass/title_20.html')
@app.route('/title_200_Y')
def title_200_Y():
return render_template('PreClass/title_200.html')
@app.route('/title_201_Y')
def title_201_Y():
return render_template('PreClass/title_201.html')
@app.route('/title_202_Y')
def title_202_Y():
return render_template('PreClass/title_202.html')
@app.route('/title_203_Y')
def title_203_Y():
return render_template('PreClass/title_203.html')
@app.route('/title_204_Y')
def title_204_Y():
return render_template('PreClass/title_204.html')
@app.route('/title_205_Y')
def title_205_Y():
return render_template('PreClass/title_205.html')
@app.route('/title_206_Y')
def title_206_Y():
return render_template('PreClass/title_206.html')
@app.route('/title_207_Y')
def title_207_Y():
return render_template('PreClass/title_207.html')
@app.route('/title_208_Y')
def title_208_Y():
return render_template('PreClass/title_208.html')
@app.route('/title_209_Y')
def title_209_Y():
return render_template('PreClass/title_209.html')
@app.route('/title_21_Y')
def title_21_Y():
return render_template('PreClass/title_21.html')
@app.route('/title_210_Y')
def title_210_Y():
return render_template('PreClass/title_210.html')
@app.route('/title_211_Y')
def title_211_Y():
return render_template('PreClass/title_211.html')
@app.route('/title_212_Y')
def title_212_Y():
return render_template('PreClass/title_212.html')
@app.route('/title_213_Y')
def title_213_Y():
return render_template('PreClass/title_213.html')
@app.route('/title_214_Y')
def title_214_Y():
return render_template('PreClass/title_214.html')
@app.route('/title_215_Y')
def title_215_Y():
return render_template('PreClass/title_215.html')
@app.route('/title_216_Y')
def title_216_Y():
return render_template('PreClass/title_216.html')
@app.route('/title_217_Y')
def title_217_Y():
return render_template('PreClass/title_217.html')
@app.route('/title_218_Y')
def title_218_Y():
return render_template('PreClass/title_218.html')
@app.route('/title_219_Y')
def title_219_Y():
return render_template('PreClass/title_219.html')
@app.route('/title_22_Y')
def title_22_Y():
return render_template('PreClass/title_22.html')
@app.route('/title_220_Y')
def title_220_Y():
return render_template('PreClass/title_220.html')
@app.route('/title_221_Y')
def title_221_Y():
return render_template('PreClass/title_221.html')
@app.route('/title_222_Y')
def title_222_Y():
return render_template('PreClass/title_222.html')
@app.route('/title_223_Y')
def title_223_Y():
return render_template('PreClass/title_223.html')
@app.route('/title_224_Y')
def title_224_Y():
return render_template('PreClass/title_224.html')
@app.route('/title_225_Y')
def title_225_Y():
return render_template('PreClass/title_225.html')
@app.route('/title_226_Y')
def title_226_Y():
return render_template('PreClass/title_226.html')
@app.route('/title_227_Y')
def title_227_Y():
return render_template('PreClass/title_227.html')
@app.route('/title_228_Y')
def title_228_Y():
return render_template('PreClass/title_228.html')
@app.route('/title_229_Y')
def title_229_Y():
return render_template('PreClass/title_229.html')
@app.route('/title_23_Y')
def title_23_Y():
return render_template('PreClass/title_23.html')
@app.route('/title_230_Y')
def title_230_Y():
return render_template('PreClass/title_230.html')
@app.route('/title_231_Y')
def title_231_Y():
return render_template('PreClass/title_231.html')
@app.route('/title_232_Y')
def title_232_Y():
return render_template('PreClass/title_232.html')
@app.route('/title_233_Y')
def title_233_Y():
return render_template('PreClass/title_233.html')
@app.route('/title_234_Y')
def title_234_Y():
return render_template('PreClass/title_234.html')
@app.route('/title_235_Y')
def title_235_Y():
return render_template('PreClass/title_235.html')
@app.route('/title_236_Y')
def title_236_Y():
return render_template('PreClass/title_236.html')
@app.route('/title_237_Y')
def title_237_Y():
return render_template('PreClass/title_237.html')
@app.route('/title_238_Y')
def title_238_Y():
return render_template('PreClass/title_238.html')
@app.route('/title_239_Y')
def title_239_Y():
return render_template('PreClass/title_239.html')
@app.route('/title_24_Y')
def title_24_Y():
return render_template('PreClass/title_24.html')
@app.route('/title_240_Y')
def title_240_Y():
return render_template('PreClass/title_240.html')
@app.route('/title_241_Y')
def title_241_Y():
return render_template('PreClass/title_241.html')
@app.route('/title_242_Y')
def title_242_Y():
return render_template('PreClass/title_242.html')
@app.route('/title_243_Y')
def title_243_Y():
return render_template('PreClass/title_243.html')
@app.route('/title_244_Y')
def title_244_Y():
return render_template('PreClass/title_244.html')
@app.route('/title_245_Y')
def title_245_Y():
return render_template('PreClass/title_245.html')
@app.route('/title_246_Y')
def title_246_Y():
return render_template('PreClass/title_246.html')
@app.route('/title_247_Y')
def title_247_Y():
return render_template('PreClass/title_247.html')
@app.route('/title_248_Y')
def title_248_Y():
return render_template('PreClass/title_248.html')
@app.route('/title_249_Y')
def title_249_Y():
return render_template('PreClass/title_249.html')
@app.route('/title_25_Y')
def title_25_Y():
return render_template('PreClass/title_25.html')
@app.route('/title_250_Y')
def title_250_Y():
return render_template('PreClass/title_250.html')
@app.route('/title_251_Y')
def title_251_Y():
return render_template('PreClass/title_251.html')
@app.route('/title_252_Y')
def title_252_Y():
return render_template('PreClass/title_252.html')
@app.route('/title_253_Y')
def title_253_Y():
return render_template('PreClass/title_253.html')
@app.route('/title_254_Y')
def title_254_Y():
return render_template('PreClass/title_254.html')
@app.route('/title_255_Y')
def title_255_Y():
return render_template('PreClass/title_255.html')
@app.route('/title_256_Y')
def title_256_Y():
return render_template('PreClass/title_256.html')
@app.route('/title_257_Y')
def title_257_Y():
return render_template('PreClass/title_257.html')
@app.route('/title_258_Y')
def title_258_Y():
return render_template('PreClass/title_258.html')
@app.route('/title_259_Y')
def title_259_Y():
return render_template('PreClass/title_259.html')
@app.route('/title_26_Y')
def title_26_Y():
return render_template('PreClass/title_26.html')
@app.route('/title_260_Y')
def title_260_Y():
return render_template('PreClass/title_260.html')
@app.route('/title_261_Y')
def title_261_Y():
return render_template('PreClass/title_261.html')
@app.route('/title_262_Y')
def title_262_Y():
return render_template('PreClass/title_262.html')
@app.route('/title_263_Y')
def title_263_Y():
return render_template('PreClass/title_263.html')
@app.route('/title_264_Y')
def title_264_Y():
return render_template('PreClass/title_264.html')
@app.route('/title_265_Y')
def title_265_Y():
return render_template('PreClass/title_265.html')
@app.route('/title_266_Y')
def title_266_Y():
return render_template('PreClass/title_266.html')
@app.route('/title_267_Y')
def title_267_Y():
return render_template('PreClass/title_267.html')
@app.route('/title_268_Y')
def title_268_Y():
return render_template('PreClass/title_268.html')
@app.route('/title_269_Y')
def title_269_Y():
return render_template('PreClass/title_269.html')
@app.route('/title_27_Y')
def title_27_Y():
return render_template('PreClass/title_27.html')
@app.route('/title_270_Y')
def title_270_Y():
return render_template('PreClass/title_270.html')
@app.route('/title_271_Y')
def title_271_Y():
return render_template('PreClass/title_271.html')
@app.route('/title_272_Y')
def title_272_Y():
return render_template('PreClass/title_272.html')
@app.route('/title_273_Y')
def title_273_Y():
return render_template('PreClass/title_273.html')
@app.route('/title_274_Y')
def title_274_Y():
return render_template('PreClass/title_274.html')
@app.route('/title_275_Y')
def title_275_Y():
return render_template('PreClass/title_275.html')
@app.route('/title_276_Y')
def title_276_Y():
return render_template('PreClass/title_276.html')
@app.route('/title_277_Y')
def title_277_Y():
return render_template('PreClass/title_277.html')
@app.route('/title_278_Y')
def title_278_Y():
return render_template('PreClass/title_278.html')
@app.route('/title_279_Y')
def title_279_Y():
return render_template('PreClass/title_279.html')
@app.route('/title_28_Y')
def title_28_Y():
return render_template('PreClass/title_28.html')
@app.route('/title_280_Y')
def title_280_Y():
return render_template('PreClass/title_280.html')
@app.route('/title_281_Y')
def title_281_Y():
return render_template('PreClass/title_281.html')
@app.route('/title_282_Y')
def title_282_Y():
return render_template('PreClass/title_282.html')
@app.route('/title_283_Y')
def title_283_Y():
return render_template('PreClass/title_283.html')
@app.route('/title_284_Y')
def title_284_Y():
return render_template('PreClass/title_284.html')
@app.route('/title_285_Y')
def title_285_Y():
return render_template('PreClass/title_285.html')
@app.route('/title_286_Y')
def title_286_Y():
return render_template('PreClass/title_286.html')
@app.route('/title_287_Y')
def title_287_Y():
return render_template('PreClass/title_287.html')
@app.route('/title_288_Y')
def title_288_Y():
return render_template('PreClass/title_288.html')
@app.route('/title_289_Y')
def title_289_Y():
return render_template('PreClass/title_289.html')
@app.route('/title_29_Y')
def title_29_Y():
return render_template('PreClass/title_29.html')
@app.route('/title_290_Y')
def title_290_Y():
return render_template('PreClass/title_290.html')
@app.route('/title_291_Y')
def title_291_Y():
return render_template('PreClass/title_291.html')
@app.route('/title_292_Y')
def title_292_Y():
return render_template('PreClass/title_292.html')
@app.route('/title_293_Y')
def title_293_Y():
return render_template('PreClass/title_293.html')
@app.route('/title_294_Y')
def title_294_Y():
return render_template('PreClass/title_294.html')
@app.route('/title_295_Y')
def title_295_Y():
return render_template('PreClass/title_295.html')
@app.route('/title_296_Y')
def title_296_Y():
return render_template('PreClass/title_296.html')
@app.route('/title_297_Y')
def title_297_Y():
return render_template('PreClass/title_297.html')
@app.route('/title_298_Y')
def title_298_Y():
return render_template('PreClass/title_298.html')
@app.route('/title_299_Y')
def title_299_Y():
return render_template('PreClass/title_299.html')
@app.route('/title_3_Y')
def title_3_Y():
return render_template('PreClass/title_3.html')
@app.route('/title_30_Y')
def title_30_Y():
return render_template('PreClass/title_30.html')
@app.route('/title_300_Y')
def title_300_Y():
return render_template('PreClass/title_300.html')
@app.route('/title_301_Y')
def title_301_Y():
return render_template('PreClass/title_301.html')
@app.route('/title_302_Y')
def title_302_Y():
return render_template('PreClass/title_302.html')
@app.route('/title_303_Y')
def title_303_Y():
return render_template('PreClass/title_303.html')
@app.route('/title_304_Y')
def title_304_Y():
return render_template('PreClass/title_304.html')
@app.route('/title_305_Y')
def title_305_Y():
return render_template('PreClass/title_305.html')
@app.route('/title_306_Y')
def title_306_Y():
return render_template('PreClass/title_306.html')
@app.route('/title_307_Y')
def title_307_Y():
return render_template('PreClass/title_307.html')
@app.route('/title_308_Y')
def title_308_Y():
return render_template('PreClass/title_308.html')
@app.route('/title_309_Y')
def title_309_Y():
return render_template('PreClass/title_309.html')
@app.route('/title_31_Y')
def title_31_Y():
return render_template('PreClass/title_31.html')
@app.route('/title_310_Y')
def title_310_Y():
return render_template('PreClass/title_310.html')
@app.route('/title_311_Y')
def title_311_Y():
return render_template('PreClass/title_311.html')
@app.route('/title_312_Y')
def title_312_Y():
return render_template('PreClass/title_312.html')
@app.route('/title_313_Y')
def title_313_Y():
return render_template('PreClass/title_313.html')
@app.route('/title_314_Y')
def title_314_Y():
return render_template('PreClass/title_314.html')
@app.route('/title_315_Y')
def title_315_Y():
return render_template('PreClass/title_315.html')
@app.route('/title_316_Y')
def title_316_Y():
return render_template('PreClass/title_316.html')
@app.route('/title_317_Y')
def title_317_Y():
return render_template('PreClass/title_317.html')
@app.route('/title_318_Y')
def title_318_Y():
return render_template('PreClass/title_318.html')
@app.route('/title_319_Y')
def title_319_Y():
return render_template('PreClass/title_319.html')
@app.route('/title_32_Y')
def title_32_Y():
return render_template('PreClass/title_32.html')
@app.route('/title_320_Y')
def title_320_Y():
return render_template('PreClass/title_320.html')
@app.route('/title_321_Y')
def title_321_Y():
return render_template('PreClass/title_321.html')
@app.route('/title_322_Y')
def title_322_Y():
return render_template('PreClass/title_322.html')
@app.route('/title_323_Y')
def title_323_Y():
return render_template('PreClass/title_323.html')
@app.route('/title_324_Y')
def title_324_Y():
return render_template('PreClass/title_324.html')
@app.route('/title_325_Y')
def title_325_Y():
return render_template('PreClass/title_325.html')
@app.route('/title_326_Y')
def title_326_Y():
return render_template('PreClass/title_326.html')
@app.route('/title_327_Y')
def title_327_Y():
return render_template('PreClass/title_327.html')
@app.route('/title_328_Y')
def title_328_Y():
return render_template('PreClass/title_328.html')
@app.route('/title_329_Y')
def title_329_Y():
return render_template('PreClass/title_329.html')
@app.route('/title_33_Y')
def title_33_Y():
return render_template('PreClass/title_33.html')
@app.route('/title_330_Y')
def title_330_Y():
return render_template('PreClass/title_330.html')
@app.route('/title_331_Y')
def title_331_Y():
return render_template('PreClass/title_331.html')
@app.route('/title_332_Y')
def title_332_Y():
return render_template('PreClass/title_332.html')
@app.route('/title_333_Y')
def title_333_Y():
return render_template('PreClass/title_333.html')
@app.route('/title_334_Y')
def title_334_Y():
return render_template('PreClass/title_334.html')
@app.route('/title_335_Y')
def title_335_Y():
return render_template('PreClass/title_335.html')
@app.route('/title_336_Y')
def title_336_Y():
return render_template('PreClass/title_336.html')
@app.route('/title_337_Y')
def title_337_Y():
return render_template('PreClass/title_337.html')
@app.route('/title_338_Y')
def title_338_Y():
return render_template('PreClass/title_338.html')
@app.route('/title_339_Y')
def title_339_Y():
return render_template('PreClass/title_339.html')
@app.route('/title_34_Y')
def title_34_Y():
return render_template('PreClass/title_34.html')
@app.route('/title_340_Y')
def title_340_Y():
return render_template('PreClass/title_340.html')
@app.route('/title_341_Y')
def title_341_Y():
return render_template('PreClass/title_341.html')
@app.route('/title_342_Y')
def title_342_Y():
return render_template('PreClass/title_342.html')
@app.route('/title_343_Y')
def title_343_Y():
return render_template('PreClass/title_343.html')
@app.route('/title_344_Y')
def title_344_Y():
return render_template('PreClass/title_344.html')
@app.route('/title_345_Y')
def title_345_Y():
return render_template('PreClass/title_345.html')
@app.route('/title_346_Y')
def title_346_Y():
return render_template('PreClass/title_346.html')
@app.route('/title_347_Y')
def title_347_Y():
return render_template('PreClass/title_347.html')
@app.route('/title_348_Y')
def title_348_Y():
return render_template('PreClass/title_348.html')
@app.route('/title_349_Y')
def title_349_Y():
return render_template('PreClass/title_349.html')
@app.route('/title_35_Y')
def title_35_Y():
return render_template('PreClass/title_35.html')
@app.route('/title_350_Y')
def title_350_Y():
return render_template('PreClass/title_350.html')
@app.route('/title_351_Y')
def title_351_Y():
return render_template('PreClass/title_351.html')
@app.route('/title_352_Y')
def title_352_Y():
return render_template('PreClass/title_352.html')
@app.route('/title_353_Y')
def title_353_Y():
return render_template('PreClass/title_353.html')
@app.route('/title_354_Y')
def title_354_Y():
return render_template('PreClass/title_354.html')
@app.route('/title_355_Y')
def title_355_Y():
return render_template('PreClass/title_355.html')
@app.route('/title_356_Y')
def title_356_Y():
return render_template('PreClass/title_356.html')
@app.route('/title_357_Y')
def title_357_Y():
return render_template('PreClass/title_357.html')
@app.route('/title_358_Y')
def title_358_Y():
return render_template('PreClass/title_358.html')
@app.route('/title_359_Y')
def title_359_Y():
return render_template('PreClass/title_359.html')
@app.route('/title_36_Y')
def title_36_Y():
return render_template('PreClass/title_36.html')
@app.route('/title_360_Y')
def title_360_Y():
return render_template('PreClass/title_360.html')
@app.route('/title_361_Y')
def title_361_Y():
return render_template('PreClass/title_361.html')
@app.route('/title_362_Y')
def title_362_Y():
return render_template('PreClass/title_362.html')
@app.route('/title_363_Y')
def title_363_Y():
return render_template('PreClass/title_363.html')
@app.route('/title_364_Y')
def title_364_Y():
return render_template('PreClass/title_364.html')
@app.route('/title_365_Y')
def title_365_Y():
return render_template('PreClass/title_365.html')
@app.route('/title_366_Y')
def title_366_Y():
return render_template('PreClass/title_366.html')
@app.route('/title_367_Y')
def title_367_Y():
return render_template('PreClass/title_367.html')
@app.route('/title_368_Y')
def title_368_Y():
return render_template('PreClass/title_368.html')
@app.route('/title_369_Y')
def title_369_Y():
return render_template('PreClass/title_369.html')
@app.route('/title_37_Y')
def title_37_Y():
return render_template('PreClass/title_37.html')
@app.route('/title_370_Y')
def title_370_Y():
return render_template('PreClass/title_370.html')
@app.route('/title_371_Y')
def title_371_Y():
return render_template('PreClass/title_371.html')
@app.route('/title_372_Y')
def title_372_Y():
return render_template('PreClass/title_372.html')
@app.route('/title_373_Y')
def title_373_Y():
return render_template('PreClass/title_373.html')
@app.route('/title_374_Y')
def title_374_Y():
return render_template('PreClass/title_374.html')
@app.route('/title_375_Y')
def title_375_Y():
return render_template('PreClass/title_375.html')
@app.route('/title_376_Y')
def title_376_Y():
return render_template('PreClass/title_376.html')
@app.route('/title_377_Y')
def title_377_Y():
return render_template('PreClass/title_377.html')
@app.route('/title_378_Y')
def title_378_Y():
return render_template('PreClass/title_378.html')
@app.route('/title_379_Y')
def title_379_Y():
return render_template('PreClass/title_379.html')
@app.route('/title_38_Y')
def title_38_Y():
return render_template('PreClass/title_38.html')
@app.route('/title_380_Y')
def title_380_Y():
return render_template('PreClass/title_380.html')
@app.route('/title_381_Y')
def title_381_Y():
return render_template('PreClass/title_381.html')
@app.route('/title_382_Y')
def title_382_Y():
return render_template('PreClass/title_382.html')
@app.route('/title_383_Y')
def title_383_Y():
return render_template('PreClass/title_383.html')
@app.route('/title_384_Y')
def title_384_Y():
return render_template('PreClass/title_384.html')
@app.route('/title_385_Y')
def title_385_Y():
return render_template('PreClass/title_385.html')
@app.route('/title_386_Y')
def title_386_Y():
return render_template('PreClass/title_386.html')
@app.route('/title_387_Y')
def title_387_Y():
return render_template('PreClass/title_387.html')
@app.route('/title_388_Y')
def title_388_Y():
return render_template('PreClass/title_388.html')
@app.route('/title_389_Y')
def title_389_Y():
return render_template('PreClass/title_389.html')
@app.route('/title_39_Y')
def title_39_Y():
return render_template('PreClass/title_39.html')
@app.route('/title_390_Y')
def title_390_Y():
return render_template('PreClass/title_390.html')
@app.route('/title_391_Y')
def title_391_Y():
return render_template('PreClass/title_391.html')
@app.route('/title_392_Y')
def title_392_Y():
return render_template('PreClass/title_392.html')
@app.route('/title_393_Y')
def title_393_Y():
return render_template('PreClass/title_393.html')
@app.route('/title_394_Y')
def title_394_Y():
return render_template('PreClass/title_394.html')
@app.route('/title_395_Y')
def title_395_Y():
return render_template('PreClass/title_395.html')
@app.route('/title_396_Y')
def title_396_Y():
return render_template('PreClass/title_396.html')
@app.route('/title_397_Y')
def title_397_Y():
return render_template('PreClass/title_397.html')
@app.route('/title_398_Y')
def title_398_Y():
return render_template('PreClass/title_398.html')
@app.route('/title_399_Y')
def title_399_Y():
return render_template('PreClass/title_399.html')
@app.route('/title_4_Y')
def title_4_Y():
return render_template('PreClass/title_4.html')
@app.route('/title_40_Y')
def title_40_Y():
return render_template('PreClass/title_40.html')
@app.route('/title_400_Y')
def title_400_Y():
return render_template('PreClass/title_400.html')
@app.route('/title_401_Y')
def title_401_Y():
return render_template('PreClass/title_401.html')
@app.route('/title_402_Y')
def title_402_Y():
return render_template('PreClass/title_402.html')
@app.route('/title_403_Y')
def title_403_Y():
return render_template('PreClass/title_403.html')
@app.route('/title_404_Y')
def title_404_Y():
return render_template('PreClass/title_404.html')
@app.route('/title_405_Y')
def title_405_Y():
return render_template('PreClass/title_405.html')
@app.route('/title_406_Y')
def title_406_Y():
return render_template('PreClass/title_406.html')
@app.route('/title_407_Y')
def title_407_Y():
return render_template('PreClass/title_407.html')
@app.route('/title_408_Y')
def title_408_Y():
return render_template('PreClass/title_408.html')
@app.route('/title_409_Y')
def title_409_Y():
return render_template('PreClass/title_409.html')
@app.route('/title_41_Y')
def title_41_Y():
return render_template('PreClass/title_41.html')
@app.route('/title_410_Y')
def title_410_Y():
return render_template('PreClass/title_410.html')
@app.route('/title_411_Y')
def title_411_Y():
return render_template('PreClass/title_411.html')
@app.route('/title_412_Y')
def title_412_Y():
return render_template('PreClass/title_412.html')
@app.route('/title_413_Y')
def title_413_Y():
return render_template('PreClass/title_413.html')
@app.route('/title_414_Y')
def title_414_Y():
return render_template('PreClass/title_414.html')
@app.route('/title_415_Y')
def title_415_Y():
return render_template('PreClass/title_415.html')
@app.route('/title_416_Y')
def title_416_Y():
return render_template('PreClass/title_416.html')
@app.route('/title_417_Y')
def title_417_Y():
return render_template('PreClass/title_417.html')
@app.route('/title_418_Y')
def title_418_Y():
return render_template('PreClass/title_418.html')
@app.route('/title_419_Y')
def title_419_Y():
return render_template('PreClass/title_419.html')
@app.route('/title_42_Y')
def title_42_Y():
return render_template('PreClass/title_42.html')
@app.route('/title_420_Y')
def title_420_Y():
return render_template('PreClass/title_420.html')
@app.route('/title_421_Y')
def title_421_Y():
return render_template('PreClass/title_421.html')
@app.route('/title_422_Y')
def title_422_Y():
return render_template('PreClass/title_422.html')
@app.route('/title_423_Y')
def title_423_Y():
return render_template('PreClass/title_423.html')
@app.route('/title_424_Y')
def title_424_Y():
return render_template('PreClass/title_424.html')
@app.route('/title_425_Y')
def title_425_Y():
return render_template('PreClass/title_425.html')
@app.route('/title_426_Y')
def title_426_Y():
return render_template('PreClass/title_426.html')
@app.route('/title_427_Y')
def title_427_Y():
return render_template('PreClass/title_427.html')
@app.route('/title_428_Y')
def title_428_Y():
return render_template('PreClass/title_428.html')
@app.route('/title_429_Y')
def title_429_Y():
return render_template('PreClass/title_429.html')
@app.route('/title_43_Y')
def title_43_Y():
return render_template('PreClass/title_43.html')
@app.route('/title_430_Y')
def title_430_Y():
return render_template('PreClass/title_430.html')
@app.route('/title_431_Y')
def title_431_Y():
return render_template('PreClass/title_431.html')
@app.route('/title_432_Y')
def title_432_Y():
return render_template('PreClass/title_432.html')
@app.route('/title_433_Y')
def title_433_Y():
return render_template('PreClass/title_433.html')
@app.route('/title_434_Y')
def title_434_Y():
return render_template('PreClass/title_434.html')
@app.route('/title_435_Y')
def title_435_Y():
return render_template('PreClass/title_435.html')
@app.route('/title_436_Y')
def title_436_Y():
return render_template('PreClass/title_436.html')
@app.route('/title_437_Y')
def title_437_Y():
return render_template('PreClass/title_437.html')
@app.route('/title_438_Y')
def title_438_Y():
return render_template('PreClass/title_438.html')
@app.route('/title_439_Y')
def title_439_Y():
return render_template('PreClass/title_439.html')
@app.route('/title_44_Y')
def title_44_Y():
return render_template('PreClass/title_44.html')
@app.route('/title_440_Y')
def title_440_Y():
return render_template('PreClass/title_440.html')
@app.route('/title_441_Y')
def title_441_Y():
return render_template('PreClass/title_441.html')
@app.route('/title_442_Y')
def title_442_Y():
return render_template('PreClass/title_442.html')
@app.route('/title_443_Y')
def title_443_Y():
return render_template('PreClass/title_443.html')
@app.route('/title_444_Y')
def title_444_Y():
return render_template('PreClass/title_444.html')
@app.route('/title_445_Y')
def title_445_Y():
return render_template('PreClass/title_445.html')
@app.route('/title_446_Y')
def title_446_Y():
return render_template('PreClass/title_446.html')
@app.route('/title_447_Y')
def title_447_Y():
return render_template('PreClass/title_447.html')
@app.route('/title_448_Y')
def title_448_Y():
return render_template('PreClass/title_448.html')
@app.route('/title_449_Y')
def title_449_Y():
return render_template('PreClass/title_449.html')
@app.route('/title_45_Y')
def title_45_Y():
return render_template('PreClass/title_45.html')
@app.route('/title_450_Y')
def title_450_Y():
return render_template('PreClass/title_450.html')
@app.route('/title_451_Y')
def title_451_Y():
return render_template('PreClass/title_451.html')
@app.route('/title_452_Y')
def title_452_Y():
return render_template('PreClass/title_452.html')
@app.route('/title_453_Y')
def title_453_Y():
return render_template('PreClass/title_453.html')
@app.route('/title_454_Y')
def title_454_Y():
return render_template('PreClass/title_454.html')
@app.route('/title_455_Y')
def title_455_Y():
return render_template('PreClass/title_455.html')
@app.route('/title_456_Y')
def title_456_Y():
return render_template('PreClass/title_456.html')
@app.route('/title_457_Y')
def title_457_Y():
return render_template('PreClass/title_457.html')
@app.route('/title_458_Y')
def title_458_Y():
return render_template('PreClass/title_458.html')
@app.route('/title_459_Y')
def title_459_Y():
return render_template('PreClass/title_459.html')
@app.route('/title_46_Y')
def title_46_Y():
return render_template('PreClass/title_46.html')
@app.route('/title_460_Y')
def title_460_Y():
return render_template('PreClass/title_460.html')
@app.route('/title_461_Y')
def title_461_Y():
return render_template('PreClass/title_461.html')
@app.route('/title_462_Y')
def title_462_Y():
return render_template('PreClass/title_462.html')
@app.route('/title_463_Y')
def title_463_Y():
return render_template('PreClass/title_463.html')
@app.route('/title_464_Y')
def title_464_Y():
return render_template('PreClass/title_464.html')
@app.route('/title_465_Y')
def title_465_Y():
return render_template('PreClass/title_465.html')
@app.route('/title_466_Y')
def title_466_Y():
return render_template('PreClass/title_466.html')
@app.route('/title_467_Y')
def title_467_Y():
return render_template('PreClass/title_467.html')
@app.route('/title_468_Y')
def title_468_Y():
return render_template('PreClass/title_468.html')
@app.route('/title_469_Y')
def title_469_Y():
return render_template('PreClass/title_469.html')
@app.route('/title_47_Y')
def title_47_Y():
return render_template('PreClass/title_47.html')
@app.route('/title_470_Y')
def title_470_Y():
return render_template('PreClass/title_470.html')
@app.route('/title_471_Y')
def title_471_Y():
return render_template('PreClass/title_471.html')
@app.route('/title_472_Y')
def title_472_Y():
return render_template('PreClass/title_472.html')
@app.route('/title_473_Y')
def title_473_Y():
return render_template('PreClass/title_473.html')
@app.route('/title_474_Y')
def title_474_Y():
return render_template('PreClass/title_474.html')
@app.route('/title_475_Y')
def title_475_Y():
return render_template('PreClass/title_475.html')
@app.route('/title_476_Y')
def title_476_Y():
return render_template('PreClass/title_476.html')
@app.route('/title_477_Y')
def title_477_Y():
return render_template('PreClass/title_477.html')
@app.route('/title_478_Y')
def title_478_Y():
return render_template('PreClass/title_478.html')
@app.route('/title_479_Y')
def title_479_Y():
return render_template('PreClass/title_479.html')
@app.route('/title_48_Y')
def title_48_Y():
return render_template('PreClass/title_48.html')
@app.route('/title_480_Y')
def title_480_Y():
return render_template('PreClass/title_480.html')
@app.route('/title_481_Y')
def title_481_Y():
return render_template('PreClass/title_481.html')
@app.route('/title_482_Y')
def title_482_Y():
return render_template('PreClass/title_482.html')
@app.route('/title_483_Y')
def title_483_Y():
return render_template('PreClass/title_483.html')
@app.route('/title_484_Y')
def title_484_Y():
return render_template('PreClass/title_484.html')
@app.route('/title_485_Y')
def title_485_Y():
return render_template('PreClass/title_485.html')
@app.route('/title_486_Y')
def title_486_Y():
return render_template('PreClass/title_486.html')
@app.route('/title_487_Y')
def title_487_Y():
return render_template('PreClass/title_487.html')
@app.route('/title_488_Y')
def title_488_Y():
return render_template('PreClass/title_488.html')
@app.route('/title_489_Y')
def title_489_Y():
return render_template('PreClass/title_489.html')
@app.route('/title_49_Y')
def title_49_Y():
return render_template('PreClass/title_49.html')
@app.route('/title_490_Y')
def title_490_Y():
return render_template('PreClass/title_490.html')
@app.route('/title_491_Y')
def title_491_Y():
return render_template('PreClass/title_491.html')
@app.route('/title_492_Y')
def title_492_Y():
return render_template('PreClass/title_492.html')
@app.route('/title_493_Y')
def title_493_Y():
return render_template('PreClass/title_493.html')
@app.route('/title_494_Y')
def title_494_Y():
return render_template('PreClass/title_494.html')
@app.route('/title_495_Y')
def title_495_Y():
return render_template('PreClass/title_495.html')
@app.route('/title_496_Y')
def title_496_Y():
return render_template('PreClass/title_496.html')
@app.route('/title_497_Y')
def title_497_Y():
return render_template('PreClass/title_497.html')
@app.route('/title_498_Y')
def title_498_Y():
return render_template('PreClass/title_498.html')
@app.route('/title_499_Y')
def title_499_Y():
return render_template('PreClass/title_499.html')
@app.route('/title_5_Y')
def title_5_Y():
return render_template('PreClass/title_5.html')
@app.route('/title_50_Y')
def title_50_Y():
return render_template('PreClass/title_50.html')
@app.route('/title_500_Y')
def title_500_Y():
return render_template('PreClass/title_500.html')
@app.route('/title_501_Y')
def title_501_Y():
return render_template('PreClass/title_501.html')
@app.route('/title_502_Y')
def title_502_Y():
return render_template('PreClass/title_502.html')
@app.route('/title_503_Y')
def title_503_Y():
return render_template('PreClass/title_503.html')
@app.route('/title_504_Y')
def title_504_Y():
return render_template('PreClass/title_504.html')
@app.route('/title_505_Y')
def title_505_Y():
return render_template('PreClass/title_505.html')
@app.route('/title_506_Y')
def title_506_Y():
return render_template('PreClass/title_506.html')
@app.route('/title_507_Y')
def title_507_Y():
return render_template('PreClass/title_507.html')
@app.route('/title_508_Y')
def title_508_Y():
return render_template('PreClass/title_508.html')
@app.route('/title_509_Y')
def title_509_Y():
return render_template('PreClass/title_509.html')
@app.route('/title_51_Y')
def title_51_Y():
return render_template('PreClass/title_51.html')
@app.route('/title_510_Y')
def title_510_Y():
return render_template('PreClass/title_510.html')
@app.route('/title_511_Y')
def title_511_Y():
return render_template('PreClass/title_511.html')
@app.route('/title_512_Y')
def title_512_Y():
return render_template('PreClass/title_512.html')
@app.route('/title_513_Y')
def title_513_Y():
return render_template('PreClass/title_513.html')
@app.route('/title_514_Y')
def title_514_Y():
return render_template('PreClass/title_514.html')
@app.route('/title_515_Y')
def title_515_Y():
return render_template('PreClass/title_515.html')
@app.route('/title_516_Y')
def title_516_Y():
return render_template('PreClass/title_516.html')
@app.route('/title_517_Y')
def title_517_Y():
return render_template('PreClass/title_517.html')
@app.route('/title_518_Y')
def title_518_Y():
return render_template('PreClass/title_518.html')
@app.route('/title_519_Y')
def title_519_Y():
return render_template('PreClass/title_519.html')
@app.route('/title_52_Y')
def title_52_Y():
return render_template('PreClass/title_52.html')
@app.route('/title_520_Y')
def title_520_Y():
return render_template('PreClass/title_520.html')
@app.route('/title_521_Y')
def title_521_Y():
return render_template('PreClass/title_521.html')
@app.route('/title_522_Y')
def title_522_Y():
return render_template('PreClass/title_522.html')
@app.route('/title_523_Y')
def title_523_Y():
return render_template('PreClass/title_523.html')
@app.route('/title_524_Y')
def title_524_Y():
return render_template('PreClass/title_524.html')
@app.route('/title_525_Y')
def title_525_Y():
return render_template('PreClass/title_525.html')
@app.route('/title_526_Y')
def title_526_Y():
return render_template('PreClass/title_526.html')
@app.route('/title_527_Y')
def title_527_Y():
return render_template('PreClass/title_527.html')
@app.route('/title_528_Y')
def title_528_Y():
return render_template('PreClass/title_528.html')
@app.route('/title_529_Y')
def title_529_Y():
return render_template('PreClass/title_529.html')
@app.route('/title_53_Y')
def title_53_Y():
return render_template('PreClass/title_53.html')
@app.route('/title_530_Y')
def title_530_Y():
return render_template('PreClass/title_530.html')
@app.route('/title_531_Y')
def title_531_Y():
return render_template('PreClass/title_531.html')
@app.route('/title_532_Y')
def title_532_Y():
return render_template('PreClass/title_532.html')
@app.route('/title_533_Y')
def title_533_Y():
return render_template('PreClass/title_533.html')
@app.route('/title_534_Y')
def title_534_Y():
return render_template('PreClass/title_534.html')
@app.route('/title_535_Y')
def title_535_Y():
return render_template('PreClass/title_535.html')
@app.route('/title_536_Y')
def title_536_Y():
return render_template('PreClass/title_536.html')
@app.route('/title_537_Y')
def title_537_Y():
return render_template('PreClass/title_537.html')
@app.route('/title_538_Y')
def title_538_Y():
return render_template('PreClass/title_538.html')
@app.route('/title_539_Y')
def title_539_Y():
return render_template('PreClass/title_539.html')
@app.route('/title_54_Y')
def title_54_Y():
return render_template('PreClass/title_54.html')
@app.route('/title_540_Y')
def title_540_Y():
return render_template('PreClass/title_540.html')
@app.route('/title_541_Y')
def title_541_Y():
return render_template('PreClass/title_541.html')
@app.route('/title_542_Y')
def title_542_Y():
return render_template('PreClass/title_542.html')
@app.route('/title_543_Y')
def title_543_Y():
return render_template('PreClass/title_543.html')
@app.route('/title_544_Y')
def title_544_Y():
return render_template('PreClass/title_544.html')
@app.route('/title_545_Y')
def title_545_Y():
return render_template('PreClass/title_545.html')
@app.route('/title_546_Y')
def title_546_Y():
return render_template('PreClass/title_546.html')
@app.route('/title_547_Y')
def title_547_Y():
return render_template('PreClass/title_547.html')
@app.route('/title_548_Y')
def title_548_Y():
return render_template('PreClass/title_548.html')
@app.route('/title_549_Y')
def title_549_Y():
return render_template('PreClass/title_549.html')
@app.route('/title_55_Y')
def title_55_Y():
return render_template('PreClass/title_55.html')
@app.route('/title_550_Y')
def title_550_Y():
return render_template('PreClass/title_550.html')
@app.route('/title_551_Y')
def title_551_Y():
return render_template('PreClass/title_551.html')
@app.route('/title_552_Y')
def title_552_Y():
return render_template('PreClass/title_552.html')
@app.route('/title_553_Y')
def title_553_Y():
return render_template('PreClass/title_553.html')
@app.route('/title_554_Y')
def title_554_Y():
return render_template('PreClass/title_554.html')
@app.route('/title_555_Y')
def title_555_Y():
return render_template('PreClass/title_555.html')
@app.route('/title_556_Y')
def title_556_Y():
return render_template('PreClass/title_556.html')
@app.route('/title_557_Y')
def title_557_Y():
return render_template('PreClass/title_557.html')
@app.route('/title_558_Y')
def title_558_Y():
return render_template('PreClass/title_558.html')
@app.route('/title_559_Y')
def title_559_Y():
return render_template('PreClass/title_559.html')
@app.route('/title_56_Y')
def title_56_Y():
return render_template('PreClass/title_56.html')
@app.route('/title_560_Y')
def title_560_Y():
return render_template('PreClass/title_560.html')
@app.route('/title_561_Y')
def title_561_Y():
return render_template('PreClass/title_561.html')
@app.route('/title_562_Y')
def title_562_Y():
return render_template('PreClass/title_562.html')
@app.route('/title_563_Y')
def title_563_Y():
return render_template('PreClass/title_563.html')
@app.route('/title_564_Y')
def title_564_Y():
return render_template('PreClass/title_564.html')
@app.route('/title_565_Y')
def title_565_Y():
return render_template('PreClass/title_565.html')
@app.route('/title_566_Y')
def title_566_Y():
return render_template('PreClass/title_566.html')
@app.route('/title_567_Y')
def title_567_Y():
return render_template('PreClass/title_567.html')
@app.route('/title_568_Y')
def title_568_Y():
return render_template('PreClass/title_568.html')
@app.route('/title_569_Y')
def title_569_Y():
return render_template('PreClass/title_569.html')
@app.route('/title_57_Y')
def title_57_Y():
return render_template('PreClass/title_57.html')
@app.route('/title_570_Y')
def title_570_Y():
return render_template('PreClass/title_570.html')
@app.route('/title_571_Y')
def title_571_Y():
return render_template('PreClass/title_571.html')
@app.route('/title_572_Y')
def title_572_Y():
return render_template('PreClass/title_572.html')
@app.route('/title_573_Y')
def title_573_Y():
return render_template('PreClass/title_573.html')
@app.route('/title_574_Y')
def title_574_Y():
return render_template('PreClass/title_574.html')
@app.route('/title_575_Y')
def title_575_Y():
return render_template('PreClass/title_575.html')
@app.route('/title_576_Y')
def title_576_Y():
return render_template('PreClass/title_576.html')
@app.route('/title_577_Y')
def title_577_Y():
return render_template('PreClass/title_577.html')
@app.route('/title_578_Y')
def title_578_Y():
return render_template('PreClass/title_578.html')
@app.route('/title_579_Y')
def title_579_Y():
return render_template('PreClass/title_579.html')
@app.route('/title_58_Y')
def title_58_Y():
return render_template('PreClass/title_58.html')
@app.route('/title_580_Y')
def title_580_Y():
return render_template('PreClass/title_580.html')
@app.route('/title_581_Y')
def title_581_Y():
return render_template('PreClass/title_581.html')
@app.route('/title_582_Y')
def title_582_Y():
return render_template('PreClass/title_582.html')
@app.route('/title_583_Y')
def title_583_Y():
return render_template('PreClass/title_583.html')
@app.route('/title_584_Y')
def title_584_Y():
return render_template('PreClass/title_584.html')
@app.route('/title_585_Y')
def title_585_Y():
return render_template('PreClass/title_585.html')
@app.route('/title_586_Y')
def title_586_Y():
return render_template('PreClass/title_586.html')
@app.route('/title_587_Y')
def title_587_Y():
return render_template('PreClass/title_587.html')
@app.route('/title_588_Y')
def title_588_Y():
return render_template('PreClass/title_588.html')
@app.route('/title_589_Y')
def title_589_Y():
return render_template('PreClass/title_589.html')
@app.route('/title_59_Y')
def title_59_Y():
return render_template('PreClass/title_59.html')
@app.route('/title_590_Y')
def title_590_Y():
return render_template('PreClass/title_590.html')
@app.route('/title_591_Y')
def title_591_Y():
return render_template('PreClass/title_591.html')
@app.route('/title_592_Y')
def title_592_Y():
return render_template('PreClass/title_592.html')
@app.route('/title_593_Y')
def title_593_Y():
return render_template('PreClass/title_593.html')
@app.route('/title_594_Y')
def title_594_Y():
return render_template('PreClass/title_594.html')
@app.route('/title_595_Y')
def title_595_Y():
return render_template('PreClass/title_595.html')
@app.route('/title_596_Y')
def title_596_Y():
return render_template('PreClass/title_596.html')
@app.route('/title_597_Y')
def title_597_Y():
return render_template('PreClass/title_597.html')
@app.route('/title_598_Y')
def title_598_Y():
return render_template('PreClass/title_598.html')
@app.route('/title_599_Y')
def title_599_Y():
return render_template('PreClass/title_599.html')
@app.route('/title_6_Y')
def title_6_Y():
return render_template('PreClass/title_6.html')
@app.route('/title_60_Y')
def title_60_Y():
return render_template('PreClass/title_60.html')
@app.route('/title_600_Y')
def title_600_Y():
return render_template('PreClass/title_600.html')
@app.route('/title_601_Y')
def title_601_Y():
return render_template('PreClass/title_601.html')
@app.route('/title_602_Y')
def title_602_Y():
return render_template('PreClass/title_602.html')
@app.route('/title_603_Y')
def title_603_Y():
return render_template('PreClass/title_603.html')
@app.route('/title_604_Y')
def title_604_Y():
return render_template('PreClass/title_604.html')
@app.route('/title_605_Y')
def title_605_Y():
return render_template('PreClass/title_605.html')
@app.route('/title_606_Y')
def title_606_Y():
return render_template('PreClass/title_606.html')
@app.route('/title_607_Y')
def title_607_Y():
return render_template('PreClass/title_607.html')
@app.route('/title_608_Y')
def title_608_Y():
return render_template('PreClass/title_608.html')
@app.route('/title_609_Y')
def title_609_Y():
return render_template('PreClass/title_609.html')
@app.route('/title_61_Y')
def title_61_Y():
return render_template('PreClass/title_61.html')
@app.route('/title_610_Y')
def title_610_Y():
return render_template('PreClass/title_610.html')
@app.route('/title_611_Y')
def title_611_Y():
return render_template('PreClass/title_611.html')
@app.route('/title_612_Y')
def title_612_Y():
return render_template('PreClass/title_612.html')
@app.route('/title_613_Y')
def title_613_Y():
return render_template('PreClass/title_613.html')
@app.route('/title_614_Y')
def title_614_Y():
return render_template('PreClass/title_614.html')
@app.route('/title_615_Y')
def title_615_Y():
return render_template('PreClass/title_615.html')
@app.route('/title_616_Y')
def title_616_Y():
return render_template('PreClass/title_616.html')
@app.route('/title_617_Y')
def title_617_Y():
return render_template('PreClass/title_617.html')
@app.route('/title_618_Y')
def title_618_Y():
return render_template('PreClass/title_618.html')
@app.route('/title_619_Y')
def title_619_Y():
return render_template('PreClass/title_619.html')
@app.route('/title_62_Y')
def title_62_Y():
return render_template('PreClass/title_62.html')
@app.route('/title_620_Y')
def title_620_Y():
return render_template('PreClass/title_620.html')
@app.route('/title_621_Y')
def title_621_Y():
return render_template('PreClass/title_621.html')
@app.route('/title_622_Y')
def title_622_Y():
return render_template('PreClass/title_622.html')
@app.route('/title_623_Y')
def title_623_Y():
return render_template('PreClass/title_623.html')
@app.route('/title_624_Y')
def title_624_Y():
return render_template('PreClass/title_624.html')
@app.route('/title_625_Y')
def title_625_Y():
return render_template('PreClass/title_625.html')
@app.route('/title_626_Y')
def title_626_Y():
return render_template('PreClass/title_626.html')
@app.route('/title_63_Y')
def title_63_Y():
return render_template('PreClass/title_63.html')
@app.route('/title_64_Y')
def title_64_Y():
return render_template('PreClass/title_64.html')
@app.route('/title_65_Y')
def title_65_Y():
return render_template('PreClass/title_65.html')
@app.route('/title_66_Y')
def title_66_Y():
return render_template('PreClass/title_66.html')
@app.route('/title_67_Y')
def title_67_Y():
return render_template('PreClass/title_67.html')
@app.route('/title_68_Y')
def title_68_Y():
return render_template('PreClass/title_68.html')
@app.route('/title_69_Y')
def title_69_Y():
return render_template('PreClass/title_69.html')
@app.route('/title_7_Y')
def title_7_Y():
return render_template('PreClass/title_7.html')
@app.route('/title_70_Y')
def title_70_Y():
return render_template('PreClass/title_70.html')
@app.route('/title_71_Y')
def title_71_Y():
return render_template('PreClass/title_71.html')
@app.route('/title_72_Y')
def title_72_Y():
return render_template('PreClass/title_72.html')
@app.route('/title_73_Y')
def title_73_Y():
return render_template('PreClass/title_73.html')
@app.route('/title_74_Y')
def title_74_Y():
return render_template('PreClass/title_74.html')
@app.route('/title_75_Y')
def title_75_Y():
return render_template('PreClass/title_75.html')
@app.route('/title_76_Y')
def title_76_Y():
return render_template('PreClass/title_76.html')
@app.route('/title_77_Y')
def title_77_Y():
return render_template('PreClass/title_77.html')
@app.route('/title_78_Y')
def title_78_Y():
return render_template('PreClass/title_78.html')
@app.route('/title_79_Y')
def title_79_Y():
return render_template('PreClass/title_79.html')
@app.route('/title_8_Y')
def title_8_Y():
return render_template('PreClass/title_8.html')
@app.route('/title_80_Y')
def title_80_Y():
return render_template('PreClass/title_80.html')
@app.route('/title_81_Y')
def title_81_Y():
return render_template('PreClass/title_81.html')
@app.route('/title_82_Y')
def title_82_Y():
return render_template('PreClass/title_82.html')
@app.route('/title_83_Y')
def title_83_Y():
return render_template('PreClass/title_83.html')
@app.route('/title_84_Y')
def title_84_Y():
return render_template('PreClass/title_84.html')
@app.route('/title_85_Y')
def title_85_Y():
return render_template('PreClass/title_85.html')
@app.route('/title_86_Y')
def title_86_Y():
return render_template('PreClass/title_86.html')
@app.route('/title_87_Y')
def title_87_Y():
return render_template('PreClass/title_87.html')
@app.route('/title_88_Y')
def title_88_Y():
return render_template('PreClass/title_88.html')
@app.route('/title_89_Y')
def title_89_Y():
return render_template('PreClass/title_89.html')
@app.route('/title_9_Y')
def title_9_Y():
return render_template('PreClass/title_9.html')
@app.route('/title_90_Y')
def title_90_Y():
return render_template('PreClass/title_90.html')
@app.route('/title_91_Y')
def title_91_Y():
return render_template('PreClass/title_91.html')
@app.route('/title_92_Y')
def title_92_Y():
return render_template('PreClass/title_92.html')
@app.route('/title_93_Y')
def title_93_Y():
return render_template('PreClass/title_93.html')
@app.route('/title_94_Y')
def title_94_Y():
return render_template('PreClass/title_94.html')
@app.route('/title_95_Y')
def title_95_Y():
return render_template('PreClass/title_95.html')
@app.route('/title_96_Y')
def title_96_Y():
return render_template('PreClass/title_96.html')
@app.route('/title_97_Y')
def title_97_Y():
return render_template('PreClass/title_97.html')
@app.route('/title_98_Y')
def title_98_Y():
return render_template('PreClass/title_98.html')
@app.route('/title_99_Y')
def title_99_Y():
return render_template('PreClass/title_99.html')
@app.route('/title_0')
def title_0():
return render_template('Original/title_0.html')
@app.route('/title_1')
def title_1():
return render_template('Original/title_1.html')
@app.route('/title_10')
def title_10():
return render_template('Original/title_10.html')
@app.route('/title_100')
def title_100():
return render_template('Original/title_100.html')
@app.route('/title_101')
def title_101():
return render_template('Original/title_101.html')
@app.route('/title_102')
def title_102():
return render_template('Original/title_102.html')
@app.route('/title_103')
def title_103():
return render_template('Original/title_103.html')
@app.route('/title_104')
def title_104():
return render_template('Original/title_104.html')
@app.route('/title_105')
def title_105():
return render_template('Original/title_105.html')
@app.route('/title_106')
def title_106():
return render_template('Original/title_106.html')
@app.route('/title_107')
def title_107():
return render_template('Original/title_107.html')
@app.route('/title_108')
def title_108():
return render_template('Original/title_108.html')
@app.route('/title_109')
def title_109():
return render_template('Original/title_109.html')
@app.route('/title_11')
def title_11():
return render_template('Original/title_11.html')
@app.route('/title_110')
def title_110():
return render_template('Original/title_110.html')
@app.route('/title_111')
def title_111():
return render_template('Original/title_111.html')
@app.route('/title_112')
def title_112():
return render_template('Original/title_112.html')
@app.route('/title_113')
def title_113():
return render_template('Original/title_113.html')
@app.route('/title_114')
def title_114():
return render_template('Original/title_114.html')
@app.route('/title_115')
def title_115():
return render_template('Original/title_115.html')
@app.route('/title_116')
def title_116():
return render_template('Original/title_116.html')
@app.route('/title_117')
def title_117():
return render_template('Original/title_117.html')
@app.route('/title_118')
def title_118():
return render_template('Original/title_118.html')
@app.route('/title_119')
def title_119():
return render_template('Original/title_119.html')
@app.route('/title_12')
def title_12():
return render_template('Original/title_12.html')
@app.route('/title_120')
def title_120():
return render_template('Original/title_120.html')
@app.route('/title_121')
def title_121():
return render_template('Original/title_121.html')
@app.route('/title_122')
def title_122():
return render_template('Original/title_122.html')
@app.route('/title_123')
def title_123():
return render_template('Original/title_123.html')
@app.route('/title_124')
def title_124():
return render_template('Original/title_124.html')
@app.route('/title_125')
def title_125():
return render_template('Original/title_125.html')
@app.route('/title_126')
def title_126():
return render_template('Original/title_126.html')
@app.route('/title_127')
def title_127():
return render_template('Original/title_127.html')
@app.route('/title_128')
def title_128():
return render_template('Original/title_128.html')
@app.route('/title_129')
def title_129():
return render_template('Original/title_129.html')
@app.route('/title_13')
def title_13():
return render_template('Original/title_13.html')
@app.route('/title_130')
def title_130():
return render_template('Original/title_130.html')
@app.route('/title_131')
def title_131():
return render_template('Original/title_131.html')
@app.route('/title_132')
def title_132():
return render_template('Original/title_132.html')
@app.route('/title_133')
def title_133():
return render_template('Original/title_133.html')
@app.route('/title_134')
def title_134():
return render_template('Original/title_134.html')
@app.route('/title_135')
def title_135():
return render_template('Original/title_135.html')
@app.route('/title_136')
def title_136():
return render_template('Original/title_136.html')
@app.route('/title_137')
def title_137():
return render_template('Original/title_137.html')
@app.route('/title_138')
def title_138():
return render_template('Original/title_138.html')
@app.route('/title_139')
def title_139():
return render_template('Original/title_139.html')
@app.route('/title_14')
def title_14():
return render_template('Original/title_14.html')
@app.route('/title_140')
def title_140():
return render_template('Original/title_140.html')
@app.route('/title_141')
def title_141():
return render_template('Original/title_141.html')
@app.route('/title_142')
def title_142():
return render_template('Original/title_142.html')
@app.route('/title_143')
def title_143():
return render_template('Original/title_143.html')
@app.route('/title_144')
def title_144():
return render_template('Original/title_144.html')
@app.route('/title_145')
def title_145():
return render_template('Original/title_145.html')
@app.route('/title_146')
def title_146():
return render_template('Original/title_146.html')
@app.route('/title_147')
def title_147():
return render_template('Original/title_147.html')
@app.route('/title_148')
def title_148():
return render_template('Original/title_148.html')
@app.route('/title_149')
def title_149():
return render_template('Original/title_149.html')
@app.route('/title_15')
def title_15():
return render_template('Original/title_15.html')
@app.route('/title_150')
def title_150():
return render_template('Original/title_150.html')
@app.route('/title_151')
def title_151():
return render_template('Original/title_151.html')
@app.route('/title_152')
def title_152():
return render_template('Original/title_152.html')
@app.route('/title_153')
def title_153():
return render_template('Original/title_153.html')
@app.route('/title_154')
def title_154():
return render_template('Original/title_154.html')
@app.route('/title_155')
def title_155():
return render_template('Original/title_155.html')
@app.route('/title_156')
def title_156():
return render_template('Original/title_156.html')
@app.route('/title_157')
def title_157():
return render_template('Original/title_157.html')
@app.route('/title_158')
def title_158():
return render_template('Original/title_158.html')
@app.route('/title_159')
def title_159():
return render_template('Original/title_159.html')
@app.route('/title_16')
def title_16():
return render_template('Original/title_16.html')
@app.route('/title_160')
def title_160():
return render_template('Original/title_160.html')
@app.route('/title_161')
def title_161():
return render_template('Original/title_161.html')
@app.route('/title_162')
def title_162():
return render_template('Original/title_162.html')
@app.route('/title_163')
def title_163():
return render_template('Original/title_163.html')
@app.route('/title_164')
def title_164():
return render_template('Original/title_164.html')
@app.route('/title_165')
def title_165():
return render_template('Original/title_165.html')
@app.route('/title_166')
def title_166():
return render_template('Original/title_166.html')
@app.route('/title_167')
def title_167():
return render_template('Original/title_167.html')
@app.route('/title_168')
def title_168():
return render_template('Original/title_168.html')
@app.route('/title_169')
def title_169():
return render_template('Original/title_169.html')
@app.route('/title_17')
def title_17():
return render_template('Original/title_17.html')
@app.route('/title_170')
def title_170():
return render_template('Original/title_170.html')
@app.route('/title_171')
def title_171():
return render_template('Original/title_171.html')
@app.route('/title_172')
def title_172():
return render_template('Original/title_172.html')
@app.route('/title_173')
def title_173():
return render_template('Original/title_173.html')
@app.route('/title_174')
def title_174():
return render_template('Original/title_174.html')
@app.route('/title_175')
def title_175():
return render_template('Original/title_175.html')
@app.route('/title_176')
def title_176():
return render_template('Original/title_176.html')
@app.route('/title_177')
def title_177():
return render_template('Original/title_177.html')
@app.route('/title_178')
def title_178():
return render_template('Original/title_178.html')
@app.route('/title_179')
def title_179():
return render_template('Original/title_179.html')
@app.route('/title_18')
def title_18():
return render_template('Original/title_18.html')
@app.route('/title_180')
def title_180():
return render_template('Original/title_180.html')
@app.route('/title_181')
def title_181():
return render_template('Original/title_181.html')
@app.route('/title_182')
def title_182():
return render_template('Original/title_182.html')
@app.route('/title_183')
def title_183():
return render_template('Original/title_183.html')
@app.route('/title_184')
def title_184():
return render_template('Original/title_184.html')
@app.route('/title_185')
def title_185():
return render_template('Original/title_185.html')
@app.route('/title_186')
def title_186():
return render_template('Original/title_186.html')
@app.route('/title_187')
def title_187():
return render_template('Original/title_187.html')
@app.route('/title_188')
def title_188():
return render_template('Original/title_188.html')
@app.route('/title_189')
def title_189():
return render_template('Original/title_189.html')
@app.route('/title_19')
def title_19():
return render_template('Original/title_19.html')
@app.route('/title_190')
def title_190():
return render_template('Original/title_190.html')
@app.route('/title_191')
def title_191():
return render_template('Original/title_191.html')
@app.route('/title_192')
def title_192():
return render_template('Original/title_192.html')
@app.route('/title_193')
def title_193():
return render_template('Original/title_193.html')
@app.route('/title_194')
def title_194():
return render_template('Original/title_194.html')
@app.route('/title_195')
def title_195():
return render_template('Original/title_195.html')
@app.route('/title_196')
def title_196():
return render_template('Original/title_196.html')
@app.route('/title_197')
def title_197():
return render_template('Original/title_197.html')
@app.route('/title_198')
def title_198():
return render_template('Original/title_198.html')
@app.route('/title_199')
def title_199():
return render_template('Original/title_199.html')
@app.route('/title_2')
def title_2():
return render_template('Original/title_2.html')
@app.route('/title_20')
def title_20():
return render_template('Original/title_20.html')
@app.route('/title_200')
def title_200():
return render_template('Original/title_200.html')
@app.route('/title_201')
def title_201():
return render_template('Original/title_201.html')
@app.route('/title_202')
def title_202():
return render_template('Original/title_202.html')
@app.route('/title_203')
def title_203():
return render_template('Original/title_203.html')
@app.route('/title_204')
def title_204():
return render_template('Original/title_204.html')
@app.route('/title_205')
def title_205():
return render_template('Original/title_205.html')
@app.route('/title_206')
def title_206():
return render_template('Original/title_206.html')
@app.route('/title_207')
def title_207():
return render_template('Original/title_207.html')
@app.route('/title_208')
def title_208():
return render_template('Original/title_208.html')
@app.route('/title_209')
def title_209():
return render_template('Original/title_209.html')
@app.route('/title_21')
def title_21():
return render_template('Original/title_21.html')
@app.route('/title_210')
def title_210():
return render_template('Original/title_210.html')
@app.route('/title_211')
def title_211():
return render_template('Original/title_211.html')
@app.route('/title_212')
def title_212():
return render_template('Original/title_212.html')
@app.route('/title_213')
def title_213():
return render_template('Original/title_213.html')
@app.route('/title_214')
def title_214():
return render_template('Original/title_214.html')
@app.route('/title_215')
def title_215():
return render_template('Original/title_215.html')
@app.route('/title_216')
def title_216():
return render_template('Original/title_216.html')
@app.route('/title_217')
def title_217():
return render_template('Original/title_217.html')
@app.route('/title_218')
def title_218():
return render_template('Original/title_218.html')
@app.route('/title_219')
def title_219():
return render_template('Original/title_219.html')
@app.route('/title_22')
def title_22():
return render_template('Original/title_22.html')
@app.route('/title_220')
def title_220():
return render_template('Original/title_220.html')
@app.route('/title_221')
def title_221():
return render_template('Original/title_221.html')
@app.route('/title_222')
def title_222():
return render_template('Original/title_222.html')
@app.route('/title_223')
def title_223():
return render_template('Original/title_223.html')
@app.route('/title_224')
def title_224():
return render_template('Original/title_224.html')
@app.route('/title_225')
def title_225():
return render_template('Original/title_225.html')
@app.route('/title_226')
def title_226():
return render_template('Original/title_226.html')
@app.route('/title_227')
def title_227():
return render_template('Original/title_227.html')
@app.route('/title_228')
def title_228():
return render_template('Original/title_228.html')
@app.route('/title_229')
def title_229():
return render_template('Original/title_229.html')
@app.route('/title_23')
def title_23():
return render_template('Original/title_23.html')
@app.route('/title_230')
def title_230():
return render_template('Original/title_230.html')
@app.route('/title_231')
def title_231():
return render_template('Original/title_231.html')
@app.route('/title_232')
def title_232():
return render_template('Original/title_232.html')
@app.route('/title_233')
def title_233():
return render_template('Original/title_233.html')
@app.route('/title_234')
def title_234():
return render_template('Original/title_234.html')
@app.route('/title_235')
def title_235():
return render_template('Original/title_235.html')
@app.route('/title_236')
def title_236():
return render_template('Original/title_236.html')
@app.route('/title_237')
def title_237():
return render_template('Original/title_237.html')
@app.route('/title_238')
def title_238():
return render_template('Original/title_238.html')
@app.route('/title_239')
def title_239():
return render_template('Original/title_239.html')
@app.route('/title_24')
def title_24():
return render_template('Original/title_24.html')
@app.route('/title_240')
def title_240():
return render_template('Original/title_240.html')
@app.route('/title_241')
def title_241():
return render_template('Original/title_241.html')
@app.route('/title_242')
def title_242():
return render_template('Original/title_242.html')
@app.route('/title_243')
def title_243():
return render_template('Original/title_243.html')
@app.route('/title_244')
def title_244():
return render_template('Original/title_244.html')
@app.route('/title_245')
def title_245():
return render_template('Original/title_245.html')
@app.route('/title_246')
def title_246():
return render_template('Original/title_246.html')
@app.route('/title_247')
def title_247():
return render_template('Original/title_247.html')
@app.route('/title_248')
def title_248():
return render_template('Original/title_248.html')
@app.route('/title_249')
def title_249():
return render_template('Original/title_249.html')
@app.route('/title_25')
def title_25():
return render_template('Original/title_25.html')
@app.route('/title_250')
def title_250():
return render_template('Original/title_250.html')
@app.route('/title_251')
def title_251():
return render_template('Original/title_251.html')
@app.route('/title_252')
def title_252():
return render_template('Original/title_252.html')
@app.route('/title_253')
def title_253():
return render_template('Original/title_253.html')
@app.route('/title_254')
def title_254():
return render_template('Original/title_254.html')
@app.route('/title_255')
def title_255():
return render_template('Original/title_255.html')
@app.route('/title_256')
def title_256():
return render_template('Original/title_256.html')
@app.route('/title_257')
def title_257():
return render_template('Original/title_257.html')
@app.route('/title_258')
def title_258():
return render_template('Original/title_258.html')
@app.route('/title_259')
def title_259():
return render_template('Original/title_259.html')
@app.route('/title_26')
def title_26():
return render_template('Original/title_26.html')
@app.route('/title_260')
def title_260():
return render_template('Original/title_260.html')
@app.route('/title_261')
def title_261():
return render_template('Original/title_261.html')
@app.route('/title_262')
def title_262():
return render_template('Original/title_262.html')
@app.route('/title_263')
def title_263():
return render_template('Original/title_263.html')
@app.route('/title_264')
def title_264():
return render_template('Original/title_264.html')
@app.route('/title_265')
def title_265():
return render_template('Original/title_265.html')
@app.route('/title_266')
def title_266():
return render_template('Original/title_266.html')
@app.route('/title_267')
def title_267():
return render_template('Original/title_267.html')
@app.route('/title_268')
def title_268():
return render_template('Original/title_268.html')
@app.route('/title_269')
def title_269():
return render_template('Original/title_269.html')
@app.route('/title_27')
def title_27():
return render_template('Original/title_27.html')
@app.route('/title_270')
def title_270():
return render_template('Original/title_270.html')
@app.route('/title_271')
def title_271():
return render_template('Original/title_271.html')
@app.route('/title_272')
def title_272():
return render_template('Original/title_272.html')
@app.route('/title_273')
def title_273():
return render_template('Original/title_273.html')
@app.route('/title_274')
def title_274():
return render_template('Original/title_274.html')
@app.route('/title_275')
def title_275():
return render_template('Original/title_275.html')
@app.route('/title_276')
def title_276():
return render_template('Original/title_276.html')
@app.route('/title_277')
def title_277():
return render_template('Original/title_277.html')
@app.route('/title_278')
def title_278():
return render_template('Original/title_278.html')
@app.route('/title_279')
def title_279():
return render_template('Original/title_279.html')
@app.route('/title_28')
def title_28():
return render_template('Original/title_28.html')
@app.route('/title_280')
def title_280():
return render_template('Original/title_280.html')
@app.route('/title_281')
def title_281():
return render_template('Original/title_281.html')
@app.route('/title_282')
def title_282():
return render_template('Original/title_282.html')
@app.route('/title_283')
def title_283():
return render_template('Original/title_283.html')
@app.route('/title_284')
def title_284():
return render_template('Original/title_284.html')
@app.route('/title_285')
def title_285():
return render_template('Original/title_285.html')
@app.route('/title_286')
def title_286():
return render_template('Original/title_286.html')
@app.route('/title_287')
def title_287():
return render_template('Original/title_287.html')
@app.route('/title_288')
def title_288():
return render_template('Original/title_288.html')
@app.route('/title_289')
def title_289():
return render_template('Original/title_289.html')
@app.route('/title_29')
def title_29():
return render_template('Original/title_29.html')
@app.route('/title_290')
def title_290():
return render_template('Original/title_290.html')
@app.route('/title_291')
def title_291():
return render_template('Original/title_291.html')
@app.route('/title_292')
def title_292():
return render_template('Original/title_292.html')
@app.route('/title_293')
def title_293():
return render_template('Original/title_293.html')
@app.route('/title_294')
def title_294():
return render_template('Original/title_294.html')
@app.route('/title_295')
def title_295():
return render_template('Original/title_295.html')
@app.route('/title_296')
def title_296():
return render_template('Original/title_296.html')
@app.route('/title_297')
def title_297():
return render_template('Original/title_297.html')
@app.route('/title_298')
def title_298():
return render_template('Original/title_298.html')
@app.route('/title_299')
def title_299():
return render_template('Original/title_299.html')
@app.route('/title_3')
def title_3():
return render_template('Original/title_3.html')
@app.route('/title_30')
def title_30():
return render_template('Original/title_30.html')
@app.route('/title_300')
def title_300():
return render_template('Original/title_300.html')
@app.route('/title_301')
def title_301():
return render_template('Original/title_301.html')
@app.route('/title_302')
def title_302():
return render_template('Original/title_302.html')
@app.route('/title_303')
def title_303():
return render_template('Original/title_303.html')
@app.route('/title_304')
def title_304():
return render_template('Original/title_304.html')
@app.route('/title_305')
def title_305():
return render_template('Original/title_305.html')
@app.route('/title_306')
def title_306():
return render_template('Original/title_306.html')
@app.route('/title_307')
def title_307():
return render_template('Original/title_307.html')
@app.route('/title_308')
def title_308():
return render_template('Original/title_308.html')
@app.route('/title_309')
def title_309():
return render_template('Original/title_309.html')
@app.route('/title_31')
def title_31():
return render_template('Original/title_31.html')
@app.route('/title_310')
def title_310():
return render_template('Original/title_310.html')
@app.route('/title_311')
def title_311():
return render_template('Original/title_311.html')
@app.route('/title_312')
def title_312():
return render_template('Original/title_312.html')
@app.route('/title_313')
def title_313():
return render_template('Original/title_313.html')
@app.route('/title_314')
def title_314():
return render_template('Original/title_314.html')
@app.route('/title_315')
def title_315():
return render_template('Original/title_315.html')
@app.route('/title_316')
def title_316():
return render_template('Original/title_316.html')
@app.route('/title_317')
def title_317():
return render_template('Original/title_317.html')
@app.route('/title_318')
def title_318():
return render_template('Original/title_318.html')
@app.route('/title_319')
def title_319():
return render_template('Original/title_319.html')
@app.route('/title_32')
def title_32():
return render_template('Original/title_32.html')
@app.route('/title_320')
def title_320():
return render_template('Original/title_320.html')
@app.route('/title_321')
def title_321():
return render_template('Original/title_321.html')
@app.route('/title_322')
def title_322():
return render_template('Original/title_322.html')
@app.route('/title_323')
def title_323():
return render_template('Original/title_323.html')
@app.route('/title_324')
def title_324():
return render_template('Original/title_324.html')
@app.route('/title_325')
def title_325():
return render_template('Original/title_325.html')
@app.route('/title_326')
def title_326():
return render_template('Original/title_326.html')
@app.route('/title_327')
def title_327():
return render_template('Original/title_327.html')
@app.route('/title_328')
def title_328():
return render_template('Original/title_328.html')
@app.route('/title_329')
def title_329():
return render_template('Original/title_329.html')
@app.route('/title_33')
def title_33():
return render_template('Original/title_33.html')
@app.route('/title_330')
def title_330():
return render_template('Original/title_330.html')
@app.route('/title_331')
def title_331():
return render_template('Original/title_331.html')
@app.route('/title_332')
def title_332():
return render_template('Original/title_332.html')
@app.route('/title_333')
def title_333():
return render_template('Original/title_333.html')
@app.route('/title_334')
def title_334():
return render_template('Original/title_334.html')
@app.route('/title_335')
def title_335():
return render_template('Original/title_335.html')
@app.route('/title_336')
def title_336():
return render_template('Original/title_336.html')
@app.route('/title_337')
def title_337():
return render_template('Original/title_337.html')
@app.route('/title_338')
def title_338():
return render_template('Original/title_338.html')
@app.route('/title_339')
def title_339():
return render_template('Original/title_339.html')
@app.route('/title_34')
def title_34():
return render_template('Original/title_34.html')
@app.route('/title_340')
def title_340():
return render_template('Original/title_340.html')
@app.route('/title_341')
def title_341():
return render_template('Original/title_341.html')
@app.route('/title_342')
def title_342():
return render_template('Original/title_342.html')
@app.route('/title_343')
def title_343():
return render_template('Original/title_343.html')
@app.route('/title_344')
def title_344():
return render_template('Original/title_344.html')
@app.route('/title_345')
def title_345():
return render_template('Original/title_345.html')
@app.route('/title_346')
def title_346():
return render_template('Original/title_346.html')
@app.route('/title_347')
def title_347():
return render_template('Original/title_347.html')
@app.route('/title_348')
def title_348():
return render_template('Original/title_348.html')
@app.route('/title_349')
def title_349():
return render_template('Original/title_349.html')
@app.route('/title_35')
def title_35():
return render_template('Original/title_35.html')
@app.route('/title_350')
def title_350():
return render_template('Original/title_350.html')
@app.route('/title_351')
def title_351():
return render_template('Original/title_351.html')
@app.route('/title_352')
def title_352():
return render_template('Original/title_352.html')
@app.route('/title_353')
def title_353():
return render_template('Original/title_353.html')
@app.route('/title_354')
def title_354():
return render_template('Original/title_354.html')
@app.route('/title_355')
def title_355():
return render_template('Original/title_355.html')
@app.route('/title_356')
def title_356():
return render_template('Original/title_356.html')
@app.route('/title_357')
def title_357():
return render_template('Original/title_357.html')
@app.route('/title_358')
def title_358():
return render_template('Original/title_358.html')
@app.route('/title_359')
def title_359():
return render_template('Original/title_359.html')
@app.route('/title_36')
def title_36():
return render_template('Original/title_36.html')
@app.route('/title_360')
def title_360():
return render_template('Original/title_360.html')
@app.route('/title_361')
def title_361():
return render_template('Original/title_361.html')
@app.route('/title_362')
def title_362():
return render_template('Original/title_362.html')
@app.route('/title_363')
def title_363():
return render_template('Original/title_363.html')
@app.route('/title_364')
def title_364():
return render_template('Original/title_364.html')
@app.route('/title_365')
def title_365():
return render_template('Original/title_365.html')
@app.route('/title_366')
def title_366():
return render_template('Original/title_366.html')
@app.route('/title_367')
def title_367():
return render_template('Original/title_367.html')
@app.route('/title_368')
def title_368():
return render_template('Original/title_368.html')
@app.route('/title_369')
def title_369():
return render_template('Original/title_369.html')
@app.route('/title_37')
def title_37():
return render_template('Original/title_37.html')
@app.route('/title_370')
def title_370():
return render_template('Original/title_370.html')
@app.route('/title_371')
def title_371():
return render_template('Original/title_371.html')
@app.route('/title_372')
def title_372():
return render_template('Original/title_372.html')
@app.route('/title_373')
def title_373():
return render_template('Original/title_373.html')
@app.route('/title_374')
def title_374():
return render_template('Original/title_374.html')
@app.route('/title_375')
def title_375():
return render_template('Original/title_375.html')
@app.route('/title_376')
def title_376():
return render_template('Original/title_376.html')
@app.route('/title_377')
def title_377():
return render_template('Original/title_377.html')
@app.route('/title_378')
def title_378():
return render_template('Original/title_378.html')
@app.route('/title_379')
def title_379():
return render_template('Original/title_379.html')
@app.route('/title_38')
def title_38():
return render_template('Original/title_38.html')
@app.route('/title_380')
def title_380():
return render_template('Original/title_380.html')
@app.route('/title_381')
def title_381():
return render_template('Original/title_381.html')
@app.route('/title_382')
def title_382():
return render_template('Original/title_382.html')
@app.route('/title_383')
def title_383():
return render_template('Original/title_383.html')
@app.route('/title_384')
def title_384():
return render_template('Original/title_384.html')
@app.route('/title_385')
def title_385():
return render_template('Original/title_385.html')
@app.route('/title_386')
def title_386():
return render_template('Original/title_386.html')
@app.route('/title_387')
def title_387():
return render_template('Original/title_387.html')
@app.route('/title_388')
def title_388():
return render_template('Original/title_388.html')
@app.route('/title_389')
def title_389():
return render_template('Original/title_389.html')
@app.route('/title_39')
def title_39():
return render_template('Original/title_39.html')
@app.route('/title_390')
def title_390():
return render_template('Original/title_390.html')
@app.route('/title_391')
def title_391():
return render_template('Original/title_391.html')
@app.route('/title_392')
def title_392():
return render_template('Original/title_392.html')
@app.route('/title_393')
def title_393():
return render_template('Original/title_393.html')
@app.route('/title_394')
def title_394():
return render_template('Original/title_394.html')
@app.route('/title_395')
def title_395():
return render_template('Original/title_395.html')
@app.route('/title_396')
def title_396():
return render_template('Original/title_396.html')
@app.route('/title_397')
def title_397():
return render_template('Original/title_397.html')
@app.route('/title_398')
def title_398():
return render_template('Original/title_398.html')
@app.route('/title_399')
def title_399():
return render_template('Original/title_399.html')
@app.route('/title_4')
def title_4():
return render_template('Original/title_4.html')
@app.route('/title_40')
def title_40():
return render_template('Original/title_40.html')
@app.route('/title_400')
def title_400():
return render_template('Original/title_400.html')
@app.route('/title_401')
def title_401():
return render_template('Original/title_401.html')
@app.route('/title_402')
def title_402():
return render_template('Original/title_402.html')
@app.route('/title_403')
def title_403():
return render_template('Original/title_403.html')
@app.route('/title_404')
def title_404():
return render_template('Original/title_404.html')
@app.route('/title_405')
def title_405():
return render_template('Original/title_405.html')
@app.route('/title_406')
def title_406():
return render_template('Original/title_406.html')
@app.route('/title_407')
def title_407():
return render_template('Original/title_407.html')
@app.route('/title_408')
def title_408():
return render_template('Original/title_408.html')
@app.route('/title_409')
def title_409():
return render_template('Original/title_409.html')
@app.route('/title_41')
def title_41():
return render_template('Original/title_41.html')
@app.route('/title_410')
def title_410():
return render_template('Original/title_410.html')
@app.route('/title_411')
def title_411():
return render_template('Original/title_411.html')
@app.route('/title_412')
def title_412():
return render_template('Original/title_412.html')
@app.route('/title_413')
def title_413():
return render_template('Original/title_413.html')
@app.route('/title_414')
def title_414():
return render_template('Original/title_414.html')
@app.route('/title_415')
def title_415():
return render_template('Original/title_415.html')
@app.route('/title_416')
def title_416():
return render_template('Original/title_416.html')
@app.route('/title_417')
def title_417():
return render_template('Original/title_417.html')
@app.route('/title_418')
def title_418():
return render_template('Original/title_418.html')
@app.route('/title_419')
def title_419():
return render_template('Original/title_419.html')
@app.route('/title_42')
def title_42():
return render_template('Original/title_42.html')
@app.route('/title_420')
def title_420():
return render_template('Original/title_420.html')
@app.route('/title_421')
def title_421():
return render_template('Original/title_421.html')
@app.route('/title_422')
def title_422():
return render_template('Original/title_422.html')
@app.route('/title_423')
def title_423():
return render_template('Original/title_423.html')
@app.route('/title_424')
def title_424():
return render_template('Original/title_424.html')
@app.route('/title_425')
def title_425():
return render_template('Original/title_425.html')
@app.route('/title_426')
def title_426():
return render_template('Original/title_426.html')
@app.route('/title_427')
def title_427():
return render_template('Original/title_427.html')
@app.route('/title_428')
def title_428():
return render_template('Original/title_428.html')
@app.route('/title_429')
def title_429():
return render_template('Original/title_429.html')
@app.route('/title_43')
def title_43():
return render_template('Original/title_43.html')
@app.route('/title_430')
def title_430():
return render_template('Original/title_430.html')
@app.route('/title_431')
def title_431():
return render_template('Original/title_431.html')
@app.route('/title_432')
def title_432():
return render_template('Original/title_432.html')
@app.route('/title_433')
def title_433():
return render_template('Original/title_433.html')
@app.route('/title_434')
def title_434():
return render_template('Original/title_434.html')
@app.route('/title_435')
def title_435():
return render_template('Original/title_435.html')
@app.route('/title_436')
def title_436():
return render_template('Original/title_436.html')
@app.route('/title_437')
def title_437():
return render_template('Original/title_437.html')
@app.route('/title_438')
def title_438():
return render_template('Original/title_438.html')
@app.route('/title_439')
def title_439():
return render_template('Original/title_439.html')
@app.route('/title_44')
def title_44():
return render_template('Original/title_44.html')
@app.route('/title_440')
def title_440():
return render_template('Original/title_440.html')
@app.route('/title_441')
def title_441():
return render_template('Original/title_441.html')
@app.route('/title_442')
def title_442():
return render_template('Original/title_442.html')
@app.route('/title_443')
def title_443():
return render_template('Original/title_443.html')
@app.route('/title_444')
def title_444():
return render_template('Original/title_444.html')
@app.route('/title_445')
def title_445():
return render_template('Original/title_445.html')
@app.route('/title_446')
def title_446():
return render_template('Original/title_446.html')
@app.route('/title_447')
def title_447():
return render_template('Original/title_447.html')
@app.route('/title_448')
def title_448():
return render_template('Original/title_448.html')
@app.route('/title_449')
def title_449():
return render_template('Original/title_449.html')
@app.route('/title_45')
def title_45():
return render_template('Original/title_45.html')
@app.route('/title_450')
def title_450():
return render_template('Original/title_450.html')
@app.route('/title_451')
def title_451():
return render_template('Original/title_451.html')
@app.route('/title_452')
def title_452():
return render_template('Original/title_452.html')
@app.route('/title_453')
def title_453():
return render_template('Original/title_453.html')
@app.route('/title_454')
def title_454():
return render_template('Original/title_454.html')
@app.route('/title_455')
def title_455():
return render_template('Original/title_455.html')
@app.route('/title_456')
def title_456():
return render_template('Original/title_456.html')
@app.route('/title_457')
def title_457():
return render_template('Original/title_457.html')
@app.route('/title_458')
def title_458():
return render_template('Original/title_458.html')
@app.route('/title_459')
def title_459():
return render_template('Original/title_459.html')
@app.route('/title_46')
def title_46():
return render_template('Original/title_46.html')
@app.route('/title_460')
def title_460():
return render_template('Original/title_460.html')
@app.route('/title_461')
def title_461():
return render_template('Original/title_461.html')
@app.route('/title_462')
def title_462():
return render_template('Original/title_462.html')
@app.route('/title_463')
def title_463():
return render_template('Original/title_463.html')
@app.route('/title_464')
def title_464():
return render_template('Original/title_464.html')
@app.route('/title_465')
def title_465():
return render_template('Original/title_465.html')
@app.route('/title_466')
def title_466():
return render_template('Original/title_466.html')
@app.route('/title_467')
def title_467():
return render_template('Original/title_467.html')
@app.route('/title_468')
def title_468():
return render_template('Original/title_468.html')
@app.route('/title_469')
def title_469():
return render_template('Original/title_469.html')
@app.route('/title_47')
def title_47():
return render_template('Original/title_47.html')
@app.route('/title_470')
def title_470():
return render_template('Original/title_470.html')
@app.route('/title_471')
def title_471():
return render_template('Original/title_471.html')
@app.route('/title_472')
def title_472():
return render_template('Original/title_472.html')
@app.route('/title_473')
def title_473():
return render_template('Original/title_473.html')
@app.route('/title_474')
def title_474():
return render_template('Original/title_474.html')
@app.route('/title_475')
def title_475():
return render_template('Original/title_475.html')
@app.route('/title_476')
def title_476():
return render_template('Original/title_476.html')
@app.route('/title_477')
def title_477():
return render_template('Original/title_477.html')
@app.route('/title_478')
def title_478():
return render_template('Original/title_478.html')
@app.route('/title_479')
def title_479():
return render_template('Original/title_479.html')
@app.route('/title_48')
def title_48():
return render_template('Original/title_48.html')
@app.route('/title_480')
def title_480():
return render_template('Original/title_480.html')
@app.route('/title_481')
def title_481():
return render_template('Original/title_481.html')
@app.route('/title_482')
def title_482():
return render_template('Original/title_482.html')
@app.route('/title_483')
def title_483():
return render_template('Original/title_483.html')
@app.route('/title_484')
def title_484():
return render_template('Original/title_484.html')
@app.route('/title_485')
def title_485():
return render_template('Original/title_485.html')
@app.route('/title_486')
def title_486():
return render_template('Original/title_486.html')
@app.route('/title_487')
def title_487():
return render_template('Original/title_487.html')
@app.route('/title_488')
def title_488():
return render_template('Original/title_488.html')
@app.route('/title_489')
def title_489():
return render_template('Original/title_489.html')
@app.route('/title_49')
def title_49():
return render_template('Original/title_49.html')
@app.route('/title_490')
def title_490():
return render_template('Original/title_490.html')
@app.route('/title_491')
def title_491():
return render_template('Original/title_491.html')
@app.route('/title_492')
def title_492():
return render_template('Original/title_492.html')
@app.route('/title_493')
def title_493():
return render_template('Original/title_493.html')
@app.route('/title_494')
def title_494():
return render_template('Original/title_494.html')
@app.route('/title_495')
def title_495():
return render_template('Original/title_495.html')
@app.route('/title_496')
def title_496():
return render_template('Original/title_496.html')
@app.route('/title_497')
def title_497():
return render_template('Original/title_497.html')
@app.route('/title_498')
def title_498():
return render_template('Original/title_498.html')
@app.route('/title_499')
def title_499():
return render_template('Original/title_499.html')
@app.route('/title_5')
def title_5():
return render_template('Original/title_5.html')
@app.route('/title_50')
def title_50():
return render_template('Original/title_50.html')
@app.route('/title_500')
def title_500():
return render_template('Original/title_500.html')
@app.route('/title_501')
def title_501():
return render_template('Original/title_501.html')
@app.route('/title_502')
def title_502():
return render_template('Original/title_502.html')
@app.route('/title_503')
def title_503():
return render_template('Original/title_503.html')
@app.route('/title_504')
def title_504():
return render_template('Original/title_504.html')
@app.route('/title_505')
def title_505():
return render_template('Original/title_505.html')
@app.route('/title_506')
def title_506():
return render_template('Original/title_506.html')
@app.route('/title_507')
def title_507():
return render_template('Original/title_507.html')
@app.route('/title_508')
def title_508():
return render_template('Original/title_508.html')
@app.route('/title_509')
def title_509():
return render_template('Original/title_509.html')
@app.route('/title_51')
def title_51():
return render_template('Original/title_51.html')
@app.route('/title_510')
def title_510():
return render_template('Original/title_510.html')
@app.route('/title_511')
def title_511():
return render_template('Original/title_511.html')
@app.route('/title_512')
def title_512():
return render_template('Original/title_512.html')
@app.route('/title_513')
def title_513():
return render_template('Original/title_513.html')
@app.route('/title_514')
def title_514():
return render_template('Original/title_514.html')
@app.route('/title_515')
def title_515():
return render_template('Original/title_515.html')
@app.route('/title_516')
def title_516():
return render_template('Original/title_516.html')
@app.route('/title_517')
def title_517():
return render_template('Original/title_517.html')
@app.route('/title_518')
def title_518():
return render_template('Original/title_518.html')
@app.route('/title_519')
def title_519():
return render_template('Original/title_519.html')
@app.route('/title_52')
def title_52():
return render_template('Original/title_52.html')
@app.route('/title_520')
def title_520():
return render_template('Original/title_520.html')
@app.route('/title_521')
def title_521():
return render_template('Original/title_521.html')
@app.route('/title_522')
def title_522():
return render_template('Original/title_522.html')
@app.route('/title_523')
def title_523():
return render_template('Original/title_523.html')
@app.route('/title_524')
def title_524():
return render_template('Original/title_524.html')
@app.route('/title_525')
def title_525():
return render_template('Original/title_525.html')
@app.route('/title_526')
def title_526():
return render_template('Original/title_526.html')
@app.route('/title_527')
def title_527():
return render_template('Original/title_527.html')
@app.route('/title_528')
def title_528():
return render_template('Original/title_528.html')
@app.route('/title_529')
def title_529():
return render_template('Original/title_529.html')
@app.route('/title_53')
def title_53():
return render_template('Original/title_53.html')
@app.route('/title_530')
def title_530():
return render_template('Original/title_530.html')
@app.route('/title_531')
def title_531():
return render_template('Original/title_531.html')
@app.route('/title_532')
def title_532():
return render_template('Original/title_532.html')
@app.route('/title_533')
def title_533():
return render_template('Original/title_533.html')
@app.route('/title_534')
def title_534():
return render_template('Original/title_534.html')
@app.route('/title_535')
def title_535():
return render_template('Original/title_535.html')
@app.route('/title_536')
def title_536():
return render_template('Original/title_536.html')
@app.route('/title_537')
def title_537():
return render_template('Original/title_537.html')
@app.route('/title_538')
def title_538():
return render_template('Original/title_538.html')
@app.route('/title_539')
def title_539():
return render_template('Original/title_539.html')
@app.route('/title_54')
def title_54():
return render_template('Original/title_54.html')
@app.route('/title_540')
def title_540():
return render_template('Original/title_540.html')
@app.route('/title_541')
def title_541():
return render_template('Original/title_541.html')
@app.route('/title_542')
def title_542():
return render_template('Original/title_542.html')
@app.route('/title_543')
def title_543():
return render_template('Original/title_543.html')
@app.route('/title_544')
def title_544():
return render_template('Original/title_544.html')
@app.route('/title_545')
def title_545():
return render_template('Original/title_545.html')
@app.route('/title_546')
def title_546():
return render_template('Original/title_546.html')
@app.route('/title_547')
def title_547():
return render_template('Original/title_547.html')
@app.route('/title_548')
def title_548():
return render_template('Original/title_548.html')
@app.route('/title_549')
def title_549():
return render_template('Original/title_549.html')
@app.route('/title_55')
def title_55():
return render_template('Original/title_55.html')
@app.route('/title_550')
def title_550():
return render_template('Original/title_550.html')
@app.route('/title_551')
def title_551():
return render_template('Original/title_551.html')
@app.route('/title_552')
def title_552():
return render_template('Original/title_552.html')
@app.route('/title_553')
def title_553():
return render_template('Original/title_553.html')
@app.route('/title_554')
def title_554():
return render_template('Original/title_554.html')
@app.route('/title_555')
def title_555():
return render_template('Original/title_555.html')
@app.route('/title_556')
def title_556():
return render_template('Original/title_556.html')
@app.route('/title_557')
def title_557():
return render_template('Original/title_557.html')
@app.route('/title_558')
def title_558():
return render_template('Original/title_558.html')
@app.route('/title_559')
def title_559():
return render_template('Original/title_559.html')
@app.route('/title_56')
def title_56():
return render_template('Original/title_56.html')
@app.route('/title_560')
def title_560():
return render_template('Original/title_560.html')
@app.route('/title_561')
def title_561():
return render_template('Original/title_561.html')
@app.route('/title_562')
def title_562():
return render_template('Original/title_562.html')
@app.route('/title_563')
def title_563():
return render_template('Original/title_563.html')
@app.route('/title_564')
def title_564():
return render_template('Original/title_564.html')
@app.route('/title_565')
def title_565():
return render_template('Original/title_565.html')
@app.route('/title_566')
def title_566():
return render_template('Original/title_566.html')
@app.route('/title_567')
def title_567():
return render_template('Original/title_567.html')
@app.route('/title_568')
def title_568():
return render_template('Original/title_568.html')
@app.route('/title_569')
def title_569():
return render_template('Original/title_569.html')
@app.route('/title_57')
def title_57():
return render_template('Original/title_57.html')
@app.route('/title_570')
def title_570():
return render_template('Original/title_570.html')
@app.route('/title_571')
def title_571():
return render_template('Original/title_571.html')
@app.route('/title_572')
def title_572():
return render_template('Original/title_572.html')
@app.route('/title_573')
def title_573():
return render_template('Original/title_573.html')
@app.route('/title_574')
def title_574():
return render_template('Original/title_574.html')
@app.route('/title_575')
def title_575():
return render_template('Original/title_575.html')
@app.route('/title_576')
def title_576():
return render_template('Original/title_576.html')
@app.route('/title_577')
def title_577():
return render_template('Original/title_577.html')
@app.route('/title_578')
def title_578():
return render_template('Original/title_578.html')
@app.route('/title_579')
def title_579():
return render_template('Original/title_579.html')
@app.route('/title_58')
def title_58():
return render_template('Original/title_58.html')
@app.route('/title_580')
def title_580():
return render_template('Original/title_580.html')
@app.route('/title_581')
def title_581():
return render_template('Original/title_581.html')
@app.route('/title_582')
def title_582():
return render_template('Original/title_582.html')
@app.route('/title_583')
def title_583():
return render_template('Original/title_583.html')
@app.route('/title_584')
def title_584():
return render_template('Original/title_584.html')
@app.route('/title_585')
def title_585():
return render_template('Original/title_585.html')
@app.route('/title_586')
def title_586():
return render_template('Original/title_586.html')
@app.route('/title_587')
def title_587():
return render_template('Original/title_587.html')
@app.route('/title_588')
def title_588():
return render_template('Original/title_588.html')
@app.route('/title_589')
def title_589():
return render_template('Original/title_589.html')
@app.route('/title_59')
def title_59():
return render_template('Original/title_59.html')
@app.route('/title_590')
def title_590():
return render_template('Original/title_590.html')
@app.route('/title_591')
def title_591():
return render_template('Original/title_591.html')
@app.route('/title_592')
def title_592():
return render_template('Original/title_592.html')
@app.route('/title_593')
def title_593():
return render_template('Original/title_593.html')
@app.route('/title_594')
def title_594():
return render_template('Original/title_594.html')
@app.route('/title_595')
def title_595():
return render_template('Original/title_595.html')
@app.route('/title_596')
def title_596():
return render_template('Original/title_596.html')
@app.route('/title_597')
def title_597():
return render_template('Original/title_597.html')
@app.route('/title_598')
def title_598():
return render_template('Original/title_598.html')
@app.route('/title_599')
def title_599():
return render_template('Original/title_599.html')
@app.route('/title_6')
def title_6():
return render_template('Original/title_6.html')
@app.route('/title_60')
def title_60():
return render_template('Original/title_60.html')
@app.route('/title_600')
def title_600():
return render_template('Original/title_600.html')
@app.route('/title_601')
def title_601():
return render_template('Original/title_601.html')
@app.route('/title_602')
def title_602():
return render_template('Original/title_602.html')
@app.route('/title_603')
def title_603():
return render_template('Original/title_603.html')
@app.route('/title_604')
def title_604():
return render_template('Original/title_604.html')
@app.route('/title_605')
def title_605():
return render_template('Original/title_605.html')
@app.route('/title_606')
def title_606():
return render_template('Original/title_606.html')
@app.route('/title_607')
def title_607():
return render_template('Original/title_607.html')
@app.route('/title_608')
def title_608():
return render_template('Original/title_608.html')
@app.route('/title_609')
def title_609():
return render_template('Original/title_609.html')
@app.route('/title_61')
def title_61():
return render_template('Original/title_61.html')
@app.route('/title_610')
def title_610():
return render_template('Original/title_610.html')
@app.route('/title_611')
def title_611():
return render_template('Original/title_611.html')
@app.route('/title_612')
def title_612():
return render_template('Original/title_612.html')
@app.route('/title_613')
def title_613():
return render_template('Original/title_613.html')
@app.route('/title_614')
def title_614():
return render_template('Original/title_614.html')
@app.route('/title_615')
def title_615():
return render_template('Original/title_615.html')
@app.route('/title_616')
def title_616():
return render_template('Original/title_616.html')
@app.route('/title_617')
def title_617():
return render_template('Original/title_617.html')
@app.route('/title_618')
def title_618():
return render_template('Original/title_618.html')
@app.route('/title_619')
def title_619():
return render_template('Original/title_619.html')
@app.route('/title_62')
def title_62():
return render_template('Original/title_62.html')
@app.route('/title_620')
def title_620():
return render_template('Original/title_620.html')
@app.route('/title_621')
def title_621():
return render_template('Original/title_621.html')
@app.route('/title_622')
def title_622():
return render_template('Original/title_622.html')
@app.route('/title_623')
def title_623():
return render_template('Original/title_623.html')
@app.route('/title_624')
def title_624():
return render_template('Original/title_624.html')
@app.route('/title_625')
def title_625():
return render_template('Original/title_625.html')
@app.route('/title_626')
def title_626():
return render_template('Original/title_626.html')
@app.route('/title_63')
def title_63():
return render_template('Original/title_63.html')
@app.route('/title_64')
def title_64():
return render_template('Original/title_64.html')
@app.route('/title_65')
def title_65():
return render_template('Original/title_65.html')
@app.route('/title_66')
def title_66():
return render_template('Original/title_66.html')
@app.route('/title_67')
def title_67():
return render_template('Original/title_67.html')
@app.route('/title_68')
def title_68():
return render_template('Original/title_68.html')
@app.route('/title_69')
def title_69():
return render_template('Original/title_69.html')
@app.route('/title_7')
def title_7():
return render_template('Original/title_7.html')
@app.route('/title_70')
def title_70():
return render_template('Original/title_70.html')
@app.route('/title_71')
def title_71():
return render_template('Original/title_71.html')
@app.route('/title_72')
def title_72():
return render_template('Original/title_72.html')
@app.route('/title_73')
def title_73():
return render_template('Original/title_73.html')
@app.route('/title_74')
def title_74():
return render_template('Original/title_74.html')
@app.route('/title_75')
def title_75():
return render_template('Original/title_75.html')
@app.route('/title_76')
def title_76():
return render_template('Original/title_76.html')
@app.route('/title_77')
def title_77():
return render_template('Original/title_77.html')
@app.route('/title_78')
def title_78():
return render_template('Original/title_78.html')
@app.route('/title_79')
def title_79():
return render_template('Original/title_79.html')
@app.route('/title_8')
def title_8():
return render_template('Original/title_8.html')
@app.route('/title_80')
def title_80():
return render_template('Original/title_80.html')
@app.route('/title_81')
def title_81():
return render_template('Original/title_81.html')
@app.route('/title_82')
def title_82():
return render_template('Original/title_82.html')
@app.route('/title_83')
def title_83():
return render_template('Original/title_83.html')
@app.route('/title_84')
def title_84():
return render_template('Original/title_84.html')
@app.route('/title_85')
def title_85():
return render_template('Original/title_85.html')
@app.route('/title_86')
def title_86():
return render_template('Original/title_86.html')
@app.route('/title_87')
def title_87():
return render_template('Original/title_87.html')
@app.route('/title_88')
def title_88():
return render_template('Original/title_88.html')
@app.route('/title_89')
def title_89():
return render_template('Original/title_89.html')
@app.route('/title_9')
def title_9():
return render_template('Original/title_9.html')
@app.route('/title_90')
def title_90():
return render_template('Original/title_90.html')
@app.route('/title_91')
def title_91():
return render_template('Original/title_91.html')
@app.route('/title_92')
def title_92():
return render_template('Original/title_92.html')
@app.route('/title_93')
def title_93():
return render_template('Original/title_93.html')
@app.route('/title_94')
def title_94():
return render_template('Original/title_94.html')
@app.route('/title_95')
def title_95():
return render_template('Original/title_95.html')
@app.route('/title_96')
def title_96():
return render_template('Original/title_96.html')
@app.route('/title_97')
def title_97():
return render_template('Original/title_97.html')
@app.route('/title_98')
def title_98():
return render_template('Original/title_98.html')
@app.route('/title_99')
def title_99():
return render_template('Original/title_99.html')
| 24.628611
| 102
| 0.736043
| 18,828
| 123,611
| 4.499203
| 0.034523
| 0.207411
| 0.192443
| 0.251455
| 0.830719
| 0.623414
| 0.408707
| 0
| 0
| 0
| 0
| 0.095682
| 0.101577
| 123,611
| 5,018
| 103
| 24.633519
| 0.667102
| 0
| 0
| 0
| 0
| 0
| 0.341361
| 0.231549
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333156
| true
| 0
| 0.000531
| 0.333156
| 0.666844
| 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
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
cb940c96c38d2cfdd8fa3f8ee13600147911a45c
| 186
|
py
|
Python
|
utils/naming.py
|
iDoka/rgen
|
cd89427f0699aeca9738cc0be7444bb43959adf9
|
[
"Apache-2.0"
] | 7
|
2016-06-28T06:30:12.000Z
|
2022-01-24T03:29:16.000Z
|
utils/naming.py
|
iDoka/rgen
|
cd89427f0699aeca9738cc0be7444bb43959adf9
|
[
"Apache-2.0"
] | 2
|
2017-03-24T09:43:57.000Z
|
2017-06-02T12:40:25.000Z
|
utils/naming.py
|
iDoka/rgen
|
cd89427f0699aeca9738cc0be7444bb43959adf9
|
[
"Apache-2.0"
] | 2
|
2017-05-12T07:12:05.000Z
|
2021-06-27T10:54:59.000Z
|
def get_register_class(register):
return register.name.lower() + "_reg"
def get_register_inst(register):
return register.name
def get_field_inst(field):
return field.name
| 18.6
| 41
| 0.747312
| 26
| 186
| 5.076923
| 0.384615
| 0.136364
| 0.212121
| 0.393939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155914
| 186
| 9
| 42
| 20.666667
| 0.840764
| 0
| 0
| 0
| 0
| 0
| 0.021505
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
cba4434ceddc754afaf4e0fa066da1a33529136a
| 26,116
|
py
|
Python
|
tests/test_user_routes.py
|
Bilb/session-pysogs
|
eb6f13e26d16f0119e87b41ffb86813c3c177ab9
|
[
"MIT"
] | 1
|
2022-03-08T06:34:34.000Z
|
2022-03-08T06:34:34.000Z
|
tests/test_user_routes.py
|
Bilb/session-pysogs
|
eb6f13e26d16f0119e87b41ffb86813c3c177ab9
|
[
"MIT"
] | null | null | null |
tests/test_user_routes.py
|
Bilb/session-pysogs
|
eb6f13e26d16f0119e87b41ffb86813c3c177ab9
|
[
"MIT"
] | null | null | null |
import pytest
from sogs import db, utils
import werkzeug.exceptions as wexc
from request import sogs_get, sogs_post
from util import pad64
import time
def test_global_mods(client, room, room2, user, user2, mod, admin, global_admin, global_mod):
assert not room2.check_moderator(user)
assert not room2.check_moderator(user2)
url_u1_mod = f'/user/{user.session_id}/moderator'
url_u2_mod = f'/user/{user2.session_id}/moderator'
# No one except global_admin should be able to add a global moderator:
for u in (user, user2, mod, admin, global_mod):
r = sogs_post(client, url_u2_mod, {'global': True, 'moderator': True}, u)
assert r.status_code == 403
r = sogs_post(client, url_u2_mod, {'global': True, 'moderator': True}, global_admin)
assert r.status_code == 200
user2._refresh()
assert user2.global_moderator
assert not user2.global_admin
room2._refresh(perms=True)
assert room2.check_moderator(user2)
assert not room2.check_admin(user2)
r = sogs_post(client, url_u2_mod, {'global': True, 'moderator': True}, user2)
assert r.status_code == 403
r = sogs_post(client, url_u2_mod, {'global': True, 'moderator': False}, global_admin)
assert r.status_code == 200
user2._refresh()
room2._refresh(perms=True)
assert not user2.global_moderator
assert not user2.global_admin
assert not room2.check_moderator(user2)
r = sogs_post(client, url_u2_mod, {'global': True, 'admin': True}, global_admin)
assert r.status_code == 200
user2._refresh()
room2._refresh(perms=True)
assert user2.global_moderator
assert user2.global_admin
assert room2.check_moderator(user2)
assert room2.check_admin(user2)
r = sogs_post(client, url_u1_mod, {'global': True, 'admin': True}, user2)
assert r.status_code == 200
user._refresh()
assert user.global_admin and user.global_moderator
# Removing moderator also implicitly removes admin:
r = sogs_post(client, url_u1_mod, {'global': True, 'moderator': False}, user2)
assert r.status_code == 200
user._refresh()
assert not user.global_admin and not user.global_moderator
sogs_post(client, url_u2_mod, {'global': True, 'moderator': False}, global_admin)
# Test other admin/moderator parameter interactions
r = sogs_post(
client, url_u2_mod, {'global': True, 'admin': True, 'moderator': True}, global_admin
)
assert r.status_code == 200
user2._refresh()
assert user2.global_admin and user2.global_moderator
sogs_post(
client, url_u2_mod, {'global': True, 'admin': False, 'moderator': False}, global_admin
)
assert r.status_code == 200
user2._refresh()
assert not user2.global_admin and not user2.global_moderator
# admin=false, moderator=true should remove admin (if present) and add moderator (if not)
# First make u2 an admin:
sogs_post(client, url_u2_mod, {'global': True, 'admin': True}, global_admin)
sogs_post(client, url_u2_mod, {'global': True, 'admin': False, 'moderator': True}, global_admin)
sogs_post(client, url_u1_mod, {'global': True, 'admin': False, 'moderator': True}, global_admin)
user._refresh()
user2._refresh()
assert user.global_moderator
assert not user.global_admin
assert user2.global_moderator
assert not user2.global_admin
# admin=false, moderator omitted: removes admin (if present), maintaining moderator if present,
# but doesn't make non-mods/admins into mods.
sogs_post(client, url_u1_mod, {'global': True, 'moderator': False}, global_admin)
sogs_post(client, url_u2_mod, {'global': True, 'admin': True}, global_admin)
# Preconditions:
user._refresh()
user2._refresh()
assert not user.global_moderator
assert not user.global_admin
assert user2.global_moderator
assert user2.global_admin
sogs_post(client, url_u1_mod, {'global': True, 'admin': False}, global_admin)
sogs_post(client, url_u2_mod, {'global': True, 'admin': False}, global_admin)
user._refresh()
user2._refresh()
assert not user.global_moderator
assert not user.global_admin
assert user2.global_moderator
assert not user2.global_admin
# admin omitted, moderator=True: adds moderator permission if not present, doesn't affect admin
sogs_post(client, url_u1_mod, {'global': True, 'moderator': False}, global_admin)
sogs_post(client, url_u2_mod, {'global': True, 'admin': True}, global_admin)
# Preconditions:
user._refresh()
user2._refresh()
assert not user.global_moderator
assert not user.global_admin
assert user2.global_moderator
assert user2.global_admin
sogs_post(client, url_u1_mod, {'global': True, 'moderator': True}, global_admin)
sogs_post(client, url_u2_mod, {'global': True, 'moderator': True}, global_admin)
user._refresh()
user2._refresh()
assert user.global_moderator
assert not user.global_admin
assert user2.global_moderator
assert user2.global_admin
# moderator=false, admin=true: Impossible and is an error
r = sogs_post(
client, url_u2_mod, {'global': True, 'moderator': False, 'admin': True}, global_admin
)
assert r.status_code == 400
def test_room_mods(client, room, room2, user, user2, mod, admin, global_admin, global_mod):
assert not room.check_moderator(user)
assert not room.check_moderator(user2)
assert not room2.check_moderator(user)
assert not room2.check_moderator(user2)
def refresh():
user._refresh()
user2._refresh()
room._refresh(perms=True)
room2._refresh(perms=True)
url_u2_mod = f'/user/{user2.session_id}/moderator'
url_u1_mod = f'/user/{user.session_id}/moderator'
# No one except admins should be able to add a room moderator:
for u in (user, user2, mod, global_mod):
r = sogs_post(client, url_u2_mod, {'rooms': ['*'], 'moderator': True}, u)
assert r.status_code == 403
r = sogs_post(client, url_u2_mod, {'rooms': ['test-room'], 'moderator': True}, global_admin)
assert r.status_code == 200
r = sogs_post(client, url_u1_mod, {'rooms': ['*'], 'moderator': True}, admin)
assert r.status_code == 200
refresh()
assert not user.global_moderator
assert not user.global_admin
assert not user2.global_moderator
assert not user2.global_admin
assert room.check_moderator(user2)
assert room.check_moderator(user)
assert not room.check_admin(user2)
assert not room.check_admin(user)
assert not room2.check_moderator(user)
assert not room2.check_moderator(user2)
r = sogs_post(client, url_u2_mod, {'rooms': ['*'], 'moderator': True}, user2)
assert r.status_code == 403
r = sogs_post(client, url_u1_mod, {'rooms': ['*'], 'moderator': False}, global_admin)
r = sogs_post(client, url_u2_mod, {'rooms': ['*'], 'moderator': False}, global_admin)
assert r.status_code == 200
refresh()
assert not user.global_moderator
assert not user2.global_moderator
assert not room.check_moderator(user)
assert not room.check_moderator(user2)
assert not room2.check_moderator(user)
assert not room2.check_moderator(user2)
# Make user2 a moderator of both rooms
r = sogs_post(client, url_u2_mod, {'rooms': ['*'], 'moderator': True}, global_admin)
assert r.status_code == 200
refresh()
assert not user.global_moderator
assert not user2.global_moderator
assert not room.check_moderator(user)
assert room.check_moderator(user2)
assert not room2.check_moderator(user)
assert room2.check_moderator(user2)
assert not room.check_admin(user)
assert not room.check_admin(user2)
assert not room2.check_admin(user)
assert not room2.check_admin(user2)
# Make user a admin of room2
r = sogs_post(client, url_u1_mod, {'rooms': ['room2'], 'admin': True}, global_admin)
assert r.status_code == 200
refresh()
assert not user.global_moderator
assert not user2.global_moderator
assert not room.check_moderator(user)
assert room.check_moderator(user2)
assert room2.check_moderator(user)
assert room2.check_moderator(user2)
assert not room.check_admin(user)
assert not room.check_admin(user2)
assert room2.check_admin(user)
assert not room2.check_admin(user2)
# user can promote user2 to admin but only in room2
r = sogs_post(client, url_u2_mod, {'rooms': ['*'], 'admin': True}, user)
assert r.status_code == 200
refresh()
assert not user.global_moderator
assert not user2.global_moderator
assert not room.check_moderator(user)
assert room.check_moderator(user2)
assert room2.check_moderator(user)
assert room2.check_moderator(user2)
assert not room.check_admin(user)
assert not room.check_admin(user2)
assert room2.check_admin(user)
assert room2.check_admin(user2)
# Make sure that we check *all* the given rooms for admin status:
r = sogs_post(client, url_u2_mod, {'rooms': ['room2', 'test-room'], 'moderator': True}, user)
assert r.status_code == 403
r = sogs_post(client, url_u2_mod, {'rooms': ['test-room', 'room2'], 'moderator': True}, user)
assert r.status_code == 403
# Removing moderator also implicitly removes admin:
r = sogs_post(client, url_u1_mod, {'rooms': ['room2'], 'moderator': False}, user2)
assert r.status_code == 200
refresh()
assert not user.global_moderator
assert not user2.global_moderator
assert not room.check_moderator(user)
assert room.check_moderator(user2)
assert not room2.check_moderator(user)
assert room2.check_moderator(user2)
assert not room.check_admin(user)
assert not room.check_admin(user2)
assert not room2.check_admin(user)
assert room2.check_admin(user2)
def clear():
sogs_post(client, url_u1_mod, {'rooms': ['*'], 'moderator': False}, global_admin)
sogs_post(client, url_u2_mod, {'rooms': ['*'], 'moderator': False}, global_admin)
refresh()
assert not any(r.check_moderator(u) for u in (user, user2) for r in (room, room2))
# Multi-room addition:
clear()
sogs_post(client, url_u1_mod, {'rooms': ['*'], 'admin': True}, global_admin)
sogs_post(client, url_u2_mod, {'rooms': ['*'], 'moderator': True}, user)
assert r.status_code == 200
refresh()
assert not user.global_moderator
assert not user2.global_moderator
assert room.check_moderator(user)
assert room.check_moderator(user2)
assert room2.check_moderator(user)
assert room2.check_moderator(user2)
assert room.check_admin(user)
assert not room.check_admin(user2)
assert room2.check_admin(user)
assert not room2.check_admin(user2)
# Test other admin/moderator parameter interactions
r = sogs_post(
client, url_u2_mod, {'rooms': ['test-room'], 'admin': True, 'moderator': True}, admin
)
assert r.status_code == 200
refresh()
assert room.check_moderator(user2)
assert room.check_admin(user2)
sogs_post(
client, url_u2_mod, {'rooms': ['test-room'], 'admin': False, 'moderator': False}, admin
)
assert r.status_code == 200
refresh()
assert not room.check_moderator(user2)
# admin=false, moderator=true should remove admin (if present) and add moderator (if not)
# First make u2 an admin:
clear()
sogs_post(client, url_u2_mod, {'rooms': ['test-room'], 'admin': True}, admin)
sogs_post(
client, url_u2_mod, {'rooms': ['test-room'], 'admin': False, 'moderator': True}, admin
)
sogs_post(
client, url_u1_mod, {'rooms': ['test-room'], 'admin': False, 'moderator': True}, admin
)
refresh()
assert not room.check_admin(user)
assert not room.check_admin(user2)
assert room.check_moderator(user)
assert room.check_moderator(user2)
# admin=false, moderator omitted: removes admin (if present), maintaining moderator if present,
# but doesn't make non-mods/admins into mods.
sogs_post(client, url_u1_mod, {'rooms': ['test-room'], 'moderator': False}, admin)
sogs_post(client, url_u2_mod, {'rooms': ['test-room'], 'admin': True}, admin)
# Preconditions:
refresh()
assert not room.check_moderator(user)
assert room.check_admin(user2)
sogs_post(client, url_u1_mod, {'rooms': ['test-room'], 'admin': False}, admin)
sogs_post(client, url_u2_mod, {'rooms': ['test-room'], 'admin': False}, admin)
refresh()
assert not room.check_moderator(user)
assert room.check_moderator(user2)
assert not room.check_admin(user2)
# admin omitted, moderator=True: adds moderator permission if not present, doesn't affect admin
sogs_post(client, url_u1_mod, {'rooms': ['test-room'], 'moderator': False}, admin)
sogs_post(client, url_u2_mod, {'rooms': ['test-room'], 'admin': True}, admin)
# Preconditions:
refresh()
assert not room.check_moderator(user)
assert room.check_admin(user2)
sogs_post(client, url_u1_mod, {'rooms': ['test-room'], 'moderator': True}, admin)
sogs_post(client, url_u2_mod, {'rooms': ['test-room'], 'moderator': True}, admin)
refresh()
assert room.check_moderator(user)
assert not room.check_admin(user)
assert room.check_moderator(user2)
assert room.check_admin(user2)
# moderator=false, admin=true: Impossible and is an error
r = sogs_post(
client, url_u2_mod, {'rooms': ['test-room'], 'moderator': False, 'admin': True}, admin
)
assert r.status_code == 400
def test_mod_visibility(client, room, user, user2, mod, admin, global_admin):
s_mod, s_admin, s_gadmin, s_user = (
mod.session_id,
admin.session_id,
global_admin.session_id,
user.session_id,
)
def room_mods(u=user2):
r = sogs_get(client, '/room/test-room', u)
assert r.status_code == 200
return tuple(
r.json.get(x, [])
for x in ('moderators', 'admins', 'hidden_moderators', 'hidden_admins')
)
url_u1_mod = f'/user/{user.session_id}/moderator'
r = sogs_post(client, url_u1_mod, {'global': True, 'moderator': True}, global_admin)
assert r.status_code == 200
user._refresh()
assert user.global_moderator
assert not user.global_admin
assert not user.visible_mod
assert room_mods() == ([s_mod], [s_admin], [], [])
assert room_mods(mod) == ([s_mod], [s_admin], [s_user], [s_gadmin])
r = sogs_post(
client, url_u1_mod, {'global': True, 'moderator': True, 'visible': True}, global_admin
)
assert r.status_code == 200
user._refresh()
assert user.global_moderator
assert not user.global_admin
assert user.visible_mod
assert room_mods() == (sorted([s_mod, s_user]), [s_admin], [], [])
assert room_mods(mod) == (sorted([s_mod, s_user]), [s_admin], [], [s_gadmin])
r = sogs_post(
client, url_u1_mod, {'global': True, 'moderator': True, 'visible': False}, global_admin
)
assert r.status_code == 200
user._refresh()
assert user.global_moderator
assert not user.global_admin
assert not user.visible_mod
assert room_mods() == ([s_mod], [s_admin], [], [])
assert room_mods(mod) == ([s_mod], [s_admin], [s_user], [s_gadmin])
sogs_post(client, url_u1_mod, {'global': True, 'moderator': False}, global_admin)
sogs_post(client, url_u1_mod, {'global': True, 'admin': True, 'visible': True}, global_admin)
room._refresh(perms=True)
user._refresh()
assert room.check_moderator(user)
assert room.check_admin(user)
assert user.visible_mod
assert room_mods() == ([s_mod], sorted([s_admin, s_user]), [], [])
assert room_mods(mod) == ([s_mod], sorted([s_admin, s_user]), [], [s_gadmin])
sogs_post(client, url_u1_mod, {'global': True, 'admin': True}, global_admin)
user._refresh()
assert user.global_moderator
assert user.global_admin
assert not user.visible_mod
assert room_mods() == ([s_mod], [s_admin], [], [])
assert room_mods(mod) == ([s_mod], [s_admin], [], sorted([s_gadmin, s_user]))
sogs_post(client, url_u1_mod, {'global': True, 'moderator': False}, global_admin)
r = sogs_post(client, url_u1_mod, {'rooms': ['test-room'], 'moderator': True}, global_admin)
assert r.status_code == 200
assert room_mods() == (sorted([s_mod, s_user]), [s_admin], [], [])
assert room_mods(mod) == (sorted([s_mod, s_user]), [s_admin], [], [s_gadmin])
r = sogs_post(
client,
url_u1_mod,
{'rooms': ['test-room'], 'moderator': True, 'visible': True},
global_admin,
)
assert r.status_code == 200
assert room_mods() == (sorted([s_mod, s_user]), [s_admin], [], [])
assert room_mods(mod) == (sorted([s_mod, s_user]), [s_admin], [], [s_gadmin])
r = sogs_post(
client,
url_u1_mod,
{'rooms': ['test-room'], 'moderator': True, 'visible': False},
global_admin,
)
assert r.status_code == 200
assert room_mods() == ([s_mod], [s_admin], [], [])
assert room_mods(mod) == ([s_mod], [s_admin], [s_user], [s_gadmin])
sogs_post(client, url_u1_mod, {'rooms': ['test-room'], 'moderator': False}, global_admin)
sogs_post(
client, url_u1_mod, {'rooms': ['test-room'], 'admin': True, 'visible': True}, global_admin
)
assert room_mods() == ([s_mod], sorted([s_admin, s_user]), [], [])
assert room_mods(mod) == ([s_mod], sorted([s_admin, s_user]), [], [s_gadmin])
sogs_post(
client, url_u1_mod, {'rooms': ['test-room'], 'admin': True, 'visible': False}, global_admin
)
assert room_mods() == ([s_mod], [s_admin], [], [])
assert room_mods(mod) == ([s_mod], [s_admin], [], sorted([s_user, s_gadmin]))
sogs_post(client, url_u1_mod, {'rooms': ['test-room'], 'admin': True}, global_admin)
assert room_mods() == ([s_mod], sorted([s_admin, s_user]), [], [])
assert room_mods(mod) == ([s_mod], sorted([s_admin, s_user]), [], [s_gadmin])
def test_bans(client, room, room2, user, user2, mod, global_mod):
url_ban = f'/user/{user.session_id}/ban'
url_unban = f'/user/{user.session_id}/unban'
post = {"data": utils.encode_base64(b"post"), "signature": utils.encode_base64(pad64("sig"))}
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
r = sogs_post(client, url_ban, {'rooms': ['test-room']}, mod)
assert r.status_code == 200
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/test-room/message", post, user)
r = sogs_post(client, "/room/test-room/message", post, user2)
assert r.status_code == 201
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 201
r = sogs_post(client, url_unban, {'rooms': ['test-room']}, mod)
assert r.status_code == 200
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
r = sogs_post(client, url_ban, {'rooms': ['*']}, global_mod)
assert r.status_code == 200
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/test-room/message", post, user)
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/room2/message", post, user)
r = sogs_post(client, "/room/test-room/message", post, user2)
assert r.status_code == 201
r = sogs_post(client, url_unban, {'rooms': ['*']}, mod)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
with pytest.raises(wexc.Forbidden):
r = sogs_post(client, "/room/room2/message", post, user)
r = sogs_post(client, url_unban, {'rooms': ['*']}, global_mod)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 201
r = sogs_post(client, url_ban, {'global': True}, mod)
assert r.status_code == 403
r = sogs_post(client, url_ban, {'global': True}, global_mod)
assert r.status_code == 200
# With a global ban we shouldn't be able to access
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 403
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 403
r = sogs_get(client, "/rooms", user)
assert r.status_code == 403
r = sogs_post(client, "/room/test-room/message", post, user2)
assert r.status_code == 201
r = sogs_post(client, url_unban, {'global': True}, mod)
assert r.status_code == 403
r = sogs_post(client, url_unban, {'global': True}, global_mod)
assert r.status_code == 200
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 201
# Test bad arguments properly err:
assert [
sogs_post(client, url_ban, data, global_mod).status_code
for data in (
{'global': True, 'rooms': ['abc']},
{},
{'rooms': []},
{'global': False, 'rooms': []},
{'global': False, 'rooms': None},
{'rooms': ['test-room', '*']},
{'rooms': ['*', 'test-room']},
)
] == [400] * 7
def test_ban_timeouts(client, room, room2, user, mod, global_mod):
url_ban = f'/user/{user.session_id}/ban'
url_unban = f'/user/{user.session_id}/unban'
post = {"data": utils.encode_base64(b"post"), "signature": utils.encode_base64(pad64("sig"))}
r = sogs_post(client, url_ban, {'rooms': ['*'], 'timeout': 0.001}, global_mod)
assert r.status_code == 200
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/test-room/message", post, user)
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/room2/message", post, user)
from sogs.cleanup import cleanup
time.sleep(0.002)
assert cleanup() == (0, 0, 0, 2, 0)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 201
r = sogs_post(client, url_ban, {'rooms': ['*'], 'timeout': 30}, mod)
assert r.status_code == 200
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/test-room/message", post, user)
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 201
# The timed ban shouldn't expire yet:
assert cleanup() == (0, 0, 0, 0, 0)
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/test-room/message", post, user)
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 201
# Handle overlapping timeouts.
# If we add a ban with a timeout then ban with a different timeout, the second one should
# replace the first one.
# Replace the currently active 30s ban with one that expires sooner
r = sogs_post(client, url_ban, {'rooms': ['*'], 'timeout': 0.001}, mod)
assert r.status_code == 200
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/test-room/message", post, user)
time.sleep(0.002)
assert cleanup() == (0, 0, 0, 1, 0)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
# Make sure we can replace a short one with a longer one
r = sogs_post(client, url_ban, {'rooms': ['*'], 'timeout': 0.001}, mod)
assert r.status_code == 200
r = sogs_post(client, url_ban, {'rooms': ['*'], 'timeout': 30}, mod)
assert r.status_code == 200
time.sleep(0.002)
assert cleanup() == (0, 0, 0, 0, 0)
sogs_post(client, url_ban, {'rooms': ['*'], 'timeout': 0.001}, mod)
time.sleep(0.002)
assert cleanup() == (0, 0, 0, 1, 0)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
# If we add a ban with a timeout *then* we ban again without a timeout, we want to be sure the
# timeout gets cancelled.
assert sogs_post(client, url_ban, {'rooms': ['*'], 'timeout': 0.001}, mod).status_code == 200
assert sogs_post(client, url_ban, {'rooms': ['*']}, mod).status_code == 200
time.sleep(0.005)
assert cleanup() == (0, 0, 0, 0, 0)
with pytest.raises(wexc.Forbidden):
sogs_post(client, "/room/test-room/message", post, user)
# Unbanning should remove the ban future
assert sogs_post(client, url_unban, {'rooms': ['*']}, mod).status_code == 200
assert db.query('SELECT COUNT(*) FROM user_ban_futures').first()[0] == 0
# Global bans can time out too:
r = sogs_post(client, url_ban, {'global': True, 'timeout': 0.001}, global_mod)
assert r.status_code == 200
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 403
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 403
r = sogs_get(client, "/rooms", user)
assert r.status_code == 403
time.sleep(0.002)
assert cleanup() == (0, 0, 0, 1, 0)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
r = sogs_post(client, "/room/room2/message", post, user)
assert r.status_code == 201
# Re-banning with longer timeout:
r = sogs_post(client, url_ban, {'global': True, 'timeout': 0.001}, global_mod)
assert r.status_code == 200
r = sogs_post(client, url_ban, {'global': True, 'timeout': 30}, global_mod)
assert r.status_code == 200
time.sleep(0.002)
assert cleanup() == (0, 0, 0, 0, 0)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 403
# global ban with a shorter timeout:
r = sogs_post(client, url_ban, {'global': True, 'timeout': 0.001}, global_mod)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 403
time.sleep(0.002)
assert cleanup() == (0, 0, 0, 1, 0)
r = sogs_post(client, "/room/test-room/message", post, user)
assert r.status_code == 201
| 37.415473
| 100
| 0.659289
| 3,679
| 26,116
| 4.478119
| 0.049198
| 0.061184
| 0.106222
| 0.091836
| 0.911684
| 0.89997
| 0.884674
| 0.86434
| 0.840425
| 0.799393
| 0
| 0.028952
| 0.197197
| 26,116
| 697
| 101
| 37.469154
| 0.756844
| 0.077347
| 0
| 0.744275
| 0
| 0
| 0.113245
| 0.034547
| 0
| 0
| 0
| 0
| 0.480916
| 1
| 0.015267
| false
| 0
| 0.013359
| 0
| 0.030534
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
1de3f7b9f566b2f8919f9d3a12648b7fce55bdd2
| 76,277
|
py
|
Python
|
cogs/utils.py
|
alexyy802/chad-the-discord-bot
|
c1d121fcfa278f5cd0fa0242c4b0c760d1eebb85
|
[
"Unlicense",
"MIT"
] | 1
|
2021-12-20T16:15:20.000Z
|
2021-12-20T16:15:20.000Z
|
cogs/utils.py
|
alexyy802/chad-the-discord-bot
|
c1d121fcfa278f5cd0fa0242c4b0c760d1eebb85
|
[
"Unlicense",
"MIT"
] | 1
|
2021-10-04T16:00:35.000Z
|
2021-10-04T16:00:35.000Z
|
cogs/utils.py
|
alexyy802/chad-the-discord-bot
|
c1d121fcfa278f5cd0fa0242c4b0c760d1eebb85
|
[
"Unlicense",
"MIT"
] | 2
|
2021-10-04T16:16:44.000Z
|
2021-11-15T19:19:07.000Z
|
import discord
import nextcord
import asyncio
from nextcord.ext import commands
import calendar
import time
from tzlocal import get_localzone
from datetime import datetime, timedelta
import aiohttp
from tinydb import TinyDB, Query
from discord_slash import cog_ext, SlashContext
from discord_slash.utils.manage_commands import create_option, create_choice
class Utils(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.bot.sniped_messages = {}
@commands.cooldown(1, 5, commands.BucketType.user)
@cog_ext.cog_slash(name="ping",
description="This allows you to check my ping.")
async def _ping(self, ctx: SlashContext):
start_time = time.time()
message = await ctx.send(embed=nextcord.Embed(title="Testing Ping...", color=nextcord.Color.random()))
end_time = time.time()
await message.edit(embed=nextcord.Embed(
title=f"Latency: {round(self.bot.latency * 1000)}ms\nAPI: {round((end_time - start_time) * 1000)}ms",
color=nextcord.Color.random()))
@commands.command(aliases=['p'])
async def ping(self, ctx):
"""Get the bot's current websocket and API latency."""
start_time = time.time()
message = await ctx.send(embed=nextcord.Embed(title="Testing Ping...", color=nextcord.Color.random()))
end_time = time.time()
await message.edit(embed=nextcord.Embed(
title=f"Latency: {round(self.bot.latency * 1000)}ms\nAPI: {round((end_time - start_time) * 1000)}ms",
color=nextcord.Color.random()))
@cog_ext.cog_slash(name="makerole",
description="Makes a new role in the server for you!",
options=[create_option(name="rolename", description="Name of the role you want to make.",
option_type=3,
required=True
)
])
async def _makerole(self, ctx, rolename: str):
color = nextcord.Color.random()
if ctx.author.guild_permissions.manage_roles:
guild = ctx.guild
perms = nextcord.Permissions(send_messages=True, read_messages=True)
role = await guild.create_role(name=rolename, color=color, permissions=perms)
embed1 = nextcord.Embed(title="Role Created!",
description=f"Added role {role.mention} to the server!",
color=color)
embed1.set_footer(text=f"Tip: Do /addrole to add your newly created role to users!")
await ctx.send(embed=embed1)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require the Manage Roles permission.",
color=color))
@commands.command(aliases=['mr', 'createrole'])
async def makerole(self, ctx, *, rolename):
color = nextcord.Color.random()
if ctx.author.guild_permissions.manage_roles:
guild = ctx.guild
perms = nextcord.Permissions(send_messages=True, read_messages=True)
role = await guild.create_role(name=rolename, color=color, permissions=perms)
embed1 = nextcord.Embed(title="Role Created!",
description=f"Added role {role.mention} to the server!",
color=color)
embed1.set_footer(text=f"Tip: Do {ctx.prefix}addrole to add your newly created role to users!")
await ctx.send(embed=embed1)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require the Manage Roles permission.",
color=color))
@cog_ext.cog_slash(name="addrole", description="Gives the user a role!",
options=[create_option(name="member",
description="Person to whom you want to add a role",
option_type=6,
required=True
),
create_option(name="role",
description="The role you want to add to that person",
option_type=8,
required=True
)]
)
async def _addrole(self, ctx: SlashContext, member: nextcord.Member, *, role: nextcord.Role = None):
if ctx.author.guild_permissions.manage_roles:
embed = nextcord.Embed(
title=f"Role Added",
description=f"{role.mention} has been added to {member.mention}."
)
embed.color = nextcord.Color.random()
embed.set_footer(text="Gamers = Poggers but why is this here???")
await member.add_roles(role)
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!", description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@commands.command(aliases=['addr', 'arole', 'ar'])
async def addrole(self, ctx, member: nextcord.Member, *, role: nextcord.Role = None):
if ctx.author.guild_permissions.manage_roles:
embed = nextcord.Embed(
title=f"Role Added",
description=f"{role.mention} has been added to {member.mention}."
)
embed.color = nextcord.Color.random()
embed.set_footer(text="Gamers = Poggers but why is this here???")
await member.add_roles(role)
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!", description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@cog_ext.cog_slash(name="editrole", description="Edits an existing role in the server.",
options=[create_option(name="from_role",
description="The existing role that you want to change",
option_type=8,
required=True
),
create_option(name="information",
description="The new name of the role or the new color, or both! check help editrole",
option_type=3,
required=True
)]
)
async def _editrole(self, ctx: SlashContext, from_role: nextcord.Role, *, information=None):
if ctx.author.guild_permissions.manage_roles:
guild = ctx.guild
from_role = str(from_role)
role = nextcord.utils.get(guild.roles, name=from_role)
if '#' in information:
if information.startswith("#"):
information = information.replace('#', '')
await role.edit(colour=nextcord.Colour(int(information, 16)))
embed = nextcord.Embed(
title="Role has been edited.",
description=f"Role colour changed to {nextcord.Colour(int(information, 16))}",
color=nextcord.Color.random()
)
embed.set_footer(
text=f"Tip: Use /color <new_name> <new_color> to change the name and color of a role at the same time")
await ctx.send(embed=embed)
return
split = information.split('#')
if len(split[1]) != 6:
await ctx.send(
embed=nextcord.Embed(title=f"A colour hex-decimal can only have a length of 6 digits",
color=nextcord.Color.random()))
return
to_role = str(split[0])
colour = split[1]
await role.edit(name=to_role, colour=nextcord.Colour(int(colour, 16)))
embed = nextcord.Embed(
title="Role has been edited.",
description=f"Role name changed from {from_role} to {to_role}, and colour changed to #{colour}",
color=nextcord.Color.random()
)
embed.set_footer(
text=f"Tip: You can use the /color feature to find out what colour a hexdecimal will look like")
await ctx.send(embed=embed)
else:
await role.edit(name=information)
embed = nextcord.Embed(
title="Role has been edited.",
description=f"Role name changed from {from_role} to {information}.",
color=nextcord.Color.random()
)
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@commands.command(aliases=['editr', 'erole', 'er'])
async def editrole(self, ctx, from_role: nextcord.Role, *, information=None):
if ctx.author.guild_permissions.manage_roles:
guild = ctx.guild
from_role = str(from_role)
role = nextcord.utils.get(guild.roles, name=from_role)
if '#' in information:
if information.startswith("#"):
information = information.replace('#', '')
await role.edit(colour=nextcord.Colour(int(information, 16)))
embed = nextcord.Embed(
title="Role has been edited.",
description=f"Role colour changed to {nextcord.Colour(int(information, 16))}",
color=nextcord.Color.random()
)
embed.set_footer(
text=f"Tip: Use {ctx.prefix}color <new_name> <new_color> to change the name and color of a role at the same time")
await ctx.send(embed=embed)
return
split = information.split('#')
if len(split[1]) != 6:
await ctx.send(
embed=nextcord.Embed(title=f"A colour hex-decimal can only have a length of 6 digits",
color=nextcord.Color.random()))
return
to_role = str(split[0])
colour = split[1]
await role.edit(name=to_role, colour=nextcord.Colour(int(colour, 16)))
embed = nextcord.Embed(
title="Role has been edited.",
description=f"Role name changed from {from_role} to {to_role}, and colour changed to #{colour}",
color=nextcord.Color.random()
)
embed.set_footer(
text=f"Tip: You can use the {ctx.prefix}color feature to find out what colour a hexdecimal will look like")
await ctx.send(embed=embed)
else:
await role.edit(name=information)
embed = nextcord.Embed(
title="Role has been edited.",
description=f"Role name changed from {from_role} to {information}.",
color=nextcord.Color.random()
)
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@commands.command(aliases=['remover', 'rrole', 'rr'])
async def removerole(self, ctx, member: nextcord.Member, *, role: nextcord.Role = None):
if role is None:
await ctx.send(embed=nextcord.Embed(title="If I don't get a role",
description="I can't remove a role.\nNo matter how many members u give me!",
color=nextcord.Color.random()))
return
elif role not in member.roles:
embed = nextcord.Embed(title="The user doesn't even have this role",
description="Soooo Ima just act like that was all cause of my hardwork!\nYeah I totally removed users role",
color=nextcord.Color.random())
embed.set_footer(text="#subtlety")
await ctx.send(embed=embed)
return
if ctx.author.guild_permissions.manage_roles:
embed = nextcord.Embed(
title=f"Role Removed",
description=f"{role} has been removed from {member.name}."
)
embed.color = nextcord.Color.random()
embed.set_footer(text=f"")
try:
await member.remove_roles(role)
except:
raise error
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!", description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@cog_ext.cog_slash(name="removerole", description="Takes away a user's role",
options=[create_option(name="member",
description="Person whose role you want to snatch!",
option_type=6,
required=True
),
create_option(name="role",
description="The role to be removed",
option_type=8,
required=True
)
]
)
async def _removerole(self, ctx: SlashContext, member: nextcord.Member, *, role: nextcord.Role = None):
if role is None:
await ctx.send(embed=nextcord.Embed(title="If I don't get a role",
description="I can't remove a role.\nNo matter how many members u give me!",
color=nextcord.Color.random()))
return
elif role not in member.roles:
embed = nextcord.Embed(title="The user doesn't even have this role",
description="Soooo Ima just act like that was all cause of my hardwork!\nYeah I totally removed users role",
color=nextcord.Color.random())
embed.set_footer(text="#subtlety")
await ctx.send(embed=embed)
return
if ctx.author.guild_permissions.manage_roles:
embed = nextcord.Embed(
title=f"Role Removed",
description=f"{role} has been removed from {member.name}."
)
embed.color = nextcord.Color.random()
embed.set_footer(text=f"")
await member.remove_roles(role)
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!", description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@commands.command(aliases=['deleter', 'drole', 'dr'])
async def deleterole(self, ctx, rolename: nextcord.Role):
if ctx.author.guild_permissions.manage_roles:
await rolename.delete()
embed = nextcord.Embed(
title=f"Role {rolename} has been deleted",
description=f"GET EM OUTTA HERE", color=nextcord.Color.random()
)
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@cog_ext.cog_slash(name="deleterole",
description="Deletes a role",
options=[create_option(name="role",
description="The role you want to delete",
option_type=8,
required=True
)
])
async def _deleterole(self, ctx: SlashContext, role: nextcord.Role):
if ctx.author.guild_permissions.manage_roles:
await role.delete()
embed = nextcord.Embed(
title=f"Role {role} has been deleted",
description=f"GET EM OUTTA HERE", color=nextcord.Color.random()
)
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require the Manage Roles permission.",
color=nextcord.Color.green()))
@commands.command(aliases=['user', 'uinfo', 'ui', 'profile', 'prof'])
async def userinfo(self, ctx, target: nextcord.Member=None):
if target is None:
target = ctx.author
if target in ctx.guild.members:
roles = [role for role in target.roles if role != ctx.guild.default_role]
if not roles:
roles = None
embed = nextcord.Embed(title="User information", color=nextcord.Color.gold(),
timestamp=datetime.utcnow())
embed.set_author(name=target.name, icon_url=target.avatar.url)
embed.set_thumbnail(url=target.avatar.url)
embed.set_footer(text=f"Requested by {ctx.author.display_name}",
icon_url=ctx.author.avatar.url)
if roles is None:
fields = [("Name", str(target), False),
("ID", target.id, False),
(f"Roles", "No roles", False),
("Created at", target.created_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False),
("Joined at", target.joined_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False)]
else:
fields = [("Name", str(target), False),
("ID", target.id, False),
(f"Roles ({len(roles)})", " ".join([role.mention for role in roles]), False),
("Created at", target.created_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False),
("Joined at", target.joined_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False)]
for name, value, inline in fields:
embed.add_field(name=name, value=value, inline=inline)
await ctx.send(embed=embed)
else:
await ctx.send(embed=discord.Embed(title=f'You have to ping someone from this server and this server only', color=discord.Color.random()))
@cog_ext.cog_slash(name="userinfo",
description="Gives the information of the member specified...",
options=[create_option(name="target",
description="Person who you want to stalk",
option_type=6,
required=False
)
]
)
async def _userinfo(self, ctx: SlashContext, target: nextcord.Member = None):
if target is None:
target = ctx.author
if target in ctx.guild.members:
roles = [role for role in target.roles if role != ctx.guild.default_role]
if not roles:
roles = None
embed = nextcord.Embed(title="User information", color=nextcord.Color.gold(),
timestamp=datetime.utcnow())
embed.set_author(name=target.name, icon_url=target.avatar.url)
embed.set_thumbnail(url=target.avatar.url)
embed.set_footer(text=f"Requested by {ctx.author.display_name}",
icon_url=ctx.author.avatar.url)
if roles is None:
fields = [("Name", str(target), False),
("ID", target.id, False),
(f"Roles", "No roles", False),
("Created at", target.created_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False),
("Joined at", target.joined_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False)]
else:
fields = [("Name", str(target), False),
("ID", target.id, False),
(f"Roles ({len(roles)})", " ".join([role.mention for role in roles]), False),
("Created at", target.created_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False),
("Joined at", target.joined_at.strftime("%d/%m/%Y %H:%M:%S") + " UTC", False)]
for name, value, inline in fields:
embed.add_field(name=name, value=value, inline=inline)
await ctx.send(embed=embed)
else:
await ctx.send(embed=discord.Embed(title=f'You have to ping someone from this server and this server only',
color=discord.Color.random()))
@commands.command(aliases=['server', 'sinfo', 'si'])
@commands.guild_only()
async def serverinfo(self, ctx):
format = "%a, %d %b %Y | %H:%M:%S %UTC"
count = 0
for member in ctx.guild.members:
if member.bot:
count += 1
embed = nextcord.Embed(
color=ctx.guild.owner.top_role.color
)
text_channels = len(ctx.guild.text_channels)
voice_channels = len(ctx.guild.voice_channels)
categories = len(ctx.guild.categories)
channels = text_channels + voice_channels
embed.set_thumbnail(url=str(ctx.guild.icon.url))
embed.add_field(name=f"Information About **{ctx.guild.name}**: ",
value=f":white_small_square: ID: **{ctx.guild.id}** \n:white_small_square: Owner: **{ctx.guild.owner}** \n:white_small_square: Location: **{str(ctx.guild.region).capitalize()}** \n:white_small_square: Creation: **{ctx.guild.created_at.strftime(format)}** \n:white_small_square: Members: **{ctx.guild.member_count}** of which **{count}** members are bots \n:white_small_square: Channels: **{channels}** Channels; **{text_channels}** Text, **{voice_channels}** Voice, **{categories}** Categories \n:white_small_square: Verification: **{str(ctx.guild.verification_level).upper()}** \n:white_small_square: Features: {', '.join(f'**{x}**' for x in ctx.guild.features)} \n:white_small_square: Splash: {ctx.guild.splash}")
await ctx.send(embed=embed)
@cog_ext.cog_slash(name="serverinfo", description="Provides the information about the server")
async def _serverinfo(self, ctx: SlashContext):
format = "%a, %d %b %Y | %H:%M:%S %UTC"
count = 0
for member in ctx.guild.members:
if member.bot:
count += 1
embed = nextcord.Embed(
color=ctx.guild.owner.top_role.color
)
text_channels = len(ctx.guild.text_channels)
voice_channels = len(ctx.guild.voice_channels)
categories = len(ctx.guild.categories)
channels = text_channels + voice_channels
embed.set_thumbnail(url=str(ctx.guild.icon.url))
embed.add_field(name=f"Information About **{ctx.guild.name}**: ",
value=f":white_small_square: ID: **{ctx.guild.id}** \n:white_small_square: Owner: **{ctx.guild.owner}** \n:white_small_square: Location: **{str(ctx.guild.region).capitalize()}** \n:white_small_square: Creation: **{ctx.guild.created_at.strftime(format)}** \n:white_small_square: Members: **{ctx.guild.member_count}** of which **{count}** members are bots \n:white_small_square: Channels: **{channels}** Channels; **{text_channels}** Text, **{voice_channels}** Voice, **{categories}** Categories \n:white_small_square: Verification: **{str(ctx.guild.verification_level).upper()}** \n:white_small_square: Features: {', '.join(f'**{x}**' for x in ctx.guild.features)} \n:white_small_square: Splash: {ctx.guild.splash}")
await ctx.send(embed=embed)
@commands.command(aliases=['robemoji', 'remoji', 'robmo', 'rm'])
async def robmoji(self, ctx, emoji: nextcord.PartialEmoji, *, name=None):
if ctx.author.guild_permissions.manage_emojis:
emoji_url = emoji.url
if name is None:
name = emoji.name
async with aiohttp.ClientSession() as session:
async with session.get(str(emoji_url)) as response:
img = await response.read()
new_emoji = await ctx.guild.create_custom_emoji(name=name, image=img)
embed = nextcord.Embed(title="Emoji Added Pog!",
description=f"Name is:\"{name}\", your emoji is {new_emoji}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require to have manage emojis permission!",
color=nextcord.Color.random()))
"""
@cog_ext.cog_slash(name="robmoji",
description="Basically takes an emoji from any server and uploads it in this server so everyone can use it!",
options=[create_option(name="emoji",
description="The emoji you want to rob",
option_type=3,
required=True
),
create_option(name="name",
description="Name of the emoji",
option_type=3,
required=False
)
]
)
async def _robmoji(self, ctx: SlashContext, emoji: nextcord.PartialEmoji, *, name=None):
if ctx.author.guild_permissions.manage_emojis:
emoji_url = emoji.url
if name is None:
name = emoji.name
async with aiohttp.ClientSession() as session:
async with session.get(str(emoji_url)) as response:
img = await response.read()
new_emoji = await ctx.guild.create_custom_emoji(name=name, image=img)
embed = nextcord.Embed(title="Emoji Added Pog!",
description=f"Name is:\"{name}\", your emoji is {new_emoji}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
else:
await ctx.send(
embed=nextcord.Embed(title="Stop right there!",
description="You require to have manage emojis permission!",
color=nextcord.Color.random()))"""
@commands.command(aliases=['n'])
async def nick(self, ctx, member=None, *, nick=None):
if member is None and nick is None:
if ctx.author.guild_permissions.change_nickname:
await ctx.author.edit(nick=None)
embed = nextcord.Embed(title=f"Your nickname has been removed",
description=f"Your name is now displayed as {ctx.author.display_name}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
else:
await ctx.send(
embed=nextcord.Embed(title="I refuse", description="You require the change nickname permission.",
color=nextcord.Color.random()))
return
if member is not None:
try:
member = await commands.MemberConverter().convert(ctx, member)
except:
pass
if isinstance(member, str) or (isinstance(member, nextcord.Member) and ctx.author == member):
if ctx.author.guild_permissions.change_nickname:
if type(member) is not nextcord.Member:
if nick is None:
nick = str(member)
else:
nick = str(member) + " " + nick
if len(nick) > 48:
embed = nextcord.Embed(title=f"That nickname is TOO LONG",
description=f" I'd probably get bored changing it.\nTry a nickname that has less then 32 characters.",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
await ctx.author.edit(nick=nick)
embed = nextcord.Embed(title=f"Your nickname has been changed",
description=f"Your name is now displayed as {nick}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
else:
await ctx.send(
embed=nextcord.Embed(title="I refuse", description="You require the change nickname permission.",
color=nextcord.Color.random()))
return
elif isinstance(member, nextcord.Member):
if ctx.author.guild_permissions.manage_nicknames:
if nick is None:
await member.edit(nick=member.name)
embed = nextcord.Embed(title=f"Nickname removed for {member.name}",
description=f"Their name is now displayed as {member.name}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
elif len(nick) > 48:
embed = nextcord.Embed(title=f"That nickname is TOO LONG",
description=f" I'd probably get bored changing it.\nTry a nickname that has less then 48 characters.",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
await member.edit(nick=nick)
embed = nextcord.Embed(title=f"Nickname changed for {member.name}",
description=f"Their name is now displayed as {nick}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
else:
await ctx.send(
embed=nextcord.Embed(title="I refuse", description="You require the manage nicknames permission.",
color=nextcord.Color.random()))
@cog_ext.cog_slash(name="nick",
description="Change nicknames in the server by using this feature",
options=[create_option(name="member",
description="The person whose nick you wanna change",
required=False,
option_type=6),
create_option(name="nick",
description="The nick you want to change it to",
required=False,
option_type=3)])
async def _nick(self, ctx: SlashContext, member=None, *, nick=None):
if member is None and nick is None:
if ctx.author.guild_permissions.change_nickname:
await ctx.author.edit(nick=None)
embed = nextcord.Embed(title=f"Your nickname has been removed",
description=f"Your name is now displayed as {ctx.author.display_name}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
else:
await ctx.send(
embed=nextcord.Embed(title="I refuse", description="You require the change nickname permission.",
color=nextcord.Color.random()))
return
if member is not None:
try:
member = await commands.MemberConverter().convert(ctx, member)
except:
pass
if isinstance(member, str) or (isinstance(member, nextcord.Member) and ctx.author == member):
if ctx.author.guild_permissions.change_nickname:
if type(member) is not nextcord.Member:
if nick is None:
nick = str(member)
else:
nick = str(member) + " " + nick
if len(nick) > 48:
embed = nextcord.Embed(title=f"That nickname is TOO LONG",
description=f" I'd probably get bored changing it.\nTry a nickname that has less then 32 characters.",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
await ctx.author.edit(nick=nick)
embed = nextcord.Embed(title=f"Your nickname has been changed",
description=f"Your name is now displayed as {nick}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
else:
await ctx.send(
embed=nextcord.Embed(title="I refuse", description="You require the change nickname permission.",
color=nextcord.Color.random()))
return
elif isinstance(member, nextcord.Member):
if ctx.author.guild_permissions.manage_nicknames:
if nick is None:
await member.edit(nick=member.name)
embed = nextcord.Embed(title=f"Nickname removed for {member.name}",
description=f"Their name is now displayed as {member.name}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
elif len(nick) > 48:
embed = nextcord.Embed(title=f"That nickname is TOO LONG",
description=f" I'd probably get bored changing it.\nTry a nickname that has less then 48 characters.",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
await member.edit(nick=nick)
embed = nextcord.Embed(title=f"Nickname changed for {member.name}",
description=f"Their name is now displayed as {nick}",
color=nextcord.Color.random())
await ctx.send(embed=embed)
return
else:
await ctx.send(
embed=nextcord.Embed(title="I refuse", description="You require the manage nicknames permission.",
color=nextcord.Color.random()))
@commands.command()
async def afk(self, ctx, *, reason=None):
if reason is None:
embed = nextcord.Embed(title="Give ME A REASON",
description="You can't be afk for ___",
color=nextcord.Color.random())
embed.set_footer(text="That's Louis' job")
await ctx.send(embed=embed)
return
if len(reason) > 50:
embed = nextcord.Embed(title="I'm sorry.",
description="I got bored reading your LONG reason.\nSo I ignored it.",
color=nextcord.Color.random())
embed.set_footer(text="Nothing more than 50 characters please")
await ctx.send(embed=embed)
return
db = TinyDB('databases/afk.json')
db.insert({'afk_user': ctx.author.id, 'reason': reason})
await ctx.send(embed=nextcord.Embed(title=f"Ok {ctx.author.display_name}.",
description=f"I have set your status as afk for {reason}.",
color=nextcord.Color.random()))
@cog_ext.cog_slash(name="afk",
description="Shows your friends that you are afk for some reason.",
options=[
create_option(name="reason",
description="The reason which people see when they @you",
required=True,
option_type=3)
])
async def _afk(self, ctx: SlashContext, *, reason=None):
if reason is None:
embed = nextcord.Embed(title="Give ME A REASON",
description="You can't be afk for ___",
color=nextcord.Color.random())
embed.set_footer(text="That's Louis' job")
await ctx.send(embed=embed)
return
if len(reason) > 50:
embed = nextcord.Embed(title="I'm sorry.",
description="I got bored reading your LONG reason.\nSo I ignored it.",
color=nextcord.Color.random())
embed.set_footer(text="Nothing more than 50 characters please")
await ctx.send(embed=embed)
return
db = TinyDB('databases/afk.json')
db.insert({'afk_user': ctx.author.id, 'reason': reason})
await ctx.send(embed=nextcord.Embed(title=f"Ok {ctx.author.display_name}.",
description=f"I have set your status as afk for {reason}.",
color=nextcord.Color.random()))
@commands.command(aliases=['remind'])
async def reminder(self, ctx, duration, *, reminder):
embed = nextcord.Embed(color=0x55a7f7, timestamp=datetime.utcnow())
seconds = 0
if reminder is None:
embed.add_field(name='Warning', value='Please specify what do you want me to remind you about.')
if duration.lower().endswith("d"):
seconds += int(duration[:-1]) * 60 * 60 * 24
counter = f"{seconds // 60 // 60 // 24} days"
if duration.lower().endswith("h"):
seconds += int(duration[:-1]) * 60 * 60
counter = f"{seconds // 60 // 60} hours"
elif duration.lower().endswith("m"):
seconds += int(duration[:-1]) * 60
counter = f"{seconds // 60} minutes"
elif duration.lower().endswith("s"):
seconds += int(duration[:-1])
counter = f"{seconds} seconds"
if seconds == 0:
embed.add_field(name='Warning',
value='Please specify a proper duration')
elif seconds < 120:
embed.add_field(name='Warning',
value='You have specified too short a duration!\nMinimum duration is 2 minutes.')
elif seconds > 7776000:
embed.add_field(name='Warning',
value='You have specified too long a duration!\nMaximum duration is 90 days.')
else:
await ctx.send(embed=nextcord.Embed(title=f"I wish I had a title for this embed",
description=f"But I will remind you about {reminder} in {counter}.",
color=nextcord.Color.random()))
await asyncio.sleep(seconds)
await ctx.send(f"{ctx.author.mention} Hi, you asked me to remind you to \"{reminder}\" {counter} ago.")
return
await ctx.send(embed=embed)
@cog_ext.cog_slash(name="reminder", description="Reminds you to do something after sometime...", options=[
create_option(name="duration", description="Time for reminder(Eg: 1h or 5m)", required=True,
option_type=3),
create_option(name="reminder", description="What you wanted to be reminded about", required=True,
option_type=3)
])
async def _reminder(self, ctx: SlashContext, duration, *, reminder):
embed = nextcord.Embed(color=0x55a7f7, timestamp=datetime.utcnow())
seconds = 0
if reminder is None:
embed.add_field(name='Warning', value='Please specify what do you want me to remind you about.')
if duration.lower().endswith("d"):
seconds += int(duration[:-1]) * 60 * 60 * 24
counter = f"{seconds // 60 // 60 // 24} days"
if duration.lower().endswith("h"):
seconds += int(duration[:-1]) * 60 * 60
counter = f"{seconds // 60 // 60} hours"
elif duration.lower().endswith("m"):
seconds += int(duration[:-1]) * 60
counter = f"{seconds // 60} minutes"
elif duration.lower().endswith("s"):
seconds += int(duration[:-1])
counter = f"{seconds} seconds"
if seconds == 0:
embed.add_field(name='Warning',
value='Please specify a proper duration')
elif seconds < 120:
embed.add_field(name='Warning',
value='You have specified too short a duration!\nMinimum duration is 2 minutes.')
elif seconds > 7776000:
embed.add_field(name='Warning',
value='You have specified too long a duration!\nMaximum duration is 90 days.')
else:
await ctx.send(embed=nextcord.Embed(title=f"I wish I had a title for this embed",
description=f"But I will remind you about {reminder} in {counter}.",
color=nextcord.Color.random()))
await asyncio.sleep(seconds)
await ctx.send(f"{ctx.author.mention} Hi, you asked me to remind you to \"{reminder}\" {counter} ago.")
return
await ctx.send(embed=embed)
@commands.command(aliases=['sf'])
async def snowflake(self, ctx, user_id: int):
utc_dt = nextcord.utils.snowflake_time(user_id)
def suffix(d):
return 'th' if 11 <= d <= 13 else {1: 'st', 2: 'nd', 3: 'rd'}.get(d % 10, 'th')
def custom_strftime(format, t):
return t.strftime(format).replace('{S}', str(t.day) + suffix(t.day))
utc_dt = custom_strftime("%a, {S} %b, %Y \|| %I:%M:%S %p", utc_dt)
print(utc_dt)
await ctx.send(embed=nextcord.Embed(title=f"ID {user_id}",
description=f"Was created on {utc_dt} UTC",
color=nextcord.Color.random()))
@cog_ext.cog_slash(name="snowflake", description="Find out the creation date of ANYTHING with its ID", options=[
create_option(name="user_id", description="The ID which im supposed to find creation date of", required=True,
option_type=3)
])
async def _snowflake(self, ctx: SlashContext, user_id):
utc_dt = nextcord.utils.snowflake_time(int(user_id))
def suffix(d):
return 'th' if 11 <= d <= 13 else {1: 'st', 2: 'nd', 3: 'rd'}.get(d % 10, 'th')
def custom_strftime(format, t):
return t.strftime(format).replace('{S}', str(t.day) + suffix(t.day))
utc_dt = custom_strftime("%a, {S} %b, %Y \|| %I:%M:%S %p", utc_dt)
print(utc_dt)
await ctx.send(embed=nextcord.Embed(title=f"ID {user_id}",
description=f"Was created on {utc_dt} UTC",
color=nextcord.Color.random()))
@commands.command(aliases=['ab'])
async def about(self, ctx):
about_embed = nextcord.Embed(title="About ME!", color=nextcord.Color.green())
about_embed.add_field(name="Bot Developed by:", value=f"ZeroAndOne, [My epic devs!](https://zeroandone.ml)")
about_embed.add_field(name="Created to:", value=f"Make discord a better place. :angel:")
about_embed.add_field(name="Features:", value=f"Use {ctx.prefix}help", inline=True)
about_embed.add_field(
name="Give me feedback and complains here. Help me improve myself!\nAlso useful for finding out about the latest Chad updates!!",
value=f"[Support Server](https://discord.gg/wTsj4DZhyZ)", inline=True)
about_embed.add_field(name="Vote for me and make me POPULAR!!",
value=f"[I'm on top.gg](https://top.gg/bot/864010316424806451/vote)", inline=True)
user = self.bot.get_user(864010316424806451)
about_embed.add_field(name="Vote for me here too!",
value=f"[I'm on the Discord Bot List](https://discordbotlist.com/bots/chad-6621/upvote)",
inline=True)
about_embed.set_thumbnail(url=user.avatar.url)
await ctx.send(embed=about_embed)
@cog_ext.cog_slash(name="about", description="Tells you something more about ME!")
async def _about(self, ctx: SlashContext):
about_embed = nextcord.Embed(title="About ME!", color=nextcord.Color.green())
about_embed.add_field(name="Bot Developed by:", value=f"ZeroAndOne, [My epic devs!](https://zeroandone.ml)")
about_embed.add_field(name="Created to:", value=f"Make discord a better place. :angel:")
about_embed.add_field(name="Features:", value=f"Use /help", inline=True)
about_embed.add_field(
name="Give me feedback and complains here. Help me improve myself!\nAlso useful for finding out about the latest Chad updates!!",
value=f"[Support Server](https://discord.gg/wTsj4DZhyZ)", inline=True)
about_embed.add_field(name="Vote for me and make me POPULAR!!",
value=f"[I'm on top.gg](https://top.gg/bot/864010316424806451/vote)", inline=True)
user = self.bot.get_user(864010316424806451)
about_embed.add_field(name="Vote for me here too!",
value=f"[I'm on the Discord Bot List](https://discordbotlist.com/bots/chad-6621/upvote)",
inline=True)
about_embed.set_thumbnail(url=user.avatar.url)
await ctx.send(embed=about_embed)
@commands.command(aliases=['v'])
async def vote(self, ctx):
vote = nextcord.Embed(title="Vote for me buckaroo!", color=nextcord.Color.random())
vote.add_field(name="1", value=f"[top.gg](https://top.gg/bot/864010316424806451/vote)")
vote.add_field(name="2", value=f"[discordbotlist.com](https://discordbotlist.com/bots/chad-6621/upvote)")
vote.set_thumbnail(url="https://i.imgur.com/QICgRpf.png")
await ctx.send(embed=vote)
@cog_ext.cog_slash(name="vote", description="Gives link to vote for me!")
async def _vote(self, ctx: SlashContext):
vote = nextcord.Embed(title="Vote for me buckaroo!", color=nextcord.Color.random())
vote.add_field(name="1", value=f"[top.gg](https://top.gg/bot/864010316424806451/vote)")
vote.add_field(name="2", value=f"[discordbotlist.com](https://discordbotlist.com/bots/chad-6621/upvote)")
vote.set_thumbnail(url="https://i.imgur.com/QICgRpf.png")
await ctx.send(embed=vote)
@commands.Cog.listener()
async def on_message_delete(self, message):
self.bot.sniped_messages[message.guild.id] = (
message.content, message.author, message.channel.name, message.created_at)
@commands.command(aliases=['inv'])
async def invite(self, ctx):
embed = nextcord.Embed(
title="Invite",
description=f"To invite me to your own server [click here](https://discord.com/api/oauth2/authorize?client_id=864010316424806451&permissions=4227997759&scope=applications.commands%20bot)")
embed.set_footer(text="Invite requested by: {}".format(ctx.author.display_name))
embed.set_thumbnail(url=ctx.author.avatar.url)
embed.color = nextcord.Color.green()
await ctx.send(embed=embed)
@cog_ext.cog_slash(name="invite", description="Gives you the link to invite me to your servers!")
async def _invite(self, ctx: SlashContext):
embed = nextcord.Embed(
title="Invite",
description=f"To invite me to your own server [click here](https://discord.com/api/oauth2/authorize?client_id=864010316424806451&permissions=4227997759&scope=applications.commands%20bot)")
embed.set_footer(text="Invite requested by: {}".format(ctx.author.display_name))
embed.set_thumbnail(url=ctx.author.avatar.url)
embed.color = nextcord.Color.green()
await ctx.send(embed=embed)
@commands.command(aliases=['sup'])
async def support(self, ctx):
embed = nextcord.Embed(title="Support Server",
description="To visit our support server, click [here](https://discord.gg/wTsj4DZhyZ).\nNow you can see the latest updates!!",
color=nextcord.Color.random())
embed.set_footer(text=f"Support Server requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@cog_ext.cog_slash(name="support", description="Gives you link for support server")
async def _support(self, ctx: SlashContext):
embed = nextcord.Embed(title="Support Server",
description="To visit our support server, click [here](https://discord.gg/wTsj4DZhyZ).\nNow you can see the latest updates!!",
color=nextcord.Color.random())
embed.set_footer(text=f"Support Server requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@commands.cooldown(1, 3600, commands.cooldowns.BucketType.user)
@commands.command(aliases=['suggestion', 'sug'])
async def suggest(self, ctx, *, suggestion=None):
if suggestion is None:
embed = nextcord.Embed(title=f"We are open to suggestions",
description=f"This, however, does not mean we can use empty suggestions",
color=nextcord.Color.random())
embed.set_footer(text=f"So try not to do that...")
await ctx.channel.send(embed=embed)
return
elif len(suggestion) > 768:
embed = nextcord.Embed(title=f"A suggestion can only be of 768 characters or less",
description=f"This is two prevent random wierdos from spamming our suggestions channel",
color=nextcord.Color.random())
embed.set_footer(text=f"I wish people weren't that evil sometimes")
await ctx.channel.send(embed=embed)
return
channel = self.bot.get_channel(869173309865070592)
embed = nextcord.Embed(title=f"Suggestion from {ctx.guild.name}",
description=f"{suggestion}",
color=nextcord.Color.random())
embed.set_footer(text=f"-by {ctx.author}")
await channel.send(embed=embed)
embed = nextcord.Embed(title=f"Your suggestion has been received",
description=f"The devs has seen `{suggestion}` as your suggestion!",
color=nextcord.Color.random())
embed.set_footer(text=f"Thank you for your response")
await ctx.send(embed=embed)
@commands.cooldown(1, 3600, commands.cooldowns.BucketType.user)
@commands.command(aliases=['complaint', 'comp'])
async def complain(self, ctx, *, complaint=None):
if complaint is None:
embed = nextcord.Embed(title=f"We are open to complaints",
description=f"This, however, does not mean we can use empty complaints",
color=nextcord.Color.random())
embed.set_footer(text=f"So try not to do that...")
await ctx.channel.send(embed=embed)
return
elif len(complaint) > 768:
embed = nextcord.Embed(title=f"A complaint can only be of 768 characters or less",
description=f"This is two prevent random wierdos from spamming our complaints channel",
color=nextcord.Color.random())
embed.set_footer(text=f"I wish people weren't that evil sometimes")
await ctx.channel.send(embed=embed)
return
channel = self.bot.get_channel(869173386465673226)
embed = nextcord.Embed(title=f"Complaint from {ctx.guild.name}",
description=f"{complaint}",
color=nextcord.Color.random())
embed.set_footer(text=f"-by {ctx.author}")
await channel.send(embed=embed)
embed = nextcord.Embed(title=f"Your complaint has been received",
description=f"The devs has seen `{complaint}` as your suggestion!",
color=nextcord.Color.random())
embed.set_footer(text=f"Thank you for your response")
await ctx.send(embed=embed)
@commands.command(aliases=['web', 'site', 'www', 'zo'])
async def website(self, ctx):
embed = nextcord.Embed(title="Link for our website",
color=nextcord.Color.dark_magenta(),
description="This is our main [website](https://zeroandone.netlify.app/)\nClick [here](https://www.youtube.com/channel/UCF0DZYNiHcIGZKBoPWfc0lg) to see our YouTube Channel.")
embed.set_footer(text=f"Website requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@cog_ext.cog_slash(name="website", description="Takes you to my devs' website!")
async def _website(self, ctx: SlashContext):
embed = nextcord.Embed(title="Link for our website",
color=nextcord.Color.dark_magenta(),
description="This is our main [website](https://zeroandone.netlify.app/)\nClick [here](https://www.youtube.com/channel/UCF0DZYNiHcIGZKBoPWfc0lg) to see our YouTube Channel.")
embed.set_footer(text=f"Website requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@commands.command(aliases=['pat', 'donate'])
async def patreon(self, ctx):
embed = nextcord.Embed(title="Here is our patreon.",
description="Donate to us [here](https://www.patreon.com/TheChadBot) to show your love for Chad!",
color=nextcord.Color.random())
embed.set_footer(text=f"Patreon requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@cog_ext.cog_slash(name="donate", description="Gives you the Patreon link so u can donate to my cause!")
async def _patreon(self, ctx: SlashContext):
embed = nextcord.Embed(title="Here is our patreon.",
description="Donate to us [here](https://www.patreon.com/TheChadBot) to show your love for Chad!",
color=nextcord.Color.random())
embed.set_footer(text=f"Patreon requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@cog_ext.cog_slash(name="serverlink", description="Use this to make me create an invite link to your server!")
async def _serverlink(self, ctx: SlashContext):
link = await ctx.channel.create_invite()
embed = nextcord.Embed(title="Here's a link for your server.",
description=link,
color=nextcord.Color.random())
embed.set_footer(text=f"Server link requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@commands.command(aliases=['sl'])
async def serverlink(self, ctx):
link = await ctx.channel.create_invite()
embed = nextcord.Embed(title="Here's a link for your server.",
description=link,
color=nextcord.Color.random())
embed.set_footer(text=f"Server link requested by {ctx.author.name}")
embed.set_thumbnail(url=ctx.author.avatar.url)
await ctx.send(embed=embed)
@commands.cooldown(1, 5, commands.BucketType.channel)
@commands.command(aliases=['sn'])
async def snipe(self, ctx):
try:
contents, author, channel_name, duration = self.bot.sniped_messages[ctx.guild.id]
except:
await ctx.send(
embed=nextcord.Embed(title="Couldn't find a message to snipe!", color=nextcord.Color.random()))
return
embed = nextcord.Embed(description=contents, color=nextcord.Color.random(), timestamp=duration)
embed.set_author(
name=f"{author.name}#{author.discriminator} has been head-shotted by our glorious snipe command",
icon_url=author.avatar.url)
embed.set_footer(text=f"Deleted in : #{channel_name} Sniper: {ctx.author.display_name}")
await ctx.channel.send(embed=embed)
@cog_ext.cog_slash(name="Snipe", description="Find out what the last deleted message in your server was.")
async def _snipe(self, ctx: SlashContext):
try:
contents, author, channel_name, duration = self.bot.sniped_messages[ctx.guild.id]
except:
await ctx.send(
embed=nextcord.Embed(title="Couldn't find a message to snipe!", color=nextcord.Color.random()))
return
embed = nextcord.Embed(description=contents, color=nextcord.Color.random(), timestamp=duration)
try:
embed.set_author(
name=f"{author.name}#{author.discriminator} has been head-shotted by our glorious snipe command",
icon_url=author.avatar.url)
except:
embed.set_author(
name=f"{author.name}#{author.discriminator} has been head-shotted by our glorious snipe command")
embed.set_footer(text=f"Deleted in : #{channel_name} Sniper: {ctx.author.display_name}")
await ctx.channel.send(embed=embed)
@robmoji.error
async def robmoji_error(self, ctx, error):
member = ctx.author
membervar = member.display_name
if isinstance(error, commands.MissingRequiredArgument):
await ctx.send(embed=nextcord.Embed(title="You're kidding right?",
description=f"{membervar} Please mention an emoji to steal\n That way, I won't need to steal thin air!!",
color=nextcord.Color.random()))
elif isinstance(error, commands.errors.PartialEmojiConversionFailure):
error = getattr(error, "original", error)
the_error_arg = error.argument
embed = nextcord.Embed(title="Whoops",
description=f"Could not convert {the_error_arg} to an emoji",
color=nextcord.Color.random())
embed.set_footer(
text="If this is not you being dumb and a genuine error in the code, let us know [here](https://discord.gg/TeRyp9JWbg)")
await ctx.send(embed=embed)
elif isinstance(error, commands.errors.CommandInvokeError):
await ctx.send(embed=nextcord.Embed(title="You're kidding right?",
description=f"{membervar} give it a name from 2 to 32 characters **ONLY**\nAnd NO SPACES PLS \n this is an emoji name not a train",
color=nextcord.Color.random()))
else:
raise error
@userinfo.error
async def userinfo_error(self, ctx, error):
if isinstance(error, commands.MemberNotFound):
embed = nextcord.Embed(title="Did you know...",
description="That it is an EXCELLENT idea to actually gime me a person who exists and not use your non existant brain to make up an imaginary person!!",
color=nextcord.Color.random())
embed.set_footer(text="I mean, common sense people")
await ctx.send(embed=embed)
elif isinstance(error, commands.MissingRequiredArgument):
embed = nextcord.Embed(title="At least try to...",
description="Wish you'd actually try to tell me who to get info from.",
color=nextcord.Color.random())
embed.set_footer(text="Sigh")
await ctx.send(embed=embed)
else:
raise error
@makerole.error
async def make_role_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
embed = nextcord.Embed(title="Hmmmm...",
description="Why haven't you mentioned the NAME OF THE ROLE YOU WANT TO CREATE\nA role with the name ___ is pretty stupid.",
color=nextcord.Color.random())
embed.set_footer(text="Think about it")
await ctx.send(embed=embed)
else:
raise error
@addrole.error
async def add_role_error(self, ctx, error):
member = ctx.author
member_var = member.display_name
if isinstance(error, commands.MissingRequiredArgument):
embed = nextcord.Embed(title="How do you do these things...",
description="You gotta mention both the user and the role.\nI can't just randomly place roles!",
color=nextcord.Color.random())
embed.set_footer(text="Not in my job description")
await ctx.send(embed=embed)
elif isinstance(error, commands.MemberNotFound):
embed = nextcord.Embed(title="I couldn't find this member",
description="How have you tried to add roles to someone not in the server??",
color=nextcord.Color.random())
embed.set_footer(text="Common sense just ain't common anymore...")
await ctx.send(embed=embed)
elif isinstance(error, commands.RoleNotFound):
embed = nextcord.Embed(title="I didn't find this role.",
description=f"Apparently this role doesn't even EXIST in your server.\nTry making the role with {ctx.prefix}makerole first.",
color=nextcord.Color.random())
embed.set_footer(text="That would be great")
await ctx.send(embed=embed)
elif isinstance(error, commands.errors.CommandInvokeError):
embed = nextcord.Embed(title="I can't do that!",
description=f"{member_var} you will have to place my role above that role.",
color=nextcord.Color.random())
embed.set_footer(text="It is a necessity")
await ctx.send(embed=embed)
else:
raise error
@editrole.error
async def edit_error(self, ctx, error):
member = ctx.author
member_var = member.display_name
if isinstance(error, commands.MissingRequiredArgument):
embed = nextcord.Embed(title="I didn't find this role.",
description=f"{member_var} please mention the role to edit **AND** the new role.",
color=nextcord.Color.random())
embed.set_footer(
text="Imagine being able to write bot commands properly...")
await ctx.send(embed=embed)
elif isinstance(error, commands.RoleNotFound):
embed = nextcord.Embed(title="I didn't find this role.",
description=f"{member_var} Mentioning a valid role couldn't HURT you know...",
color=nextcord.Color.random())
embed.set_footer(text="The validity check never ends...")
await ctx.send(embed=embed)
elif isinstance(error, commands.errors.CommandInvokeError):
embed = nextcord.Embed(title="I can't do that!",
description=f"{member_var} you will have to place my role above that role.",
color=nextcord.Color.random())
embed.set_footer(text="It is a necessity")
await ctx.send(embed=embed)
else:
raise error
@removerole.error
async def remove_role_error(self, ctx, error):
member = ctx.author
member_var = member.name
if isinstance(error, commands.MissingRequiredArgument):
embed = nextcord.Embed(title="I didn't find this role. (Again...)",
description=f"{member_var} please mention the role to remove.(Again)",
color=nextcord.Color.random())
embed.set_footer(
text="Imagine being able to write bot commands properly... (Again...)")
await ctx.send(embed=embed)
elif isinstance(error, commands.RoleNotFound):
embed = nextcord.Embed(title="I didn't find this role.",
description=f"{member_var} Mentioning a valid role couldn't HURT you know...\nBut its sad I gotta repeat stuff I said be4.\n Didn't you guys see this is in the mistake of role edits?",
color=nextcord.Color.random())
embed.set_footer(text="Once again, the validity check never ends...")
await ctx.send(embed=embed)
elif isinstance(error, commands.MemberNotFound):
embed = nextcord.Embed(title="That username... is not in this server?",
description=f"{member_var} I didn't find this so-called user name you mentioned.",
color=nextcord.Color.random())
embed.set_footer(
text="I can only remove the role of people who exist in the server.")
await ctx.send(embed=embed)
elif isinstance(error, commands.errors.CommandInvokeError):
embed = nextcord.Embed(title="I do not have the permission!",
description=f"{member_var} my place is currently BELOW that role.\nTry placing me above.",
color=nextcord.Color.random())
embed.set_footer(text="It is a necessity")
await ctx.send(embed=embed)
else:
raise error
@deleterole.error
async def delete_role_error(self, ctx, error):
member = ctx.author
if isinstance(error, commands.MissingRequiredArgument):
embed = nextcord.Embed(title="Ok cool",
description=f"**Intense Concentration** There!\nI have deleted a non-existent role.",
color=nextcord.Color.random())
embed.set_footer(text="No need to thank me...")
await ctx.send(embed=embed)
elif isinstance(error, commands.RoleNotFound):
embed = nextcord.Embed(title=f"Dear {member.name}",
description=f"I assure you that I will do my best to delete a role that I couldn't find in this server.",
color=nextcord.Color.random())
embed.set_footer(text="I exist to serve")
await ctx.send(embed=embed)
elif isinstance(error, commands.errors.CommandInvokeError):
embed = nextcord.Embed(title="I do not have the permission!",
description=f"{member.name} my place is currently BELOW that role.\nTry placing me above.",
color=nextcord.Color.random())
embed.set_footer(text="It is a necessity")
await ctx.send(embed=embed)
else:
raise error
@nick.error
async def nick_error(self, ctx, error):
if isinstance(error, commands.errors.CommandInvokeError):
embed = nextcord.Embed(title=f"Nope, the member is more powerful than me",
description=f"Maybe put my role above him :pleading_face:",
color=nextcord.Color.random())
embed.set_footer(text="I feel weak")
await ctx.send(embed=embed)
else:
raise error
@reminder.error
async def rem_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
await ctx.send(embed=nextcord.Embed(title=f"{ctx.author.display_name} please give me time and the reminder",
description=f"PLEASE? DO I REALLY HAVE TO ASK IN THE FIRST PLACE?",
color=nextcord.Color.random()))
elif isinstance(error, commands.errors.CommandInvokeError):
await ctx.send(embed=nextcord.Embed(title=f"{ctx.author.display_name} That is an invalid time",
color=nextcord.Color.random()))
else:
raise error
@_snowflake.error
async def snowflake_error(self, ctx, error):
if isinstance(error, commands.errors.MissingRequiredArgument):
await ctx.send(embed=nextcord.Embed(title="The given ID **NOTHING**",
description="Was never created.",
color=nextcord.Color.random()))
elif isinstance(error, commands.errors.CommandInvokeError):
await ctx.send(embed=nextcord.Embed(title="Pls gimme a valid ID man",
description="Why you do tht to me\n \nMy friend David lost his ID... Now we call him Dav",
color=nextcord.Color.random()))
else:
raise error
@_snowflake.error
async def snowflake_error(self, ctx, error):
if isinstance(error, commands.errors.MissingRequiredArgument):
await ctx.send(embed=nextcord.Embed(title="The given ID **NOTHING**",
description="Was never created.",
color=nextcord.Color.random()))
elif isinstance(error, commands.errors.CommandInvokeError):
await ctx.send(embed=nextcord.Embed(title="Pls gimme a valid ID man",
description="Why you do tht to me\n \nMy friend David lost his ID... Now we call him Dav",
color=nextcord.Color.random()))
else:
raise error
@suggest.error
async def suggest_error(self, ctx, error):
if isinstance(error, commands.CommandOnCooldown):
await ctx.send(embed=nextcord.Embed(title=f"Slow down bro. Try after {round(error.retry_after)} seconds",
description=f"We have a one hour cooldown per user",
color=nextcord.Color.random()))
else:
raise error
@complain.error
async def complain_error(self, ctx, error):
if isinstance(error, commands.CommandOnCooldown):
await ctx.send(embed=nextcord.Embed(title=f"Slow down bro. Try after {round(error.retry_after)} seconds",
description=f"We have a one hour cooldown per user",
color=nextcord.Color.random()))
else:
raise error
@snipe.error
async def sn_error(self, ctx, error):
if isinstance(error, commands.CommandOnCooldown):
await ctx.send(embed=nextcord.Embed(title=f"Slow down bro. Try after {round(error.retry_after)} seconds",
color=nextcord.Color.random()))
else:
raise error
def setup(bot):
bot.add_cog(Utils(bot))
| 53.906007
| 740
| 0.532598
| 8,303
| 76,277
| 4.831386
| 0.082982
| 0.027122
| 0.05564
| 0.050854
| 0.865935
| 0.839536
| 0.83141
| 0.813436
| 0.795089
| 0.772803
| 0
| 0.009693
| 0.36433
| 76,277
| 1,414
| 741
| 53.94413
| 0.817642
| 0
| 0
| 0.752278
| 0
| 0.025684
| 0.24332
| 0.017859
| 0
| 0
| 0.000219
| 0
| 0
| 1
| 0.004971
| false
| 0.001657
| 0.009942
| 0.003314
| 0.048882
| 0.001657
| 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
|
1df1b07ab4c9ed45578e63812a878115a28688b0
| 25,236
|
py
|
Python
|
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2/Output/Histos/MadAnalysis5job_0/selection_12.py
|
sheride/axion_pheno
|
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
|
[
"MIT"
] | null | null | null |
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2/Output/Histos/MadAnalysis5job_0/selection_12.py
|
sheride/axion_pheno
|
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
|
[
"MIT"
] | null | null | null |
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2/Output/Histos/MadAnalysis5job_0/selection_12.py
|
sheride/axion_pheno
|
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
|
[
"MIT"
] | null | null | null |
def selection_12():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.linspace(0.0,4000.0,81,endpoint=True)
# Creating data sequence: middle of each bin
xData = numpy.array([25.0,75.0,125.0,175.0,225.0,275.0,325.0,375.0,425.0,475.0,525.0,575.0,625.0,675.0,725.0,775.0,825.0,875.0,925.0,975.0,1025.0,1075.0,1125.0,1175.0,1225.0,1275.0,1325.0,1375.0,1425.0,1475.0,1525.0,1575.0,1625.0,1675.0,1725.0,1775.0,1825.0,1875.0,1925.0,1975.0,2025.0,2075.0,2125.0,2175.0,2225.0,2275.0,2325.0,2375.0,2425.0,2475.0,2525.0,2575.0,2625.0,2675.0,2725.0,2775.0,2825.0,2875.0,2925.0,2975.0,3025.0,3075.0,3125.0,3175.0,3225.0,3275.0,3325.0,3375.0,3425.0,3475.0,3525.0,3575.0,3625.0,3675.0,3725.0,3775.0,3825.0,3875.0,3925.0,3975.0])
# Creating weights for histo: y13_THT_0
y13_THT_0_weights = numpy.array([0.150367459879,2.54386405961,3.72734430125,4.52871539402,4.81883535519,4.95151133744,5.07003932158,5.10364731708,5.00989132963,4.89136734549,4.70031137105,4.36242741627,4.05107545793,3.76272509651,3.32577475498,3.02503959522,2.74553323262,2.44833647239,2.27497129559,1.97777453536,1.79202656021,1.56205259098,1.45767980495,1.27546982933,1.13925464756,0.937585474542,0.799601093006,0.797832293242,0.709380705078,0.567858324015,0.507711532063,0.461716738218,0.321963316918,0.281275642363,0.244126007334,0.217590570884,0.185748055145,0.191055134435,0.176902896329,0.109679785324,0.0919895076909,0.0796063093479,0.0884514681644,0.0636850314783,0.0583779521885,0.0424567143189,0.049532833372,0.0229973769227,0.049532833372,0.0283044642126,0.00707611505315,0.0159212618696,0.00884514681644,0.012383202343,0.00530708728986,0.00176902896329,0.00353805832657,0.00707611505315,0.00530708728986,0.00707611505315,0.00353805832657,0.00353805832657,0.0,0.00353805832657,0.00353805832657,0.0,0.0,0.0,0.0,0.0,0.00176902896329,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_1
y13_THT_1_weights = numpy.array([0.0961726875221,1.7075744941,2.36042807017,2.92997421644,3.15762520957,3.26552327116,3.38210555157,3.23123403601,3.19824535535,2.87124862549,2.88513346358,2.62128876628,2.43846973309,2.27079372653,1.98116855396,1.83688014629,1.58260455647,1.37743429125,1.2331342929,1.1005956397,0.964949084912,0.839904407358,0.721308145974,0.626158236248,0.546046637342,0.506488038193,0.416709810214,0.411436049749,0.345197458439,0.301305622746,0.239396750808,0.199825721652,0.179541468006,0.145334286894,0.135715819105,0.0982950613622,0.112222745005,0.0908299025455,0.0737256924874,0.0641102222893,0.0587847833684,0.0416752176157,0.0395285832784,0.0427466363105,0.0224473987102,0.0171005889691,0.0149614246267,0.0138915127206,0.0138926118371,0.0106879280575,0.0138907453375,0.00640926763943,0.0042764621852,0.0042764621852,0.00320874451516,0.00213466955569,0.00320501671191,0.00106771767004,0.00213729904187,0.00213543534009,0.0,0.0,0.00213466955569,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_2
y13_THT_2_weights = numpy.array([0.0625016146472,1.15489107065,1.68198799417,2.0021352692,2.17991731086,2.25769732909,2.24380812583,2.1382497011,2.08269288808,1.92921645211,1.83824203079,1.71462760182,1.55073436341,1.43614833656,1.23336508904,1.14169626755,0.970163827357,0.849327399039,0.741685773813,0.693767762584,0.573626134429,0.496540516364,0.42223329895,0.396538012928,0.330564117467,0.310424712748,0.248617538263,0.196532846057,0.1770879215,0.158337437106,0.131947870922,0.133336791247,0.095835822459,0.093057941808,0.0673628557864,0.0666683756236,0.0402788094393,0.0486123713922,0.0423622099275,0.0340286559746,0.0312508073236,0.0208338728824,0.0180560242314,0.0125003229294,0.0152781715804,0.0194449485569,0.0090280101157,0.0090280101157,0.00625016146472,0.00972247427845,0.00138892472549,0.00277784945099,0.00208338728824,0.00416677297648,0.00347231201373,0.00138892472549,0.00416677297648,0.00208338728824,0.00138892472549,0.00208338728824,0.000694462562746,0.000694462562746,0.000694462562746,0.0,0.000694462562746,0.0,0.0,0.000694462562746,0.0,0.0,0.0,0.000694462562746,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_3
y13_THT_3_weights = numpy.array([0.0436223324433,0.827401436017,1.1863371384,1.4229408059,1.55902364471,1.54290244011,1.62445726338,1.49785762727,1.37979279359,1.3745771921,1.33142877979,1.16831953326,1.0464614985,0.901369857117,0.808909430742,0.729725408155,0.656231387191,0.554762158246,0.484586938229,0.426265721593,0.368893065227,0.311520208861,0.266001275877,0.250828311549,0.207205979106,0.184920692749,0.164057846798,0.1318152376,0.128021996518,0.106684990432,0.0877187850219,0.0801323028578,0.0621143777182,0.0512088146074,0.0493121740663,0.0388807590908,0.0388807590908,0.0293976483857,0.0260785594389,0.0180179131396,0.0203886898159,0.0128021996518,0.0142246680576,0.0123280435166,0.00948311070507,0.00853480243456,0.00474155735253,0.00568986562304,0.00474155735253,0.00426740121728,0.00142246680576,0.00142246680576,0.00237077787627,0.000948311070507,0.000948311070507,0.00142246680576,0.000948311070507,0.000474155735253,0.0,0.0,0.0,0.0,0.0,0.00142246680576,0.000474155735253,0.000474155735253,0.0,0.000474155735253,0.0,0.0,0.000474155735253,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_4
y13_THT_4_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_5
y13_THT_5_weights = numpy.array([0.0,0.0,2.10674221742,1.0529581672,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_6
y13_THT_6_weights = numpy.array([0.0,0.0,0.0,0.0,3.22342548202,4.60765578583,8.98151967748,8.98496643929,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_7
y13_THT_7_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.02711406973,8.86140116235,8.64014542471,8.27897468936,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_8
y13_THT_8_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,5.93868606446,5.24247161878,4.35503353442,3.29694319592,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_9
y13_THT_9_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.917169605,2.18695967575,1.63799841374,1.38634969601,1.17671893199,0.90527069302,0.690283850891,0.537588108596,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_10
y13_THT_10_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.484456854097,0.370163096165,0.286335952118,0.254322020871,0.164493719571,0.1462365563,0.124920324742,0.0898731788205,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_11
y13_THT_11_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0839630587784,0.0637371468554,0.0577883582928,0.0456793849082,0.0384583174516,0.0317786770625,0.0294324558743,0.0241942691558,0.0223881347929,0.0160664777361,0.0130018712853,0.0101124591476,0.00866599112227,0.0088514644773,0.00595629468958,0.00577698721925,0.00487366777955,0.00234731071269,0.00198435615998,0.00270809931065,0.00180619675351,0.00126433834366,0.00234585262153,0.00198673971154,0.00144498605626,0.000540737690018,0.000903537036508,0.000722332430134,0.000722575060201,0.000721777076871,0.000180916723875,0.000180374773034,0.000360817405462,0.0,0.000180065438956,0.0,0.00036144604841,0.000180553972669,0.0,0.0,0.0,0.000180600765611,0.0,0.0,0.000180408702731,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_12
y13_THT_12_weights = numpy.array([0.0,0.048601296,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_13
y13_THT_13_weights = numpy.array([0.0,0.0,0.341401305308,0.82324848727,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_14
y13_THT_14_weights = numpy.array([0.0,0.0,0.0,0.0,1.21012991523,1.67217788677,1.79336451685,2.0072677979,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_15
y13_THT_15_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.07337972426,1.89079029513,1.74079817622,1.38850672919,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_16
y13_THT_16_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.2147598904,0.979820731833,0.812176805907,0.653653269699,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_17
y13_THT_17_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.51281702612,0.415987887697,0.337546330751,0.26056915377,0.214982316571,0.164910759487,0.138866851267,0.107338341683,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_18
y13_THT_18_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0898510852111,0.0727207087841,0.0575521118549,0.0470725237441,0.0386569511308,0.0305299980285,0.0277666001142,0.0208156292337,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y13_THT_19
y13_THT_19_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0173761262713,0.0142691325862,0.012246118624,0.00998732097176,0.00744545071229,0.0064645379868,0.00575304184036,0.0042509173569,0.00337526669251,0.002719694172,0.00241086001346,0.001472419392,0.00184092319057,0.00129968689826,0.00107679467694,0.000909641327885,0.00107530342975,0.000792237802789,0.00051091931574,0.000427576702119,0.000567105814635,0.000341092385185,0.000226846454593,0.000198119042663,0.000141884662273,0.000170466142574,0.000198700482035,0.000142140822332,5.67883294868e-05,0.000142004900668,2.84351476794e-05,8.52720566856e-05,2.84351476794e-05,8.52643041607e-05,2.83743601609e-05,0.0,0.0,0.0,2.83743601609e-05,0.0,0.0,2.83557362791e-05,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating a new Canvas
fig = plt.figure(figsize=(12,6),dpi=80)
frame = gridspec.GridSpec(1,1,right=0.7)
pad = fig.add_subplot(frame[0])
# Creating a new Stack
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights+y13_THT_15_weights+y13_THT_16_weights+y13_THT_17_weights+y13_THT_18_weights+y13_THT_19_weights,\
label="$bg\_vbf\_1600\_inf$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#ccc6aa", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights+y13_THT_15_weights+y13_THT_16_weights+y13_THT_17_weights+y13_THT_18_weights,\
label="$bg\_vbf\_1200\_1600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#c1bfa8", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights+y13_THT_15_weights+y13_THT_16_weights+y13_THT_17_weights,\
label="$bg\_vbf\_800\_1200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#bab5a3", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights+y13_THT_15_weights+y13_THT_16_weights,\
label="$bg\_vbf\_600\_800$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#b2a596", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights+y13_THT_15_weights,\
label="$bg\_vbf\_400\_600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#b7a39b", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights,\
label="$bg\_vbf\_200\_400$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#ad998c", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights,\
label="$bg\_vbf\_100\_200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#9b8e82", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights,\
label="$bg\_vbf\_0\_100$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#876656", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights,\
label="$bg\_dip\_1600\_inf$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#afcec6", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights,\
label="$bg\_dip\_1200\_1600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#84c1a3", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights,\
label="$bg\_dip\_800\_1200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#89a8a0", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights,\
label="$bg\_dip\_600\_800$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#829e8c", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights,\
label="$bg\_dip\_400\_600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#adbcc6", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights,\
label="$bg\_dip\_200\_400$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#7a8e99", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights,\
label="$bg\_dip\_100\_200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#758991", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights,\
label="$bg\_dip\_0\_100$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#688296", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights,\
label="$signal\_2pt4TeVL$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#6d7a84", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights,\
label="$signal\_2pt2TeVL$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#7c99d1", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights+y13_THT_1_weights,\
label="$signal\_2TeVL$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#7f7f9b", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y13_THT_0_weights,\
label="$signal\_1pt8TeVL$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#aaa5bf", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
# Axis
plt.rc('text',usetex=False)
plt.xlabel(r"THT",\
fontsize=16,color="black")
plt.ylabel(r"$\mathrm{Events}$ $(\mathcal{L}_{\mathrm{int}} = 40.0\ \mathrm{fb}^{-1})$ ",\
fontsize=16,color="black")
# Boundary of y-axis
ymax=(y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights+y13_THT_15_weights+y13_THT_16_weights+y13_THT_17_weights+y13_THT_18_weights+y13_THT_19_weights).max()*1.1
ymin=0 # linear scale
#ymin=min([x for x in (y13_THT_0_weights+y13_THT_1_weights+y13_THT_2_weights+y13_THT_3_weights+y13_THT_4_weights+y13_THT_5_weights+y13_THT_6_weights+y13_THT_7_weights+y13_THT_8_weights+y13_THT_9_weights+y13_THT_10_weights+y13_THT_11_weights+y13_THT_12_weights+y13_THT_13_weights+y13_THT_14_weights+y13_THT_15_weights+y13_THT_16_weights+y13_THT_17_weights+y13_THT_18_weights+y13_THT_19_weights) if x])/100. # log scale
plt.gca().set_ylim(ymin,ymax)
# Log/Linear scale for X-axis
plt.gca().set_xscale("linear")
#plt.gca().set_xscale("log",nonposx="clip")
# Log/Linear scale for Y-axis
plt.gca().set_yscale("linear")
#plt.gca().set_yscale("log",nonposy="clip")
# Legend
plt.legend(bbox_to_anchor=(1.05,1), loc=2, borderaxespad=0.)
# Saving the image
plt.savefig('../../HTML/MadAnalysis5job_0/selection_12.png')
plt.savefig('../../PDF/MadAnalysis5job_0/selection_12.png')
plt.savefig('../../DVI/MadAnalysis5job_0/selection_12.eps')
# Running!
if __name__ == '__main__':
selection_12()
| 115.761468
| 1,121
| 0.724877
| 5,544
| 25,236
| 3.130592
| 0.11075
| 0.275294
| 0.404125
| 0.52731
| 0.601521
| 0.597142
| 0.59599
| 0.582047
| 0.572021
| 0.569601
| 0
| 0.399889
| 0.074378
| 25,236
| 217
| 1,122
| 116.294931
| 0.343123
| 0.06043
| 0
| 0.171875
| 0
| 0.007813
| 0.049045
| 0.008576
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007813
| false
| 0
| 0.03125
| 0
| 0.039063
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3801d8fe2bd03644728e88a0292da980d4a98cc1
| 4,486
|
py
|
Python
|
tests/test_linux_syslog.py
|
nkaleiya/splunk-connect-for-syslog
|
16dc25c030c0017fdcd7f6b615ae6f755cd97833
|
[
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null |
tests/test_linux_syslog.py
|
nkaleiya/splunk-connect-for-syslog
|
16dc25c030c0017fdcd7f6b615ae6f755cd97833
|
[
"BSD-2-Clause",
"CC0-1.0"
] | 1
|
2020-06-16T01:11:23.000Z
|
2020-06-16T01:11:23.000Z
|
tests/test_linux_syslog.py
|
nkaleiya/splunk-connect-for-syslog
|
16dc25c030c0017fdcd7f6b615ae6f755cd97833
|
[
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null |
# Copyright 2019 Splunk, Inc.
#
# Use of this source code is governed by a BSD-2-clause-style
# license that can be found in the LICENSE-BSD2 file or at
# https://opensource.org/licenses/BSD-2-Clause
import datetime
import random
import pytz
from jinja2 import Environment, environment
from .sendmessage import *
from .splunkutils import *
from .timeutils import *
env = Environment()
#<78>Oct 25 09:10:00 /usr/sbin/cron[54928]: (root) CMD (/usr/libexec/atrun)
def test_linux__nohost_program_as_path(record_property, setup_wordlist, setup_splunk, setup_sc4s):
host = "{}-{}".format(random.choice(setup_wordlist), random.choice(setup_wordlist))
pid = random.randint(1000, 32000)
dt = datetime.datetime.now()
iso, bsd, time, date, tzoffset, tzname, epoch = time_operations(dt)
# Tune time functions
epoch = epoch[:-7]
mt = env.from_string("{{ mark }} {{ bsd }} /usr/sbin/cron[{{ pid }}]: (root) CMD (/usr/libexec/atrun)\n")
message = mt.render(mark="<111>", host=host, bsd=bsd, pid=pid)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])
st = env.from_string("search _time={{ epoch }} index=osnix \"[{{ pid }}]\" sourcetype=\"nix:syslog\"")
search = st.render(epoch=epoch, pid=pid)
resultCount, eventCount = splunk_single(setup_splunk, search)
record_property("host", host)
record_property("resultCount", resultCount)
record_property("message", message)
assert resultCount == 1
def test_linux__host_program_as_path(record_property, setup_wordlist, setup_splunk, setup_sc4s):
host = "{}-{}".format(random.choice(setup_wordlist), random.choice(setup_wordlist))
pid = random.randint(1000, 32000)
dt = datetime.datetime.now()
iso, bsd, time, date, tzoffset, tzname, epoch = time_operations(dt)
# Tune time functions
epoch = epoch[:-7]
mt = env.from_string("{{ mark }} {{ bsd }} {{ host }} /usr/sbin/cron[{{ pid }}]: (root) CMD (/usr/libexec/atrun)\n")
message = mt.render(mark="<111>", bsd=bsd, host=host, pid=pid)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])
st = env.from_string("search _time={{ epoch }} index=osnix \"[{{ pid }}]\" host={{ host }} sourcetype=\"nix:syslog\"")
search = st.render(epoch=epoch, pid=pid, host=host)
resultCount, eventCount = splunk_single(setup_splunk, search)
record_property("host", host)
record_property("resultCount", resultCount)
record_property("message", message)
assert resultCount == 1
def test_linux__nohost_program_conforms(record_property, setup_wordlist, setup_splunk, setup_sc4s):
host = "{}-{}".format(random.choice(setup_wordlist), random.choice(setup_wordlist))
pid = random.randint(1000, 32000)
dt = datetime.datetime.now()
iso, bsd, time, date, tzoffset, tzname, epoch = time_operations(dt)
# Tune time functions
epoch = epoch[:-7]
mt = env.from_string("{{ mark }} {{ bsd }} cron[{{ pid }}]: (root) CMD (/usr/libexec/atrun)\n")
message = mt.render(mark="<111>", bsd=bsd, host=host, pid=pid)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])
st = env.from_string("search _time={{ epoch }} index=osnix \"[{{ pid }}]\" sourcetype=\"nix:syslog\"")
search = st.render(epoch=epoch, pid=pid)
resultCount, eventCount = splunk_single(setup_splunk, search)
record_property("host", host)
record_property("resultCount", resultCount)
record_property("message", message)
assert resultCount == 1
def test_linux__host_program_conforms(record_property, setup_wordlist, setup_splunk, setup_sc4s):
host = "{}-{}".format(random.choice(setup_wordlist), random.choice(setup_wordlist))
pid = random.randint(1000, 32000)
dt = datetime.datetime.now()
iso, bsd, time, date, tzoffset, tzname, epoch = time_operations(dt)
# Tune time functions
epoch = epoch[:-7]
mt = env.from_string("{{ mark }} {{ bsd }} {{ host }} cron[{{ pid }}]: (root) CMD (/usr/libexec/atrun)\n")
message = mt.render(mark="<111>", bsd=bsd, host=host, pid=pid)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])
st = env.from_string("search _time={{ epoch }} index=osnix \"[{{ pid }}]\" host={{ host }} sourcetype=\"nix:syslog\"")
search = st.render(epoch=epoch, pid=pid, host=host)
resultCount, eventCount = splunk_single(setup_splunk, search)
record_property("host", host)
record_property("resultCount", resultCount)
record_property("message", message)
assert resultCount == 1
| 36.770492
| 122
| 0.681676
| 589
| 4,486
| 5.039049
| 0.188455
| 0.075472
| 0.045822
| 0.067385
| 0.884771
| 0.869272
| 0.869272
| 0.869272
| 0.869272
| 0.869272
| 0
| 0.02942
| 0.158939
| 4,486
| 121
| 123
| 37.07438
| 0.757222
| 0.07646
| 0
| 0.763889
| 0
| 0.055556
| 0.166989
| 0.021297
| 0
| 0
| 0
| 0
| 0.055556
| 1
| 0.055556
| false
| 0
| 0.097222
| 0
| 0.152778
| 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
|
382e79f328dd4ff140659ef884d11fd77609f27a
| 2,202
|
py
|
Python
|
basic_op_show_img px by px.py
|
kostaskaragiorgos/Python-Opencv-Learning-Path
|
dcb861433a248ca9e2ac60d60a2f464b17c1541e
|
[
"MIT"
] | null | null | null |
basic_op_show_img px by px.py
|
kostaskaragiorgos/Python-Opencv-Learning-Path
|
dcb861433a248ca9e2ac60d60a2f464b17c1541e
|
[
"MIT"
] | null | null | null |
basic_op_show_img px by px.py
|
kostaskaragiorgos/Python-Opencv-Learning-Path
|
dcb861433a248ca9e2ac60d60a2f464b17c1541e
|
[
"MIT"
] | null | null | null |
import cv2
import numpy as np
img = np.array([
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
], [
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
], [
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
], [
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
], [
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
], [
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
], [
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
], [
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
],np.uint8)
cv2.imshow("Face",img)
cv2.waitKey(0)
cv2.destroyAllWindows()
| 26.214286
| 70
| 0.167121
| 188
| 2,202
| 1.957447
| 0.074468
| 0.608696
| 0.76087
| 1.195652
| 0.76087
| 0.76087
| 0.76087
| 0.76087
| 0.76087
| 0.76087
| 0
| 0.402817
| 0.677566
| 2,202
| 84
| 71
| 26.214286
| 0.115493
| 0
| 0
| 0.833333
| 0
| 0
| 0.001887
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.02381
| 0
| 0.02381
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
69954d646e6d10135766d4670eaf0914d9c70e50
| 16
|
py
|
Python
|
tests/syntax/unicode_fraction2.py
|
hoefling/friendly-traceback
|
26acac903521c5f0e5cf837d32bda750918d4afb
|
[
"MIT"
] | 45
|
2021-07-06T03:30:20.000Z
|
2022-03-16T17:30:58.000Z
|
tests/syntax/unicode_fraction2.py
|
hoefling/friendly-traceback
|
26acac903521c5f0e5cf837d32bda750918d4afb
|
[
"MIT"
] | 110
|
2021-06-28T11:48:46.000Z
|
2022-03-25T20:41:25.000Z
|
tests/syntax/unicode_fraction2.py
|
hoefling/friendly-traceback
|
26acac903521c5f0e5cf837d32bda750918d4afb
|
[
"MIT"
] | 4
|
2021-07-05T20:56:39.000Z
|
2021-11-11T20:24:34.000Z
|
a = 1½ # 1 1/2
| 8
| 15
| 0.375
| 7
| 16
| 1.142857
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 0.4375
| 16
| 1
| 16
| 16
| 0.111111
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
69a4137c98c5f0e9f213531efb429fb668f1b0d4
| 5,493
|
py
|
Python
|
dialRL/utils/reward_functions.py
|
PawelMlyniec/Dail-a-ride
|
2b8954f9041b7635bcf8fa44e9129f2cd391f457
|
[
"MIT"
] | 1
|
2020-12-24T22:08:52.000Z
|
2020-12-24T22:08:52.000Z
|
dialRL/utils/reward_functions.py
|
Thibaud-Ardoin/Dial-a-Ride
|
7d9b3cd904d3194dccad31fec2533e2cf58cad0c
|
[
"MIT"
] | null | null | null |
dialRL/utils/reward_functions.py
|
Thibaud-Ardoin/Dial-a-Ride
|
7d9b3cd904d3194dccad31fec2533e2cf58cad0c
|
[
"MIT"
] | null | null | null |
class BaseReward():
def __init__(self):
pass
def compute(self, distance, done):
return 1
def __repr__(self):
return self.__str__()
def __str__(self):
return "(Reward function D->X)"
class ConstantReward(BaseReward):
def __init__(self):
""" This function returns a constant reward of -1, 0 or 1
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if distance < 0 :
return -1
elif distance == 0:
return 0
else :
return 1
class ProportionalReward(BaseReward):
def __init__(self):
"""
This function returns a reward of -1, 0 or (MD - distance)
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if distance < 0 :
return -1
elif distance == 0:
return 0
else :
return env.max_reward - distance
class NoNegativeProportionalReward(BaseReward):
def __init__(self):
"""
This function returns a reward of 0 or (MD - distance)
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if distance <= 0 :
return 0
else :
return env.max_reward - distance
class ProportionalEndReward(BaseReward):
def __init__(self):
"""
This function returns a reward of (MD - total_distance) at the end, if finished
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if done and env.is_fit_solution() :
return (env.max_step * env.max_reward) - env.total_distance
elif done :
return - (env.max_step * env.max_reward)
else :
return 0
class ProportionalEndDistance(BaseReward):
def __init__(self):
"""
This function returns a reward of (MD - total_distance) at the end, if finished
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if done and env.is_fit_solution() :
return env.total_distance
elif done :
return (env.size * env.target_population * 4)
else :
return 0
class NoNegativeProportionalEndReward(BaseReward):
def __init__(self):
"""
This function returns a reward of (MD - total_distance) at the end, if finished
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if done and env.is_fit_solution() :
return (env.max_step * env.max_reward) - env.total_distance
else :
return 0
class NoNegativeEndReward(BaseReward):
def __init__(self):
"""
This function returns a reward of (MD - total_distance) at the end, if finished
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if done and env.is_fit_solution() :
return 1
else :
return 0
class EndReward(BaseReward):
def __init__(self):
"""
This function returns a reward of (MD - total_distance) at the end, if finished
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if done and env.is_fit_solution() :
return 1
elif done :
return -1
else :
return 0
class HybridProportionalReward(BaseReward):
def __init__(self):
"""
This function returns a reward of (MD - total_distance) at the end, if finished
according to the planed distance that the choice leads to
"""
super().__init__()
def compute(self, distance, done, env):
if done and env.is_fit_solution() :
return (env.max_step * env.max_reward) - env.total_distance
elif done :
return - (env.max_step * env.max_reward)
else :
if distance < 0 :
return -1
elif distance == 0:
return 0
else :
return env.max_reward - distance
class ConstantDistributionReward(BaseReward):
def __init__(self):
"""
Rwd proportional to distributed state
"""
super().__init__()
self.distribution = None
def compute(self, distance, done, env):
new_distribution = env.targets_states()
rwd = 0
if self.distribution is None or not(self.distribution == new_distribution) :
for t, count in enumerate(new_distribution):
rwd += t * count
self.distribution = new_distribution
return rwd
class JustDistance(BaseReward):
def __init__(self):
"""
Reward = Distance lors du calcul
"""
super().__init__()
def compute(self, distance, done, env):
if distance < 0 :
return 100
elif distance == 0 :
return 10
else :
return distance
| 28.169231
| 87
| 0.577098
| 630
| 5,493
| 4.801587
| 0.130159
| 0.03438
| 0.067438
| 0.083306
| 0.745455
| 0.732562
| 0.710083
| 0.700165
| 0.686612
| 0.686612
| 0
| 0.010776
| 0.341161
| 5,493
| 194
| 88
| 28.314433
| 0.82509
| 0.225742
| 0
| 0.733333
| 0
| 0
| 0.005594
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.216667
| false
| 0.008333
| 0
| 0.025
| 0.591667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
69b8cacf0e7644bdfdd4349a3804ff08a11ed2f3
| 177
|
py
|
Python
|
src/sample/topology_injection/optimizer.py
|
aolarchive/Hydro
|
8580aebc30694156c436e5ba7470d3fcbb46896b
|
[
"MIT"
] | 42
|
2015-03-04T09:05:00.000Z
|
2018-12-01T15:13:48.000Z
|
src/sample/topology_injection/optimizer.py
|
aolarchive/Hydro
|
8580aebc30694156c436e5ba7470d3fcbb46896b
|
[
"MIT"
] | 5
|
2015-05-11T08:18:12.000Z
|
2016-03-22T19:11:01.000Z
|
src/sample/topology_injection/optimizer.py
|
Convertro/Hydro
|
8580aebc30694156c436e5ba7470d3fcbb46896b
|
[
"MIT"
] | 4
|
2015-03-05T09:07:27.000Z
|
2018-12-01T15:13:49.000Z
|
__author__ = 'moshebasanchig'
from hydro.base_classes import PlanObject
from hydro.base_classes import OptimizerBase
class TopologyInjectionOptimizer(OptimizerBase):
pass
| 22.125
| 48
| 0.841808
| 18
| 177
| 7.944444
| 0.666667
| 0.125874
| 0.181818
| 0.27972
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112994
| 177
| 8
| 49
| 22.125
| 0.910828
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.2
| 0.4
| 0
| 0.6
| 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
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
0e0d423bbf55cad23e0c77f571788a760781a614
| 64,019
|
py
|
Python
|
isl-0.14.1/interface/isl.py
|
libertine-linux-packages/isl
|
8e4b7f9d34451f46816a32f348ad0c00198a53f1
|
[
"MIT"
] | null | null | null |
isl-0.14.1/interface/isl.py
|
libertine-linux-packages/isl
|
8e4b7f9d34451f46816a32f348ad0c00198a53f1
|
[
"MIT"
] | null | null | null |
isl-0.14.1/interface/isl.py
|
libertine-linux-packages/isl
|
8e4b7f9d34451f46816a32f348ad0c00198a53f1
|
[
"MIT"
] | null | null | null |
from ctypes import *
isl = cdll.LoadLibrary("libisl.so")
libc = cdll.LoadLibrary("libc.so.6")
class Error(Exception):
pass
class Context:
defaultInstance = None
def __init__(self):
ptr = isl.isl_ctx_alloc()
self.ptr = ptr
def __del__(self):
isl.isl_ctx_free(self)
def from_param(self):
return self.ptr
@staticmethod
def getDefaultInstance():
if Context.defaultInstance == None:
Context.defaultInstance = Context()
return Context.defaultInstance
isl.isl_ctx_alloc.restype = c_void_p
isl.isl_ctx_free.argtypes = [Context]
class union_map:
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
if len(args) == 1 and args[0].__class__ is basic_map:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_union_map_from_basic_map(isl.isl_basic_map_copy(args[0].ptr))
return
if len(args) == 1 and args[0].__class__ is map:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_union_map_from_map(isl.isl_map_copy(args[0].ptr))
return
if len(args) == 1 and type(args[0]) == str:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_union_map_read_from_str(self.ctx, args[0])
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_union_map_free(self.ptr)
def __str__(self):
ptr = isl.isl_union_map_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.union_map("%s")' % str(self)
def affine_hull(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_affine_hull(isl.isl_union_map_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def polyhedral_hull(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_polyhedral_hull(isl.isl_union_map_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def coalesce(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_coalesce(isl.isl_union_map_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def lexmin(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_lexmin(isl.isl_union_map_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def lexmax(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_lexmax(isl.isl_union_map_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def union(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_union(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_map_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def subtract(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_subtract(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_map_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def intersect(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_intersect(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_map_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def intersect_params(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
raise
res = isl.isl_union_map_intersect_params(isl.isl_union_map_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def gist(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_gist(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_map_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def gist_params(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
raise
res = isl.isl_union_map_gist_params(isl.isl_union_map_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def gist_domain(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_map_gist_domain(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def gist_range(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_map_gist_range(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def intersect_domain(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_map_intersect_domain(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def intersect_range(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_map_intersect_range(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def subtract_domain(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_map_subtract_domain(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def subtract_range(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_map_subtract_range(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def apply_domain(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_apply_domain(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_map_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def apply_range(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_apply_range(isl.isl_union_map_copy(arg0.ptr), isl.isl_union_map_copy(arg1.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def reverse(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_reverse(isl.isl_union_map_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def detect_equalities(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_detect_equalities(isl.isl_union_map_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def deltas(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_deltas(isl.isl_union_map_copy(arg0.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def is_empty(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_is_empty(arg0.ptr)
return res
def is_single_valued(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_is_single_valued(arg0.ptr)
return res
def is_injective(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_is_injective(arg0.ptr)
return res
def is_bijective(arg0):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
res = isl.isl_union_map_is_bijective(arg0.ptr)
return res
def is_subset(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_is_subset(arg0.ptr, arg1.ptr)
return res
def is_equal(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_is_equal(arg0.ptr, arg1.ptr)
return res
def is_strict_subset(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_map_is_strict_subset(arg0.ptr, arg1.ptr)
return res
def foreach_map(arg0, arg1):
try:
if not arg0.__class__ is union_map:
arg0 = union_map(arg0)
except:
raise
exc_info = [None]
fn = CFUNCTYPE(c_int, c_void_p, c_void_p)
def cb_func(cb_arg0, cb_arg1):
cb_arg0 = map(ctx=arg0.ctx, ptr=cb_arg0)
try:
arg1(cb_arg0)
except:
import sys
exc_info[0] = sys.exc_info()
return -1
return 0
cb = fn(cb_func)
res = isl.isl_union_map_foreach_map(arg0.ptr, cb, None)
if exc_info[0] != None:
raise exc_info[0][0], exc_info[0][1], exc_info[0][2]
return res
isl.isl_union_map_from_basic_map.restype = c_void_p
isl.isl_union_map_from_basic_map.argtypes = [c_void_p]
isl.isl_union_map_from_map.restype = c_void_p
isl.isl_union_map_from_map.argtypes = [c_void_p]
isl.isl_union_map_read_from_str.restype = c_void_p
isl.isl_union_map_read_from_str.argtypes = [Context, c_char_p]
isl.isl_union_map_affine_hull.restype = c_void_p
isl.isl_union_map_polyhedral_hull.restype = c_void_p
isl.isl_union_map_coalesce.restype = c_void_p
isl.isl_union_map_lexmin.restype = c_void_p
isl.isl_union_map_lexmax.restype = c_void_p
isl.isl_union_map_union.restype = c_void_p
isl.isl_union_map_subtract.restype = c_void_p
isl.isl_union_map_intersect.restype = c_void_p
isl.isl_union_map_intersect_params.restype = c_void_p
isl.isl_union_map_gist.restype = c_void_p
isl.isl_union_map_gist_params.restype = c_void_p
isl.isl_union_map_gist_domain.restype = c_void_p
isl.isl_union_map_gist_range.restype = c_void_p
isl.isl_union_map_intersect_domain.restype = c_void_p
isl.isl_union_map_intersect_range.restype = c_void_p
isl.isl_union_map_subtract_domain.restype = c_void_p
isl.isl_union_map_subtract_range.restype = c_void_p
isl.isl_union_map_apply_domain.restype = c_void_p
isl.isl_union_map_apply_range.restype = c_void_p
isl.isl_union_map_reverse.restype = c_void_p
isl.isl_union_map_detect_equalities.restype = c_void_p
isl.isl_union_map_deltas.restype = c_void_p
isl.isl_union_map_free.argtypes = [c_void_p]
isl.isl_union_map_to_str.argtypes = [c_void_p]
isl.isl_union_map_to_str.restype = POINTER(c_char)
class map(union_map):
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
if len(args) == 1 and args[0].__class__ is basic_map:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_map_from_basic_map(isl.isl_basic_map_copy(args[0].ptr))
return
if len(args) == 1 and type(args[0]) == str:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_map_read_from_str(self.ctx, args[0])
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_map_free(self.ptr)
def __str__(self):
ptr = isl.isl_map_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.map("%s")' % str(self)
def reverse(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_reverse(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def union(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).union(arg1)
res = isl.isl_map_union(isl.isl_map_copy(arg0.ptr), isl.isl_map_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def intersect_domain(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_map(arg0).intersect_domain(arg1)
res = isl.isl_map_intersect_domain(isl.isl_map_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def intersect_range(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_map(arg0).intersect_range(arg1)
res = isl.isl_map_intersect_range(isl.isl_map_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def apply_domain(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).apply_domain(arg1)
res = isl.isl_map_apply_domain(isl.isl_map_copy(arg0.ptr), isl.isl_map_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def apply_range(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).apply_range(arg1)
res = isl.isl_map_apply_range(isl.isl_map_copy(arg0.ptr), isl.isl_map_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def intersect(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).intersect(arg1)
res = isl.isl_map_intersect(isl.isl_map_copy(arg0.ptr), isl.isl_map_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def intersect_params(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_map(arg0).intersect_params(arg1)
res = isl.isl_map_intersect_params(isl.isl_map_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def subtract(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).subtract(arg1)
res = isl.isl_map_subtract(isl.isl_map_copy(arg0.ptr), isl.isl_map_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def complement(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_complement(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def deltas(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_deltas(isl.isl_map_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def detect_equalities(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_detect_equalities(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def affine_hull(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_affine_hull(isl.isl_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def polyhedral_hull(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_polyhedral_hull(isl.isl_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def flatten(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_flatten(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def flatten_domain(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_flatten_domain(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def flatten_range(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_flatten_range(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def lexmin(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_lexmin(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def lexmax(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_lexmax(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def sample(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_sample(isl.isl_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def is_empty(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_is_empty(arg0.ptr)
return res
def is_subset(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).is_subset(arg1)
res = isl.isl_map_is_subset(arg0.ptr, arg1.ptr)
return res
def is_strict_subset(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).is_strict_subset(arg1)
res = isl.isl_map_is_strict_subset(arg0.ptr, arg1.ptr)
return res
def is_equal(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).is_equal(arg1)
res = isl.isl_map_is_equal(arg0.ptr, arg1.ptr)
return res
def is_disjoint(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).is_disjoint(arg1)
res = isl.isl_map_is_disjoint(arg0.ptr, arg1.ptr)
return res
def is_single_valued(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_is_single_valued(arg0.ptr)
return res
def is_injective(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_is_injective(arg0.ptr)
return res
def is_bijective(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_is_bijective(arg0.ptr)
return res
def gist(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_map(arg0).gist(arg1)
res = isl.isl_map_gist(isl.isl_map_copy(arg0.ptr), isl.isl_map_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def gist_domain(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_map(arg0).gist_domain(arg1)
res = isl.isl_map_gist_domain(isl.isl_map_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def coalesce(arg0):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
res = isl.isl_map_coalesce(isl.isl_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def foreach_basic_map(arg0, arg1):
try:
if not arg0.__class__ is map:
arg0 = map(arg0)
except:
raise
exc_info = [None]
fn = CFUNCTYPE(c_int, c_void_p, c_void_p)
def cb_func(cb_arg0, cb_arg1):
cb_arg0 = basic_map(ctx=arg0.ctx, ptr=cb_arg0)
try:
arg1(cb_arg0)
except:
import sys
exc_info[0] = sys.exc_info()
return -1
return 0
cb = fn(cb_func)
res = isl.isl_map_foreach_basic_map(arg0.ptr, cb, None)
if exc_info[0] != None:
raise exc_info[0][0], exc_info[0][1], exc_info[0][2]
return res
isl.isl_map_from_basic_map.restype = c_void_p
isl.isl_map_from_basic_map.argtypes = [c_void_p]
isl.isl_map_read_from_str.restype = c_void_p
isl.isl_map_read_from_str.argtypes = [Context, c_char_p]
isl.isl_map_reverse.restype = c_void_p
isl.isl_map_union.restype = c_void_p
isl.isl_map_intersect_domain.restype = c_void_p
isl.isl_map_intersect_range.restype = c_void_p
isl.isl_map_apply_domain.restype = c_void_p
isl.isl_map_apply_range.restype = c_void_p
isl.isl_map_intersect.restype = c_void_p
isl.isl_map_intersect_params.restype = c_void_p
isl.isl_map_subtract.restype = c_void_p
isl.isl_map_complement.restype = c_void_p
isl.isl_map_deltas.restype = c_void_p
isl.isl_map_detect_equalities.restype = c_void_p
isl.isl_map_affine_hull.restype = c_void_p
isl.isl_map_polyhedral_hull.restype = c_void_p
isl.isl_map_flatten.restype = c_void_p
isl.isl_map_flatten_domain.restype = c_void_p
isl.isl_map_flatten_range.restype = c_void_p
isl.isl_map_lexmin.restype = c_void_p
isl.isl_map_lexmax.restype = c_void_p
isl.isl_map_sample.restype = c_void_p
isl.isl_map_gist.restype = c_void_p
isl.isl_map_gist_domain.restype = c_void_p
isl.isl_map_coalesce.restype = c_void_p
isl.isl_map_free.argtypes = [c_void_p]
isl.isl_map_to_str.argtypes = [c_void_p]
isl.isl_map_to_str.restype = POINTER(c_char)
class basic_map(map):
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
if len(args) == 1 and type(args[0]) == str:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_basic_map_read_from_str(self.ctx, args[0])
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_basic_map_free(self.ptr)
def __str__(self):
ptr = isl.isl_basic_map_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.basic_map("%s")' % str(self)
def intersect_range(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_set:
arg1 = basic_set(arg1)
except:
return map(arg0).intersect_range(arg1)
res = isl.isl_basic_map_intersect_range(isl.isl_basic_map_copy(arg0.ptr), isl.isl_basic_set_copy(arg1.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def intersect(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return map(arg0).intersect(arg1)
res = isl.isl_basic_map_intersect(isl.isl_basic_map_copy(arg0.ptr), isl.isl_basic_map_copy(arg1.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def union(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return map(arg0).union(arg1)
res = isl.isl_basic_map_union(isl.isl_basic_map_copy(arg0.ptr), isl.isl_basic_map_copy(arg1.ptr))
return map(ctx=arg0.ctx, ptr=res)
def apply_domain(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return map(arg0).apply_domain(arg1)
res = isl.isl_basic_map_apply_domain(isl.isl_basic_map_copy(arg0.ptr), isl.isl_basic_map_copy(arg1.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def apply_range(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return map(arg0).apply_range(arg1)
res = isl.isl_basic_map_apply_range(isl.isl_basic_map_copy(arg0.ptr), isl.isl_basic_map_copy(arg1.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def affine_hull(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_affine_hull(isl.isl_basic_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def reverse(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_reverse(isl.isl_basic_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def sample(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_sample(isl.isl_basic_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def detect_equalities(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_detect_equalities(isl.isl_basic_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def deltas(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_deltas(isl.isl_basic_map_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def flatten(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_flatten(isl.isl_basic_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def flatten_domain(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_flatten_domain(isl.isl_basic_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def flatten_range(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_flatten_range(isl.isl_basic_map_copy(arg0.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def intersect_domain(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_set:
arg1 = basic_set(arg1)
except:
return map(arg0).intersect_domain(arg1)
res = isl.isl_basic_map_intersect_domain(isl.isl_basic_map_copy(arg0.ptr), isl.isl_basic_set_copy(arg1.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
def is_equal(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return map(arg0).is_equal(arg1)
res = isl.isl_basic_map_is_equal(arg0.ptr, arg1.ptr)
return res
def lexmin(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_lexmin(isl.isl_basic_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def lexmax(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_lexmax(isl.isl_basic_map_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def is_empty(arg0):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
res = isl.isl_basic_map_is_empty(arg0.ptr)
return res
def is_subset(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return map(arg0).is_subset(arg1)
res = isl.isl_basic_map_is_subset(arg0.ptr, arg1.ptr)
return res
def gist(arg0, arg1):
try:
if not arg0.__class__ is basic_map:
arg0 = basic_map(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return map(arg0).gist(arg1)
res = isl.isl_basic_map_gist(isl.isl_basic_map_copy(arg0.ptr), isl.isl_basic_map_copy(arg1.ptr))
return basic_map(ctx=arg0.ctx, ptr=res)
isl.isl_basic_map_read_from_str.restype = c_void_p
isl.isl_basic_map_read_from_str.argtypes = [Context, c_char_p]
isl.isl_basic_map_intersect_range.restype = c_void_p
isl.isl_basic_map_intersect.restype = c_void_p
isl.isl_basic_map_union.restype = c_void_p
isl.isl_basic_map_apply_domain.restype = c_void_p
isl.isl_basic_map_apply_range.restype = c_void_p
isl.isl_basic_map_affine_hull.restype = c_void_p
isl.isl_basic_map_reverse.restype = c_void_p
isl.isl_basic_map_sample.restype = c_void_p
isl.isl_basic_map_detect_equalities.restype = c_void_p
isl.isl_basic_map_deltas.restype = c_void_p
isl.isl_basic_map_flatten.restype = c_void_p
isl.isl_basic_map_flatten_domain.restype = c_void_p
isl.isl_basic_map_flatten_range.restype = c_void_p
isl.isl_basic_map_intersect_domain.restype = c_void_p
isl.isl_basic_map_lexmin.restype = c_void_p
isl.isl_basic_map_lexmax.restype = c_void_p
isl.isl_basic_map_gist.restype = c_void_p
isl.isl_basic_map_free.argtypes = [c_void_p]
isl.isl_basic_map_to_str.argtypes = [c_void_p]
isl.isl_basic_map_to_str.restype = POINTER(c_char)
class union_set:
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
if len(args) == 1 and args[0].__class__ is basic_set:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_union_set_from_basic_set(isl.isl_basic_set_copy(args[0].ptr))
return
if len(args) == 1 and args[0].__class__ is set:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_union_set_from_set(isl.isl_set_copy(args[0].ptr))
return
if len(args) == 1 and type(args[0]) == str:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_union_set_read_from_str(self.ctx, args[0])
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_union_set_free(self.ptr)
def __str__(self):
ptr = isl.isl_union_set_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.union_set("%s")' % str(self)
def identity(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_identity(isl.isl_union_set_copy(arg0.ptr))
return union_map(ctx=arg0.ctx, ptr=res)
def detect_equalities(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_detect_equalities(isl.isl_union_set_copy(arg0.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def affine_hull(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_affine_hull(isl.isl_union_set_copy(arg0.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def polyhedral_hull(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_polyhedral_hull(isl.isl_union_set_copy(arg0.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def coalesce(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_coalesce(isl.isl_union_set_copy(arg0.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def lexmin(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_lexmin(isl.isl_union_set_copy(arg0.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def lexmax(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_lexmax(isl.isl_union_set_copy(arg0.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def subtract(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_set_subtract(isl.isl_union_set_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def intersect(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_set_intersect(isl.isl_union_set_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def intersect_params(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
raise
res = isl.isl_union_set_intersect_params(isl.isl_union_set_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def gist(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_set_gist(isl.isl_union_set_copy(arg0.ptr), isl.isl_union_set_copy(arg1.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def gist_params(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
raise
res = isl.isl_union_set_gist_params(isl.isl_union_set_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def apply(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is union_map:
arg1 = union_map(arg1)
except:
raise
res = isl.isl_union_set_apply(isl.isl_union_set_copy(arg0.ptr), isl.isl_union_map_copy(arg1.ptr))
return union_set(ctx=arg0.ctx, ptr=res)
def is_empty(arg0):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
res = isl.isl_union_set_is_empty(arg0.ptr)
return res
def is_subset(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_set_is_subset(arg0.ptr, arg1.ptr)
return res
def is_equal(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_set_is_equal(arg0.ptr, arg1.ptr)
return res
def is_strict_subset(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
try:
if not arg1.__class__ is union_set:
arg1 = union_set(arg1)
except:
raise
res = isl.isl_union_set_is_strict_subset(arg0.ptr, arg1.ptr)
return res
def foreach_set(arg0, arg1):
try:
if not arg0.__class__ is union_set:
arg0 = union_set(arg0)
except:
raise
exc_info = [None]
fn = CFUNCTYPE(c_int, c_void_p, c_void_p)
def cb_func(cb_arg0, cb_arg1):
cb_arg0 = set(ctx=arg0.ctx, ptr=cb_arg0)
try:
arg1(cb_arg0)
except:
import sys
exc_info[0] = sys.exc_info()
return -1
return 0
cb = fn(cb_func)
res = isl.isl_union_set_foreach_set(arg0.ptr, cb, None)
if exc_info[0] != None:
raise exc_info[0][0], exc_info[0][1], exc_info[0][2]
return res
isl.isl_union_set_from_basic_set.restype = c_void_p
isl.isl_union_set_from_basic_set.argtypes = [c_void_p]
isl.isl_union_set_from_set.restype = c_void_p
isl.isl_union_set_from_set.argtypes = [c_void_p]
isl.isl_union_set_read_from_str.restype = c_void_p
isl.isl_union_set_read_from_str.argtypes = [Context, c_char_p]
isl.isl_union_set_identity.restype = c_void_p
isl.isl_union_set_detect_equalities.restype = c_void_p
isl.isl_union_set_affine_hull.restype = c_void_p
isl.isl_union_set_polyhedral_hull.restype = c_void_p
isl.isl_union_set_coalesce.restype = c_void_p
isl.isl_union_set_lexmin.restype = c_void_p
isl.isl_union_set_lexmax.restype = c_void_p
isl.isl_union_set_subtract.restype = c_void_p
isl.isl_union_set_intersect.restype = c_void_p
isl.isl_union_set_intersect_params.restype = c_void_p
isl.isl_union_set_gist.restype = c_void_p
isl.isl_union_set_gist_params.restype = c_void_p
isl.isl_union_set_apply.restype = c_void_p
isl.isl_union_set_free.argtypes = [c_void_p]
isl.isl_union_set_to_str.argtypes = [c_void_p]
isl.isl_union_set_to_str.restype = POINTER(c_char)
class set(union_set):
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
if len(args) == 1 and type(args[0]) == str:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_set_read_from_str(self.ctx, args[0])
return
if len(args) == 1 and args[0].__class__ is basic_set:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_set_from_basic_set(isl.isl_basic_set_copy(args[0].ptr))
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_set_free(self.ptr)
def __str__(self):
ptr = isl.isl_set_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.set("%s")' % str(self)
def identity(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_identity(isl.isl_set_copy(arg0.ptr))
return map(ctx=arg0.ctx, ptr=res)
def is_wrapping(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_is_wrapping(arg0.ptr)
return res
def flatten(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_flatten(isl.isl_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def lexmin(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_lexmin(isl.isl_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def lexmax(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_lexmax(isl.isl_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def sample(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_sample(isl.isl_set_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def detect_equalities(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_detect_equalities(isl.isl_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def affine_hull(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_affine_hull(isl.isl_set_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def polyhedral_hull(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_polyhedral_hull(isl.isl_set_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def union(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).union(arg1)
res = isl.isl_set_union(isl.isl_set_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return set(ctx=arg0.ctx, ptr=res)
def intersect(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).intersect(arg1)
res = isl.isl_set_intersect(isl.isl_set_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return set(ctx=arg0.ctx, ptr=res)
def intersect_params(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).intersect_params(arg1)
res = isl.isl_set_intersect_params(isl.isl_set_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return set(ctx=arg0.ctx, ptr=res)
def subtract(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).subtract(arg1)
res = isl.isl_set_subtract(isl.isl_set_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return set(ctx=arg0.ctx, ptr=res)
def complement(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_complement(isl.isl_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def apply(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is map:
arg1 = map(arg1)
except:
return union_set(arg0).apply(arg1)
res = isl.isl_set_apply(isl.isl_set_copy(arg0.ptr), isl.isl_map_copy(arg1.ptr))
return set(ctx=arg0.ctx, ptr=res)
def is_empty(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_is_empty(arg0.ptr)
return res
def is_subset(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).is_subset(arg1)
res = isl.isl_set_is_subset(arg0.ptr, arg1.ptr)
return res
def is_strict_subset(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).is_strict_subset(arg1)
res = isl.isl_set_is_strict_subset(arg0.ptr, arg1.ptr)
return res
def is_equal(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).is_equal(arg1)
res = isl.isl_set_is_equal(arg0.ptr, arg1.ptr)
return res
def is_disjoint(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).is_disjoint(arg1)
res = isl.isl_set_is_disjoint(arg0.ptr, arg1.ptr)
return res
def gist(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
try:
if not arg1.__class__ is set:
arg1 = set(arg1)
except:
return union_set(arg0).gist(arg1)
res = isl.isl_set_gist(isl.isl_set_copy(arg0.ptr), isl.isl_set_copy(arg1.ptr))
return set(ctx=arg0.ctx, ptr=res)
def coalesce(arg0):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
res = isl.isl_set_coalesce(isl.isl_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def foreach_basic_set(arg0, arg1):
try:
if not arg0.__class__ is set:
arg0 = set(arg0)
except:
raise
exc_info = [None]
fn = CFUNCTYPE(c_int, c_void_p, c_void_p)
def cb_func(cb_arg0, cb_arg1):
cb_arg0 = basic_set(ctx=arg0.ctx, ptr=cb_arg0)
try:
arg1(cb_arg0)
except:
import sys
exc_info[0] = sys.exc_info()
return -1
return 0
cb = fn(cb_func)
res = isl.isl_set_foreach_basic_set(arg0.ptr, cb, None)
if exc_info[0] != None:
raise exc_info[0][0], exc_info[0][1], exc_info[0][2]
return res
isl.isl_set_read_from_str.restype = c_void_p
isl.isl_set_read_from_str.argtypes = [Context, c_char_p]
isl.isl_set_from_basic_set.restype = c_void_p
isl.isl_set_from_basic_set.argtypes = [c_void_p]
isl.isl_set_identity.restype = c_void_p
isl.isl_set_flatten.restype = c_void_p
isl.isl_set_lexmin.restype = c_void_p
isl.isl_set_lexmax.restype = c_void_p
isl.isl_set_sample.restype = c_void_p
isl.isl_set_detect_equalities.restype = c_void_p
isl.isl_set_affine_hull.restype = c_void_p
isl.isl_set_polyhedral_hull.restype = c_void_p
isl.isl_set_union.restype = c_void_p
isl.isl_set_intersect.restype = c_void_p
isl.isl_set_intersect_params.restype = c_void_p
isl.isl_set_subtract.restype = c_void_p
isl.isl_set_complement.restype = c_void_p
isl.isl_set_apply.restype = c_void_p
isl.isl_set_gist.restype = c_void_p
isl.isl_set_coalesce.restype = c_void_p
isl.isl_set_free.argtypes = [c_void_p]
isl.isl_set_to_str.argtypes = [c_void_p]
isl.isl_set_to_str.restype = POINTER(c_char)
class basic_set(set):
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
if len(args) == 1 and type(args[0]) == str:
self.ctx = Context.getDefaultInstance()
self.ptr = isl.isl_basic_set_read_from_str(self.ctx, args[0])
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_basic_set_free(self.ptr)
def __str__(self):
ptr = isl.isl_basic_set_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.basic_set("%s")' % str(self)
def is_wrapping(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_is_wrapping(arg0.ptr)
return res
def flatten(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_flatten(isl.isl_basic_set_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def intersect(arg0, arg1):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
try:
if not arg1.__class__ is basic_set:
arg1 = basic_set(arg1)
except:
return set(arg0).intersect(arg1)
res = isl.isl_basic_set_intersect(isl.isl_basic_set_copy(arg0.ptr), isl.isl_basic_set_copy(arg1.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def intersect_params(arg0, arg1):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
try:
if not arg1.__class__ is basic_set:
arg1 = basic_set(arg1)
except:
return set(arg0).intersect_params(arg1)
res = isl.isl_basic_set_intersect_params(isl.isl_basic_set_copy(arg0.ptr), isl.isl_basic_set_copy(arg1.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def apply(arg0, arg1):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
try:
if not arg1.__class__ is basic_map:
arg1 = basic_map(arg1)
except:
return set(arg0).apply(arg1)
res = isl.isl_basic_set_apply(isl.isl_basic_set_copy(arg0.ptr), isl.isl_basic_map_copy(arg1.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def affine_hull(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_affine_hull(isl.isl_basic_set_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def sample(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_sample(isl.isl_basic_set_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def detect_equalities(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_detect_equalities(isl.isl_basic_set_copy(arg0.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
def is_equal(arg0, arg1):
res = isl.isl_basic_set_is_equal(arg0.ptr, arg1.ptr)
return res
def lexmin(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_lexmin(isl.isl_basic_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def lexmax(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_lexmax(isl.isl_basic_set_copy(arg0.ptr))
return set(ctx=arg0.ctx, ptr=res)
def union(arg0, arg1):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
try:
if not arg1.__class__ is basic_set:
arg1 = basic_set(arg1)
except:
return set(arg0).union(arg1)
res = isl.isl_basic_set_union(isl.isl_basic_set_copy(arg0.ptr), isl.isl_basic_set_copy(arg1.ptr))
return set(ctx=arg0.ctx, ptr=res)
def is_empty(arg0):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
res = isl.isl_basic_set_is_empty(arg0.ptr)
return res
def is_subset(arg0, arg1):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
try:
if not arg1.__class__ is basic_set:
arg1 = basic_set(arg1)
except:
return set(arg0).is_subset(arg1)
res = isl.isl_basic_set_is_subset(arg0.ptr, arg1.ptr)
return res
def gist(arg0, arg1):
try:
if not arg0.__class__ is basic_set:
arg0 = basic_set(arg0)
except:
raise
try:
if not arg1.__class__ is basic_set:
arg1 = basic_set(arg1)
except:
return set(arg0).gist(arg1)
res = isl.isl_basic_set_gist(isl.isl_basic_set_copy(arg0.ptr), isl.isl_basic_set_copy(arg1.ptr))
return basic_set(ctx=arg0.ctx, ptr=res)
isl.isl_basic_set_read_from_str.restype = c_void_p
isl.isl_basic_set_read_from_str.argtypes = [Context, c_char_p]
isl.isl_basic_set_flatten.restype = c_void_p
isl.isl_basic_set_intersect.restype = c_void_p
isl.isl_basic_set_intersect_params.restype = c_void_p
isl.isl_basic_set_apply.restype = c_void_p
isl.isl_basic_set_affine_hull.restype = c_void_p
isl.isl_basic_set_sample.restype = c_void_p
isl.isl_basic_set_detect_equalities.restype = c_void_p
isl.isl_basic_set_lexmin.restype = c_void_p
isl.isl_basic_set_lexmax.restype = c_void_p
isl.isl_basic_set_union.restype = c_void_p
isl.isl_basic_set_gist.restype = c_void_p
isl.isl_basic_set_free.argtypes = [c_void_p]
isl.isl_basic_set_to_str.argtypes = [c_void_p]
isl.isl_basic_set_to_str.restype = POINTER(c_char)
class pw_qpolynomial:
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_pw_qpolynomial_free(self.ptr)
def __str__(self):
ptr = isl.isl_pw_qpolynomial_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.pw_qpolynomial("%s")' % str(self)
isl.isl_pw_qpolynomial_free.argtypes = [c_void_p]
isl.isl_pw_qpolynomial_to_str.argtypes = [c_void_p]
isl.isl_pw_qpolynomial_to_str.restype = POINTER(c_char)
class union_pw_qpolynomial:
def __init__(self, *args, **keywords):
if "ptr" in keywords:
self.ctx = keywords["ctx"]
self.ptr = keywords["ptr"]
return
raise Error
def __del__(self):
if hasattr(self, 'ptr'):
isl.isl_union_pw_qpolynomial_free(self.ptr)
def __str__(self):
ptr = isl.isl_union_pw_qpolynomial_to_str(self.ptr)
res = str(cast(ptr, c_char_p).value)
libc.free(ptr)
return res
def __repr__(self):
return 'isl.union_pw_qpolynomial("%s")' % str(self)
isl.isl_union_pw_qpolynomial_free.argtypes = [c_void_p]
isl.isl_union_pw_qpolynomial_to_str.argtypes = [c_void_p]
isl.isl_union_pw_qpolynomial_to_str.restype = POINTER(c_char)
| 34.418817
| 116
| 0.583093
| 8,943
| 64,019
| 3.806329
| 0.012188
| 0.083901
| 0.047474
| 0.036222
| 0.98302
| 0.974148
| 0.96413
| 0.945329
| 0.884313
| 0.81792
| 0
| 0.030327
| 0.328871
| 64,019
| 1,859
| 117
| 34.437332
| 0.761946
| 0
| 0
| 0.779837
| 0
| 0
| 0.004218
| 0.000844
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.000545
| 0.002725
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
385ef1f51359806a12c0fac198f18d79bf878763
| 4,863
|
py
|
Python
|
tests/test_managedblockchain/test_managedblockchain_networks.py
|
orenmazor/moto
|
4778377e8ecaf729d26602a2c5202b72c1438503
|
[
"Apache-2.0"
] | null | null | null |
tests/test_managedblockchain/test_managedblockchain_networks.py
|
orenmazor/moto
|
4778377e8ecaf729d26602a2c5202b72c1438503
|
[
"Apache-2.0"
] | 4
|
2017-09-30T07:52:52.000Z
|
2021-12-13T06:56:55.000Z
|
tests/test_managedblockchain/test_managedblockchain_networks.py
|
orenmazor/moto
|
4778377e8ecaf729d26602a2c5202b72c1438503
|
[
"Apache-2.0"
] | 2
|
2021-11-24T08:05:43.000Z
|
2021-11-25T16:18:48.000Z
|
from __future__ import unicode_literals
import boto3
import pytest
import sure # noqa
from botocore.exceptions import ClientError
from moto import mock_managedblockchain
from . import helpers
@mock_managedblockchain
def test_create_network():
conn = boto3.client("managedblockchain", region_name="us-east-1")
response = conn.create_network(
Name="testnetwork1",
Framework="HYPERLEDGER_FABRIC",
FrameworkVersion="1.2",
FrameworkConfiguration=helpers.default_frameworkconfiguration,
VotingPolicy=helpers.default_votingpolicy,
MemberConfiguration=helpers.default_memberconfiguration,
)
network_id = response["NetworkId"]
member_id = response["MemberId"]
network_id.should.match("n-[A-Z0-9]{26}")
member_id.should.match("m-[A-Z0-9]{26}")
# Find in full list
response = conn.list_networks()
mbcnetworks = response["Networks"]
mbcnetworks.should.have.length_of(1)
mbcnetworks[0]["Name"].should.equal("testnetwork1")
# Get network details
response = conn.get_network(NetworkId=network_id)
response["Network"]["Name"].should.equal("testnetwork1")
@mock_managedblockchain
def test_create_network_withopts():
conn = boto3.client("managedblockchain", region_name="us-east-1")
response = conn.create_network(
Name="testnetwork1",
Description="Test Network 1",
Framework="HYPERLEDGER_FABRIC",
FrameworkVersion="1.2",
FrameworkConfiguration=helpers.default_frameworkconfiguration,
VotingPolicy=helpers.default_votingpolicy,
MemberConfiguration=helpers.default_memberconfiguration,
)
network_id = response["NetworkId"]
member_id = response["MemberId"]
network_id.should.match("n-[A-Z0-9]{26}")
member_id.should.match("m-[A-Z0-9]{26}")
# Find in full list
response = conn.list_networks()
mbcnetworks = response["Networks"]
mbcnetworks.should.have.length_of(1)
mbcnetworks[0]["Description"].should.equal("Test Network 1")
# Get network details
response = conn.get_network(NetworkId=network_id)
response["Network"]["Description"].should.equal("Test Network 1")
@mock_managedblockchain
def test_create_network_noframework():
conn = boto3.client("managedblockchain", region_name="us-east-1")
with pytest.raises(ClientError) as ex:
conn.create_network(
Name="testnetwork1",
Description="Test Network 1",
Framework="HYPERLEDGER_VINYL",
FrameworkVersion="1.2",
FrameworkConfiguration=helpers.default_frameworkconfiguration,
VotingPolicy=helpers.default_votingpolicy,
MemberConfiguration=helpers.default_memberconfiguration,
)
err = ex.value.response["Error"]
err["Code"].should.equal("BadRequestException")
err["Message"].should.contain("Invalid request body")
@mock_managedblockchain
def test_create_network_badframeworkver():
conn = boto3.client("managedblockchain", region_name="us-east-1")
with pytest.raises(ClientError) as ex:
conn.create_network(
Name="testnetwork1",
Description="Test Network 1",
Framework="HYPERLEDGER_FABRIC",
FrameworkVersion="1.X",
FrameworkConfiguration=helpers.default_frameworkconfiguration,
VotingPolicy=helpers.default_votingpolicy,
MemberConfiguration=helpers.default_memberconfiguration,
)
err = ex.value.response["Error"]
err["Code"].should.equal("BadRequestException")
err["Message"].should.contain(
"Invalid version 1.X requested for framework HYPERLEDGER_FABRIC"
)
@mock_managedblockchain
def test_create_network_badedition():
conn = boto3.client("managedblockchain", region_name="us-east-1")
frameworkconfiguration = {"Fabric": {"Edition": "SUPER"}}
with pytest.raises(ClientError) as ex:
conn.create_network(
Name="testnetwork1",
Description="Test Network 1",
Framework="HYPERLEDGER_FABRIC",
FrameworkVersion="1.2",
FrameworkConfiguration=frameworkconfiguration,
VotingPolicy=helpers.default_votingpolicy,
MemberConfiguration=helpers.default_memberconfiguration,
)
err = ex.value.response["Error"]
err["Code"].should.equal("BadRequestException")
err["Message"].should.contain("Invalid request body")
@mock_managedblockchain
def test_get_network_badnetwork():
conn = boto3.client("managedblockchain", region_name="us-east-1")
with pytest.raises(ClientError) as ex:
conn.get_network(NetworkId="n-ABCDEFGHIJKLMNOP0123456789")
err = ex.value.response["Error"]
err["Code"].should.equal("ResourceNotFoundException")
err["Message"].should.contain("Network n-ABCDEFGHIJKLMNOP0123456789 not found")
| 34.985612
| 83
| 0.702241
| 495
| 4,863
| 6.743434
| 0.189899
| 0.058718
| 0.04314
| 0.05033
| 0.848412
| 0.848412
| 0.775015
| 0.775015
| 0.775015
| 0.748053
| 0
| 0.019153
| 0.184043
| 4,863
| 138
| 84
| 35.23913
| 0.822077
| 0.016451
| 0
| 0.706422
| 0
| 0
| 0.192171
| 0.016956
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055046
| false
| 0
| 0.06422
| 0
| 0.119266
| 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
|
387e185d2c68beef49c2e337421ecbac42da30c9
| 9,820
|
py
|
Python
|
test/test_utils.py
|
cthoyt/OpenBioLink
|
c5f85b99f9104f70493136c343e4554261e990a5
|
[
"MIT"
] | null | null | null |
test/test_utils.py
|
cthoyt/OpenBioLink
|
c5f85b99f9104f70493136c343e4554261e990a5
|
[
"MIT"
] | null | null | null |
test/test_utils.py
|
cthoyt/OpenBioLink
|
c5f85b99f9104f70493136c343e4554261e990a5
|
[
"MIT"
] | null | null | null |
import os
import unittest
import src.openbiolink.utils as utils
import pandas
import numpy as np
from src.openbiolink.edgeType import EdgeType
class TestUtils(unittest.TestCase):
# ----- get_leaf_subclasses -------
def test_get_leaf_subclasses_no_subclasses(self):
# given
class A:
pass
cls = A
# when
result = utils.get_leaf_subclasses(cls)
# then
true_result = {A}
self.assertEqual(true_result, result)
def test_get_leaf_subclasses_one_lvl(self):
# given
class A:
pass
class B (A):
pass
cls = A
# when
result = utils.get_leaf_subclasses(cls)
# then
true_result = {B}
self.assertEqual(true_result, result)
def test_get_leaf_subclasses_two_lvl(self):
# given
class A:
pass
class B (A):
pass
class C (B):
pass
cls = A
# when
result = utils.get_leaf_subclasses(cls)
# then
true_result = {C}
self.assertEqual(true_result, result)
def test_get_leaf_subclasses_diff_lvls(self):
# given
class A:
pass
class B (A):
pass
class C (B):
pass
class D (A):
pass
cls = A
# when
result = utils.get_leaf_subclasses(cls)
# then
true_result = {C,D}
def test_get_leaf_subclasses_None(self):
# given
cls = None
# when
result = utils.get_leaf_subclasses(cls)
# then
true_result = None
self.assertEqual(true_result, result)
# ----- make_undir -------
def test_make_undir_all_undir(self):
# given
df = pandas.DataFrame({'id1': list('abc'), 'id2': list('xyz')})
# when
result = utils.make_undir(df)
# then
true_result = df
np.testing.assert_array_equal(true_result, result)
def test_make_undir_all_dir(self):
# given
df = pandas.DataFrame({'id1': list('abcd'), 'id2': list('badc')})
# when
result = utils.make_undir(df)
#then
true_result = pandas.DataFrame({'id1': list('ac'), 'id2': list('bd')})
np.testing.assert_array_equal(true_result, result)
def test_make_undir_mixed(self):
# given
df = pandas.DataFrame({'id1': list('abc'), 'id2': list('cxa')})
#when
result = utils.make_undir(df)
#then
true_result = pandas.DataFrame({'id1': list('ab'), 'id2': list('cx')})
np.testing.assert_array_equal(true_result, result)
def test_db_mapping_file_to_dic(self):
#given
#file with content
# x foo a
# y bar a; b
# z baz
# q c
path = os.path.dirname(os.path.abspath(__file__))
file_path = os.path.join(path, 'test_mapping_file.tsv')
#when
result = utils.db_mapping_file_to_dic(file_path, 0, 2, '\t')
#then
true_result = {'x': ['a'], 'y': ['a; b'], 'q': ['c']}
self.assertEqual(true_result, result )
def test_cls_list_to_dic(self):
self.fail()
def test_file_exists(self):
self.fail()
def test_get_diff(self):
self.fail()
# ----- remove_parent_duplicates_and_reverses -----
def test_remove_parent_parent_in_remain(self):
#given
remove = pandas.DataFrame(
{'id1': ['a'],
'edgeType':[EdgeType.GENE_REACTION_GENE],
'id2': ["0"],
'qscore': "100",
'value': [1]})
remain = pandas.DataFrame(
{'id1': ['a', 'b', 'c'],
'edgeType': [EdgeType.GENE_GENE, EdgeType.GENE_GENE, EdgeType.GENE_GENE],
'id2': ["0", "1", "2"],
'qscore': [120.0, 50,20],
'value': [1,1,0]})
#when
result = utils.remove_parent_duplicates_and_reverses(remove_set=remove, remain_set=remain)
#then
true_result = pandas.DataFrame(
{'id1': ['b', 'c'],
'edgeType': [ EdgeType.GENE_GENE, EdgeType.GENE_GENE],
'id2': [ "1", "2"],
'qscore': [50, 20],
'value': [1,0]})
np.testing.assert_array_equal(true_result.values, result.values)
def test_remove_parent_parent_in_remove(self):
#given
remove = pandas.DataFrame(
{'id1': ['a'],
'edgeType':[EdgeType.GENE_GENE],
'id2': ["0"],
'qscore': "100",
'value': list('x')})
remain = pandas.DataFrame(
{'id1': ['a', 'b', 'c'],
'edgeType': [EdgeType.GENE_REACTION_GENE, EdgeType.GENE_REACTION_GENE, EdgeType.GENE_REACTION_GENE],
'id2': ["0", "1", "2"],
'value': list('xxy')})
#when
result = utils.remove_parent_duplicates_and_reverses(remove_set=remove, remain_set=remain)
#then
true_result = pandas.DataFrame(
{'id1': ['a', 'b', 'c'],
'edgeType': [EdgeType.GENE_REACTION_GENE, EdgeType.GENE_REACTION_GENE, EdgeType.GENE_REACTION_GENE],
'id2': ["0", "1", "2"],
'qscore': [100.0, 50, 20],
'value': list('xxy')})
np.testing.assert_array_equal(true_result.values, result.values)
def test_remove_parent_reverse_parent(self):
#given
remove = pandas.DataFrame(
{'id1': ['a'],
'edgeType':[EdgeType.GENE_REACTION_GENE],
'id2': ["0"],
'qscore': ["a"],
'value': list('x')})
remain = pandas.DataFrame(
{'id1': ['0', 'b', 'c'],
'edgeType': [EdgeType.GENE_GENE, EdgeType.GENE_GENE, EdgeType.GENE_GENE],
'id2': ["a", "1", "2"],
'qscore': [100.0, 50, 20],
'value': list('xxy')})
#when
result = utils.remove_parent_duplicates_and_reverses(remove_set=remove, remain_set=remain)
#then
true_result = pandas.DataFrame(
{'id1': ['b', 'c'],
'edgeType': [EdgeType.GENE_GENE, EdgeType.GENE_GENE],
'id2': ["1", "2"],
'qscore': [50, 20],
'value': list('xy')})
np.testing.assert_array_equal(true_result.values, result.values)
def test_remove_parent_child_and_parent_and_sibling_in_remain(self):
# given
remove = pandas.DataFrame(
{'id1': ['a'],
'edgeType': [EdgeType.GENE_REACTION_GENE],
'id2': ["0"],
'qscore': "100",
'value': list('x')})
remain = pandas.DataFrame(
{'id1': ['a', 'a', 'a'],
'edgeType': [EdgeType.GENE_GENE, EdgeType.GENE_EXPRESSION_GENE, EdgeType.GENE_REACTION_GENE],
'id2': ["0", "0", "0"],
'qscore': [100.0, 50, 20],
'value': list('xxx')})
# when
result = utils.remove_parent_duplicates_and_reverses(remove_set=remove, remain_set=remain)
# then
true_result = pandas.DataFrame(
{'id1': ['a', 'a'],
'edgeType': [EdgeType.GENE_EXPRESSION_GENE, EdgeType.GENE_REACTION_GENE],
'id2': ["0", "0"],
'qscore': [50, 20],
'value': list('xx')})
np.testing.assert_array_equal(true_result.values, result.values)
def test_remove_parent_empty_remove(self):
# given
remove = pandas.DataFrame()
remain = pandas.DataFrame(
{'id1': ['a', 'a', 'a'],
'edgeType': [EdgeType.GENE_GENE, EdgeType.GENE_EXPRESSION_GENE, EdgeType.GENE_REACTION_GENE],
'id2': ["0", "0", "0"],
'qscore': [100.0, 50, 20],
'value': list('xxx')})
# when
result = utils.remove_parent_duplicates_and_reverses(remove_set=remove, remain_set=remain)
# then
true_result = remain.copy()
np.testing.assert_array_equal(true_result.values, result.values)
# ----- remove_reverse_edges -------
def test_remove_reverse_edges(self):
#given
remove = pandas.DataFrame({'id1':[0,1,2,3], 'edgeType': list('xxxx'), 'id2' : list('abcd'), 'value': list('xxxx')})
remain = pandas.DataFrame({'id1':['a','b','c',11], 'edgeType': list('xyxx'), 'id2' : [0, 1,2,13], 'value': list('xxyx')})
#when
result = utils.remove_reverse_edges(remove_set=remove, remain_set=remain)
#then
true_result = pandas.DataFrame({'id1':['b','c',11], 'edgeType': list('yxx'), 'id2' : [ 1,2,13], 'value': list('xyx')}, index=[1,2,3])
np.testing.assert_array_equal(true_result.values, result.values)
def test_remove_reverse_edges_diff_indices(self):
#given
remove = pandas.DataFrame({'id1':[0,1,2,3], 'edgeType': list('xxxx'), 'id2' : list('abcd'), 'value': list('xxxx')})
remove.set_index(pandas.Index(list('asdf')), inplace=True)
remain = pandas.DataFrame({'id1':['a','b','c',11], 'edgeType': list('xyxx'), 'id2' : [0, 1,2,13], 'value': list('xxyx')})
remain.set_index(pandas.Index(list('wert')), inplace=True)
#when
result = utils.remove_reverse_edges(remove_set=remove, remain_set=remain)
#then
true_result = pandas.DataFrame({'id1':['b','c',11], 'edgeType': list('yxx'), 'id2' : [ 1,2,13], 'value': list('xyx')},
index=[1,2,3]).set_index(pandas.Index(list('ert')))
np.testing.assert_array_equal(true_result.values, result.values)
def test_calc_corrupted_triples(self):
self.fail()
def test_get_corrupted_examples(self):
self.fail()
def test_group_corrupted_examples(self):
self.fail()
| 33.515358
| 142
| 0.541039
| 1,138
| 9,820
| 4.439367
| 0.118629
| 0.061362
| 0.085511
| 0.045131
| 0.867379
| 0.787015
| 0.761679
| 0.748416
| 0.740697
| 0.732779
| 0
| 0.026988
| 0.301935
| 9,820
| 293
| 143
| 33.515358
| 0.709993
| 0.043279
| 0
| 0.658031
| 0
| 0
| 0.073249
| 0.002249
| 0
| 0
| 0
| 0
| 0.07772
| 1
| 0.11399
| false
| 0.051813
| 0.031088
| 0
| 0.202073
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
38a6abce8e0a2754c1369a8db802f34df83b8520
| 880,823
|
py
|
Python
|
objTonode/neo_classes.py
|
wkid-neu/Schema
|
4854720a15894dd814691a55e03329ecbbb6f558
|
[
"MIT"
] | 3
|
2021-11-06T12:29:05.000Z
|
2022-03-22T12:48:55.000Z
|
objTonode/neo_classes.py
|
DylanNEU/Schema
|
4854720a15894dd814691a55e03329ecbbb6f558
|
[
"MIT"
] | null | null | null |
objTonode/neo_classes.py
|
DylanNEU/Schema
|
4854720a15894dd814691a55e03329ecbbb6f558
|
[
"MIT"
] | 1
|
2021-11-06T12:29:12.000Z
|
2021-11-06T12:29:12.000Z
|
from django_neomodel import DjangoNode
from neomodel import (config, StructuredNode, Property, StringProperty, IntegerProperty,
UniqueIdProperty, BooleanProperty, DateProperty, DateTimeProperty,
ArrayProperty, JSONProperty, FloatProperty, RelationshipTo, RelationshipFrom)
from objTonode.set_relationship import create_relationship_to,create_relationship_from,create_relationship
config.DATABASE_URL = 'bolt://neo4j:123123@localhost:7687'
class Meta:
app_label = 'objTonode'
class Thing(DjangoNode):
additionalType = create_relationship_to(['Text'], '附加类型')
alternateName = create_relationship_to(['Text'], '别名')
description = create_relationship_to(['Text'], '描述')
disambiguatingDescription = create_relationship_to(['Text'], '消歧描述')
identifier = create_relationship_to(['LocationFeatureSpecification', 'PropertyValue', 'Text'], '标识符')
image = create_relationship_to(['Text', 'Barcode', 'ImageObject'], '图片')
mainEntityOfPage = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork', 'Text'], '页面的核心实体')
name = StringProperty()
class_hierarchy = StringProperty()
monitor_id = IntegerProperty()
app_name = StringProperty()
potentialAction = create_relationship_to(['AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'Action'], '预期的行动')
sameAs = create_relationship_to(['Text'], '等同')
url = create_relationship_to(['Text'], '链接')
class Action(Thing):
actionStatus = create_relationship_to(['ActionStatusType'], '执行操作的状态')
agent = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '行为的发起者')
endTime = create_relationship_to(['Date', 'Text'], '结束时刻')
error = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '错误')
instrument = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '工具')
location = create_relationship_to(['PostalAddress', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text'], '地点')
object = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '行动操作的对象')
participant = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '参与者')
result = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '行动的结果')
startTime = create_relationship_to(['Date', 'Text'], '开始时刻')
target = create_relationship_to(['EntryPoint'], '目标')
class MoveAction(Action):
fromLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '发源地')
toLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '到什么地方')
class TravelAction(MoveAction):
distance = create_relationship_to(['Distance'], '距离')
class DepartAction(MoveAction):
pass
class ArriveAction(MoveAction):
pass
class TransferAction(Action):
fromLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '发源地')
toLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '到什么地方')
class DownloadAction(TransferAction):
pass
class LendAction(TransferAction):
borrower = create_relationship_to(['Person'], '借入者')
class GiveAction(TransferAction):
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class ReceiveAction(TransferAction):
deliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '物流送货方式')
sender = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience', 'Person'], '发送者')
class SendAction(TransferAction):
deliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '物流送货方式')
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class BorrowAction(TransferAction):
lender = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '借出者')
class ReturnAction(TransferAction):
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class TakeAction(TransferAction):
pass
class TradeAction(Action):
price = create_relationship_to(['Integer', 'Text'], '价格')
priceSpecification = create_relationship_to(['UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '价格明细')
class QuoteAction(TradeAction):
pass
class SellAction(TradeAction):
buyer = create_relationship_to(['Person'], '买家')
class PayAction(TradeAction):
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class RentAction(TradeAction):
landlord = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '房东')
realEstateAgent = create_relationship_to(['RealEstateAgent'], '房地产中介')
class DonateAction(TradeAction):
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class OrderAction(TradeAction):
deliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '物流送货方式')
class BuyAction(TradeAction):
seller = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '卖家')
class TipAction(TradeAction):
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class ControlAction(Action):
pass
class ResumeAction(ControlAction):
pass
class DeactivateAction(ControlAction):
pass
class ActivateAction(ControlAction):
pass
class SuspendAction(ControlAction):
pass
class AchieveAction(Action):
pass
class LoseAction(AchieveAction):
winner = create_relationship_to(['Person'], '赢家')
class WinAction(AchieveAction):
loser = create_relationship_to(['Person'], '输家')
class TieAction(AchieveAction):
pass
class OrganizeAction(Action):
pass
class ApplyAction(OrganizeAction):
pass
class PlanAction(OrganizeAction):
scheduledTime = create_relationship_to(['Date', 'Text'], '预约的时间')
class CancelAction(PlanAction):
pass
class ReserveAction(PlanAction):
pass
class ScheduleAction(PlanAction):
pass
class AllocateAction(OrganizeAction):
pass
class AuthorizeAction(AllocateAction):
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class AssignAction(AllocateAction):
pass
class RejectAction(AllocateAction):
pass
class AcceptAction(AllocateAction):
pass
class BookmarkAction(OrganizeAction):
pass
class AssessAction(Action):
pass
class IgnoreAction(AssessAction):
pass
class ChooseAction(AssessAction):
actionOption = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing', 'Text'], '执行操作的选项')
class VoteAction(ChooseAction):
candidate = create_relationship_to(['Person'], '候选人')
class ReactAction(AssessAction):
pass
class LikeAction(ReactAction):
pass
class DisagreeAction(ReactAction):
pass
class EndorseAction(ReactAction):
endorsee = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '背书支持')
class AgreeAction(ReactAction):
pass
class DislikeAction(ReactAction):
pass
class WantAction(ReactAction):
pass
class ReviewAction(AssessAction):
resultReview = create_relationship_to(['ClaimReview', 'Review'], '行动的评论')
class InteractAction(Action):
pass
class BefriendAction(InteractAction):
pass
class RegisterAction(InteractAction):
pass
class SubscribeAction(InteractAction):
pass
class LeaveAction(InteractAction):
event = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '事件')
class UnRegisterAction(InteractAction):
pass
class MarryAction(InteractAction):
pass
class JoinAction(InteractAction):
event = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '事件')
class CommunicateAction(InteractAction):
about = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '关于')
inLanguage = create_relationship_to(['Text', 'Language'], '使用语言')
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
class CheckOutAction(CommunicateAction):
pass
class InviteAction(CommunicateAction):
event = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '事件')
class CommentAction(CommunicateAction):
resultComment = create_relationship_to(['Answer', 'Comment'], '行动的结论')
class ReplyAction(CommunicateAction):
resultComment = create_relationship_to(['Answer', 'Comment'], '行动的结论')
class ShareAction(CommunicateAction):
pass
class InformAction(CommunicateAction):
event = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '事件')
class RsvpAction(InformAction):
additionalNumberOfGuests = create_relationship_to(['Integer'], '其余的客户人数')
comment = create_relationship_to(['Answer', 'Comment'], '评论')
rsvpResponse = create_relationship_to(['RsvpResponseType'], '对请柬的回复')
class ConfirmAction(InformAction):
pass
class AskAction(CommunicateAction):
question = create_relationship_to(['Question'], '问题')
class CheckInAction(CommunicateAction):
pass
class FollowAction(InteractAction):
followee = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '被关注')
class ConsumeAction(Action):
expectsAcceptanceOf = create_relationship_to(['AggregateOffer', 'Offer'], '行动前必须接受的条件')
class ViewAction(ConsumeAction):
pass
class DrinkAction(ConsumeAction):
pass
class ListenAction(ConsumeAction):
pass
class WatchAction(ConsumeAction):
pass
class UseAction(ConsumeAction):
pass
class WearAction(UseAction):
pass
class InstallAction(ConsumeAction):
pass
class ReadAction(ConsumeAction):
pass
class EatAction(ConsumeAction):
pass
class CreateAction(Action):
pass
class DrawAction(CreateAction):
pass
class FilmAction(CreateAction):
pass
class CookAction(CreateAction):
foodEstablishment = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '餐饮场所')
foodEvent = create_relationship_to(['FoodEvent'], '食物事件发生的地点')
recipe = create_relationship_to(['Recipe'], '菜谱')
class PhotographAction(CreateAction):
pass
class PaintAction(CreateAction):
pass
class WriteAction(CreateAction):
inLanguage = create_relationship_to(['Text', 'Language'], '使用语言')
class PlayAction(Action):
audience = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '受众')
event = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '事件')
class ExerciseAction(PlayAction):
distance = create_relationship_to(['Distance'], '距离')
exerciseCourse = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '锻炼场地')
fromLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '发源地')
opponent = create_relationship_to(['Person'], '对手')
sportsActivityLocation = create_relationship_to(['SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'SportsActivityLocation'], '运动场所')
sportsEvent = create_relationship_to(['SportsEvent'], '运动有关的活动')
sportsTeam = create_relationship_to(['SportsTeam'], '参赛队伍')
toLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '到什么地方')
class PerformAction(PlayAction):
entertainmentBusiness = create_relationship_to(['MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'EntertainmentBusiness'], '娱乐业')
class SearchAction(Action):
query = create_relationship_to(['Text'], '查询')
class FindAction(Action):
pass
class TrackAction(FindAction):
deliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '物流送货方式')
class CheckAction(FindAction):
pass
class DiscoverAction(FindAction):
pass
class UpdateAction(Action):
targetCollection = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '行动要达到的目标')
class AddAction(UpdateAction):
pass
class InsertAction(AddAction):
toLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '到什么地方')
class AppendAction(InsertAction):
pass
class PrependAction(InsertAction):
pass
class DeleteAction(UpdateAction):
pass
class ReplaceAction(UpdateAction):
replacee = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '被替代者')
replacer = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '替代者')
class CreativeWork(Thing):
about = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '关于')
accessMode = create_relationship_to(['Text'], '感知形式')
accessModeSufficient = create_relationship_to(['Text'], '全部感知形式')
accessibilityAPI = create_relationship_to(['Text'], '无障碍环境服务API')
accessibilityControl = create_relationship_to(['Text'], '无障碍环境服务控制方法')
accessibilityFeature = create_relationship_to(['Text'], '无障碍环境服务内容特性')
accessibilityHazard = create_relationship_to(['Text'], '无障碍环境服务的连带风险')
accessibilitySummary = create_relationship_to(['Text'], '无障碍环境服务的总结')
accountablePerson = create_relationship_to(['Person'], '负责人')
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
alternativeHeadline = create_relationship_to(['Text'], '副标题')
associatedMedia = create_relationship_to(['MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'MediaObject'], '相关媒体对象')
audience = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '受众')
audio = create_relationship_to(['AudioObject'], '音频')
author = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '作者')
award = create_relationship_to(['Text'], '所获奖项')
character = create_relationship_to(['Person'], '人物角色')
citation = create_relationship_to(['Text', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '引用')
comment = create_relationship_to(['Answer', 'Comment'], '评论')
commentCount = create_relationship_to(['Integer'], '评论总数')
contentLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '所描述的地点')
contentRating = create_relationship_to(['AggregateRating', 'Rating', 'Text'], '内容的评级')
contributor = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '贡献者')
copyrightHolder = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '版权所有者')
copyrightYear = create_relationship_to(['Integer'], '版权年份')
creator = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '作者')
dateCreated = create_relationship_to(['Date', 'Text'], '创建日期')
dateModified = create_relationship_to(['Date', 'Text'], '更新日期')
datePublished = create_relationship_to(['Date', 'Text'], '首发日期')
discussionUrl = create_relationship_to(['Text'], '讨论URL')
editor = create_relationship_to(['Person'], '编辑者')
educationalAlignment = create_relationship_to(['AlignmentObject'], '对应的教学达标要求')
educationalUse = create_relationship_to(['Text'], '教育用途')
encoding = create_relationship_to(['MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'MediaObject'], '编码')
encodingFormat = create_relationship_to(['Text'], '编码格式')
exampleOfWork = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '范例作品')
expires = create_relationship_to(['Date', 'Text'], '过期日期')
funder = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '投资者')
genre = create_relationship_to(['Text'], '风格')
hasPart = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '作品组件')
headline = create_relationship_to(['Text'], '文章标题')
inLanguage = create_relationship_to(['Text', 'Language'], '使用语言')
interactionStatistic = create_relationship_to(['InteractionCounter'], '交互统计')
interactivityType = create_relationship_to(['Text'], '交互类型')
isAccessibleForFree = create_relationship_to(['Bool'], '是否免费')
isBasedOn = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'Text'], '上游资源URL')
isFamilyFriendly = create_relationship_to(['Bool'], '是否适合全家观看')
isPartOf = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '从属于')
keywords = create_relationship_to(['Text'], '关键词')
learningResourceType = create_relationship_to(['Text'], '学习资料类型')
license = create_relationship_to(['Text', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '许可证书')
locationCreated = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '创建地点')
mainEntity = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '核心实体')
material = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'Text'], '材质')
mentions = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '提到的实体')
offers = create_relationship_to(['AggregateOffer', 'Offer'], '报价')
position = create_relationship_to(['Text', 'Integer'], '位置')
producer = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作人')
provider = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '提供方')
publication = create_relationship_to(['BroadcastEvent', 'OnDemandEvent', 'PublicationEvent'], '发布活动')
publisher = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '出版商')
publishingPrinciples = create_relationship_to(['Text', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '出版准则')
recordedAt = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '对应的活动')
releasedEvent = create_relationship_to(['BroadcastEvent', 'OnDemandEvent', 'PublicationEvent'], '发布活动')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
schemaVersion = create_relationship_to(['Text'], 'schema的版本号')
sourceOrganization = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '作者所属机构')
spatialCoverage = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '数据集对应的地区')
sponsor = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '赞助者')
temporalCoverage = create_relationship_to(['Text', 'Date'], '数据集的时间跨度')
text = create_relationship_to(['Text'], '文本')
thumbnailUrl = create_relationship_to(['Text'], '缩略图链接')
timeRequired = create_relationship_to(['Duration'], '所需时间')
translator = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '翻译者')
typicalAgeRange = create_relationship_to(['Text'], '适应年龄段')
version = create_relationship_to(['Text', 'Integer'], '版本')
video = create_relationship_to(['VideoObject'], '视频')
workExample = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '作品的范例')
class Photograph(CreativeWork):
pass
class Dataset(CreativeWork):
distribution = create_relationship_to(['DataDownload'], '数据集的下载版本')
includedInDataCatalog = create_relationship_to(['DataCatalog'], '所在数据集目录')
issn = create_relationship_to(['Text'], 'ISSN号')
class DataFeed(Dataset):
dataFeedElement = create_relationship_to(['Text', 'DataFeedItem', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '数据源的一条记录')
class Painting(CreativeWork):
pass
class Course(CreativeWork):
courseCode = create_relationship_to(['Text'], '课程的代码')
coursePrerequisites = create_relationship_to(['Text', 'AlignmentObject', 'Course'], '课程必需的预备知识')
hasCourseInstance = create_relationship_to(['CourseInstance'], '课程实例')
class HowTo(CreativeWork):
estimatedCost = create_relationship_to(['MonetaryAmount', 'Text'], '相关物料的估价')
performTime = create_relationship_to(['Duration'], '执行时间')
prepTime = create_relationship_to(['Duration'], '准备时间')
step = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork', 'Text'], '相关操作步骤')
supply = create_relationship_to(['Text', 'HowToSupply'], '相关物料')
tool = create_relationship_to(['HowToTool', 'Text'], '相关工具')
totalTime = create_relationship_to(['Duration'], '总时间')
yielded = create_relationship_to([], '相关产出')
class Recipe(HowTo):
cookTime = create_relationship_to(['Duration'], '烹饪时间')
cookingMethod = create_relationship_to(['Text'], '烹饪方法')
nutrition = create_relationship_to(['NutritionInformation'], '营养成分')
recipeCategory = create_relationship_to(['Text'], '菜谱分类')
recipeCuisine = create_relationship_to(['Text'], '菜谱的菜系')
recipeIngredient = create_relationship_to(['Text'], '菜谱的食材')
recipeInstructions = create_relationship_to(['OfferCatalog', 'BreadcrumbList', 'HowToSection', 'HowToStep', 'ItemList', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToTip', 'CreativeWork', 'Text'], '菜谱的做法')
recipeYield = create_relationship_to(['QuantitativeValue', 'Text'], '菜谱的产出')
suitableForDiet = create_relationship_to(['RestrictedDiet'], '适用的饮食')
class VisualArtwork(CreativeWork):
artEdition = create_relationship_to(['Text', 'Integer'], '拷贝(副本)数量')
artMedium = create_relationship_to(['Text'], '艺术材料')
artform = create_relationship_to(['Text'], '艺术形式')
artworkSurface = create_relationship_to(['Text'], '艺术作品材质')
depth = create_relationship_to(['QuantitativeValue', 'Distance'], '深度')
height = create_relationship_to(['Distance', 'QuantitativeValue'], '高度')
width = create_relationship_to(['Distance', 'QuantitativeValue'], '宽度')
class Game(CreativeWork):
characterAttribute = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '人物角色属性')
gameItem = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '游戏道具')
gameLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text', 'PostalAddress'], '游戏地址')
numberOfPlayers = create_relationship_to(['QuantitativeValue'], '玩家数')
quest = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '游戏任务')
class Season(CreativeWork):
pass
class PublicationVolume(CreativeWork):
pageEnd = create_relationship_to(['Integer', 'Text'], '结束页码')
pageStart = create_relationship_to(['Text', 'Integer'], '开始页码')
pagination = create_relationship_to(['Text'], '起止页码')
volumeNumber = create_relationship_to(['Text', 'Integer'], '期刊的卷号')
class MusicRecording(CreativeWork):
byArtist = create_relationship_to(['MusicGroup'], '艺人')
duration = create_relationship_to(['Duration'], '持续时间')
inAlbum = create_relationship_to(['MusicAlbum'], '所属专辑')
inPlaylist = create_relationship_to(['MusicRelease', 'MusicAlbum', 'MusicPlaylist'], '所属播放列表')
isrcCode = create_relationship_to(['Text'], '国际标准音像制品代码')
recordingOf = create_relationship_to(['MusicComposition'], '对应的音乐作品')
class PublicationIssue(CreativeWork):
issueNumber = create_relationship_to(['Text', 'Integer'], '期刊号')
pageEnd = create_relationship_to(['Integer', 'Text'], '结束页码')
pageStart = create_relationship_to(['Text', 'Integer'], '开始页码')
pagination = create_relationship_to(['Text'], '起止页码')
class Article(CreativeWork):
articleBody = create_relationship_to(['Text'], '文章正文')
articleSection = create_relationship_to(['Text'], '文章所在栏目')
pageEnd = create_relationship_to(['Integer', 'Text'], '结束页码')
pageStart = create_relationship_to(['Text', 'Integer'], '开始页码')
pagination = create_relationship_to(['Text'], '起止页码')
wordCount = create_relationship_to(['Integer'], '字数')
class Report(Article):
reportNumber = create_relationship_to(['Text'], '报告编号')
class TechArticle(Article):
dependencies = create_relationship_to(['Text'], '依赖的先决条件')
proficiencyLevel = create_relationship_to(['Text'], '熟练度水平')
class APIReference(TechArticle):
assemblyVersion = create_relationship_to(['Text'], '程序库版本')
executableLibraryName = create_relationship_to(['Text'], '可执行链接库名称')
programmingModel = create_relationship_to(['Text'], '是否托管代码')
targetPlatform = create_relationship_to(['Text'], '软件应用的目标硬件平台')
class SocialMediaPosting(Article):
sharedContent = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '分享的内容')
class DiscussionForumPosting(SocialMediaPosting):
pass
class BlogPosting(SocialMediaPosting):
pass
class LiveBlogPosting(BlogPosting):
coverageEndTime = create_relationship_to(['Date', 'Text'], '博客直播结束时间')
coverageStartTime = create_relationship_to(['Date', 'Text'], '博客直播开始时间')
liveBlogUpdate = create_relationship_to(['LiveBlogPosting', 'BlogPosting'], '博客直播的一条更新')
class ScholarlyArticle(Article):
pass
class NewsArticle(Article):
dateline = create_relationship_to(['Text'], '发稿地点')
printColumn = create_relationship_to(['Text'], '印刷品所在列数')
printEdition = create_relationship_to(['Text'], '印刷品版本')
printPage = create_relationship_to(['Text'], '印刷品所在页面')
printSection = create_relationship_to(['Text'], '印刷品所在栏目')
class WebPageElement(CreativeWork):
pass
class WPFooter(WebPageElement):
pass
class SiteNavigationElement(WebPageElement):
pass
class WPAdBlock(WebPageElement):
pass
class WPSideBar(WebPageElement):
pass
class WPHeader(WebPageElement):
pass
class Table(WebPageElement):
pass
class MenuSection(CreativeWork):
hasMenuItem = create_relationship_to(['MenuItem'], '菜单')
hasMenuSection = create_relationship_to(['MenuSection'], '菜单子目录')
class WebSite(CreativeWork):
issn = create_relationship_to(['Text'], 'ISSN号')
class Movie(CreativeWork):
actor = create_relationship_to(['Person'], '演员')
countryOfOrigin = create_relationship_to(['Country'], '影片制作国家')
director = create_relationship_to(['Person'], '导演')
duration = create_relationship_to(['Duration'], '持续时间')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
subtitleLanguage = create_relationship_to(['Text', 'Language'], '字幕语言')
trailer = create_relationship_to(['VideoObject'], '预告片')
class SoftwareApplication(CreativeWork):
applicationCategory = create_relationship_to(['Text'], '软件应用的分类')
applicationSubCategory = create_relationship_to(['Text'], '软件应用的子分类')
applicationSuite = create_relationship_to(['Text'], '软件应用套装')
availableOnDevice = create_relationship_to(['Text'], '支持的设备')
countriesNotSupported = create_relationship_to(['Text'], '不支持的国家')
countriesSupported = create_relationship_to(['Text'], '支持的国家')
downloadUrl = create_relationship_to(['Text'], '下载链接')
featureList = create_relationship_to(['Text'], '功能列表')
fileSize = create_relationship_to(['Text'], '文件大小')
installUrl = create_relationship_to(['Text'], 'APP安装地址')
memoryRequirements = create_relationship_to(['Text'], '最低内存要求')
operatingSystem = create_relationship_to(['Text'], '操作系统')
permissions = create_relationship_to(['Text'], '权限')
processorRequirements = create_relationship_to(['Text'], '处理器要求')
releaseNotes = create_relationship_to(['Text'], '发布说明')
screenshot = create_relationship_to(['Text', 'Barcode', 'ImageObject'], '截图')
softwareAddOn = create_relationship_to(['VideoGame', 'WebApplication', 'MobileApplication', 'SoftwareApplication'], '软件的插件')
softwareHelp = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '软件的帮助文档')
softwareRequirements = create_relationship_to(['Text'], '软件的运行要求')
softwareVersion = create_relationship_to(['Text'], '软件的版本')
storageRequirements = create_relationship_to(['Text'], '所需磁盘空间')
supportingData = create_relationship_to(['DataFeed'], '软件应用所需的数据')
class MobileApplication(SoftwareApplication):
carrierRequirements = create_relationship_to(['Text'], '运营商要求')
class WebApplication(SoftwareApplication):
browserRequirements = create_relationship_to(['Text'], '浏览器要求')
class Code(CreativeWork):
pass
class Sculpture(CreativeWork):
pass
class Map(CreativeWork):
mapType = create_relationship_to(['MapCategoryType'], '地图类型')
class Comment(CreativeWork):
downvoteCount = create_relationship_to(['Integer'], '反对总数')
parentItem = create_relationship_to(['Question'], '上级条目')
upvoteCount = create_relationship_to(['Integer'], '支持总数')
class Answer(Comment):
pass
class MusicComposition(CreativeWork):
composer = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '作曲者')
firstPerformance = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '首演')
includedComposition = create_relationship_to(['MusicComposition'], '包含乐曲')
iswcCode = create_relationship_to(['Text'], '国际标准音乐作品编码')
lyricist = create_relationship_to(['Person'], '作词者')
lyrics = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '歌词')
musicArrangement = create_relationship_to(['MusicComposition'], '改编曲')
musicCompositionForm = create_relationship_to(['Text'], '乐曲形式')
musicalKey = create_relationship_to(['Text'], '音乐的调')
recordedAs = create_relationship_to(['MusicRecording'], '录音')
class WebPage(CreativeWork):
breadcrumb = create_relationship_to(['BreadcrumbList', 'Text'], '面包屑')
lastReviewed = create_relationship_to(['Date', 'Text'], '最近审查时间')
mainContentOfPage = create_relationship_to(['WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebPageElement'], '是否网页主题')
primaryImageOfPage = create_relationship_to(['Barcode', 'ImageObject'], '页面里的主要图片')
relatedLink = create_relationship_to(['Text'], '相关链接')
reviewedBy = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '评论者')
significantLink = create_relationship_to(['Text'], '主要对外链接')
specialty = create_relationship_to(['Specialty'], '特长')
class AboutPage(WebPage):
pass
class QAPage(WebPage):
pass
class CheckoutPage(WebPage):
pass
class ProfilePage(WebPage):
pass
class SearchResultsPage(WebPage):
pass
class ContactPage(WebPage):
pass
class CollectionPage(WebPage):
pass
class VideoGallery(CollectionPage):
pass
class ImageGallery(CollectionPage):
pass
class ItemPage(WebPage):
pass
class Conversation(CreativeWork):
pass
class Message(CreativeWork):
bccRecipient = create_relationship_to(['PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '密送')
ccRecipient = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'PostalAddress', 'ContactPoint'], '抄送')
dateRead = create_relationship_to(['Date', 'Text'], '阅读日期')
dateReceived = create_relationship_to(['Date', 'Text'], '接收日期')
dateSent = create_relationship_to(['Date', 'Text'], '发送日期')
messageAttachment = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '消息附件')
recipient = create_relationship_to(['Person', 'PostalAddress', 'ContactPoint', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '接收者')
sender = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience', 'Person'], '发送者')
toRecipient = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person', 'PostalAddress', 'ContactPoint', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '收件人')
class EmailMessage(Message):
pass
class Book(CreativeWork):
bookEdition = create_relationship_to(['Text'], '书籍版本')
bookFormat = create_relationship_to(['BookFormatType'], '书籍格式')
illustrator = create_relationship_to(['Person'], '插图绘制者')
isbn = create_relationship_to(['Text'], 'ISBN码')
numberOfPages = create_relationship_to(['Integer'], '总页数')
class Menu(CreativeWork):
hasMenuItem = create_relationship_to(['MenuItem'], '菜单')
hasMenuSection = create_relationship_to(['MenuSection'], '菜单子目录')
class Question(CreativeWork):
acceptedAnswer = create_relationship_to(['OfferCatalog', 'BreadcrumbList', 'HowToSection', 'HowToStep', 'ItemList', 'Answer'], '被采纳的答案')
answerCount = create_relationship_to(['Integer'], '回答的总数')
downvoteCount = create_relationship_to(['Integer'], '反对总数')
suggestedAnswer = create_relationship_to(['OfferCatalog', 'BreadcrumbList', 'HowToSection', 'HowToStep', 'ItemList', 'Answer'], '建议的答案')
upvoteCount = create_relationship_to(['Integer'], '支持总数')
class Blog(CreativeWork):
blogPost = create_relationship_to(['LiveBlogPosting', 'BlogPosting'], '博客文章')
issn = create_relationship_to(['Text'], 'ISSN号')
class Episode(CreativeWork):
actor = create_relationship_to(['Person'], '演员')
director = create_relationship_to(['Person'], '导演')
episodeNumber = create_relationship_to(['Text', 'Integer'], '剧集编号')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
partOfSeason = create_relationship_to(['RadioSeason', 'TVSeason', 'CreativeWorkSeason'], '所属季')
partOfSeries = create_relationship_to(['MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'CreativeWorkSeries'], '所属系列')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
trailer = create_relationship_to(['VideoObject'], '预告片')
class TVEpisode(Episode):
countryOfOrigin = create_relationship_to(['Country'], '影片制作国家')
subtitleLanguage = create_relationship_to(['Text', 'Language'], '字幕语言')
class RadioEpisode(Episode):
pass
class Review(CreativeWork):
itemReviewed = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '评价物品')
reviewBody = create_relationship_to(['Text'], '评论的正文')
reviewRating = create_relationship_to(['AggregateRating', 'Rating'], '评论的打分')
class ClaimReview(Review):
claimReviewed = create_relationship_to(['Text'], '被评价的声明')
class SoftwareSourceCode(CreativeWork):
codeRepository = create_relationship_to(['Text'], '代码库')
codeSampleType = create_relationship_to(['Text'], '代码示例的类型')
programmingLanguage = create_relationship_to(['ComputerLanguage', 'Text'], '编程语言')
runtimePlatform = create_relationship_to(['Text'], '运行平台')
targetProduct = create_relationship_to(['VideoGame', 'WebApplication', 'MobileApplication', 'SoftwareApplication'], '软件应用的目标操作系统')
class Clip(CreativeWork):
actor = create_relationship_to(['Person'], '演员')
clipNumber = create_relationship_to(['Integer', 'Text'], '片段编号')
director = create_relationship_to(['Person'], '导演')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
partOfEpisode = create_relationship_to(['RadioEpisode', 'TVEpisode', 'Episode'], '所属剧集')
partOfSeason = create_relationship_to(['RadioSeason', 'TVSeason', 'CreativeWorkSeason'], '所属季')
partOfSeries = create_relationship_to(['MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'CreativeWorkSeries'], '所属系列')
class VideoGameClip(Clip):
pass
class RadioClip(Clip):
pass
class TVClip(Clip):
pass
class MovieClip(Clip):
pass
class DigitalDocument(CreativeWork):
hasDigitalDocumentPermission = create_relationship_to(['DigitalDocumentPermission'], '数字文档访问权限')
class TextDigitalDocument(DigitalDocument):
pass
class PresentationDigitalDocument(DigitalDocument):
pass
class SpreadsheetDigitalDocument(DigitalDocument):
pass
class NoteDigitalDocument(DigitalDocument):
pass
class DataCatalog(CreativeWork):
dataset = create_relationship_to(['DataFeed', 'Dataset'], '数据集')
class MusicPlaylist(CreativeWork):
numTracks = create_relationship_to(['Integer'], '音轨数')
track = create_relationship_to(['MusicRecording', 'OfferCatalog', 'BreadcrumbList', 'HowToSection', 'HowToStep', 'ItemList'], '音轨')
class MusicAlbum(MusicPlaylist):
albumProductionType = create_relationship_to(['MusicAlbumProductionType'], '专辑制作类型')
albumRelease = create_relationship_to(['MusicRelease'], '专辑发行版本')
albumReleaseType = create_relationship_to(['MusicAlbumReleaseType'], '专辑发行类型')
byArtist = create_relationship_to(['MusicGroup'], '艺人')
class MusicRelease(MusicPlaylist):
catalogNumber = create_relationship_to(['Text'], '目录中的编号')
creditedTo = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '贡献者')
duration = create_relationship_to(['Duration'], '持续时间')
musicReleaseFormat = create_relationship_to(['MusicReleaseFormatType'], '音乐发行格式')
recordLabel = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '唱片公司')
releaseOf = create_relationship_to(['MusicAlbum'], '对应的专辑')
class MediaObject(CreativeWork):
associatedArticle = create_relationship_to(['NewsArticle'], '相关文章')
bitrate = create_relationship_to(['Text'], '比特率')
contentSize = create_relationship_to(['Text'], '内容的文件大小')
contentUrl = create_relationship_to(['Text'], '内容的访问链接')
duration = create_relationship_to(['Duration'], '持续时间')
embedUrl = create_relationship_to(['Text'], '嵌入URL')
encodesCreativeWork = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '对应的作品')
encodingFormat = create_relationship_to(['Text'], '编码格式')
height = create_relationship_to(['Distance', 'QuantitativeValue'], '高度')
playerType = create_relationship_to(['Text'], '播放器类型')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
regionsAllowed = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '允许播放的地区')
requiresSubscription = create_relationship_to(['Bool'], '是否需要订阅')
uploadDate = create_relationship_to(['Date', 'Text'], '上传日期')
width = create_relationship_to(['Distance', 'QuantitativeValue'], '宽度')
class AudioObject(MediaObject):
transcript = create_relationship_to(['Text'], '文字记录')
class ImageObject(MediaObject):
caption = create_relationship_to(['Text'], '标题')
exifData = create_relationship_to(['Text', 'LocationFeatureSpecification', 'PropertyValue'], '图片对象的EXIF信息')
representativeOfPage = create_relationship_to(['Bool'], '作为主题图所对应的页面')
thumbnail = create_relationship_to(['Barcode', 'ImageObject'], '缩略图')
class Barcode(ImageObject):
pass
class MusicVideoObject(MediaObject):
pass
class VideoObject(MediaObject):
actor = create_relationship_to(['Person'], '演员')
caption = create_relationship_to(['Text'], '标题')
director = create_relationship_to(['Person'], '导演')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
thumbnail = create_relationship_to(['Barcode', 'ImageObject'], '缩略图')
transcript = create_relationship_to(['Text'], '文字记录')
videoFrameSize = create_relationship_to(['Text'], '视频画面尺寸')
videoQuality = create_relationship_to(['Text'], '视频画质')
class DataDownload(MediaObject):
pass
class CreativeWorkSeason(CreativeWork):
actor = create_relationship_to(['Person'], '演员')
director = create_relationship_to(['Person'], '导演')
endDate = create_relationship_to(['Date', 'Text'], '结束日期')
episode = create_relationship_to(['RadioEpisode', 'TVEpisode', 'Episode'], '剧集')
numberOfEpisodes = create_relationship_to(['Integer'], '剧集数')
partOfSeries = create_relationship_to(['MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'CreativeWorkSeries'], '所属系列')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
seasonNumber = create_relationship_to(['Text', 'Integer'], '季的编号')
startDate = create_relationship_to(['Date', 'Text'], '开始日期')
trailer = create_relationship_to(['VideoObject'], '预告片')
class RadioSeason(CreativeWorkSeason):
pass
class Person(Thing):
additionalName = create_relationship_to(['Text'], '附加名称')
address = create_relationship_to(['PostalAddress', 'Text'], '地址')
affiliation = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '所属机构')
alumniOf = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '毕业于')
award = create_relationship_to(['Text'], '所获奖项')
birthDate = create_relationship_to(['Date', 'Text'], '出生日期')
birthPlace = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '出生地点')
brand = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Brand'], '品牌')
children = create_relationship_to(['Person'], '子女')
colleague = create_relationship_to(['Person', 'Text'], '同事')
contactPoint = create_relationship_to(['PostalAddress', 'ContactPoint'], '联络点')
deathDate = create_relationship_to(['Date', 'Text'], '逝世日期')
deathPlace = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '逝世地点')
duns = create_relationship_to(['Text'], '邓白氏编码')
email = create_relationship_to(['Text'], '电子邮件')
familyName = create_relationship_to(['Text'], '姓')
faxNumber = create_relationship_to(['Text'], '传真号')
follows = create_relationship_to(['Person'], '关注')
funder = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '投资者')
gender = create_relationship_to(['GenderType', 'Text'], '性别')
givenName = create_relationship_to(['Text'], '名')
globalLocationNumber = create_relationship_to(['Text'], '全球位置码')
hasOfferCatalog = create_relationship_to(['OfferCatalog'], '清单')
hasPOS = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '销售点')
height = create_relationship_to(['Distance', 'QuantitativeValue'], '高度')
homeLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'PostalAddress', 'ContactPoint'], '家庭地址')
honorificPrefix = create_relationship_to(['Text'], '姓名前面的敬语')
honorificSuffix = create_relationship_to(['Text'], '姓名后面的敬语')
isicV4 = create_relationship_to(['Text'], '国际标准行业分类')
jobTitle = create_relationship_to(['Text'], '工作头衔')
knows = create_relationship_to(['Person'], '认识')
makesOffer = create_relationship_to(['AggregateOffer', 'Offer'], '提供的产品或服务')
memberOf = create_relationship_to(['ProgramMembership', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '会员所属的机构')
naics = create_relationship_to(['Text'], '北美行业分类系统')
nationality = create_relationship_to(['Country'], '国籍')
netWorth = create_relationship_to(['MonetaryAmount', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '净资产')
owns = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'OwnershipInfo'], '拥有')
parent = create_relationship_to(['Person'], '父亲或母亲')
performerIn = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '表演活动')
publishingPrinciples = create_relationship_to(['Text', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '出版准则')
relatedTo = create_relationship_to(['Person'], '亲属')
seeks = create_relationship_to(['Demand'], '用户需求')
sibling = create_relationship_to(['Person'], '兄弟姐妹')
sponsor = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '赞助者')
spouse = create_relationship_to(['Person'], '配偶')
taxID = create_relationship_to(['Text'], '纳税识别号码')
telephone = create_relationship_to(['Text'], '电话号码')
vatID = create_relationship_to(['Text'], '欧盟税号')
weight = create_relationship_to(['QuantitativeValue'], '重量')
workLocation = create_relationship_to(['PostalAddress', 'ContactPoint', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '工作地点')
worksFor = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '受雇于')
class Organization(Thing):
address = create_relationship_to(['PostalAddress', 'Text'], '地址')
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
alumni = create_relationship_to(['Person'], '校友')
areaServed = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea', 'Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '服务覆盖区域')
award = create_relationship_to(['Text'], '所获奖项')
brand = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Brand'], '品牌')
contactPoint = create_relationship_to(['PostalAddress', 'ContactPoint'], '联络点')
department = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '部门')
dissolutionDate = create_relationship_to(['Date', 'Text'], '解散日期')
duns = create_relationship_to(['Text'], '邓白氏编码')
email = create_relationship_to(['Text'], '电子邮件')
employee = create_relationship_to(['Person'], '雇员')
event = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '事件')
faxNumber = create_relationship_to(['Text'], '传真号')
founder = create_relationship_to(['Person'], '创始人')
foundingDate = create_relationship_to(['Date', 'Text'], '成立日期')
foundingLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '成立地点')
funder = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '投资者')
globalLocationNumber = create_relationship_to(['Text'], '全球位置码')
hasOfferCatalog = create_relationship_to(['OfferCatalog'], '清单')
hasPOS = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '销售点')
isicV4 = create_relationship_to(['Text'], '国际标准行业分类')
legalName = create_relationship_to(['Text'], '官方名称')
leiCode = create_relationship_to(['Text'], '全球法人机构识别编码')
location = create_relationship_to(['PostalAddress', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text'], '地点')
logo = create_relationship_to(['Text', 'Barcode', 'ImageObject'], '商标')
makesOffer = create_relationship_to(['AggregateOffer', 'Offer'], '提供的产品或服务')
member = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '会员')
memberOf = create_relationship_to(['ProgramMembership', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '会员所属的机构')
naics = create_relationship_to(['Text'], '北美行业分类系统')
numberOfEmployees = create_relationship_to(['QuantitativeValue'], '雇员数')
owns = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'OwnershipInfo'], '拥有')
parentOrganization = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '上级组织')
publishingPrinciples = create_relationship_to(['Text', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '出版准则')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
seeks = create_relationship_to(['Demand'], '用户需求')
sponsor = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '赞助者')
subOrganization = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '子机构')
taxID = create_relationship_to(['Text'], '纳税识别号码')
telephone = create_relationship_to(['Text'], '电话号码')
vatID = create_relationship_to(['Text'], '欧盟税号')
class SportsOrganization(Organization):
sport = create_relationship_to(['Text'], '运动')
class SportsTeam(SportsOrganization):
athlete = create_relationship_to(['Person'], '运动员')
coach = create_relationship_to(['Person'], '教练')
class EducationalOrganization(Organization):
alumni = create_relationship_to(['Person'], '校友')
class HighSchool(EducationalOrganization):
pass
class School(EducationalOrganization):
pass
class ElementarySchool(EducationalOrganization):
pass
class CollegeOrUniversity(EducationalOrganization):
pass
class Preschool(EducationalOrganization):
pass
class MiddleSchool(EducationalOrganization):
pass
class Airline(Organization):
boardingPolicy = create_relationship_to(['BoardingPolicyType'], '登机政策')
iataCode = create_relationship_to(['Text'], '国际航空运输协会代码')
class PerformingGroup(Organization):
pass
class DanceGroup(PerformingGroup):
pass
class MusicGroup(PerformingGroup):
album = create_relationship_to(['MusicAlbum'], '专辑')
genre = create_relationship_to(['Text'], '风格')
track = create_relationship_to(['MusicRecording', 'OfferCatalog', 'BreadcrumbList', 'HowToSection', 'HowToStep', 'ItemList'], '音轨')
class TheaterGroup(PerformingGroup):
pass
class Corporation(Organization):
tickerSymbol = create_relationship_to(['Text'], '股票代号')
class MedicalOrganization(Organization):
pass
class Pharmacy(MedicalOrganization):
pass
class Physician(MedicalOrganization):
pass
class GovernmentOrganization(Organization):
pass
class NGO(Organization):
pass
class Place(Thing):
additionalProperty = create_relationship_to(['LocationFeatureSpecification', 'PropertyValue'], '附加属性')
address = create_relationship_to(['PostalAddress', 'Text'], '地址')
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
amenityFeature = create_relationship_to(['LocationFeatureSpecification'], '特色服务')
branchCode = create_relationship_to(['Text'], '分支编码')
containedInPlace = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '包含在')
containsPlace = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '包含')
event = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '事件')
faxNumber = create_relationship_to(['Text'], '传真号')
geo = create_relationship_to(['GeoCoordinates', 'GeoCircle', 'GeoShape'], '经纬度')
globalLocationNumber = create_relationship_to(['Text'], '全球位置码')
hasMap = create_relationship_to(['Text', 'Map'], '地图URL')
isAccessibleForFree = create_relationship_to(['Bool'], '是否免费')
isicV4 = create_relationship_to(['Text'], '国际标准行业分类')
logo = create_relationship_to(['Text', 'Barcode', 'ImageObject'], '商标')
maximumAttendeeCapacity = create_relationship_to(['Integer'], '最多可容纳多少人参与')
openingHoursSpecification = create_relationship_to(['OpeningHoursSpecification'], '开放时间详情')
photo = create_relationship_to(['Barcode', 'ImageObject', 'Photograph'], '照片')
publicAccess = create_relationship_to(['Bool'], '是否对公众开放')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
smokingAllowed = create_relationship_to(['Bool'], '是否允许吸烟')
specialOpeningHoursSpecification = create_relationship_to(['OpeningHoursSpecification'], '特殊开放时间详情')
telephone = create_relationship_to(['Text'], '电话号码')
class Accommodation(Place):
amenityFeature = create_relationship_to(['LocationFeatureSpecification'], '特色服务')
floorSize = create_relationship_to(['QuantitativeValue'], '建筑面积')
numberOfRooms = create_relationship_to(['QuantitativeValue', 'Integer'], '房间数')
permittedUsage = create_relationship_to(['Text'], '允许的用途')
petsAllowed = create_relationship_to(['Text', 'Bool'], '是否允许带宠物')
class Suite(Accommodation):
bed = create_relationship_to(['Text', 'BedDetails'], '床位信息')
numberOfRooms = create_relationship_to(['QuantitativeValue', 'Integer'], '房间数')
occupancy = create_relationship_to(['QuantitativeValue'], '最大入住人数')
class Room(Accommodation):
pass
class HotelRoom(Room):
bed = create_relationship_to(['Text', 'BedDetails'], '床位信息')
occupancy = create_relationship_to(['QuantitativeValue'], '最大入住人数')
class MeetingRoom(Room):
pass
class House(Accommodation):
numberOfRooms = create_relationship_to(['QuantitativeValue', 'Integer'], '房间数')
class SingleFamilyResidence(House):
numberOfRooms = create_relationship_to(['QuantitativeValue', 'Integer'], '房间数')
occupancy = create_relationship_to(['QuantitativeValue'], '最大入住人数')
class Apartment(Accommodation):
numberOfRooms = create_relationship_to(['QuantitativeValue', 'Integer'], '房间数')
occupancy = create_relationship_to(['QuantitativeValue'], '最大入住人数')
class CampingPitch(Accommodation):
pass
class LandmarksOrHistoricalBuildings(Place):
pass
class TouristAttraction(Place):
availableLanguage = create_relationship_to(['Language', 'Text'], '支持的语言')
touristType = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience', 'Text'], '适宜的游客类型')
class CivicStructure(Place):
openingHours = create_relationship_to(['Text'], '开放时间')
class EventVenue(CivicStructure):
pass
class Museum(CivicStructure):
pass
class Zoo(CivicStructure):
pass
class PlaceOfWorship(CivicStructure):
pass
class Synagogue(PlaceOfWorship):
pass
class HinduTemple(PlaceOfWorship):
pass
class Church(PlaceOfWorship):
pass
class BuddhistTemple(PlaceOfWorship):
pass
class Mosque(PlaceOfWorship):
pass
class CatholicChurch(PlaceOfWorship):
pass
class Crematorium(CivicStructure):
pass
class Playground(CivicStructure):
pass
class ParkingFacility(CivicStructure):
pass
class Aquarium(CivicStructure):
pass
class Bridge(CivicStructure):
pass
class TrainStation(CivicStructure):
pass
class Beach(CivicStructure):
pass
class Park(CivicStructure):
pass
class GovernmentBuilding(CivicStructure):
pass
class Embassy(GovernmentBuilding):
pass
class DefenceEstablishment(GovernmentBuilding):
pass
class LegislativeBuilding(GovernmentBuilding):
pass
class CityHall(GovernmentBuilding):
pass
class Courthouse(GovernmentBuilding):
pass
class PerformingArtsTheater(CivicStructure):
pass
class TaxiStand(CivicStructure):
pass
class MusicVenue(CivicStructure):
pass
class BusStop(CivicStructure):
pass
class SubwayStation(CivicStructure):
pass
class RVPark(CivicStructure):
pass
class Cemetery(CivicStructure):
pass
class Airport(CivicStructure):
iataCode = create_relationship_to(['Text'], '国际航空运输协会代码')
icaoCode = create_relationship_to(['Text'], '国际民航组织机场代码')
class BusStation(CivicStructure):
pass
class Residence(Place):
pass
class ApartmentComplex(Residence):
pass
class GatedResidenceCommunity(Residence):
pass
class Landform(Place):
pass
class Volcano(Landform):
pass
class Continent(Landform):
pass
class Mountain(Landform):
pass
class BodyOfWater(Landform):
pass
class SeaBodyOfWater(BodyOfWater):
pass
class Reservoir(BodyOfWater):
pass
class RiverBodyOfWater(BodyOfWater):
pass
class Waterfall(BodyOfWater):
pass
class LakeBodyOfWater(BodyOfWater):
pass
class OceanBodyOfWater(BodyOfWater):
pass
class Canal(BodyOfWater):
pass
class Pond(BodyOfWater):
pass
class AdministrativeArea(Place):
pass
class Country(AdministrativeArea):
pass
class State(AdministrativeArea):
pass
class City(AdministrativeArea):
pass
class Intangible(Thing):
pass
class Demand(Intangible):
acceptedPaymentMethod = create_relationship_to(['PaymentCard', 'CreditCard', 'PaymentMethod', 'LoanOrCredit'], '卖家接受的支付方式')
advanceBookingRequirement = create_relationship_to(['QuantitativeValue'], '预定要求')
areaServed = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea', 'Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '服务覆盖区域')
availability = create_relationship_to(['ItemAvailability'], '供应状态')
availabilityEnds = create_relationship_to(['Date', 'Text'], '供应截止时间')
availabilityStarts = create_relationship_to(['Date', 'Text'], '供应开始时间')
availableAtOrFrom = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '报价地点')
availableDeliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '支持的物流方式')
businessFunction = create_relationship_to(['BusinessFunction'], '商业职能')
deliveryLeadTime = create_relationship_to(['QuantitativeValue'], '物流送货时间')
eligibleCustomerType = create_relationship_to(['BusinessEntityType'], '适用的顾客类型')
eligibleDuration = create_relationship_to(['QuantitativeValue'], '有效时间')
eligibleQuantity = create_relationship_to(['QuantitativeValue'], '适用数量')
eligibleRegion = create_relationship_to(['Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '适用地区')
eligibleTransactionVolume = create_relationship_to(['UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '适用购买数量')
gtin12 = create_relationship_to(['Text'], '12位全球贸易品项识别码')
gtin13 = create_relationship_to(['Text'], '13位全球贸易品项识别码')
gtin14 = create_relationship_to(['Text'], '14位全球贸易品项识别码')
gtin8 = create_relationship_to(['Text'], '8位全球贸易品项识别码')
includesObject = create_relationship_to(['TypeAndQuantityNode'], '包含对象')
ineligibleRegion = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text', 'GeoCircle', 'GeoShape'], '不适用地区')
inventoryLevel = create_relationship_to(['QuantitativeValue'], '库存量')
itemCondition = create_relationship_to(['OfferItemCondition'], '规格')
itemOffered = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '销售物品')
mpn = create_relationship_to(['Text'], '制造商零件编码')
priceSpecification = create_relationship_to(['UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '价格明细')
seller = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '卖家')
serialNumber = create_relationship_to(['Text'], '序列号')
sku = create_relationship_to(['Text'], '单品编号')
validFrom = create_relationship_to(['Date', 'Text'], '生效日期')
validThrough = create_relationship_to(['Date', 'Text'], '有效截止日期')
warranty = create_relationship_to(['WarrantyPromise'], '担保')
class Rating(Intangible):
author = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '作者')
bestRating = create_relationship_to(['Integer', 'Text'], '支持的最高评分分数')
ratingValue = create_relationship_to(['Integer', 'Text'], '评分')
worstRating = create_relationship_to(['Integer', 'Text'], '评价系统的最低评分')
class AggregateRating(Rating):
itemReviewed = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '评价物品')
ratingCount = create_relationship_to(['Integer'], '评分总数')
reviewCount = create_relationship_to(['Integer'], '评论的总数')
class Trip(Intangible):
arrivalTime = create_relationship_to(['Date', 'Text'], '到达时间')
departureTime = create_relationship_to(['Date', 'Text'], '出发时间')
offers = create_relationship_to(['AggregateOffer', 'Offer'], '报价')
provider = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '提供方')
class BusTrip(Trip):
arrivalBusStop = create_relationship_to(['BusStation', 'BusStop'], '到达汽车站')
busName = create_relationship_to(['Text'], '公共汽车名称')
busNumber = create_relationship_to(['Text'], '公共汽车编号')
departureBusStop = create_relationship_to(['BusStation', 'BusStop'], '出发汽车站')
class Flight(Trip):
aircraft = create_relationship_to(['Car', 'Vehicle', 'Text'], '航空器')
arrivalAirport = create_relationship_to(['Airport'], '到达机场')
arrivalGate = create_relationship_to(['Text'], '到达登机口')
arrivalTerminal = create_relationship_to(['Text'], '到达航站楼')
boardingPolicy = create_relationship_to(['BoardingPolicyType'], '登机政策')
departureAirport = create_relationship_to(['Airport'], '出发机场')
departureGate = create_relationship_to(['Text'], '出发登机口')
departureTerminal = create_relationship_to(['Text'], '出发航站楼')
estimatedFlightDuration = create_relationship_to(['Duration', 'Text'], '预计飞行时间')
flightDistance = create_relationship_to(['Distance', 'Text'], '飞行距离')
flightNumber = create_relationship_to(['Text'], '航班号')
mealService = create_relationship_to(['Text'], '套餐描述')
seller = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '卖家')
webCheckinTime = create_relationship_to(['Date', 'Text'], '网上值机时间')
class TrainTrip(Trip):
arrivalPlatform = create_relationship_to(['Text'], '到达站台')
arrivalStation = create_relationship_to(['TrainStation'], '到达火车站')
departurePlatform = create_relationship_to(['Text'], '出发站台')
departureStation = create_relationship_to(['TrainStation'], '出发火车站')
trainName = create_relationship_to(['Text'], '火车名称')
trainNumber = create_relationship_to(['Text'], '火车编号')
class PropertyValueSpecification(Intangible):
defaultValue = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '缺省值')
maxValue = create_relationship_to(['Integer'], '最大值')
minValue = create_relationship_to(['Integer'], '最小值')
multipleValues = create_relationship_to(['Bool'], '是否允许多个值')
readonlyValue = create_relationship_to(['Bool'], '值是否只读')
stepValue = create_relationship_to(['Integer'], '步长')
valueMaxLength = create_relationship_to(['Integer'], '值的最大长度')
valueMinLength = create_relationship_to(['Integer'], '值的最小长度')
valueName = create_relationship_to(['Text'], '值的名称')
valuePattern = create_relationship_to(['Text'], '值的正则表达式验证模版')
valueRequired = create_relationship_to(['Bool'], '值是否必须')
class ProgramMembership(Intangible):
hostingOrganization = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '会员服务提供者')
member = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '会员')
membershipNumber = create_relationship_to(['Text'], '会员编号')
programName = create_relationship_to(['Text'], '会员身份的折扣计划')
class MenuItem(Intangible):
nutrition = create_relationship_to(['NutritionInformation'], '营养成分')
offers = create_relationship_to(['AggregateOffer', 'Offer'], '报价')
suitableForDiet = create_relationship_to(['RestrictedDiet'], '适用的饮食')
class EntryPoint(Intangible):
actionApplication = create_relationship_to(['VideoGame', 'WebApplication', 'MobileApplication', 'SoftwareApplication'], '执行操作的应用')
actionPlatform = create_relationship_to(['Text'], '执行操作的平台')
contentType = create_relationship_to(['Text'], '内容的文件类型')
encodingType = create_relationship_to(['Text'], '编码类型')
httpMethod = create_relationship_to(['Text'], 'http方法')
urlTemplate = create_relationship_to(['Text'], '链接模版')
class DigitalDocumentPermission(Intangible):
grantee = create_relationship_to(['PostalAddress', 'ContactPoint', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience', 'Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '受让人')
permissionType = create_relationship_to(['DigitalDocumentPermissionType'], '权限类型')
class GameServer(Intangible):
game = create_relationship_to(['VideoGame'], '游戏')
playersOnline = create_relationship_to(['Integer'], '在线玩家数')
serverStatus = create_relationship_to(['GameServerStatus'], '服务器状态')
class Audience(Intangible):
audienceType = create_relationship_to(['Text'], '受众类型')
geographicArea = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea'], '受众群所在地理区域')
class EducationalAudience(Audience):
educationalRole = create_relationship_to(['Text'], '教育活动中的角色')
class PeopleAudience(Audience):
requiredGender = create_relationship_to(['Text'], '性别要求')
requiredMaxAge = create_relationship_to(['Integer'], '最大年龄要求')
requiredMinAge = create_relationship_to(['Integer'], '最小年龄要求')
suggestedGender = create_relationship_to(['Text'], '建议的受众性别')
suggestedMaxAge = create_relationship_to(['Integer'], '建议的受众最大年龄')
suggestedMinAge = create_relationship_to(['Integer'], '建议的受众最小年龄')
class ParentAudience(PeopleAudience):
childMaxAge = create_relationship_to(['Integer'], '最大儿童年龄')
childMinAge = create_relationship_to(['Integer'], '最小儿童年龄')
class BusinessAudience(Audience):
numberOfEmployees = create_relationship_to(['QuantitativeValue'], '雇员数')
yearlyRevenue = create_relationship_to(['QuantitativeValue'], '年营业额')
yearsInOperation = create_relationship_to(['QuantitativeValue'], '运营年数')
class ComputerLanguage(Intangible):
pass
class ListItem(Intangible):
item = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '条目')
nextItem = create_relationship_to(['HowToDirection', 'HowToItem', 'HowToSupply', 'HowToTool', 'HowToSection', 'HowToStep', 'HowToTip', 'ListItem'], '下一项')
position = create_relationship_to(['Text', 'Integer'], '位置')
previousItem = create_relationship_to(['HowToDirection', 'HowToItem', 'HowToSupply', 'HowToTool', 'HowToSection', 'HowToStep', 'HowToTip', 'ListItem'], '上一条目')
class HowToItem(ListItem):
requiredQuantity = create_relationship_to(['Text', 'QuantitativeValue', 'Integer'], '相关物料的数量')
class HowToSupply(HowToItem):
estimatedCost = create_relationship_to(['MonetaryAmount', 'Text'], '相关物料的估价')
class HowToTool(HowToItem):
pass
class StructuredValue(Intangible):
pass
class NutritionInformation(StructuredValue):
calories = create_relationship_to(['Energy'], '卡路里')
carbohydrateContent = create_relationship_to(['Mass'], '碳水化合物含量')
cholesterolContent = create_relationship_to(['Mass'], '胆固醇含量')
fatContent = create_relationship_to(['Mass'], '脂肪含量')
fiberContent = create_relationship_to(['Mass'], '纤维含量')
proteinContent = create_relationship_to(['Mass'], '蛋白质含量')
saturatedFatContent = create_relationship_to(['Mass'], '饱和脂肪含量')
servingSize = create_relationship_to(['Text'], '食用分量')
sodiumContent = create_relationship_to(['Mass'], '钠含量')
sugarContent = create_relationship_to(['Mass'], '糖含量')
transFatContent = create_relationship_to(['Mass'], '反式脂肪含量')
unsaturatedFatContent = create_relationship_to(['Mass'], '不饱和脂肪含量')
class PriceSpecification(StructuredValue):
eligibleQuantity = create_relationship_to(['QuantitativeValue'], '适用数量')
eligibleTransactionVolume = create_relationship_to(['UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '适用购买数量')
maxPrice = create_relationship_to(['Integer'], '最高价格')
minPrice = create_relationship_to(['Integer'], '最低价格')
price = create_relationship_to(['Integer', 'Text'], '价格')
priceCurrency = create_relationship_to(['Text'], '价格对应的货币单位')
validFrom = create_relationship_to(['Date', 'Text'], '生效日期')
validThrough = create_relationship_to(['Date', 'Text'], '有效截止日期')
valueAddedTaxIncluded = create_relationship_to(['Bool'], '是否含税')
class DeliveryChargeSpecification(PriceSpecification):
appliesToDeliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '适用的送货方式')
areaServed = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea', 'Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '服务覆盖区域')
eligibleRegion = create_relationship_to(['Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '适用地区')
ineligibleRegion = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text', 'GeoCircle', 'GeoShape'], '不适用地区')
class UnitPriceSpecification(PriceSpecification):
billingIncrement = create_relationship_to(['Integer'], '计费增量')
priceType = create_relationship_to(['Text'], '价格类型')
referenceQuantity = create_relationship_to(['QuantitativeValue'], '参考数量')
unitCode = create_relationship_to(['Text'], '单位代码')
unitText = create_relationship_to(['Text'], '单位文字')
class CompoundPriceSpecification(PriceSpecification):
priceComponent = create_relationship_to(['UnitPriceSpecification'], '复合价格中提及的所有单价')
class PaymentChargeSpecification(PriceSpecification):
appliesToDeliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '适用的送货方式')
appliesToPaymentMethod = create_relationship_to(['PaymentCard', 'CreditCard', 'PaymentMethod'], '适用的支付方式')
class PropertyValue(StructuredValue):
maxValue = create_relationship_to(['Integer'], '最大值')
minValue = create_relationship_to(['Integer'], '最小值')
propertyID = create_relationship_to(['Text'], '属性ID')
unitCode = create_relationship_to(['Text'], '单位代码')
unitText = create_relationship_to(['Text'], '单位文字')
value = create_relationship_to(['Integer', 'Bool', 'Text', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'StructuredValue'], '值')
valueReference = create_relationship_to(['EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentCard', 'CreditCard', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'Enumeration', 'QuantitativeValue', 'LocationFeatureSpecification', 'PropertyValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'StructuredValue'], '参考值')
class LocationFeatureSpecification(PropertyValue):
hoursAvailable = create_relationship_to(['OpeningHoursSpecification'], '服务时间')
validFrom = create_relationship_to(['Date', 'Text'], '生效日期')
validThrough = create_relationship_to(['Date', 'Text'], '有效截止日期')
class GeoShape(StructuredValue):
address = create_relationship_to(['PostalAddress', 'Text'], '地址')
addressCountry = create_relationship_to(['Country', 'Text'], '地址所在国家')
box = create_relationship_to(['Text'], '边界框')
circle = create_relationship_to(['Text'], '圆形区域')
elevation = create_relationship_to(['Text', 'Integer'], '海拔高度')
line = create_relationship_to(['Text'], '直线')
polygon = create_relationship_to(['Text'], '多边形')
postalCode = create_relationship_to(['Text'], '邮政编码')
class GeoCircle(GeoShape):
geoMidpoint = create_relationship_to(['GeoCoordinates'], '中心点经纬度')
geoRadius = create_relationship_to(['Distance', 'Integer', 'Text'], '区域半径')
class InteractionCounter(StructuredValue):
interactionService = create_relationship_to(['WebSite', 'VideoGame', 'WebApplication', 'MobileApplication', 'SoftwareApplication'], '交互对应的软件服务')
interactionType = create_relationship_to(['AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'Action'], '交互类型')
userInteractionCount = create_relationship_to(['Integer'], '用户交互数')
class TypeAndQuantityNode(StructuredValue):
amountOfThisGood = create_relationship_to(['Integer'], '货物数量')
businessFunction = create_relationship_to(['BusinessFunction'], '商业职能')
typeOfGood = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '货物类型')
unitCode = create_relationship_to(['Text'], '单位代码')
unitText = create_relationship_to(['Text'], '单位文字')
class DatedMoneySpecification(StructuredValue):
amount = create_relationship_to(['MonetaryAmount', 'Integer'], '金钱数量')
currency = create_relationship_to(['Text'], '货币种类')
endDate = create_relationship_to(['Date', 'Text'], '结束日期')
startDate = create_relationship_to(['Date', 'Text'], '开始日期')
class ContactPoint(StructuredValue):
areaServed = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea', 'Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '服务覆盖区域')
availableLanguage = create_relationship_to(['Language', 'Text'], '支持的语言')
contactOption = create_relationship_to(['ContactPointOption'], '联系选项')
contactType = create_relationship_to(['Text'], '联系方式职能类型')
email = create_relationship_to(['Text'], '电子邮件')
faxNumber = create_relationship_to(['Text'], '传真号')
hoursAvailable = create_relationship_to(['OpeningHoursSpecification'], '服务时间')
productSupported = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'Text'], '支持的产品')
telephone = create_relationship_to(['Text'], '电话号码')
class PostalAddress(ContactPoint):
addressCountry = create_relationship_to(['Country', 'Text'], '地址所在国家')
addressLocality = create_relationship_to(['Text'], '地址所在地方')
addressRegion = create_relationship_to(['Text'], '地址所在行政区')
postOfficeBoxNumber = create_relationship_to(['Text'], '邮政邮箱编号')
postalCode = create_relationship_to(['Text'], '邮政编码')
streetAddress = create_relationship_to(['Text'], '街道地址')
class WarrantyPromise(StructuredValue):
durationOfWarranty = create_relationship_to(['QuantitativeValue'], '保修期')
warrantyScope = create_relationship_to(['WarrantyScope'], '担保范围')
class MonetaryAmount(StructuredValue):
currency = create_relationship_to(['Text'], '货币种类')
maxValue = create_relationship_to(['Integer'], '最大值')
minValue = create_relationship_to(['Integer'], '最小值')
validFrom = create_relationship_to(['Date', 'Text'], '生效日期')
validThrough = create_relationship_to(['Date', 'Text'], '有效截止日期')
value = create_relationship_to(['Integer', 'Bool', 'Text', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'StructuredValue'], '值')
class EngineSpecification(StructuredValue):
fuelType = create_relationship_to(['Text', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '燃料类型')
class OpeningHoursSpecification(StructuredValue):
closes = create_relationship_to(['Date', 'Text'], '关门时间')
dayOfWeek = create_relationship_to(['DayOfWeek'], '星期几')
opens = create_relationship_to(['Date', 'Text'], '开门时间')
validFrom = create_relationship_to(['Date', 'Text'], '生效日期')
validThrough = create_relationship_to(['Date', 'Text'], '有效截止日期')
class QuantitativeValue(StructuredValue):
additionalProperty = create_relationship_to(['LocationFeatureSpecification', 'PropertyValue'], '附加属性')
maxValue = create_relationship_to(['Integer'], '最大值')
minValue = create_relationship_to(['Integer'], '最小值')
unitCode = create_relationship_to(['Text'], '单位代码')
unitText = create_relationship_to(['Text'], '单位文字')
value = create_relationship_to(['Integer', 'Bool', 'Text', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'StructuredValue'], '值')
valueReference = create_relationship_to(['EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentCard', 'CreditCard', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'Enumeration', 'QuantitativeValue', 'LocationFeatureSpecification', 'PropertyValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'StructuredValue'], '参考值')
class OwnershipInfo(StructuredValue):
acquiredFrom = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '获取来源')
ownedFrom = create_relationship_to(['Date', 'Text'], '所有权开始时间')
ownedThrough = create_relationship_to(['Date', 'Text'], '所有权结束时间')
typeOfGood = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '货物类型')
class GeoCoordinates(StructuredValue):
address = create_relationship_to(['PostalAddress', 'Text'], '地址')
addressCountry = create_relationship_to(['Country', 'Text'], '地址所在国家')
elevation = create_relationship_to(['Text', 'Integer'], '海拔高度')
latitude = create_relationship_to(['Text', 'Integer'], '纬度')
longitude = create_relationship_to(['Text', 'Integer'], '经度')
postalCode = create_relationship_to(['Text'], '邮政编码')
class AlignmentObject(Intangible):
alignmentType = create_relationship_to(['Text'], '教学达标类型')
educationalFramework = create_relationship_to(['Text'], '对应的教学标准')
targetDescription = create_relationship_to(['Text'], '目标知识点的描述')
targetName = create_relationship_to(['Text'], '目标知识点的名称')
targetUrl = create_relationship_to(['Text'], '目标知识点的链接')
class BroadcastChannel(Intangible):
broadcastChannelId = create_relationship_to(['Text'], '广播频道ID')
broadcastServiceTier = create_relationship_to(['Text'], '广播频道所属的服务级别')
genre = create_relationship_to(['Text'], '风格')
inBroadcastLineup = create_relationship_to(['CableOrSatelliteService'], '提供该频道的有线或者卫星服务')
providesBroadcastService = create_relationship_to(['BroadcastService'], '提供的广播服务')
class TelevisionChannel(BroadcastChannel):
pass
class RadioChannel(BroadcastChannel):
pass
class Permit(Intangible):
issuedBy = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '许可的签发机构')
issuedThrough = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service'], '被许可的服务')
permitAudience = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '许可证的受众群')
validFor = create_relationship_to(['Duration'], '有效时间')
validFrom = create_relationship_to(['Date', 'Text'], '生效日期')
validIn = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea'], '有效地区')
validUntil = create_relationship_to(['Date', 'Text'], '失效日期')
class GovernmentPermit(Permit):
pass
class DataFeedItem(Intangible):
dateCreated = create_relationship_to(['Date', 'Text'], '创建日期')
dateDeleted = create_relationship_to(['Date', 'Text'], '删除日期')
dateModified = create_relationship_to(['Date', 'Text'], '更新日期')
item = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '条目')
class ServiceChannel(Intangible):
availableLanguage = create_relationship_to(['Language', 'Text'], '支持的语言')
processingTime = create_relationship_to(['Duration'], '处理时间')
providesService = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service'], '提供的服务')
serviceLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '服务所在地点')
servicePhone = create_relationship_to(['PostalAddress', 'ContactPoint'], '服务电话')
servicePostalAddress = create_relationship_to(['PostalAddress'], '服务邮寄地址')
serviceSmsNumber = create_relationship_to(['PostalAddress', 'ContactPoint'], '服务短信号码')
serviceUrl = create_relationship_to(['Text'], '服务链接')
class Order(Intangible):
acceptedOffer = create_relationship_to(['AggregateOffer', 'Offer'], '被接受的报价')
billingAddress = create_relationship_to(['PostalAddress'], '账单地址')
broker = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '经纪人')
confirmationNumber = create_relationship_to(['Text'], '确认编号')
customer = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '顾客')
discount = create_relationship_to(['Text', 'Integer'], '折扣')
discountCode = create_relationship_to(['Text'], '优惠码')
discountCurrency = create_relationship_to(['Text'], '折扣对应的货币')
isGift = create_relationship_to(['Bool'], '是否礼物')
orderDate = create_relationship_to(['Date', 'Text'], '订单的下单日期')
orderDelivery = create_relationship_to(['ParcelDelivery'], '订单的物流选择')
orderNumber = create_relationship_to(['Text'], '订单的编号')
orderStatus = create_relationship_to(['OrderStatus'], '订单的状态')
orderedItem = create_relationship_to(['OrderItem', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '订单条目')
partOfInvoice = create_relationship_to(['Invoice'], '所属账单')
paymentDueDate = create_relationship_to(['Date', 'Text'], '最晚付款日期')
paymentMethod = create_relationship_to(['PaymentCard', 'CreditCard', 'PaymentMethod'], '支付方式')
paymentMethodId = create_relationship_to(['Text'], '支付方式ID')
paymentUrl = create_relationship_to(['Text'], '付款链接')
seller = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '卖家')
class Series(Intangible):
pass
class Quantity(Intangible):
pass
class Mass(Quantity):
pass
class Energy(Quantity):
pass
class Duration(Quantity):
pass
class Distance(Quantity):
pass
class Brand(Intangible):
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
logo = create_relationship_to(['Text', 'Barcode', 'ImageObject'], '商标')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
class Role(Intangible):
endDate = create_relationship_to(['Date', 'Text'], '结束日期')
roleName = create_relationship_to(['Text'], '角色名称')
startDate = create_relationship_to(['Date', 'Text'], '开始日期')
class PerformanceRole(Role):
characterName = create_relationship_to(['Text'], '人物角色名字')
class OrganizationRole(Role):
numberedPosition = create_relationship_to(['Integer'], '角色编码')
class EmployeeRole(OrganizationRole):
baseSalary = create_relationship_to(['Integer', 'MonetaryAmount', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '底薪')
salaryCurrency = create_relationship_to(['Text'], '工资结算货币')
class ItemList(Intangible):
itemListElement = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing', 'Text'], '列表里的项目元素')
itemListOrder = create_relationship_to(['Text', 'ItemListOrderType'], '列表排列顺序')
numberOfItems = create_relationship_to(['Integer'], '条目数量')
class BreadcrumbList(ItemList):
pass
class OfferCatalog(ItemList):
pass
class Seat(Intangible):
seatNumber = create_relationship_to(['Text'], '座位编号')
seatRow = create_relationship_to(['Text'], '座位排号')
seatSection = create_relationship_to(['Text'], '座位区号')
seatingType = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue', 'Text'], '座位类型')
class Ticket(Intangible):
dateIssued = create_relationship_to(['Date', 'Text'], '签发日期')
issuedBy = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '许可的签发机构')
priceCurrency = create_relationship_to(['Text'], '价格对应的货币单位')
ticketNumber = create_relationship_to(['Text'], '票据编号')
ticketToken = create_relationship_to(['Text'], '票据的二维码或条形码')
ticketedSeat = create_relationship_to(['Seat'], '票据对应的座位')
totalPrice = create_relationship_to(['Integer', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification', 'Text'], '总价')
underName = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '持票人')
class Invoice(Intangible):
accountId = create_relationship_to(['Text'], '账户ID')
billingPeriod = create_relationship_to(['Duration'], '账单结算周期')
broker = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '经纪人')
category = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '类别')
confirmationNumber = create_relationship_to(['Text'], '确认编号')
customer = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '顾客')
minimumPaymentDue = create_relationship_to(['UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification', 'MonetaryAmount'], '最小付款额')
paymentDueDate = create_relationship_to(['Date', 'Text'], '最晚付款日期')
paymentMethod = create_relationship_to(['PaymentCard', 'CreditCard', 'PaymentMethod'], '支付方式')
paymentMethodId = create_relationship_to(['Text'], '支付方式ID')
paymentStatus = create_relationship_to(['PaymentStatusType', 'Text'], '支付状态')
provider = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '提供方')
referencesOrder = create_relationship_to(['Order'], '对应的订单')
scheduledPaymentDate = create_relationship_to(['Date', 'Text'], '预约的付款日期')
totalPaymentDue = create_relationship_to(['MonetaryAmount', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '应付款总额')
class OrderItem(Intangible):
orderDelivery = create_relationship_to(['ParcelDelivery'], '订单的物流选择')
orderItemNumber = create_relationship_to(['Text'], '订单条目的编号')
orderItemStatus = create_relationship_to(['OrderStatus'], '订单条目的状态')
orderQuantity = create_relationship_to(['Integer'], '订单条目的采购数量')
orderedItem = create_relationship_to(['OrderItem', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '订单条目')
class Service(Intangible):
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
areaServed = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea', 'Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '服务覆盖区域')
audience = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '受众')
availableChannel = create_relationship_to(['ServiceChannel'], '获得服务的渠道')
award = create_relationship_to(['Text'], '所获奖项')
brand = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Brand'], '品牌')
broker = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '经纪人')
category = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '类别')
hasOfferCatalog = create_relationship_to(['OfferCatalog'], '清单')
hoursAvailable = create_relationship_to(['OpeningHoursSpecification'], '服务时间')
isRelatedTo = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service'], '相关')
isSimilarTo = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '相似')
logo = create_relationship_to(['Text', 'Barcode', 'ImageObject'], '商标')
offers = create_relationship_to(['AggregateOffer', 'Offer'], '报价')
provider = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '提供方')
providerMobility = create_relationship_to(['Text'], '提供方是否机动')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
serviceOutput = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '服务产出')
serviceType = create_relationship_to(['Text'], '服务类型')
class FoodService(Service):
pass
class FinancialProduct(Service):
annualPercentageRate = create_relationship_to(['QuantitativeValue', 'Integer'], '年利率')
feesAndCommissionsSpecification = create_relationship_to(['Text'], '费用和佣金详情')
interestRate = create_relationship_to(['Integer', 'QuantitativeValue'], '利率')
class BankAccount(FinancialProduct):
pass
class PaymentService(FinancialProduct):
pass
class InvestmentOrDeposit(FinancialProduct):
amount = create_relationship_to(['MonetaryAmount', 'Integer'], '金钱数量')
class LoanOrCredit(FinancialProduct):
amount = create_relationship_to(['MonetaryAmount', 'Integer'], '金钱数量')
loanTerm = create_relationship_to(['QuantitativeValue'], '贷款期限')
requiredCollateral = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '必须抵押品')
class CurrencyConversionService(FinancialProduct):
pass
class CableOrSatelliteService(Service):
pass
class BroadcastService(Service):
broadcastAffiliateOf = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '所属广播站')
broadcastDisplayName = create_relationship_to(['Text'], '广播频道名称')
broadcastTimezone = create_relationship_to(['Text'], '广播频道所在的时区')
broadcaster = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '广播频道的提供商')
parentService = create_relationship_to(['BroadcastService'], '上级服务')
videoFormat = create_relationship_to(['Text'], '视频格式')
class TaxiService(Service):
pass
class Taxi(Service):
pass
class GovernmentService(Service):
serviceOperator = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '服务的运营商')
class Enumeration(Intangible):
pass
class GenderType(Enumeration):
pass
class MapCategoryType(Enumeration):
pass
class ContactPointOption(Enumeration):
pass
class DigitalDocumentPermissionType(Enumeration):
pass
class PaymentStatusType(Enumeration):
pass
class MusicAlbumReleaseType(Enumeration):
pass
class GameServerStatus(Enumeration):
pass
class OfferItemCondition(Enumeration):
pass
class RestrictedDiet(Enumeration):
pass
class QualitativeValue(Enumeration):
additionalProperty = create_relationship_to(['LocationFeatureSpecification', 'PropertyValue'], '附加属性')
equal = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '等于')
greater = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '大于')
greaterOrEqual = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '大于等于')
lesser = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '小于')
lesserOrEqual = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '小于等于')
nonEqual = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '不等于')
valueReference = create_relationship_to(['EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentCard', 'CreditCard', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'Enumeration', 'QuantitativeValue', 'LocationFeatureSpecification', 'PropertyValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'StructuredValue'], '参考值')
class SteeringPositionValue(QualitativeValue):
pass
class DriveWheelConfigurationValue(QualitativeValue):
pass
class PaymentMethod(Enumeration):
pass
class ActionStatusType(Enumeration):
pass
class OrderStatus(Enumeration):
pass
class BookFormatType(Enumeration):
pass
class ItemListOrderType(Enumeration):
pass
class WarrantyScope(Enumeration):
pass
class DeliveryMethod(Enumeration):
pass
class ParcelService(DeliveryMethod):
pass
class LockerDelivery(DeliveryMethod):
pass
class MusicAlbumProductionType(Enumeration):
pass
class Specialty(Enumeration):
pass
class ItemAvailability(Enumeration):
pass
class BusinessFunction(Enumeration):
pass
class RsvpResponseType(Enumeration):
pass
class DayOfWeek(Enumeration):
pass
class BusinessEntityType(Enumeration):
pass
class ReservationStatusType(Enumeration):
pass
class BoardingPolicyType(Enumeration):
pass
class MusicReleaseFormatType(Enumeration):
pass
class EventStatusType(Enumeration):
pass
class GamePlayMode(Enumeration):
pass
class BedDetails(Intangible):
numberOfBeds = create_relationship_to(['Integer'], '床位数')
typeOfBed = create_relationship_to(['Text'], '床位类型')
class Language(Intangible):
pass
class ParcelDelivery(Intangible):
deliveryAddress = create_relationship_to(['PostalAddress'], '物流送货地址')
deliveryStatus = create_relationship_to(['DeliveryEvent'], '物流送货状态')
expectedArrivalFrom = create_relationship_to(['Date', 'Text'], '预计最早送达时间')
expectedArrivalUntil = create_relationship_to(['Date', 'Text'], '预计最晚送达时间')
hasDeliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '物流送货方式')
itemShipped = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '运送物品')
originAddress = create_relationship_to(['PostalAddress'], '发货者的地址')
partOfOrder = create_relationship_to(['Order'], '所属订单')
provider = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '提供方')
trackingNumber = create_relationship_to(['Text'], '运单号')
trackingUrl = create_relationship_to(['Text'], '物流状态跟踪链接')
class JobPosting(Intangible):
baseSalary = create_relationship_to(['Integer', 'MonetaryAmount', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '底薪')
datePosted = create_relationship_to(['Date', 'Text'], '发布日期')
educationRequirements = create_relationship_to(['Text'], '教育背景要求')
employmentType = create_relationship_to(['Text'], '就业类型')
experienceRequirements = create_relationship_to(['Text'], '经验要求')
hiringOrganization = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '招聘机构')
incentiveCompensation = create_relationship_to(['Text'], '奖金补贴')
industry = create_relationship_to(['Text'], '所属行业')
jobBenefits = create_relationship_to(['Text'], '职位福利')
jobLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '工作地点')
occupationalCategory = create_relationship_to(['Text'], '职位分类')
qualifications = create_relationship_to(['Text'], '资历要求')
responsibilities = create_relationship_to(['Text'], '工作职责')
salaryCurrency = create_relationship_to(['Text'], '工资结算货币')
skills = create_relationship_to(['Text'], '技能要求')
specialCommitments = create_relationship_to(['Text'], '特别承诺')
title = create_relationship_to(['Text'], '头衔')
validThrough = create_relationship_to(['Date', 'Text'], '有效截止日期')
workHours = create_relationship_to(['Text'], '工作时间')
class Reservation(Intangible):
bookingTime = create_relationship_to(['Date', 'Text'], '预订时间')
broker = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '经纪人')
modifiedTime = create_relationship_to(['Date', 'Text'], '更新时间')
priceCurrency = create_relationship_to(['Text'], '价格对应的货币单位')
programMembershipUsed = create_relationship_to(['ProgramMembership'], '使用的会员身份')
provider = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '提供方')
reservationFor = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '预定的对象')
reservationId = create_relationship_to(['Text'], '预定的ID')
reservationStatus = create_relationship_to(['ReservationStatusType'], '预定的状态')
reservedTicket = create_relationship_to(['Ticket'], '预定的票据')
totalPrice = create_relationship_to(['Integer', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification', 'Text'], '总价')
underName = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '持票人')
class TaxiReservation(Reservation):
partySize = create_relationship_to(['Integer', 'QuantitativeValue'], '预约活动的参与人数')
pickupLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '接人地点')
pickupTime = create_relationship_to(['Date', 'Text'], '接人时间')
class ReservationPackage(Reservation):
subReservation = create_relationship_to(['ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Reservation'], '子预定信息')
class EventReservation(Reservation):
pass
class LodgingReservation(Reservation):
checkinTime = create_relationship_to(['Date', 'Text'], '入住时间')
checkoutTime = create_relationship_to(['Date', 'Text'], '退房时间')
lodgingUnitDescription = create_relationship_to(['Text'], '旅馆房间描述')
lodgingUnitType = create_relationship_to(['SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue', 'Text'], '旅馆房间房型')
numAdults = create_relationship_to(['Integer', 'QuantitativeValue'], '大人人数')
numChildren = create_relationship_to(['Integer', 'QuantitativeValue'], '小孩人数')
class FlightReservation(Reservation):
boardingGroup = create_relationship_to(['Text'], '登机乘客分组')
passengerPriorityStatus = create_relationship_to(['Text', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '乘客优先级状态')
passengerSequenceNumber = create_relationship_to(['Text'], '乘客的顺序编号')
securityScreening = create_relationship_to(['Text'], '安全检查')
class TrainReservation(Reservation):
pass
class FoodEstablishmentReservation(Reservation):
endTime = create_relationship_to(['Date', 'Text'], '结束时刻')
partySize = create_relationship_to(['Integer', 'QuantitativeValue'], '预约活动的参与人数')
startTime = create_relationship_to(['Date', 'Text'], '开始时刻')
class BusReservation(Reservation):
pass
class RentalCarReservation(Reservation):
dropoffLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '租车归还地点')
dropoffTime = create_relationship_to(['Date', 'Text'], '租车归还时间')
pickupLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '接人地点')
pickupTime = create_relationship_to(['Date', 'Text'], '接人时间')
class Offer(Intangible):
acceptedPaymentMethod = create_relationship_to(['PaymentCard', 'CreditCard', 'PaymentMethod', 'LoanOrCredit'], '卖家接受的支付方式')
addOn = create_relationship_to(['AggregateOffer', 'Offer'], '附加品')
advanceBookingRequirement = create_relationship_to(['QuantitativeValue'], '预定要求')
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
areaServed = create_relationship_to(['City', 'Country', 'State', 'AdministrativeArea', 'Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '服务覆盖区域')
availability = create_relationship_to(['ItemAvailability'], '供应状态')
availabilityEnds = create_relationship_to(['Date', 'Text'], '供应截止时间')
availabilityStarts = create_relationship_to(['Date', 'Text'], '供应开始时间')
availableAtOrFrom = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place'], '报价地点')
availableDeliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '支持的物流方式')
businessFunction = create_relationship_to(['BusinessFunction'], '商业职能')
category = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '类别')
deliveryLeadTime = create_relationship_to(['QuantitativeValue'], '物流送货时间')
eligibleCustomerType = create_relationship_to(['BusinessEntityType'], '适用的顾客类型')
eligibleDuration = create_relationship_to(['QuantitativeValue'], '有效时间')
eligibleQuantity = create_relationship_to(['QuantitativeValue'], '适用数量')
eligibleRegion = create_relationship_to(['Text', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'GeoCircle', 'GeoShape'], '适用地区')
eligibleTransactionVolume = create_relationship_to(['UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '适用购买数量')
gtin12 = create_relationship_to(['Text'], '12位全球贸易品项识别码')
gtin13 = create_relationship_to(['Text'], '13位全球贸易品项识别码')
gtin14 = create_relationship_to(['Text'], '14位全球贸易品项识别码')
gtin8 = create_relationship_to(['Text'], '8位全球贸易品项识别码')
includesObject = create_relationship_to(['TypeAndQuantityNode'], '包含对象')
ineligibleRegion = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text', 'GeoCircle', 'GeoShape'], '不适用地区')
inventoryLevel = create_relationship_to(['QuantitativeValue'], '库存量')
itemCondition = create_relationship_to(['OfferItemCondition'], '规格')
itemOffered = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '销售物品')
mpn = create_relationship_to(['Text'], '制造商零件编码')
offeredBy = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '报价者')
price = create_relationship_to(['Integer', 'Text'], '价格')
priceCurrency = create_relationship_to(['Text'], '价格对应的货币单位')
priceSpecification = create_relationship_to(['UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PriceSpecification'], '价格明细')
priceValidUntil = create_relationship_to(['Date', 'Text'], '价格有效截止日期')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
seller = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '卖家')
serialNumber = create_relationship_to(['Text'], '序列号')
sku = create_relationship_to(['Text'], '单品编号')
validFrom = create_relationship_to(['Date', 'Text'], '生效日期')
validThrough = create_relationship_to(['Date', 'Text'], '有效截止日期')
warranty = create_relationship_to(['WarrantyPromise'], '担保')
class AggregateOffer(Offer):
highPrice = create_relationship_to(['Text', 'Integer'], '最高价')
lowPrice = create_relationship_to(['Text', 'Integer'], '最低价格')
offerCount = create_relationship_to(['Integer'], '商品的报价总数')
offers = create_relationship_to(['AggregateOffer', 'Offer'], '报价')
class Event(Thing):
about = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '关于')
actor = create_relationship_to(['Person'], '演员')
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
attendee = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '参与者')
audience = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '受众')
composer = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '作曲者')
contributor = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '贡献者')
director = create_relationship_to(['Person'], '导演')
doorTime = create_relationship_to(['Date', 'Text'], '允许进场时间')
duration = create_relationship_to(['Duration'], '持续时间')
endDate = create_relationship_to(['Date', 'Text'], '结束日期')
eventStatus = create_relationship_to(['EventStatusType'], '活动的状态')
funder = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '投资者')
inLanguage = create_relationship_to(['Text', 'Language'], '使用语言')
isAccessibleForFree = create_relationship_to(['Bool'], '是否免费')
location = create_relationship_to(['PostalAddress', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text'], '地点')
maximumAttendeeCapacity = create_relationship_to(['Integer'], '最多可容纳多少人参与')
offers = create_relationship_to(['AggregateOffer', 'Offer'], '报价')
organizer = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '组织者')
performer = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '表演者')
previousStartDate = create_relationship_to(['Date', 'Text'], '之前计划的开始日期')
recordedIn = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '所属媒体记录')
remainingAttendeeCapacity = create_relationship_to(['Integer'], '剩余可容纳的参与人数')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
sponsor = create_relationship_to(['Person', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '赞助者')
startDate = create_relationship_to(['Date', 'Text'], '开始日期')
subEvent = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '子活动')
superEvent = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '上一级的活动')
translator = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '翻译者')
typicalAgeRange = create_relationship_to(['Text'], '适应年龄段')
workFeatured = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '特色作品')
workPerformed = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '表演的作品')
class PublicationEvent(Event):
isAccessibleForFree = create_relationship_to(['Bool'], '是否免费')
publishedOn = create_relationship_to(['BroadcastService'], '发布的媒体')
class OnDemandEvent(PublicationEvent):
pass
class BroadcastEvent(PublicationEvent):
broadcastOfEvent = create_relationship_to(['ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Event'], '广播频道播出的活动')
isLiveBroadcast = create_relationship_to(['Bool'], '是否直播')
videoFormat = create_relationship_to(['Text'], '视频格式')
class EducationEvent(Event):
pass
class DanceEvent(Event):
pass
class SaleEvent(Event):
pass
class FoodEvent(Event):
pass
class BusinessEvent(Event):
pass
class UserInteraction(Event):
pass
class UserLikes(UserInteraction):
pass
class UserPlays(UserInteraction):
pass
class UserBlocks(UserInteraction):
pass
class UserTweets(UserInteraction):
pass
class UserPlusOnes(UserInteraction):
pass
class UserPageVisits(UserInteraction):
pass
class UserDownloads(UserInteraction):
pass
class UserCheckins(UserInteraction):
pass
class UserComments(UserInteraction):
commentText = create_relationship_to(['Text'], '评论文字')
commentTime = create_relationship_to(['Date', 'Text'], '评论发表时间')
creator = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Person'], '作者')
discusses = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '讨论')
replyToUrl = create_relationship_to(['Text'], '回复链接')
class ExhibitionEvent(Event):
pass
class CourseInstance(Event):
courseMode = create_relationship_to(['Text'], '课程的授课模式')
instructor = create_relationship_to(['Person'], '教师')
class ComedyEvent(Event):
pass
class ScreeningEvent(Event):
subtitleLanguage = create_relationship_to(['Text', 'Language'], '字幕语言')
videoFormat = create_relationship_to(['Text'], '视频格式')
workPresented = create_relationship_to(['Movie'], '上映的作品')
class MusicEvent(Event):
pass
class VisualArtsEvent(Event):
pass
class DeliveryEvent(Event):
accessCode = create_relationship_to(['Text'], '存取码')
availableFrom = create_relationship_to(['Date', 'Text'], '提货开始时间')
availableThrough = create_relationship_to(['Date', 'Text'], '提货截止时间')
hasDeliveryMethod = create_relationship_to(['LockerDelivery', 'ParcelService', 'DeliveryMethod'], '物流送货方式')
class ChildrensEvent(Event):
pass
class Festival(Event):
pass
class LiteraryEvent(Event):
pass
class SocialEvent(Event):
pass
class TheaterEvent(Event):
pass
class SportsEvent(Event):
awayTeam = create_relationship_to(['Person', 'SportsTeam'], '客场队')
competitor = create_relationship_to(['SportsTeam', 'Person'], '竞技对手')
homeTeam = create_relationship_to(['Person', 'SportsTeam'], '主队')
class Product(Thing):
additionalProperty = create_relationship_to(['LocationFeatureSpecification', 'PropertyValue'], '附加属性')
aggregateRating = create_relationship_to(['AggregateRating'], '总体评分')
audience = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '受众')
award = create_relationship_to(['Text'], '所获奖项')
brand = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization', 'Brand'], '品牌')
category = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '类别')
color = create_relationship_to(['Text'], '颜色')
depth = create_relationship_to(['QuantitativeValue', 'Distance'], '深度')
gtin12 = create_relationship_to(['Text'], '12位全球贸易品项识别码')
gtin13 = create_relationship_to(['Text'], '13位全球贸易品项识别码')
gtin14 = create_relationship_to(['Text'], '14位全球贸易品项识别码')
gtin8 = create_relationship_to(['Text'], '8位全球贸易品项识别码')
height = create_relationship_to(['Distance', 'QuantitativeValue'], '高度')
isAccessoryOrSparePartFor = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '是另一产品的附件或备件')
isConsumableFor = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '下游产品')
isRelatedTo = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service'], '相关')
isSimilarTo = create_relationship_to(['Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'Service', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product'], '相似')
itemCondition = create_relationship_to(['OfferItemCondition'], '规格')
logo = create_relationship_to(['Text', 'Barcode', 'ImageObject'], '商标')
manufacturer = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制造商')
material = create_relationship_to(['ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Product', 'Text'], '材质')
model = create_relationship_to(['Text', 'ProductModel'], '型号')
mpn = create_relationship_to(['Text'], '制造商零件编码')
offers = create_relationship_to(['AggregateOffer', 'Offer'], '报价')
productID = create_relationship_to(['Text'], '产品ID')
productionDate = create_relationship_to(['Date', 'Text'], '生产日期')
purchaseDate = create_relationship_to(['Date', 'Text'], '购买日期')
releaseDate = create_relationship_to(['Date', 'Text'], '发布日期')
review = create_relationship_to(['ClaimReview', 'Review'], '事物的评论')
sku = create_relationship_to(['Text'], '单品编号')
weight = create_relationship_to(['QuantitativeValue'], '重量')
width = create_relationship_to(['Distance', 'QuantitativeValue'], '宽度')
class Vehicle(Product):
cargoVolume = create_relationship_to(['QuantitativeValue'], '汽车载货容量')
dateVehicleFirstRegistered = create_relationship_to(['Date', 'Text'], '汽车首次注册日期')
driveWheelConfiguration = create_relationship_to(['DriveWheelConfigurationValue', 'Text'], '驱动轮配置')
fuelConsumption = create_relationship_to(['QuantitativeValue'], '耗油率')
fuelEfficiency = create_relationship_to(['QuantitativeValue'], '油耗值')
fuelType = create_relationship_to(['Text', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '燃料类型')
knownVehicleDamages = create_relationship_to(['Text'], '已知汽车故障')
mileageFromOdometer = create_relationship_to(['QuantitativeValue'], '里程数')
numberOfAirbags = create_relationship_to(['Integer', 'Text'], '汽车安全气囊总数')
numberOfAxles = create_relationship_to(['Integer', 'QuantitativeValue'], '汽车轮轴数')
numberOfDoors = create_relationship_to(['QuantitativeValue', 'Integer'], '汽车车门数')
numberOfForwardGears = create_relationship_to(['Integer', 'QuantitativeValue'], '前进档位数')
numberOfPreviousOwners = create_relationship_to(['QuantitativeValue', 'Integer'], '历任车主数')
productionDate = create_relationship_to(['Date', 'Text'], '生产日期')
purchaseDate = create_relationship_to(['Date', 'Text'], '购买日期')
steeringPosition = create_relationship_to(['SteeringPositionValue'], '方向盘位置')
vehicleConfiguration = create_relationship_to(['Text'], '车辆配置')
vehicleEngine = create_relationship_to(['EngineSpecification'], '车辆引擎')
vehicleIdentificationNumber = create_relationship_to(['Text'], '车辆识别号码')
vehicleInteriorColor = create_relationship_to(['Text'], '车辆内饰颜色')
vehicleInteriorType = create_relationship_to(['Text'], '车辆内饰类型')
vehicleModelDate = create_relationship_to(['Date', 'Text'], '车辆型号发布日期')
vehicleSeatingCapacity = create_relationship_to(['QuantitativeValue', 'Integer'], '车辆可容纳最大人数')
vehicleSpecialUsage = create_relationship_to(['Text'], '车辆特殊用途')
vehicleTransmission = create_relationship_to(['Text', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'QualitativeValue'], '车辆传动装置')
class Car(Vehicle):
pass
class SomeProducts(Product):
inventoryLevel = create_relationship_to(['QuantitativeValue'], '库存量')
class IndividualProduct(Product):
serialNumber = create_relationship_to(['Text'], '序列号')
class ProductModel(Product):
isVariantOf = create_relationship_to(['ProductModel'], '变形')
predecessorOf = create_relationship_to(['ProductModel'], '上一代型号')
successorOf = create_relationship_to(['ProductModel'], '上一代型号')
class HowToSection(ListItem,CreativeWork,ItemList):
pass
class VideoGame(SoftwareApplication,Game):
actor = create_relationship_to(['Person'], '演员')
cheatCode = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '游戏作弊码')
director = create_relationship_to(['Person'], '导演')
gamePlatform = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '游戏平台')
gameServer = create_relationship_to(['GameServer'], '游戏服务器')
gameTip = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '游戏攻略')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
playMode = create_relationship_to(['GamePlayMode'], '游戏玩家模式')
trailer = create_relationship_to(['VideoObject'], '预告片')
class TVSeason(CreativeWorkSeason,CreativeWork):
countryOfOrigin = create_relationship_to(['Country'], '影片制作国家')
class HowToTip(ListItem,CreativeWork):
pass
class HowToStep(ListItem,CreativeWork,ItemList):
pass
class CreativeWorkSeries(Series,CreativeWork):
endDate = create_relationship_to(['Date', 'Text'], '结束日期')
issn = create_relationship_to(['Text'], 'ISSN号')
startDate = create_relationship_to(['Date', 'Text'], '开始日期')
class BookSeries(CreativeWorkSeries):
pass
class RadioSeries(CreativeWorkSeries):
actor = create_relationship_to(['Person'], '演员')
containsSeason = create_relationship_to(['RadioSeason', 'TVSeason', 'CreativeWorkSeason'], '包含哪些季')
director = create_relationship_to(['Person'], '导演')
episode = create_relationship_to(['RadioEpisode', 'TVEpisode', 'Episode'], '剧集')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
numberOfEpisodes = create_relationship_to(['Integer'], '剧集数')
numberOfSeasons = create_relationship_to(['Integer'], '季数')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
trailer = create_relationship_to(['VideoObject'], '预告片')
class Periodical(CreativeWorkSeries):
pass
class MovieSeries(CreativeWorkSeries):
actor = create_relationship_to(['Person'], '演员')
director = create_relationship_to(['Person'], '导演')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
trailer = create_relationship_to(['VideoObject'], '预告片')
class VideoGameSeries(CreativeWorkSeries):
actor = create_relationship_to(['Person'], '演员')
characterAttribute = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '人物角色属性')
cheatCode = create_relationship_to(['CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'CreativeWork'], '游戏作弊码')
containsSeason = create_relationship_to(['RadioSeason', 'TVSeason', 'CreativeWorkSeason'], '包含哪些季')
director = create_relationship_to(['Person'], '导演')
episode = create_relationship_to(['RadioEpisode', 'TVEpisode', 'Episode'], '剧集')
gameItem = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '游戏道具')
gameLocation = create_relationship_to(['Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'StadiumOrArena', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Campground', 'Cemetery', 'FireStation', 'Hospital', 'MovieTheater', 'PoliceStation', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'EmploymentAgency', 'EntertainmentBusiness', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'Place', 'Text', 'PostalAddress'], '游戏地址')
gamePlatform = create_relationship_to(['Text', 'Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '游戏平台')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
numberOfEpisodes = create_relationship_to(['Integer'], '剧集数')
numberOfPlayers = create_relationship_to(['QuantitativeValue'], '玩家数')
numberOfSeasons = create_relationship_to(['Integer'], '季数')
playMode = create_relationship_to(['GamePlayMode'], '游戏玩家模式')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
quest = create_relationship_to(['Action', 'AssessAction', 'ChooseAction', 'VoteAction', 'IgnoreAction', 'ReactAction', 'WantAction', 'AgreeAction', 'DisagreeAction', 'DislikeAction', 'EndorseAction', 'LikeAction', 'ReviewAction', 'ConsumeAction', 'DrinkAction', 'EatAction', 'InstallAction', 'ListenAction', 'ReadAction', 'UseAction', 'WearAction', 'ViewAction', 'WatchAction', 'ControlAction', 'DeactivateAction', 'ResumeAction', 'SuspendAction', 'ActivateAction', 'CreateAction', 'DrawAction', 'FilmAction', 'PaintAction', 'PhotographAction', 'WriteAction', 'CookAction', 'FindAction', 'TrackAction', 'CheckAction', 'DiscoverAction', 'InteractAction', 'JoinAction', 'LeaveAction', 'MarryAction', 'RegisterAction', 'SubscribeAction', 'UnRegisterAction', 'BefriendAction', 'CommunicateAction', 'InformAction', 'RsvpAction', 'ConfirmAction', 'InviteAction', 'ReplyAction', 'ShareAction', 'AskAction', 'CheckInAction', 'CheckOutAction', 'CommentAction', 'FollowAction', 'MoveAction', 'TravelAction', 'ArriveAction', 'DepartAction', 'OrganizeAction', 'PlanAction', 'ReserveAction', 'ScheduleAction', 'CancelAction', 'AllocateAction', 'AssignAction', 'AuthorizeAction', 'RejectAction', 'AcceptAction', 'ApplyAction', 'BookmarkAction', 'PlayAction', 'ExerciseAction', 'PerformAction', 'SearchAction', 'TradeAction', 'BuyAction', 'DonateAction', 'OrderAction', 'PayAction', 'QuoteAction', 'RentAction', 'SellAction', 'TipAction', 'TransferAction', 'BorrowAction', 'DownloadAction', 'GiveAction', 'LendAction', 'ReceiveAction', 'ReturnAction', 'SendAction', 'TakeAction', 'UpdateAction', 'AddAction', 'InsertAction', 'PrependAction', 'AppendAction', 'DeleteAction', 'ReplaceAction', 'AchieveAction', 'LoseAction', 'TieAction', 'WinAction', 'CreativeWork', 'CreativeWorkSeason', 'RadioSeason', 'TVSeason', 'DataCatalog', 'Dataset', 'DataFeed', 'DigitalDocument', 'NoteDigitalDocument', 'PresentationDigitalDocument', 'SpreadsheetDigitalDocument', 'TextDigitalDocument', 'Episode', 'RadioEpisode', 'TVEpisode', 'Game', 'VideoGame', 'HowTo', 'Recipe', 'Map', 'MediaObject', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'Menu', 'MenuSection', 'Message', 'EmailMessage', 'Movie', 'MusicComposition', 'MusicPlaylist', 'MusicRelease', 'MusicAlbum', 'MusicRecording', 'Painting', 'Photograph', 'PublicationIssue', 'PublicationVolume', 'Question', 'Review', 'ClaimReview', 'Sculpture', 'Season', 'SoftwareApplication', 'WebApplication', 'MobileApplication', 'SoftwareSourceCode', 'VisualArtwork', 'WebPage', 'AboutPage', 'CheckoutPage', 'CollectionPage', 'ImageGallery', 'VideoGallery', 'ContactPage', 'ItemPage', 'ProfilePage', 'QAPage', 'SearchResultsPage', 'WebPageElement', 'WPAdBlock', 'WPFooter', 'WPHeader', 'WPSideBar', 'SiteNavigationElement', 'Table', 'WebSite', 'Article', 'NewsArticle', 'Report', 'ScholarlyArticle', 'SocialMediaPosting', 'BlogPosting', 'LiveBlogPosting', 'DiscussionForumPosting', 'TechArticle', 'APIReference', 'Blog', 'Book', 'Clip', 'MovieClip', 'RadioClip', 'TVClip', 'VideoGameClip', 'Code', 'Comment', 'Answer', 'Conversation', 'Course', 'CreativeWorkSeries', 'MovieSeries', 'Periodical', 'RadioSeries', 'TVSeries', 'VideoGameSeries', 'BookSeries', 'HowToDirection', 'HowToSection', 'HowToStep', 'HowToTip', 'Event', 'ExhibitionEvent', 'Festival', 'FoodEvent', 'LiteraryEvent', 'MusicEvent', 'PublicationEvent', 'BroadcastEvent', 'OnDemandEvent', 'SaleEvent', 'ScreeningEvent', 'SocialEvent', 'SportsEvent', 'TheaterEvent', 'UserInteraction', 'UserLikes', 'UserPageVisits', 'UserPlays', 'UserPlusOnes', 'UserTweets', 'UserBlocks', 'UserCheckins', 'UserComments', 'UserDownloads', 'VisualArtsEvent', 'BusinessEvent', 'ChildrensEvent', 'ComedyEvent', 'CourseInstance', 'DanceEvent', 'DeliveryEvent', 'EducationEvent', 'Intangible', 'Invoice', 'ItemList', 'OfferCatalog', 'BreadcrumbList', 'JobPosting', 'Language', 'ListItem', 'HowToItem', 'HowToSupply', 'HowToTool', 'MenuItem', 'Offer', 'AggregateOffer', 'Order', 'OrderItem', 'ParcelDelivery', 'Permit', 'GovernmentPermit', 'ProgramMembership', 'PropertyValueSpecification', 'Quantity', 'Distance', 'Duration', 'Energy', 'Mass', 'Rating', 'AggregateRating', 'Reservation', 'ReservationPackage', 'TaxiReservation', 'TrainReservation', 'BusReservation', 'EventReservation', 'FlightReservation', 'FoodEstablishmentReservation', 'LodgingReservation', 'RentalCarReservation', 'Role', 'OrganizationRole', 'EmployeeRole', 'PerformanceRole', 'Seat', 'Series', 'Service', 'Taxi', 'TaxiService', 'BroadcastService', 'CableOrSatelliteService', 'FinancialProduct', 'InvestmentOrDeposit', 'DepositAccount', 'LoanOrCredit', 'CreditCard', 'PaymentService', 'BankAccount', 'CurrencyConversionService', 'PaymentCard', 'FoodService', 'GovernmentService', 'ServiceChannel', 'StructuredValue', 'TypeAndQuantityNode', 'WarrantyPromise', 'ContactPoint', 'PostalAddress', 'DatedMoneySpecification', 'EngineSpecification', 'GeoCoordinates', 'GeoShape', 'GeoCircle', 'InteractionCounter', 'MonetaryAmount', 'NutritionInformation', 'OpeningHoursSpecification', 'OwnershipInfo', 'PriceSpecification', 'UnitPriceSpecification', 'CompoundPriceSpecification', 'DeliveryChargeSpecification', 'PaymentChargeSpecification', 'PropertyValue', 'LocationFeatureSpecification', 'QuantitativeValue', 'Ticket', 'Trip', 'BusTrip', 'Flight', 'TrainTrip', 'AlignmentObject', 'Audience', 'BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'BedDetails', 'Brand', 'BroadcastChannel', 'RadioChannel', 'TelevisionChannel', 'ComputerLanguage', 'DataFeedItem', 'Demand', 'DigitalDocumentPermission', 'EntryPoint', 'Enumeration', 'EventStatusType', 'GamePlayMode', 'GameServerStatus', 'GenderType', 'ItemAvailability', 'ItemListOrderType', 'MapCategoryType', 'MusicAlbumProductionType', 'MusicAlbumReleaseType', 'MusicReleaseFormatType', 'OfferItemCondition', 'OrderStatus', 'PaymentMethod', 'PaymentStatusType', 'QualitativeValue', 'SteeringPositionValue', 'DriveWheelConfigurationValue', 'ReservationStatusType', 'RestrictedDiet', 'RsvpResponseType', 'Specialty', 'WarrantyScope', 'ActionStatusType', 'BoardingPolicyType', 'BookFormatType', 'BusinessEntityType', 'BusinessFunction', 'ContactPointOption', 'DayOfWeek', 'DeliveryMethod', 'LockerDelivery', 'ParcelService', 'DigitalDocumentPermissionType', 'GameServer', 'Organization', 'PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Person', 'Place', 'Residence', 'ApartmentComplex', 'GatedResidenceCommunity', 'TouristAttraction', 'Accommodation', 'Apartment', 'CampingPitch', 'House', 'SingleFamilyResidence', 'Room', 'HotelRoom', 'MeetingRoom', 'Suite', 'AdministrativeArea', 'City', 'Country', 'State', 'CivicStructure', 'Crematorium', 'EventVenue', 'GovernmentBuilding', 'LegislativeBuilding', 'CityHall', 'Courthouse', 'DefenceEstablishment', 'Embassy', 'Museum', 'MusicVenue', 'Park', 'ParkingFacility', 'PerformingArtsTheater', 'PlaceOfWorship', 'Synagogue', 'BuddhistTemple', 'CatholicChurch', 'Church', 'HinduTemple', 'Mosque', 'Playground', 'RVPark', 'SubwayStation', 'TaxiStand', 'TrainStation', 'Zoo', 'Airport', 'Aquarium', 'Beach', 'Bridge', 'BusStation', 'BusStop', 'Cemetery', 'Landform', 'Mountain', 'Volcano', 'BodyOfWater', 'Canal', 'LakeBodyOfWater', 'OceanBodyOfWater', 'Pond', 'Reservoir', 'RiverBodyOfWater', 'SeaBodyOfWater', 'Waterfall', 'Continent', 'LandmarksOrHistoricalBuildings', 'Product', 'ProductModel', 'SomeProducts', 'Vehicle', 'Car', 'IndividualProduct', 'Thing'], '游戏任务')
trailer = create_relationship_to(['VideoObject'], '预告片')
class TVSeries(CreativeWorkSeries,CreativeWork):
actor = create_relationship_to(['Person'], '演员')
containsSeason = create_relationship_to(['RadioSeason', 'TVSeason', 'CreativeWorkSeason'], '包含哪些季')
countryOfOrigin = create_relationship_to(['Country'], '影片制作国家')
director = create_relationship_to(['Person'], '导演')
episode = create_relationship_to(['RadioEpisode', 'TVEpisode', 'Episode'], '剧集')
musicBy = create_relationship_to(['Person', 'MusicGroup'], '作曲者')
numberOfEpisodes = create_relationship_to(['Integer'], '剧集数')
numberOfSeasons = create_relationship_to(['Integer'], '季数')
productionCompany = create_relationship_to(['PerformingGroup', 'TheaterGroup', 'DanceGroup', 'MusicGroup', 'SportsOrganization', 'SportsTeam', 'Airline', 'Corporation', 'EducationalOrganization', 'ElementarySchool', 'HighSchool', 'MiddleSchool', 'Preschool', 'School', 'CollegeOrUniversity', 'GovernmentOrganization', 'LocalBusiness', 'LodgingBusiness', 'Motel', 'Resort', 'BedAndBreakfast', 'Campground', 'Hostel', 'Hotel', 'ProfessionalService', 'RadioStation', 'RealEstateAgent', 'RecyclingCenter', 'SelfStorage', 'ShoppingCenter', 'SportsActivityLocation', 'SportsClub', 'StadiumOrArena', 'TennisComplex', 'BowlingAlley', 'ExerciseGym', 'GolfCourse', 'HealthClub', 'PublicSwimmingPool', 'SkiResort', 'Store', 'TireShop', 'ToyStore', 'WholesaleStore', 'AutoPartsStore', 'BikeStore', 'BookStore', 'ClothingStore', 'ComputerStore', 'ConvenienceStore', 'DepartmentStore', 'ElectronicsStore', 'Florist', 'FurnitureStore', 'GardenStore', 'GroceryStore', 'HardwareStore', 'HobbyShop', 'HomeGoodsStore', 'JewelryStore', 'LiquorStore', 'MensClothingStore', 'MobilePhoneStore', 'MovieRentalStore', 'MusicStore', 'OfficeEquipmentStore', 'OutletStore', 'PawnShop', 'PetStore', 'ShoeStore', 'SportingGoodsStore', 'TelevisionStation', 'TouristInformationCenter', 'TravelAgency', 'AnimalShelter', 'AutomotiveBusiness', 'AutoRental', 'AutoRepair', 'AutoWash', 'GasStation', 'MotorcycleDealer', 'MotorcycleRepair', 'AutoBodyShop', 'AutoDealer', 'ChildCare', 'Dentist', 'DryCleaningOrLaundry', 'EmergencyService', 'FireStation', 'Hospital', 'PoliceStation', 'EmploymentAgency', 'EntertainmentBusiness', 'MovieTheater', 'NightClub', 'AdultEntertainment', 'AmusementPark', 'ArtGallery', 'Casino', 'ComedyClub', 'FinancialService', 'InsuranceAgency', 'AccountingService', 'AutomatedTeller', 'BankOrCreditUnion', 'FoodEstablishment', 'IceCreamShop', 'Restaurant', 'Winery', 'Bakery', 'BarOrPub', 'Brewery', 'CafeOrCoffeeShop', 'FastFoodRestaurant', 'GovernmentOffice', 'PostOffice', 'HealthAndBeautyBusiness', 'NailSalon', 'TattooParlor', 'BeautySalon', 'DaySpa', 'HairSalon', 'HomeAndConstructionBusiness', 'HousePainter', 'HVACBusiness', 'Locksmith', 'MovingCompany', 'Plumber', 'RoofingContractor', 'Electrician', 'GeneralContractor', 'InternetCafe', 'LegalService', 'Notary', 'Attorney', 'Library', 'MedicalOrganization', 'Pharmacy', 'Physician', 'NGO', 'Organization'], '制作公司')
trailer = create_relationship_to(['VideoObject'], '预告片')
class HowToDirection(ListItem,CreativeWork):
afterMedia = create_relationship_to(['MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'MediaObject', 'Text'], '操作前的媒体展示')
beforeMedia = create_relationship_to(['Text', 'MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'MediaObject'], '操作后的媒体展示')
duringMedia = create_relationship_to(['MusicVideoObject', 'VideoObject', 'AudioObject', 'DataDownload', 'ImageObject', 'Barcode', 'MediaObject', 'Text'], '操作中的媒体展示')
performTime = create_relationship_to(['Duration'], '执行时间')
prepTime = create_relationship_to(['Duration'], '准备时间')
supply = create_relationship_to(['Text', 'HowToSupply'], '相关物料')
tool = create_relationship_to(['HowToTool', 'Text'], '相关工具')
totalTime = create_relationship_to(['Duration'], '总时间')
class LocalBusiness(Organization,Place):
currenciesAccepted = create_relationship_to(['Text'], '接收的货币')
openingHours = create_relationship_to(['Text'], '开放时间')
paymentAccepted = create_relationship_to(['Text'], '接受的支付方式')
priceRange = create_relationship_to(['Text'], '价格范围')
class AnimalShelter(LocalBusiness):
pass
class FoodEstablishment(LocalBusiness):
acceptsReservations = create_relationship_to(['Text', 'Bool'], '是否接受预定')
hasMenu = create_relationship_to(['Text', 'Menu'], '目录')
servesCuisine = create_relationship_to(['Text'], '主营菜系')
starRating = create_relationship_to(['AggregateRating', 'Rating'], '星级评分')
class CafeOrCoffeeShop(FoodEstablishment):
pass
class Bakery(FoodEstablishment):
pass
class IceCreamShop(FoodEstablishment):
pass
class Restaurant(FoodEstablishment):
pass
class FastFoodRestaurant(FoodEstablishment):
pass
class Winery(FoodEstablishment):
pass
class BarOrPub(FoodEstablishment):
pass
class Brewery(FoodEstablishment):
pass
class LegalService(LocalBusiness):
pass
class Attorney(LegalService):
pass
class Notary(LegalService):
pass
class HomeAndConstructionBusiness(LocalBusiness):
pass
class HousePainter(HomeAndConstructionBusiness):
pass
class GeneralContractor(HomeAndConstructionBusiness):
pass
class Electrician(HomeAndConstructionBusiness):
pass
class MovingCompany(HomeAndConstructionBusiness):
pass
class HVACBusiness(HomeAndConstructionBusiness):
pass
class Locksmith(HomeAndConstructionBusiness):
pass
class Plumber(HomeAndConstructionBusiness):
pass
class RoofingContractor(HomeAndConstructionBusiness):
pass
class RealEstateAgent(LocalBusiness):
pass
class ChildCare(LocalBusiness):
pass
class InternetCafe(LocalBusiness):
pass
class RadioStation(LocalBusiness):
pass
class GovernmentOffice(LocalBusiness):
pass
class PostOffice(GovernmentOffice):
pass
class Library(LocalBusiness):
pass
class TouristInformationCenter(LocalBusiness):
pass
class ProfessionalService(LocalBusiness):
pass
class SelfStorage(LocalBusiness):
pass
class EntertainmentBusiness(LocalBusiness):
pass
class AmusementPark(EntertainmentBusiness):
pass
class Casino(EntertainmentBusiness):
pass
class MovieTheater(CivicStructure,EntertainmentBusiness):
screenCount = create_relationship_to(['Integer'], '放映厅数量')
class NightClub(EntertainmentBusiness):
pass
class ComedyClub(EntertainmentBusiness):
pass
class AdultEntertainment(EntertainmentBusiness):
pass
class ArtGallery(EntertainmentBusiness):
pass
class ShoppingCenter(LocalBusiness):
pass
class TelevisionStation(LocalBusiness):
pass
class DryCleaningOrLaundry(LocalBusiness):
pass
class EmploymentAgency(LocalBusiness):
pass
class EmergencyService(LocalBusiness):
pass
class PoliceStation(CivicStructure,EmergencyService):
pass
class FireStation(CivicStructure,EmergencyService):
pass
class Hospital(CivicStructure,MedicalOrganization,EmergencyService):
pass
class FinancialService(LocalBusiness):
feesAndCommissionsSpecification = create_relationship_to(['Text'], '费用和佣金详情')
class InsuranceAgency(FinancialService):
pass
class BankOrCreditUnion(FinancialService):
pass
class AutomatedTeller(FinancialService):
pass
class AccountingService(FinancialService):
pass
class HealthAndBeautyBusiness(LocalBusiness):
pass
class NailSalon(HealthAndBeautyBusiness):
pass
class HairSalon(HealthAndBeautyBusiness):
pass
class DaySpa(HealthAndBeautyBusiness):
pass
class TattooParlor(HealthAndBeautyBusiness):
pass
class BeautySalon(HealthAndBeautyBusiness):
pass
class TravelAgency(LocalBusiness):
pass
class SportsActivityLocation(LocalBusiness):
pass
class ExerciseGym(SportsActivityLocation):
pass
class GolfCourse(SportsActivityLocation):
pass
class SportsClub(SportsActivityLocation):
pass
class StadiumOrArena(CivicStructure,SportsActivityLocation):
pass
class TennisComplex(SportsActivityLocation):
pass
class SkiResort(SportsActivityLocation):
pass
class PublicSwimmingPool(SportsActivityLocation):
pass
class BowlingAlley(SportsActivityLocation):
pass
class Dentist(MedicalOrganization,LocalBusiness):
pass
class Store(LocalBusiness):
pass
class GroceryStore(Store):
pass
class JewelryStore(Store):
pass
class HomeGoodsStore(Store):
pass
class TireShop(Store):
pass
class MovieRentalStore(Store):
pass
class ToyStore(Store):
pass
class BookStore(Store):
pass
class OutletStore(Store):
pass
class MobilePhoneStore(Store):
pass
class LiquorStore(Store):
pass
class BikeStore(Store):
pass
class SportingGoodsStore(Store):
pass
class OfficeEquipmentStore(Store):
pass
class MusicStore(Store):
pass
class ComputerStore(Store):
pass
class ShoeStore(Store):
pass
class PetStore(Store):
pass
class Florist(Store):
pass
class PawnShop(Store):
pass
class ConvenienceStore(Store):
pass
class ElectronicsStore(Store):
pass
class GardenStore(Store):
pass
class FurnitureStore(Store):
pass
class HardwareStore(Store):
pass
class HobbyShop(Store):
pass
class WholesaleStore(Store):
pass
class DepartmentStore(Store):
pass
class MensClothingStore(Store):
pass
class ClothingStore(Store):
pass
class LodgingBusiness(LocalBusiness):
amenityFeature = create_relationship_to(['LocationFeatureSpecification'], '特色服务')
audience = create_relationship_to(['BusinessAudience', 'EducationalAudience', 'PeopleAudience', 'ParentAudience', 'Audience'], '受众')
availableLanguage = create_relationship_to(['Language', 'Text'], '支持的语言')
checkinTime = create_relationship_to(['Date', 'Text'], '入住时间')
checkoutTime = create_relationship_to(['Date', 'Text'], '退房时间')
petsAllowed = create_relationship_to(['Text', 'Bool'], '是否允许带宠物')
starRating = create_relationship_to(['AggregateRating', 'Rating'], '星级评分')
class BedAndBreakfast(LodgingBusiness):
pass
class Motel(LodgingBusiness):
pass
class Hotel(LodgingBusiness):
pass
class Hostel(LodgingBusiness):
pass
class Resort(LodgingBusiness):
pass
class Campground(CivicStructure,LodgingBusiness):
pass
class RecyclingCenter(LocalBusiness):
pass
class AutomotiveBusiness(LocalBusiness):
pass
class AutoRepair(AutomotiveBusiness):
pass
class MotorcycleDealer(AutomotiveBusiness):
pass
class AutoRental(AutomotiveBusiness):
pass
class AutoDealer(AutomotiveBusiness):
pass
class GasStation(AutomotiveBusiness):
pass
class AutoBodyShop(AutomotiveBusiness):
pass
class MotorcycleRepair(AutomotiveBusiness):
pass
class AutoWash(AutomotiveBusiness):
pass
class PaymentCard(PaymentMethod,FinancialProduct):
pass
class CreditCard(LoanOrCredit,PaymentCard):
pass
class DepositAccount(BankAccount,InvestmentOrDeposit):
pass
class HealthClub(HealthAndBeautyBusiness,SportsActivityLocation):
pass
class AutoPartsStore(Store,AutomotiveBusiness):
pass
class Text(Thing):
pass
class Date(Thing):
pass
class Bool(Thing):
pass
class Integer(Thing):
pass
class Float(Thing):
pass
| 199.733107
| 9,732
| 0.744394
| 57,438
| 880,823
| 11.373185
| 0.03865
| 0.033341
| 0.036984
| 0.013557
| 0.937713
| 0.933204
| 0.925311
| 0.916082
| 0.913493
| 0.910586
| 0
| 0.000069
| 0.076565
| 880,823
| 4,409
| 9,733
| 199.778408
| 0.803062
| 0
| 0
| 0.442883
| 0
| 0
| 0.67952
| 0.070557
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.174977
| 0.00136
| 0
| 0.824569
| 0.001813
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 12
|
38e0bd15aca8b48224e4dcb0e7b2165f2f90dee8
| 92
|
py
|
Python
|
covid19uncle/__init__.py
|
MartinThoma/covid19
|
fe460b162117d9fd44594f07f8967f2690188cb9
|
[
"MIT"
] | 12
|
2020-03-22T08:47:31.000Z
|
2021-04-20T01:55:58.000Z
|
covid19uncle/__init__.py
|
MartinThoma/covid19
|
fe460b162117d9fd44594f07f8967f2690188cb9
|
[
"MIT"
] | 1
|
2020-03-30T07:23:10.000Z
|
2020-04-01T08:40:16.000Z
|
covid19uncle/__init__.py
|
MartinThoma/covid19
|
fe460b162117d9fd44594f07f8967f2690188cb9
|
[
"MIT"
] | 14
|
2020-03-21T23:19:13.000Z
|
2020-12-22T06:21:50.000Z
|
from covid19uncle.covid19 import GlobalCovid19
from covid19uncle.covid19 import ThaiCovid19
| 46
| 47
| 0.891304
| 10
| 92
| 8.2
| 0.6
| 0.390244
| 0.560976
| 0.707317
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0.086957
| 92
| 2
| 48
| 46
| 0.833333
| 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
|
2a1fac5f4b767b9ae2d6bf66a2fb91e5660f824b
| 12,234
|
py
|
Python
|
tests/test_unit_image.py
|
stephengaito/cekit
|
d6d254af6bb6820e5c725680bd77b6c195636cf6
|
[
"MIT"
] | null | null | null |
tests/test_unit_image.py
|
stephengaito/cekit
|
d6d254af6bb6820e5c725680bd77b6c195636cf6
|
[
"MIT"
] | null | null | null |
tests/test_unit_image.py
|
stephengaito/cekit
|
d6d254af6bb6820e5c725680bd77b6c195636cf6
|
[
"MIT"
] | null | null | null |
import logging
import pytest
import yaml
from collections import OrderedDict
from cekit.descriptor import Image, Overrides, Module
from cekit.generator.base import ModuleRegistry
from cekit.tools import Map
from cekit.errors import CekitError
def test_image_overrides_with_content_sets_none():
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
packages:
install:
- abc
- def
content_sets:
arch:
- namea
- nameb
"""), 'foo')
assert image.packages.content_sets == {'arch': ['namea', 'nameb']}
assert 'content_sets_file' not in image.packages
image.apply_image_overrides([Overrides({'packages': {'content_sets': None}}, "a/path")])
assert 'content_sets' not in image.packages
assert 'content_sets_file' not in image.packages
def test_image_overrides_with_content_sets_file_none(mocker):
with mocker.mock_module.patch('cekit.descriptor.packages.os.path.exists') as exists_mock:
exists_mock.return_value = True
with mocker.mock_module.patch('cekit.descriptor.packages.open', mocker.mock_open(read_data='{"arch": ["a", "b"]}')):
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
packages:
install:
- abc
def
content_sets_file: cs.yaml
"""), 'foo')
assert image.packages.content_sets == {'arch': ['a', 'b']}
assert 'content_sets_file' not in image.packages
image.apply_image_overrides([Overrides({'packages': {'content_sets_file': None}}, "a/path")])
assert 'content_sets' not in image.packages
assert 'content_sets_file' not in image.packages
def test_image_overrides_with_content_sets():
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
packages:
install:
- abc
- def
content_sets:
arch:
- namea
- nameb
"""), 'foo')
assert image.packages.content_sets == {'arch': ['namea', 'nameb']}
assert 'content_sets_file' not in image.packages
image.apply_image_overrides(
[Overrides({'packages': {'content_sets': {'arch': ['new-arch']}}}, "a/path")])
assert image.packages.content_sets == {'arch': ['new-arch']}
assert 'content_sets_file' not in image.packages
def test_image_overrides_with_content_sets_file(mocker):
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
packages:
install:
- abc
- def
content_sets:
arch:
- namea
- nameb
"""), 'foo')
assert image.packages.content_sets == {'arch': ['namea', 'nameb']}
assert 'content_sets_file' not in image.packages
with mocker.mock_module.patch('cekit.descriptor.packages.os.path.exists') as exists_mock:
exists_mock.return_value = True
with mocker.mock_module.patch('cekit.descriptor.packages.open', mocker.mock_open(read_data='{"arch": ["a", "b"]}')):
image.apply_image_overrides(
[Overrides({'packages': {'content_sets_file': 'some-path'}}, "a/path")])
assert image.packages.content_sets == {'arch': ['a', 'b']}
assert 'content_sets_file' not in image.packages
def test_image_overrides_packages_repositories_add():
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
packages:
repositories:
- name: scl
rpm: centos-release-scl
"""), 'foo')
assert len(image.packages.repositories) == 1
assert image.packages.repositories[0].rpm == 'centos-release-scl'
assert image.packages.repositories[0].name == 'scl'
image.apply_image_overrides(
[Overrides({'packages': {'repositories': [{"id": "rhel7-extras-rpm", "name": "extras"}]}}, "a/path")])
assert len(image.packages.repositories) == 2
assert image.packages.repositories[0].rpm == 'centos-release-scl'
assert image.packages.repositories[0].name == 'scl'
assert image.packages.repositories[1].id == 'rhel7-extras-rpm'
assert image.packages.repositories[1].name == 'extras'
def test_image_overrides_packages_repositories_replace():
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
packages:
repositories:
- name: scl
rpm: centos-release-scl
"""), 'foo')
assert len(image.packages.repositories) == 1
assert image.packages.repositories[0].rpm == 'centos-release-scl'
assert image.packages.repositories[0].name == 'scl'
image.apply_image_overrides(
[Overrides({'packages': {'repositories': [{"id": "rhel7-extras-rpm", "name": "scl"}]}}, "a/path")])
assert len(image.packages.repositories) == 1
assert image.packages.repositories[0].name == 'scl'
assert image.packages.repositories[0].id == 'rhel7-extras-rpm'
assert 'rpm' not in image.packages.repositories[0]
def test_module_processing_simple_modules_order_to_install():
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
"""), 'foo')
module_a = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_b = Module(yaml.safe_load("""
name: org.test.module.b
version: 1.0
"""), 'path', 'artifact_path')
module_registry = ModuleRegistry()
module_registry.add_module(module_a)
module_registry.add_module(module_b)
resulting_install_list = OrderedDict()
to_install_list = [
Map({'name': 'org.test.module.a', 'version': '1.0'}),
Map({'name': 'org.test.module.b'})
]
image.process_install_list(image, to_install_list, resulting_install_list, module_registry)
assert resulting_install_list == OrderedDict(
[('org.test.module.a', {'name': 'org.test.module.a', 'version': '1.0'}), ('org.test.module.b', {'name': 'org.test.module.b'})])
def test_module_processing_fail_when_no_modules_of_specified_name_can_be_found():
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
"""), 'foo')
module_a = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_registry = ModuleRegistry()
module_registry.add_module(module_a)
resulting_install_list = OrderedDict()
to_install_list = [
Map({'name': 'org.test.module.a', 'version': '1.0'}),
Map({'name': 'org.test.module.b'})
]
with pytest.raises(CekitError) as excinfo:
image.process_install_list(image, to_install_list, resulting_install_list, module_registry)
assert "There are no modules with 'org.test.module.b' name available" in str(excinfo.value)
def test_module_processing_fail_when_module_not_found_for_specific_version():
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
"""), 'foo')
module_a = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_registry = ModuleRegistry()
module_registry.add_module(module_a)
resulting_install_list = OrderedDict()
to_install_list = [
Map({'name': 'org.test.module.a', 'version': '1.1'})
]
with pytest.raises(CekitError) as excinfo:
image.process_install_list(image, to_install_list, resulting_install_list, module_registry)
assert "Module 'org.test.module.a' with version '1.1' could not be found, available versions: 1.0" in str(
excinfo.value)
def test_module_processing_modules_with_multiple_versions(caplog):
caplog.set_level(logging.DEBUG, logger="cekit")
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
"""), 'foo')
module_a = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_b = Module(yaml.safe_load("""
name: org.test.module.b
version: 1.0
"""), 'path', 'artifact_path')
module_b_1 = Module(yaml.safe_load("""
name: org.test.module.b
version: 1.1
"""), 'path', 'artifact_path')
module_registry = ModuleRegistry()
module_registry.add_module(module_a)
module_registry.add_module(module_b)
module_registry.add_module(module_b_1)
resulting_install_list = OrderedDict()
to_install_list = [
Map({'name': 'org.test.module.a', 'version': '1.0'}),
Map({'name': 'org.test.module.b'})
]
image.process_install_list(image, to_install_list, resulting_install_list, module_registry)
assert resulting_install_list == OrderedDict(
[('org.test.module.a', {'name': 'org.test.module.a', 'version': '1.0'}), ('org.test.module.b', {'name': 'org.test.module.b'})])
assert "Module version not specified for 'org.test.module.b' module, using '1.1' default version" in caplog.text
# https://github.com/cekit/cekit/issues/617
def test_module_processing_modules_with_single_versions(caplog):
caplog.set_level(logging.DEBUG, logger="cekit")
image = Image(yaml.safe_load("""
from: foo
name: test/foo
version: 1.9
"""), 'foo')
module_a = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_b = Module(yaml.safe_load("""
name: org.test.module.b
version: 1.0
"""), 'path', 'artifact_path')
module_registry = ModuleRegistry()
module_registry.add_module(module_a)
module_registry.add_module(module_b)
resulting_install_list = OrderedDict()
to_install_list = [
Map({'name': 'org.test.module.a', 'version': '1.0'}),
Map({'name': 'org.test.module.b'})
]
image.process_install_list(image, to_install_list, resulting_install_list, module_registry)
assert resulting_install_list == OrderedDict(
[('org.test.module.a', {'name': 'org.test.module.a', 'version': '1.0'}), ('org.test.module.b', {'name': 'org.test.module.b'})])
assert "Module version not specified for" not in caplog.text
def test_module_processing_fail_when_a_module_aready_exists_in_registry():
module_a = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_a1 = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_registry = ModuleRegistry()
module_registry.add_module(module_a)
with pytest.raises(CekitError) as excinfo:
module_registry.add_module(module_a1)
assert "Module 'org.test.module.a' with version '1.0' already exists in module registry" in str(
excinfo.value)
def test_module_processing_warning_when_a_module_version_cannot_be_parsed_as_pep_440(caplog):
caplog.set_level(logging.DEBUG, logger="cekit")
module_a = Module(yaml.safe_load("""
name: org.test.module.a
version: 1.0
"""), 'path', 'artifact_path')
module_a1 = Module(yaml.safe_load("""
name: org.test.module.a
version: aa fs df
"""), 'path', 'artifact_path')
module_registry = ModuleRegistry()
module_registry.add_module(module_a)
module_registry.add_module(module_a1)
assert "Module's 'org.test.module.a' version 'aa fs df' does not follow PEP 440 versioning scheme (https://www.python.org/dev/peps/pep-0440), we suggest follow this versioning scheme in modules" in caplog.text
def test_image_no_name():
with pytest.raises(CekitError) as excinfo:
Image(yaml.safe_load("""
version: 1.9
labels:
- name: test
value: val1
- name: label2
value: val2
envs:
- name: env1
value: env1val
"""), 'foo')
assert 'Cannot validate schema' in str(excinfo.value)
| 31.209184
| 213
| 0.631355
| 1,537
| 12,234
| 4.813923
| 0.098243
| 0.062171
| 0.068523
| 0.064333
| 0.870388
| 0.854169
| 0.81903
| 0.802406
| 0.763752
| 0.746858
| 0
| 0.012189
| 0.228789
| 12,234
| 391
| 214
| 31.289003
| 0.772019
| 0.003351
| 0
| 0.789831
| 0
| 0.013559
| 0.379706
| 0.011484
| 0
| 0
| 0
| 0
| 0.138983
| 1
| 0.047458
| false
| 0
| 0.027119
| 0
| 0.074576
| 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
|
2a2eeda2d0f0a7e6fc8f0c055eae0c4e652a64b9
| 53,627
|
py
|
Python
|
data_generation/shapeset/shapeset2_1cspo_2_3.5000.test_code/grammar_v3.py
|
j3bian/Image-Background-Compression
|
62937707e3d1e503b3b567a6fd695cec5f80751a
|
[
"Apache-2.0"
] | 3
|
2018-04-18T02:13:41.000Z
|
2019-12-01T12:45:24.000Z
|
data_generation/shapeset/shapeset2_1cspo_2_3.5000.test_code/grammar_v3.py
|
j3bian/Image-Background-Compression
|
62937707e3d1e503b3b567a6fd695cec5f80751a
|
[
"Apache-2.0"
] | null | null | null |
data_generation/shapeset/shapeset2_1cspo_2_3.5000.test_code/grammar_v3.py
|
j3bian/Image-Background-Compression
|
62937707e3d1e503b3b567a6fd695cec5f80751a
|
[
"Apache-2.0"
] | 1
|
2018-10-21T09:30:13.000Z
|
2018-10-21T09:30:13.000Z
|
#!/usr/local/bin/python
# includes built-in modules
import sys
import os
import shutil
import random
from os.path import *
from math import *
# all templates
from templates_v3 import *
#++++++++
from problem import *
# related changes: FID_input changed to be a scene
# reason: we don't want to have to read from a file
#--------
####################################################################################################################
def list_crescent_pairs(number_objects):
return [[i,j] for i in range(number_objects) for j in range(i+1,number_objects)]
def list_all_pairs(number_objects):
return [[i,j] for i in range(number_objects) for j in range(i+1,number_objects)+range(0,i)]
# image = (dict) image description
# pair = (list of int) index of the objects in a pair (in range(number_objets) x range(number_objets))
# attributeName = 'size', 'hrz_pos', 'vrt_pos'
def get_relative_attribute(image,pair,attributeName):
#return eval("images["+str(image)+"]['comparison_"+str(pair[0])+"/"+str(pair[1])+"']['"+attributeName+"']")
return image["comparison_"+str(pair[0])+"/"+str(pair[1])][attributeName]
# image = (dict) image description
# i_object = (int) index of the object (in range(number_objets))
# attributeName = 'color', 'shape', 'size', 'hrz_pos', 'vrt_pos'
def get_absolute_attribute(image,i_object,attributeName):
#return eval("images["+str(image)+"]['object_"+str(i_object)+"']['"+attributeName+"']")
return image["object_"+str(i_object)][attributeName]
#################################################################################################################
# Semantic Knowledge (Rules)
# Grammatical Rules on
# position with respect to another object
def relative_position_vert(i,j,image):
if i < j:
# print eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['vrtpos']")
if eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['vrtpos']") =='NA':
position = 'NA'
if eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['vrtpos']") =='higher':
position='above'
if eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['vrtpos']") =='lower':
position='below'
elif i > j:
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['vrtpos']")=='NA':
position = 'NA'
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['vrtpos']")=='higher':
position='below'
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['vrtpos']")=='lower':
position='above'
else:
print "ERROR in relative_position_vert : i and j must be different"
sys.exit(0)
return position
# vertical placement
def relative_position_hor(i,j,image):
# print i, j
preposition = ['to the','on the']
prep = RANDOM.choice(preposition)
if i < j:
if eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='NA':
position = 'NA'
if eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='left':
position=prep+' left of'
elif eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='right':
position=prep+' right of'
elif i > j:
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='NA':
position = 'NA'
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='left':
position=prep+' right of'
elif eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='right':
position=prep+' left of'
else:
print "ERROR in relative_position_hor : i and j must be different"
sys.exit(0)
# print position
return position
def abs_position_hor(hrz):
preposition = ['to the ','on the ']
prep = RANDOM.choice(preposition)
position = prep+hrz
return position
def abs_position_vert(vrt):
preposition = ['at the ','on the ']
prep = RANDOM.choice(preposition)
position = prep+vrt
return position
def relative_position_hor_ans(i,j,image):
preposition = ['on the']
prep = RANDOM.choice(preposition)
if i < j:
if eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='NA':
position = 'NA'
elif eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='left':
position=prep+' left '
elif eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='right':
position=prep+' right '
elif i > j:
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='NA':
position = 'NA'
elif eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='left':
position=prep+' right '
elif eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='right':
position=prep+' left '
else:
position = 'No position'
sys.exit(0)
return position
def relative_position_hor_short(i,j,image):
if i < j:
if eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='NA':
position = 'NA'
elif eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='left':
position= ' left '
elif eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['hrzpos']")=='right':
position= ' right '
elif i > j:
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='NA':
position = 'NA'
elif eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='left':
position= ' right '
elif eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['hrzpos']")=='right':
position= ' left '
else:
position = 'No position'
sys.exit(0)
return position
#####################################################################################################################
def relative_size(i,j,image):
# print i, j
if i < j:
rel_size = eval("image"+ "['comparison_"+str(i)+"/"+str(j)+"']['size']")
elif i >j:
if eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['size']") == 'smaller':
rel_size = 'bigger'
elif eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['size']") == 'bigger':
rel_size = 'smaller'
elif eval("image"+ "['comparison_"+str(j)+"/"+str(i)+"']['size']") == 'NA':
rel_size = 'NA'
# print rel_size
return rel_size
def compare_comparison(i,j,k,l,attr):
# print i, j, k, l, attr
same = 0
if attr == 'size':
if relative_size(i,j,image) == relative_size(k,l,image):
same = 1
if attr == 'vrtpos':
if relative_position_vert(i,j,image) == relative_position_vert(k,l,image):
same = 1
if attr == 'hrzpos':
if relative_position_hor_short(i,j,image) == relative_position_hor_short(k,l,image):
same = 1
# print same
return same
# delete reduntant words (position in centre and medium size)
def redundant_centre(x,y):
if x == 'upper' and y == 'centre': y = ''
if x == 'lower' and y == 'centre': y = ''
return y
def redundant_middle(x):
if x == 'middle' : x = ' '
return x
def redundant_medium(x):
if x in ['medium','NA']: x = ''
return x
def restore(x,y):
y.append(x)
return y
######################################################################################################################
def build_question_topics_one_objects():
q_topics=[]
q_list=[]
if language_question['color']==1:
q_topics.append("['object_0']['color']")
q_list.append("color_quest")
if language_question['shape']==1:
q_topics.append("['object_0']['shape']")
q_list.append("shape_quest")
if language_question['size']==1:
q_topics.append("['object_0']['size']")
q_list.append("size_quest")
if language_question['location_hor']==1:
q_topics.append("['object_0']['hrzpos']")
q_list.append("hrzpos_quest")
if language_question['location_vert']==1:
q_topics.append("['object_0']['vrtpos']")
q_list.append("vrtpos_quest")
return q_topics, q_list
def build_question_topics_several_objects(i,j):
q_topics=[]
q_list=[]
if language_question['color']==1:
q_topics.append("['object_"+str(i)+"']['color']")
q_list.append("color_quest")
if language_question['shape']==1:
q_topics.append("['object_"+str(i)+"']['shape']")
q_list.append("shape_quest")
i0=min(i,j)
j0=max(i,j)
if language_question['size']==1:
q_topics.append("['comparison_"+str(i0)+"/"+str(j0)+"']['size']")
q_list.append("size_quest")
if language_question['location_hor']==1:
q_topics.append("['comparison_"+str(i0)+"/"+str(j0)+"']['hrzpos']")
q_list.append("hrzpos_quest")
if language_question['location_vert']==1:
q_topics.append("['comparison_"+str(i0)+"/"+str(j0)+"']['vrtpos']")
q_list.append("vrtpos_quest")
return q_topics, q_list
def no_question(a,b,c,quest):
if b== 1 and c==1 and a == 0: quest = 0
return quest
#######################################################################################################################
def printout(text):
if len(text) == 0:
print "ERROR : no text given"
sys.exit(0)
if globals()['sentence'] == 1: # print one sentence per type
FID_output.write(RANDOM.choice(text)+"\n")
else:
for i in range(len(text)):
if 'NA' in text[i]:
print text
sys.exit(0)
FID_output.write(text[i]+"\n")
#####################################################################################################################
#++++++++
def reseed_grammar(seed):
if seed == None:
RANDOM.seed(random.random())
else:
RANDOM.seed(seed)
def printout_but_not_really(text):
if len(text) == 0:
print "ERROR : no text given"
sys.exit(0)
if globals()['sentence'] == 1: # print one sentence per type
sentence_list.append(RANDOM.choice(text))
else:
for i in range(len(text)):
if 'NA' in text[i]:
print text
sys.exit(0)
sentence_list.append(text[i])
def describe(scene_dict, **config):
globals().update(config) ##########
# initiate scene parameters
# the number of objects to describe;
# if language_objects == 0, then all objects from the image
if language_objects == 0: number_objects_referedto = number_objects
else: number_objects_referedto = language_objects
# text format
if language_form == 'question/answer' and language_question == None:
print 'Inconsistent language parameters:'+ ' '+language_form+' '+ 'and'+ ' '+language_question
raise endSearch
if language_form == 'type_of_sentencement' and (language_question == 'color' or language_question == 'size' or
language_question == 'shape' or language_question == 'location' or language_question == 'position'):
print 'Inconsistent language parameters:'+ ' '+language_form+' '+ 'and question'+ ' '+language_question
raise endSearch
# the number of output sentences
if language_sentence == 'one' or language_sentence == 'oneofeach': sentence = 1
else: sentence = 0
# If there are more than 1 object,
# we will build the list of possible topics on a case by case (each pair of each image)
#
question_topics, quest_list = build_question_topics_one_objects()
question_topics_index=range(len(question_topics))
# FID_input = open(input_file, "r")
# if isfile(output_file):
# print "STOP: "+output_file+" already exists, please remove it"
# sys.exit(0)
# FID_output = open(output_file,"w")
globals()['sentence'] = sentence
globals()['FID_output'] = None ##########
# random.seed(12345)
i_image=0
for whatever in [1]: ########## I didn't feel like untabbing the body
globals()['sentence_list'] = [] ##########
image = scene_dict ##########
globals()['image'] = image
# if language_sentence == 'all' or language_sentence == 'oneofeach':
# printout(['\nImage '+str(i_image)+':'])
# print "Image "+str(i_image)
i_image+=1
# initialize
objects = []
cl = []
# shape
sh = []
# vertical position on the screen
vr = []
# horizontal position on the screen
hr = []
# size
sz = []
# matrix of relative positions from other objects
position = []
# for random objects from the image
# include or not background description
if language_background == 0:
bc = ' '
else:
bc = 'on' + ' ' + 'the' + ' ' + image['background']['color'] +' screen'
for i in range(number_objects):
cl.append(image['object_'+str(i)]['color'])
sh.append(image['object_'+str(i)]['shape'])
hr.append(image['object_'+str(i)]['hrzpos'])
vr.append(image['object_'+str(i)]['vrtpos'])
sz.append(image['object_'+str(i)]['size'])
objects.append(image['object_'+str(i)])
# for i in range(len(objects)):
# print objects[i]
# In the question, we refer to more than 2 objects...
if number_objects_referedto > 1:
# print '2 objects amongst '+str(number_objects)
index_pairs = [[i,j] for i in range(number_objects) for j in range(0,i)+range(i+1,number_objects)]
index_objects = range(number_objects)
# The objects are chosen randomly in the *desc file,
# so we do not need this kind of things:
# (resolved bug)
#
# if language_sentence == 'one' or language_sentence == 'oneofeach':
# index_pairs = [random.choice(index_pairs)]
for i_pair in index_pairs:
theobj1=objects[i_pair[0]]
theobj2=objects[i_pair[1]]
same_color_other = 0
same_shape_other = 0
same_relsize_other = 0
same_relhrzpos_other = 0
same_relvrtpos_other = 0
if number_objects > 2:
others = []
for i in range(len(objects)):
if i != i_pair[0] and i != i_pair[1]:
others.append(i)
same_relsize_other = 0
same_relhrzpos_other = 0
same_relvrtpos_other = 0
for ob_other in others:
if cl[i_pair[0]] == cl[ob_other]:
same_color_other = 1
if sh[i_pair[0]] == sh[ob_other]:
same_shape_other = 1
# (resolved bug)
same_relsize_other = max(same_relsize_other,compare_comparison(i_pair[0],i_pair[1],ob_other,i_pair[1],'size'))
same_relhrzpos_other = max(same_relhrzpos_other,compare_comparison(i_pair[0],i_pair[1],ob_other,i_pair[1],'hrzpos'))
same_relvrtpos_other = max(same_relvrtpos_other,compare_comparison(i_pair[0],i_pair[1],ob_other,i_pair[1],'vrtpos'))
#######################################################
# Here we define all the topics we can talk about...
# (taking into acount the config file AND the relevant topics for the scene)
question_topics, quest_list = build_question_topics_several_objects(i_pair[0],i_pair[1])
question_topics_index=range(len(question_topics))
if language_sentence == 'one':
only_one_question = 0
tmp=RANDOM.choice(question_topics_index)
topics=[tmp]
while eval("image"+question_topics[topics[0]]) == 'NA' or quest_list[tmp] == 0:
topics=[RANDOM.choice(question_topics_index)]
elif language_sentence == 'all' or language_sentence == 'oneofeach':
topics=[]
only_one_question = 2
for topic_index in question_topics_index:
if eval("image"+question_topics[topic_index]) != 'NA':
topics.append(topic_index)
else:
print "ERROR: parameter language_sentence not valid (1)"
sys.exit(0)
# We then choose one or several topics among the possible ones
for quest in quest_list:
globals()[quest]=0
for topic in topics:
globals()[quest_list[topic]]=1
# This ''hack'' would be to change...
hrzpos_quest=globals()['hrzpos_quest']
vrtpos_quest=globals()['vrtpos_quest']
shape_quest=globals()['shape_quest']
color_quest=globals()['color_quest']
size_quest=globals()['size_quest']
#######################################################
relsize = relative_size(i_pair[0],i_pair[1],image)
relposition_vert = relative_position_vert(i_pair[0],i_pair[1],image)
relposition_hor = relative_position_hor(i_pair[0],i_pair[1],image)
relpos_hor_ans1 = relative_position_hor_ans(i_pair[0],i_pair[1],image)
if theobj1.get('shape') != theobj2.get('shape') and same_shape_other == 0:
adescr1 = an_object(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
adescr2 = an_object(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
thedescr1 = the_object(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
thedescr2 = the_object(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
else:
if theobj1.get('color') != theobj2.get('color') and same_color_other == 0:
adescr1 = an_object_sameShape(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
adescr2 = an_object_sameShape(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
thedescr1 = the_object_sameShape(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
thedescr2 = the_object_sameShape(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
else:
adescr1 = an_object_sameShapeColor(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
adescr2 = an_object_sameShapeColor(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
thedescr1 = the_object_sameShapeColor(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
thedescr2 = the_object_sameShapeColor(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
# Determine the absolute position of the first object
# (It is 'in the middle' if it is not on the right/left neither on the top/bottom)
if theobj1.get('hrzpos')=='NA':
if theobj1.get('vrtpos')=='NA':
absolute_position = 'in the middle'
else:
absolute_position = abs_position_vert(theobj1.get('vrtpos'))
elif theobj1.get('vrtpos')=='NA':
absolute_position = abs_position_hor(theobj1.get('hrzpos'))
else:
absolute_position = RANDOM.choice([abs_position_vert(theobj1.get('vrtpos')),abs_position_hor(theobj1.get('hrzpos'))])
# all questions on colour, shape, size are allowed
if same_relhrzpos_other == 0:
if color_quest == 1:
if relposition_hor != 'NA':
text_two_color = two_objects_questions_color(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
if shape_quest == 1:
if relposition_hor != 'NA':
text_two_shape = two_objects_questions_shape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
if size_quest == 1:
if relposition_hor != 'NA':
text_two_size = two_objects_questions_size(adescr1,adescr2,thedescr2,relposition_hor,relsize)
printout_but_not_really(text_two_size)
if only_one_question == 0: break
else:
text_two_size = two_objects_questions_size_abspos(adescr1,adescr2,thedescr2,absolute_position,relsize)
printout_but_not_really(text_two_size)
if only_one_question == 0: break
if same_relvrtpos_other == 0:
if color_quest == 1:
if relposition_vert != 'NA':
text_two_color= two_objects_questions_color(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
if shape_quest == 1:
if relposition_vert != 'NA':
text_two_shape = two_objects_questions_shape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
if size_quest == 1:
if relposition_vert != 'NA':
text_two_size = two_objects_questions_size(adescr1,adescr2,thedescr2,relposition_vert,relsize)
printout_but_not_really(text_two_size)
if only_one_question == 0: break
else:
text_two_size = two_objects_questions_size_abspos(adescr1,adescr2,thedescr2,absolute_position,relsize)
printout_but_not_really(text_two_size)
if only_one_question == 0: break
# some questions on colour, shape, size are not permitted
if same_relhrzpos_other == 1 or same_relvrtpos_other == 1:
if color_quest == 1 and (same_shape_other != same_relsize_other):
if relposition_hor != 'NA':
text_two_color = two_objects_questions_color_sameLocationShape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_color= two_objects_questions_color_sameLocationShape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
if color_quest == 1 and (same_shape_other == same_relsize_other):
if relposition_hor != 'NA':
text_two_color = two_objects_questions_color_sameLocation(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_color= two_objects_questions_color_sameLocation(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_color)
if only_one_question == 0: break
if size_quest == 1:
if relposition_hor != 'NA':
text_two_size = two_objects_questions_size_sameAttribute(theobj1.get('size'),theobj1.get('color'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor,relsize)
printout_but_not_really(text_two_size)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_size = two_objects_questions_size_sameAttribute(theobj1.get('size'),theobj1.get('color'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert,relsize)
printout_but_not_really(text_two_size)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
if shape_quest == 1 and same_color_other == 0:
if relposition_hor != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationSize(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationSize(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
if shape_quest == 1 and same_relsize_other == 0:
if relposition_hor != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationColor(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationColor(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout_but_not_really(text_two_shape)
if only_one_question == 0: break
# position questions are not allowed
if (theobj1.get('shape') == theobj2.get('shape') and same_shape_other == 1) and (theobj1.get('color') == theobj2.get('color') and same_color_other == 1) and (theobj1.get('size') == theobj2.get('size') and same_relsize_other == 1):
vrtpos_quest = 0
hrzpos_quest = 0
if vrtpos_quest == 1:
if relposition_vert != 'NA':
#relpos_vert1 = relative_position_vert(i_pair[0],i_pair[1],image)
text_two_location_vert = two_objects_questions_location_vert(adescr1,thedescr1,adescr2,thedescr2,relposition_vert,absolute_position)
printout_but_not_really(text_two_location_vert)
if only_one_question == 0: break
else:
text_two_location_vert = two_objects_questions_location_vert_abs(adescr1,thedescr1,adescr2,thedescr2,relposition_vert,absolute_position)
printout_but_not_really(text_two_location_vert)
if only_one_question == 0: break
elif hrzpos_quest == 1:
if relposition_hor != 'NA':
#relpos_hor_1 = relative_position_hor(i_pair[0],i_pair[1],image)
#relpos_hor_ans1 = relative_position_hor_ans(i_pair[0],i_pair[1],image)
text_two_location_hor = two_objects_questions_location_hor(adescr1,thedescr1,adescr2,thedescr2,relpos_hor_ans1,absolute_position)
printout_but_not_really(text_two_location_hor)
if only_one_question == 0: break
else:
text_two_location_hor = two_objects_questions_location_hor_abs(adescr1,thedescr1,adescr2,thedescr2,relpos_hor_ans1,absolute_position)
printout_but_not_really(text_two_location_hor)
if only_one_question == 0: break
#if color_quest == 0 and shape_quest == 0 and size_quest == 0 and vrtpos_quest == 0 and hrzpos_quest == 0:
# printout_but_not_really(["No questions for this pair"])
if number_objects_referedto==1:
# Deprecated !!!!!!!!!
if language_form == 'statement':
print '1'+' '+'object'
theobj = RANDOM.choice(objects)
theobj['size'] = redundant_medium(theobj['size'])
thedescr = an_object(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
text_one = one_object(thedescr,theobj['vrtpos'],theobj['hrzpos'])
printout_but_not_really(text_one)
if theobj.get('size') == '': theobj['size'] = 'medium'
text_part = object_partial(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
printout_but_not_really(text_part)
elif language_form == 'question/answer':
print '1'+' '+'object'
theobj = objects[0]
adescr = an_object(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
thedescr = the_object(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
if 'medium' in thedescr:
print theobj
sys.exit(0)
if language_sentence == 'one':
tmp=RANDOM.choice(question_topics_index)
topics=[tmp]
while eval("image"+question_topics[topics[0]]) in ['medium','NA'] or quest_list[tmp] == 0:
topics=[RANDOM.choice(question_topics_index)]
elif language_sentence == 'all' or language_sentence == 'oneofeach':
topics=[]
for topic_index in question_topics_index:
if eval("image"+question_topics[topic_index]) not in ['medium','NA']:
topics.append(topic_index)
else:
print "ERROR: parameter language_sentence not valid (1)"
sys.exit(0)
# We then choose one or several topics among the possible ones
for quest in quest_list:
globals()[quest]=0
for topic in topics:
globals()[quest_list[topic]]=1
# This ''hack'' would be to change...
hrzpos_quest=globals()['hrzpos_quest']
vrtpos_quest=globals()['vrtpos_quest']
shape_quest=globals()['shape_quest']
color_quest=globals()['color_quest']
size_quest=globals()['size_quest']
if vrtpos_quest == 1:
text_one_quest = one_object_questions_location_vert(thedescr,adescr,theobj.get('vrtpos'))
printout_but_not_really(text_one_quest)
if hrzpos_quest == 1:
text_one_quest = one_object_questions_location_hor(thedescr,adescr,theobj.get('hrzpos'))
printout_but_not_really(text_one_quest)
if color_quest == 1:
text_one_quest = one_object_questions_color(theobj.get('color'),theobj.get('size'),theobj.get('shape'),theobj.get('vrtpos'),theobj.get('hrzpos'))
printout_but_not_really(text_one_quest)
if shape_quest == 1:
text_one_quest = one_object_questions_shape(theobj.get('color'),theobj.get('size'),theobj.get('shape'),theobj.get('vrtpos'),theobj.get('hrzpos'))
printout_but_not_really(text_one_quest)
if size_quest == 1:
text_one_quest = one_object_questions_size(theobj.get('color'),theobj.get('size'),theobj.get('shape'),theobj.get('vrtpos'),theobj.get('hrzpos'))
printout_but_not_really(text_one_quest)
return sentence_list
#--------
def main(config_file):
execfile(config_file,globals())
# initiate scene parameters
# the number of objects to describe;
# if language_objects == 0, then all objects from the image
if language_objects == 0: number_objects_referedto = number_objects
else: number_objects_referedto = language_objects
# text format
if language_form == 'question/answer' and language_question == None:
print 'Inconsistent language parameters:'+ ' '+language_form+' '+ 'and'+ ' '+language_question
raise endSearch
if language_form == 'type_of_sentencement' and (language_question == 'color' or language_question == 'size' or
language_question == 'shape' or language_question == 'location' or language_question == 'position'):
print 'Inconsistent language parameters:'+ ' '+language_form+' '+ 'and question'+ ' '+language_question
raise endSearch
# the number of output sentences
if language_sentence == 'one' or language_sentence == 'oneofeach': sentence = 1
else: sentence = 0
# If there are more than 1 object,
# we will build the list of possible topics on a case by case (each pair of each image)
#
question_topics, quest_list = build_question_topics_one_objects()
question_topics_index=range(len(question_topics))
FID_input = open(input_file, "r")
if isfile(output_file):
print "STOP: "+output_file+" already exists, please remove it"
sys.exit(0)
FID_output = open(output_file,"w")
globals()['sentence'] = sentence
globals()['FID_output'] = FID_output
# random.seed(12345)
i_image=0
for line in FID_input:
image = eval(line)
globals()['image'] = image
if language_sentence == 'all' or language_sentence == 'oneofeach':
printout(['\nImage '+str(i_image)+':'])
print "Image "+str(i_image)
i_image+=1
# initialize
objects = []
cl = []
# shape
sh = []
# vertical position on the screen
vr = []
# horizontal position on the screen
hr = []
# size
sz = []
# matrix of relative positions from other objects
position = []
# for random objects from the image
# include or not background description
if language_background == 0:
bc = ' '
else:
bc = 'on' + ' ' + 'the' + ' ' + image['background']['color'] +' screen'
for i in range(number_objects):
cl.append(image['object_'+str(i)]['color'])
sh.append(image['object_'+str(i)]['shape'])
hr.append(image['object_'+str(i)]['hrzpos'])
vr.append(image['object_'+str(i)]['vrtpos'])
sz.append(image['object_'+str(i)]['size'])
objects.append(image['object_'+str(i)])
# for i in range(len(objects)):
# print objects[i]
# In the question, we refer to more than 2 objects...
if number_objects_referedto > 1:
print '2 objects amongst '+str(number_objects)
index_pairs = [[i,j] for i in range(number_objects) for j in range(0,i)+range(i+1,number_objects)]
index_objects = range(number_objects)
# The objects are chosen randomly in the *desc file,
# so we do not need this kind of things:
# (resolved bug)
#
# if language_sentence == 'one' or language_sentence == 'oneofeach':
# index_pairs = [random.choice(index_pairs)]
for i_pair in index_pairs:
theobj1=objects[i_pair[0]]
theobj2=objects[i_pair[1]]
same_color_other = 0
same_shape_other = 0
same_relsize_other = 0
same_relhrzpos_other = 0
same_relvrtpos_other = 0
if number_objects > 2:
others = []
for i in range(len(objects)):
if i != i_pair[0] and i != i_pair[1]:
others.append(i)
same_relsize_other = 0
same_relhrzpos_other = 0
same_relvrtpos_other = 0
for ob_other in others:
if cl[i_pair[0]] == cl[ob_other]:
same_color_other = 1
if sh[i_pair[0]] == sh[ob_other]:
same_shape_other = 1
# (resolved bug)
same_relsize_other = max(same_relsize_other,compare_comparison(i_pair[0],i_pair[1],ob_other,i_pair[1],'size'))
same_relhrzpos_other = max(same_relhrzpos_other,compare_comparison(i_pair[0],i_pair[1],ob_other,i_pair[1],'hrzpos'))
same_relvrtpos_other = max(same_relvrtpos_other,compare_comparison(i_pair[0],i_pair[1],ob_other,i_pair[1],'vrtpos'))
#######################################################
# Here we define all the topics we can talk about...
# (taking into acount the config file AND the relevant topics for the scene)
question_topics, quest_list = build_question_topics_several_objects(i_pair[0],i_pair[1])
question_topics_index=range(len(question_topics))
if language_sentence == 'one':
only_one_question = 0
tmp=RANDOM.choice(question_topics_index)
topics=[tmp]
while eval("image"+question_topics[topics[0]]) == 'NA' or quest_list[tmp] == 0:
topics=[RANDOM.choice(question_topics_index)]
elif language_sentence == 'all' or language_sentence == 'oneofeach':
topics=[]
only_one_question = 2
for topic_index in question_topics_index:
if eval("image"+question_topics[topic_index]) != 'NA':
topics.append(topic_index)
else:
print "ERROR: parameter language_sentence not valid (1)"
sys.exit(0)
# We then choose one or several topics among the possible ones
for quest in quest_list:
globals()[quest]=0
for topic in topics:
globals()[quest_list[topic]]=1
# This ''hack'' would be to change...
hrzpos_quest=globals()['hrzpos_quest']
vrtpos_quest=globals()['vrtpos_quest']
shape_quest=globals()['shape_quest']
color_quest=globals()['color_quest']
size_quest=globals()['size_quest']
#######################################################
relsize = relative_size(i_pair[0],i_pair[1],image)
relposition_vert = relative_position_vert(i_pair[0],i_pair[1],image)
relposition_hor = relative_position_hor(i_pair[0],i_pair[1],image)
relpos_hor_ans1 = relative_position_hor_ans(i_pair[0],i_pair[1],image)
if theobj1.get('shape') != theobj2.get('shape') and same_shape_other == 0:
adescr1 = an_object(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
adescr2 = an_object(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
thedescr1 = the_object(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
thedescr2 = the_object(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
else:
if theobj1.get('color') != theobj2.get('color') and same_color_other == 0:
adescr1 = an_object_sameShape(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
adescr2 = an_object_sameShape(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
thedescr1 = the_object_sameShape(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
thedescr2 = the_object_sameShape(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
else:
adescr1 = an_object_sameShapeColor(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
adescr2 = an_object_sameShapeColor(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
thedescr1 = the_object_sameShapeColor(theobj1.get('shape'),theobj1.get('color'),theobj1.get('size'))
thedescr2 = the_object_sameShapeColor(theobj2.get('shape'),theobj2.get('color'),theobj2.get('size'))
# Determine the absolute position of the first object
# (It is 'in the middle' if it is not on the right/left neither on the top/bottom)
if theobj1.get('hrzpos')=='NA':
if theobj1.get('vrtpos')=='NA':
absolute_position = 'in the middle'
else:
absolute_position = abs_position_vert(theobj1.get('vrtpos'))
elif theobj1.get('vrtpos')=='NA':
absolute_position = abs_position_hor(theobj1.get('hrzpos'))
else:
absolute_position = RANDOM.choice([abs_position_vert(theobj1.get('vrtpos')),abs_position_hor(theobj1.get('hrzpos'))])
# all questions on colour, shape, size are allowed
if same_relhrzpos_other == 0:
if color_quest == 1:
if relposition_hor != 'NA':
text_two_color = two_objects_questions_color(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_color)
if only_one_question == 0: break
if shape_quest == 1:
if relposition_hor != 'NA':
text_two_shape = two_objects_questions_shape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
if size_quest == 1:
if relposition_hor != 'NA':
text_two_size = two_objects_questions_size(adescr1,adescr2,thedescr2,relposition_hor,relsize)
printout(text_two_size)
if only_one_question == 0: break
else:
text_two_size = two_objects_questions_size_abspos(adescr1,adescr2,thedescr2,absolute_position,relsize)
printout(text_two_size)
if only_one_question == 0: break
if same_relvrtpos_other == 0:
if color_quest == 1:
if relposition_vert != 'NA':
text_two_color= two_objects_questions_color(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_color)
if only_one_question == 0: break
if shape_quest == 1:
if relposition_vert != 'NA':
text_two_shape = two_objects_questions_shape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
if size_quest == 1:
if relposition_vert != 'NA':
text_two_size = two_objects_questions_size(adescr1,adescr2,thedescr2,relposition_vert,relsize)
printout(text_two_size)
if only_one_question == 0: break
else:
text_two_size = two_objects_questions_size_abspos(adescr1,adescr2,thedescr2,absolute_position,relsize)
printout(text_two_size)
if only_one_question == 0: break
# some questions on colour, shape, size are not permitted
if same_relhrzpos_other == 1 or same_relvrtpos_other == 1:
if color_quest == 1 and (same_shape_other != same_relsize_other):
if relposition_hor != 'NA':
text_two_color = two_objects_questions_color_sameLocationShape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_color)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_color= two_objects_questions_color_sameLocationShape(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_color)
if only_one_question == 0: break
if color_quest == 1 and (same_shape_other == same_relsize_other):
if relposition_hor != 'NA':
text_two_color = two_objects_questions_color_sameLocation(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_color)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_color= two_objects_questions_color_sameLocation(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout(text_two_color)
if only_one_question == 0: break
else:
text_two_color = two_objects_questions_color_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_color)
if only_one_question == 0: break
if size_quest == 1:
if relposition_hor != 'NA':
text_two_size = two_objects_questions_size_sameAttribute(theobj1.get('size'),theobj1.get('color'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor,relsize)
printout(text_two_size)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_size = two_objects_questions_size_sameAttribute(theobj1.get('size'),theobj1.get('color'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert,relsize)
printout(text_two_size)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
if shape_quest == 1 and same_color_other == 0:
if relposition_hor != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationSize(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationSize(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
if shape_quest == 1 and same_relsize_other == 0:
if relposition_hor != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationColor(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_hor)
printout(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
if relposition_vert != 'NA':
text_two_shape = two_objects_questions_shape_sameLocationColor(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,relposition_vert)
printout(text_two_shape)
if only_one_question == 0: break
else:
text_two_shape = two_objects_questions_shape_abspos(theobj1.get('color'),theobj1.get('size'),theobj1.get('shape'),adescr2,thedescr2,absolute_position)
printout(text_two_shape)
if only_one_question == 0: break
# position questions are not allowed
if (theobj1.get('shape') == theobj2.get('shape') and same_shape_other == 1) and (theobj1.get('color') == theobj2.get('color') and same_color_other == 1) and (theobj1.get('size') == theobj2.get('size') and same_relsize_other == 1):
vrtpos_quest = 0
hrzpos_quest = 0
if vrtpos_quest == 1:
if relposition_vert != 'NA':
#relpos_vert1 = relative_position_vert(i_pair[0],i_pair[1],image)
text_two_location_vert = two_objects_questions_location_vert(adescr1,thedescr1,adescr2,thedescr2,relposition_vert,absolute_position)
printout(text_two_location_vert)
if only_one_question == 0: break
else:
text_two_location_vert = two_objects_questions_location_vert_abs(adescr1,thedescr1,adescr2,thedescr2,relposition_vert,absolute_position)
printout(text_two_location_vert)
if only_one_question == 0: break
elif hrzpos_quest == 1:
if relposition_hor != 'NA':
#relpos_hor_1 = relative_position_hor(i_pair[0],i_pair[1],image)
#relpos_hor_ans1 = relative_position_hor_ans(i_pair[0],i_pair[1],image)
text_two_location_hor = two_objects_questions_location_hor(adescr1,thedescr1,adescr2,thedescr2,relpos_hor_ans1,absolute_position)
printout(text_two_location_hor)
if only_one_question == 0: break
else:
text_two_location_hor = two_objects_questions_location_hor_abs(adescr1,thedescr1,adescr2,thedescr2,relpos_hor_ans1,absolute_position)
printout(text_two_location_hor)
if only_one_question == 0: break
#if color_quest == 0 and shape_quest == 0 and size_quest == 0 and vrtpos_quest == 0 and hrzpos_quest == 0:
# printout(["No questions for this pair"])
if number_objects_referedto==1:
# Deprecated !!!!!!!!!
if language_form == 'statement':
print '1'+' '+'object'
theobj = RANDOM.choice(objects)
theobj['size'] = redundant_medium(theobj['size'])
thedescr = an_object(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
text_one = one_object(thedescr,theobj['vrtpos'],theobj['hrzpos'])
printout(text_one)
if theobj.get('size') == '': theobj['size'] = 'medium'
text_part = object_partial(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
printout(text_part)
elif language_form == 'question/answer':
print '1'+' '+'object'
theobj = objects[0]
adescr = an_object(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
thedescr = the_object(theobj.get('shape'),theobj.get('color'),theobj.get('size'))
if 'medium' in thedescr:
print theobj
sys.exit(0)
if language_sentence == 'one':
tmp=RANDOM.choice(question_topics_index)
topics=[tmp]
while eval("image"+question_topics[topics[0]]) in ['medium','NA'] or quest_list[tmp] == 0:
topics=[RANDOM.choice(question_topics_index)]
elif language_sentence == 'all' or language_sentence == 'oneofeach':
topics=[]
for topic_index in question_topics_index:
if eval("image"+question_topics[topic_index]) not in ['medium','NA']:
topics.append(topic_index)
else:
print "ERROR: parameter language_sentence not valid (1)"
sys.exit(0)
# We then choose one or several topics among the possible ones
for quest in quest_list:
globals()[quest]=0
for topic in topics:
globals()[quest_list[topic]]=1
# This ''hack'' would be to change...
hrzpos_quest=globals()['hrzpos_quest']
vrtpos_quest=globals()['vrtpos_quest']
shape_quest=globals()['shape_quest']
color_quest=globals()['color_quest']
size_quest=globals()['size_quest']
if vrtpos_quest == 1:
text_one_quest = one_object_questions_location_vert(thedescr,adescr,theobj.get('vrtpos'))
printout(text_one_quest)
if hrzpos_quest == 1:
text_one_quest = one_object_questions_location_hor(thedescr,adescr,theobj.get('hrzpos'))
printout(text_one_quest)
if color_quest == 1:
text_one_quest = one_object_questions_color(theobj.get('color'),theobj.get('size'),theobj.get('shape'),theobj.get('vrtpos'),theobj.get('hrzpos'))
printout(text_one_quest)
if shape_quest == 1:
text_one_quest = one_object_questions_shape(theobj.get('color'),theobj.get('size'),theobj.get('shape'),theobj.get('vrtpos'),theobj.get('hrzpos'))
printout(text_one_quest)
if size_quest == 1:
text_one_quest = one_object_questions_size(theobj.get('color'),theobj.get('size'),theobj.get('shape'),theobj.get('vrtpos'),theobj.get('hrzpos'))
printout(text_one_quest)
FID_output.close()
def man():
print "Usage : " + sys.argv[0] + " <config file>"
sys.exit(0)
if __name__ == '__main__':
if len(sys.argv) < 2:
WORKDIR=dirname(sys.argv[0])
if len(WORKDIR) > 0:
WORKDIR=WORKDIR+'/'
config_file=WORKDIR+'grammar_v3_config.py'
elif len(sys.argv) == 2:
config_file=sys.argv[1]
else :
man()
if isfile(config_file)==False:
print "ERROR : cannot find " + config_file
print
man()
main(config_file)
| 39.172389
| 235
| 0.669719
| 7,178
| 53,627
| 4.734884
| 0.044302
| 0.067084
| 0.033542
| 0.034837
| 0.941948
| 0.935211
| 0.922529
| 0.915732
| 0.912584
| 0.896872
| 0
| 0.019056
| 0.172152
| 53,627
| 1,368
| 236
| 39.201023
| 0.746503
| 0.095996
| 0
| 0.860691
| 0
| 0
| 0.106207
| 0.002723
| 0.00216
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.008639
| null | null | 0.12419
| 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
|
2a3ca988689aa03e27bd6dabbeeb836943aaf042
| 26,757
|
py
|
Python
|
bifacialvf/tests/__init__.py
|
shirubana/bifacialvf
|
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
|
[
"BSD-3-Clause"
] | 16
|
2018-01-17T06:03:23.000Z
|
2021-11-08T18:54:20.000Z
|
bifacialvf/tests/__init__.py
|
shirubana/bifacialvf
|
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
|
[
"BSD-3-Clause"
] | 36
|
2018-03-16T15:17:58.000Z
|
2022-03-18T17:54:49.000Z
|
bifacialvf/tests/__init__.py
|
shirubana/bifacialvf
|
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
|
[
"BSD-3-Clause"
] | 15
|
2018-01-11T09:11:13.000Z
|
2022-03-21T11:37:42.000Z
|
import numpy as np
SKY_BETA160_C05_D1 = np.array(
[[0.39344519, 0.39292569, 0.39240611, 0.39188644, 0.3913667 ,
0.39084688, 0.39032699, 0.38980703, 0.389287 , 0.38876691,
0.38824676, 0.38772654, 0.38720627, 0.38668595, 0.38616558,
0.38564515, 0.38512468, 0.38460417, 0.38408362, 0.38356304,
0.38304241, 0.38252176, 0.38200108, 0.38148037, 0.38095963,
0.38043888, 0.37991811, 0.37939732, 0.37887652, 0.37835571,
0.37783489, 0.37731407, 0.37679325, 0.37627242, 0.3757516 ,
0.37523079, 0.37470998, 0.37418919, 0.37366841, 0.37314765,
0.37262691, 0.37210619, 0.37158549, 0.37106483, 0.37054419,
0.37002359, 0.36950302, 0.36898249, 0.368462 , 0.36794156,
0.36742116, 0.36690081, 0.36638051, 0.36586027, 0.36534008,
0.36481996, 0.36429989, 0.3637799 , 0.36325996, 0.3627401 ,
0.36222032, 0.3617006 , 0.36118097, 0.36066142, 0.36014195,
0.35962256, 0.35910327, 0.35858406, 0.35806495, 0.35754594,
0.35702703, 0.35650821, 0.35598951, 0.3554709 , 0.35495241,
0.35443403, 0.35391576, 0.35339762, 0.35287959, 0.35236168,
0.3518439 , 0.35132624, 0.35080872, 0.35029133, 0.34977407,
0.34925695, 0.34873997, 0.34822313, 0.34770644, 0.34718989,
0.3466735 , 0.34615726, 0.34564117, 0.34512524, 0.34460947,
0.34409386, 0.34357842, 0.34306315, 0.34254804, 0.34203311],
[0.39344519, 0.39292569, 0.39240611, 0.39188644, 0.3913667 ,
0.39084688, 0.39032699, 0.38980703, 0.389287 , 0.38876691,
0.38824676, 0.38772654, 0.38720627, 0.38668595, 0.38616558,
0.38564515, 0.38512468, 0.38460417, 0.38408362, 0.38356304,
0.38304241, 0.38252176, 0.38200108, 0.38148037, 0.38095963,
0.38043888, 0.37991811, 0.37939732, 0.37887652, 0.37835571,
0.37783489, 0.37731407, 0.37679325, 0.37627242, 0.3757516 ,
0.37523079, 0.37470998, 0.37418919, 0.37366841, 0.37314765,
0.37262691, 0.37210619, 0.37158549, 0.37106483, 0.37054419,
0.37002359, 0.36950302, 0.36898249, 0.368462 , 0.36794156,
0.36742116, 0.36690081, 0.36638051, 0.36586027, 0.36534008,
0.36481996, 0.36429989, 0.3637799 , 0.36325996, 0.3627401 ,
0.36222032, 0.3617006 , 0.36118097, 0.36066142, 0.36014195,
0.35962256, 0.35910327, 0.35858406, 0.35806495, 0.35754594,
0.35702703, 0.35650821, 0.35598951, 0.3554709 , 0.35495241,
0.35443403, 0.35391576, 0.35339762, 0.35287959, 0.35236168,
0.3518439 , 0.35132624, 0.35080872, 0.35029133, 0.34977407,
0.34925695, 0.34873997, 0.34822313, 0.34770644, 0.34718989,
0.3466735 , 0.34615726, 0.34564117, 0.34512524, 0.34460947,
0.34409386, 0.34357842, 0.34306315, 0.34254804, 0.34203311]])
SKY_BETA20_C05_D1 = np.array(
[[0.49191249, 0.47907243, 0.46639084, 0.4539596 , 0.44186595,
0.43019095, 0.41900828, 0.40838328, 0.39837241, 0.38902304,
0.38037348, 0.37245339, 0.36528422, 0.35888002, 0.35324812,
0.34839005, 0.34430235, 0.34097738, 0.3384041 , 0.33656874,
0.33545546, 0.3350468 , 0.3353242 , 0.33626834, 0.33785938,
0.34007726, 0.34290179, 0.34631281, 0.35029021, 0.35460871,
0.35899677, 0.36385087, 0.36914875, 0.374868 , 0.38098599,
0.3874798 , 0.39432619, 0.40150151, 0.4089817 , 0.41674221,
0.42475803, 0.43300368, 0.44145321, 0.45008021, 0.45885791,
0.46775917, 0.4767566 , 0.4858226 , 0.4949295 , 0.50404957,
0.51315521, 0.52221897, 0.53121369, 0.54011256, 0.5488892 ,
0.55751777, 0.56597297, 0.57423011, 0.58226515, 0.59005469,
0.59757597, 0.60480687, 0.61172586, 0.61831194, 0.62454461,
0.63040379, 0.63586971, 0.64092289, 0.645544 , 0.64971378,
0.65341298, 0.65662231, 0.65932232, 0.66149343, 0.66311588,
0.66420495, 0.66492791, 0.66502809, 0.66448647, 0.66328438,
0.6614038 , 0.65882772, 0.65554061, 0.65152894, 0.64678181,
0.64129165, 0.63505501, 0.62807333, 0.62035387, 0.61191049,
0.60276447, 0.59294524, 0.58249086, 0.57144843, 0.55987415,
0.54783307, 0.53539856, 0.52265139, 0.5096785 , 0.49657147],
[0.49191249, 0.47907243, 0.46639084, 0.4539596 , 0.44186595,
0.43019095, 0.41900828, 0.40838328, 0.39837241, 0.38902304,
0.38037348, 0.37245339, 0.36528422, 0.35888002, 0.35324812,
0.34839005, 0.34430235, 0.34097738, 0.3384041 , 0.33656874,
0.33545546, 0.3350468 , 0.3353242 , 0.33626834, 0.33785938,
0.34007726, 0.34290179, 0.34631281, 0.35029021, 0.35460871,
0.35899677, 0.36385087, 0.36914875, 0.374868 , 0.38098599,
0.3874798 , 0.39432619, 0.40150151, 0.4089817 , 0.41674221,
0.42475803, 0.43300368, 0.44145321, 0.45008021, 0.45885791,
0.46775917, 0.4767566 , 0.4858226 , 0.4949295 , 0.50404957,
0.51315521, 0.52221897, 0.53121369, 0.54011256, 0.5488892 ,
0.55751777, 0.56597297, 0.57423011, 0.58226515, 0.59005469,
0.59757597, 0.60480687, 0.61172586, 0.61831194, 0.62454461,
0.63040379, 0.63586971, 0.64092289, 0.645544 , 0.64971378,
0.65341298, 0.65662231, 0.65932232, 0.66149343, 0.66311588,
0.66420495, 0.66492791, 0.66502809, 0.66448647, 0.66328438,
0.6614038 , 0.65882772, 0.65554061, 0.65152894, 0.64678181,
0.64129165, 0.63505501, 0.62807333, 0.62035387, 0.61191049,
0.60276447, 0.59294524, 0.58249086, 0.57144843, 0.55987415,
0.54783307, 0.53539856, 0.52265139, 0.5096785 , 0.49657147]])
SKY_BETA20_C0_D1 = np.array(
[[0.02721499, 0.0283665 , 0.02958612, 0.03087902, 0.03225084,
0.03370777, 0.03525655, 0.03690459, 0.03866 , 0.04053169,
0.04252945, 0.04466404, 0.04694732, 0.04939235, 0.05201353,
0.05482677, 0.05784964, 0.06110152, 0.06460389, 0.06838047,
0.07245748, 0.07686393, 0.08163185, 0.08679662, 0.09239721,
0.0984765 , 0.10508156, 0.11226383, 0.12007933, 0.12858868,
0.13785703, 0.14795376, 0.15895183, 0.17092689, 0.18395573,
0.19811434, 0.21347513, 0.23010344, 0.24805335, 0.26736258,
0.28804702, 0.31009493, 0.3334614 , 0.35806381, 0.38377894,
0.41044252, 0.4378518 , 0.46577152, 0.49394289, 0.52209507,
0.54995789, 0.57727461, 0.60381305, 0.62937442, 0.65379876,
0.67696726, 0.6988015 , 0.71926031, 0.73833509, 0.75604423,
0.77242734, 0.78753973, 0.80144751, 0.81422338, 0.82594327,
0.83668366, 0.84651965, 0.85552351, 0.86376381, 0.87130483,
0.87820626, 0.88452317, 0.89030601, 0.89560085, 0.90044957,
0.90489014, 0.90895687, 0.91268077, 0.91608977, 0.91920901,
0.92206108, 0.92466627, 0.92704278, 0.9292069 , 0.93117321,
0.93295473, 0.93456304, 0.93600842, 0.9373 , 0.93844578,
0.93945279, 0.94032712, 0.941074 , 0.94169784, 0.94220232,
0.94259038, 0.94286425, 0.94302554, 0.94307515, 0.94301338],
[0.02721499, 0.0283665 , 0.02958612, 0.03087902, 0.03225084,
0.03370777, 0.03525655, 0.03690459, 0.03866 , 0.04053169,
0.04252945, 0.04466404, 0.04694732, 0.04939235, 0.05201353,
0.05482677, 0.05784964, 0.06110152, 0.06460389, 0.06838047,
0.07245748, 0.07686393, 0.08163185, 0.08679662, 0.09239721,
0.0984765 , 0.10508156, 0.11226383, 0.12007933, 0.12858868,
0.13785703, 0.14795376, 0.15895183, 0.17092689, 0.18395573,
0.19811434, 0.21347513, 0.23010344, 0.24805335, 0.26736258,
0.28804702, 0.31009493, 0.3334614 , 0.35806381, 0.38377894,
0.41044252, 0.4378518 , 0.46577152, 0.49394289, 0.52209507,
0.54995789, 0.57727461, 0.60381305, 0.62937442, 0.65379876,
0.67696726, 0.6988015 , 0.71926031, 0.73833509, 0.75604423,
0.77242734, 0.78753973, 0.80144751, 0.81422338, 0.82594327,
0.83668366, 0.84651965, 0.85552351, 0.86376381, 0.87130483,
0.87820626, 0.88452317, 0.89030601, 0.89560085, 0.90044957,
0.90489014, 0.90895687, 0.91268077, 0.91608977, 0.91920901,
0.92206108, 0.92466627, 0.92704278, 0.9292069 , 0.93117321,
0.93295473, 0.93456304, 0.93600842, 0.9373 , 0.93844578,
0.93945279, 0.94032712, 0.941074 , 0.94169784, 0.94220232,
0.94259038, 0.94286425, 0.94302554, 0.94307515, 0.94301338]])
SKY_BETA160_C0_D1 = np.array(
[[0.00384724, 0.00384054, 0.00383385, 0.00382718, 0.00382052,
0.00381388, 0.00380726, 0.00380064, 0.00379405, 0.00378746,
0.0037809 , 0.00377434, 0.0037678 , 0.00376128, 0.00375477,
0.00374828, 0.0037418 , 0.00373533, 0.00372888, 0.00372244,
0.00371602, 0.00370961, 0.00370321, 0.00369683, 0.00369047,
0.00368412, 0.00367778, 0.00367145, 0.00366514, 0.00365885,
0.00365256, 0.0036463 , 0.00364004, 0.0036338 , 0.00362757,
0.00362136, 0.00361516, 0.00360898, 0.0036028 , 0.00359665,
0.0035905 , 0.00358437, 0.00357825, 0.00357215, 0.00356606,
0.00355998, 0.00355391, 0.00354786, 0.00354183, 0.0035358 ,
0.00352979, 0.00352379, 0.00351781, 0.00351183, 0.00350588,
0.00349993, 0.003494 , 0.00348808, 0.00348217, 0.00347628,
0.0034704 , 0.00346453, 0.00345867, 0.00345283, 0.003447 ,
0.00344118, 0.00343538, 0.00342958, 0.0034238 , 0.00341804,
0.00341228, 0.00340654, 0.00340081, 0.0033951 , 0.00338939,
0.0033837 , 0.00337802, 0.00337235, 0.0033667 , 0.00336105,
0.00335542, 0.0033498 , 0.0033442 , 0.0033386 , 0.00333302,
0.00332745, 0.00332189, 0.00331634, 0.00331081, 0.00330529,
0.00329978, 0.00329428, 0.00328879, 0.00328332, 0.00327785,
0.0032724 , 0.00326696, 0.00326153, 0.00325612, 0.00325071],
[0.00384724, 0.00384054, 0.00383385, 0.00382718, 0.00382052,
0.00381388, 0.00380726, 0.00380064, 0.00379405, 0.00378746,
0.0037809 , 0.00377434, 0.0037678 , 0.00376128, 0.00375477,
0.00374828, 0.0037418 , 0.00373533, 0.00372888, 0.00372244,
0.00371602, 0.00370961, 0.00370321, 0.00369683, 0.00369047,
0.00368412, 0.00367778, 0.00367145, 0.00366514, 0.00365885,
0.00365256, 0.0036463 , 0.00364004, 0.0036338 , 0.00362757,
0.00362136, 0.00361516, 0.00360898, 0.0036028 , 0.00359665,
0.0035905 , 0.00358437, 0.00357825, 0.00357215, 0.00356606,
0.00355998, 0.00355391, 0.00354786, 0.00354183, 0.0035358 ,
0.00352979, 0.00352379, 0.00351781, 0.00351183, 0.00350588,
0.00349993, 0.003494 , 0.00348808, 0.00348217, 0.00347628,
0.0034704 , 0.00346453, 0.00345867, 0.00345283, 0.003447 ,
0.00344118, 0.00343538, 0.00342958, 0.0034238 , 0.00341804,
0.00341228, 0.00340654, 0.00340081, 0.0033951 , 0.00338939,
0.0033837 , 0.00337802, 0.00337235, 0.0033667 , 0.00336105,
0.00335542, 0.0033498 , 0.0033442 , 0.0033386 , 0.00333302,
0.00332745, 0.00332189, 0.00331634, 0.00331081, 0.00330529,
0.00329978, 0.00329428, 0.00328879, 0.00328332, 0.00327785,
0.0032724 , 0.00326696, 0.00326153, 0.00325612, 0.00325071]])
SKY_BETA160_C1_D1 = np.array(
[[0.3114026 , 0.31120886, 0.31101505, 0.31082117, 0.31062722,
0.3104332 , 0.3102391 , 0.31004494, 0.30985071, 0.30965641,
0.30946205, 0.30926761, 0.30907311, 0.30887854, 0.3086839 ,
0.3084892 , 0.30829443, 0.30809959, 0.30790469, 0.30770973,
0.3075147 , 0.3073196 , 0.30712444, 0.30692922, 0.30673394,
0.30653859, 0.30634318, 0.30614771, 0.30595217, 0.30575658,
0.30556092, 0.30536521, 0.30516943, 0.30497359, 0.3047777 ,
0.30458174, 0.30438573, 0.30418966, 0.30399353, 0.30379734,
0.30360109, 0.30340479, 0.30320844, 0.30301202, 0.30281555,
0.30261903, 0.30242244, 0.30222581, 0.30202912, 0.30183238,
0.30163558, 0.30143873, 0.30124183, 0.30104487, 0.30084786,
0.3006508 , 0.30045369, 0.30025653, 0.30005932, 0.29986206,
0.29966474, 0.29946738, 0.29926997, 0.29907251, 0.298875 ,
0.29867745, 0.29847984, 0.29828219, 0.29808449, 0.29788675,
0.29768895, 0.29749112, 0.29729323, 0.29709531, 0.29689733,
0.29669932, 0.29650126, 0.29630315, 0.296105 , 0.29590681,
0.29570858, 0.2955103 , 0.29531198, 0.29511362, 0.29491522,
0.29471678, 0.2945183 , 0.29431978, 0.29412122, 0.29392262,
0.29372398, 0.2935253 , 0.29332658, 0.29312783, 0.29292903,
0.29273021, 0.29253134, 0.29233244, 0.2921335 , 0.29193452],
[0.3114026 , 0.31120886, 0.31101505, 0.31082117, 0.31062722,
0.3104332 , 0.3102391 , 0.31004494, 0.30985071, 0.30965641,
0.30946205, 0.30926761, 0.30907311, 0.30887854, 0.3086839 ,
0.3084892 , 0.30829443, 0.30809959, 0.30790469, 0.30770973,
0.3075147 , 0.3073196 , 0.30712444, 0.30692922, 0.30673394,
0.30653859, 0.30634318, 0.30614771, 0.30595217, 0.30575658,
0.30556092, 0.30536521, 0.30516943, 0.30497359, 0.3047777 ,
0.30458174, 0.30438573, 0.30418966, 0.30399353, 0.30379734,
0.30360109, 0.30340479, 0.30320844, 0.30301202, 0.30281555,
0.30261903, 0.30242244, 0.30222581, 0.30202912, 0.30183238,
0.30163558, 0.30143873, 0.30124183, 0.30104487, 0.30084786,
0.3006508 , 0.30045369, 0.30025653, 0.30005932, 0.29986206,
0.29966474, 0.29946738, 0.29926997, 0.29907251, 0.298875 ,
0.29867745, 0.29847984, 0.29828219, 0.29808449, 0.29788675,
0.29768895, 0.29749112, 0.29729323, 0.29709531, 0.29689733,
0.29669932, 0.29650126, 0.29630315, 0.296105 , 0.29590681,
0.29570858, 0.2955103 , 0.29531198, 0.29511362, 0.29491522,
0.29471678, 0.2945183 , 0.29431978, 0.29412122, 0.29392262,
0.29372398, 0.2935253 , 0.29332658, 0.29312783, 0.29292903,
0.29273021, 0.29253134, 0.29233244, 0.2921335 , 0.29193452]])
SKY_BETA20_C1_D1 = np.array(
[[0.48359335, 0.48106107, 0.47853666, 0.47603262, 0.47356126,
0.4711346 , 0.46876431, 0.46646169, 0.46423755, 0.46210222,
0.46006544, 0.45813638, 0.45632354, 0.45463477, 0.45307722,
0.45165731, 0.45038074, 0.44925246, 0.44827667, 0.44745684,
0.44679565, 0.44629509, 0.4459564 , 0.44578011, 0.44576606,
0.44591339, 0.44622062, 0.44668562, 0.44730565, 0.4480774 ,
0.44899698, 0.45006001, 0.45126157, 0.4525963 , 0.45405837,
0.45564154, 0.45733918, 0.45914431, 0.4610496 , 0.46304743,
0.46512988, 0.4672888 , 0.46951581, 0.47180231, 0.47413957,
0.47651868, 0.47893064, 0.48136632, 0.48381656, 0.48627214,
0.48872384, 0.49116241, 0.49357868, 0.49596352, 0.49830788,
0.50060282, 0.50283954, 0.50500939, 0.50708952, 0.50899944,
0.51081437, 0.51252644, 0.51412804, 0.51561185, 0.51697089,
0.51819852, 0.51928846, 0.52023486, 0.52103225, 0.52167564,
0.5221605 , 0.52248279, 0.522639 , 0.52262617, 0.52244188,
0.52208434, 0.52155235, 0.52084535, 0.51996342, 0.51890734,
0.51767854, 0.51627917, 0.51471209, 0.51298085, 0.51108975,
0.50904377, 0.50684862, 0.50451069, 0.50203706, 0.49943547,
0.49671429, 0.49388246, 0.49094953, 0.48792553, 0.48482096,
0.48164675, 0.47841417, 0.47513479, 0.47182042, 0.468483 ],
[0.48359335, 0.48106107, 0.47853666, 0.47603262, 0.47356126,
0.4711346 , 0.46876431, 0.46646169, 0.46423755, 0.46210222,
0.46006544, 0.45813638, 0.45632354, 0.45463477, 0.45307722,
0.45165731, 0.45038074, 0.44925246, 0.44827667, 0.44745684,
0.44679565, 0.44629509, 0.4459564 , 0.44578011, 0.44576606,
0.44591339, 0.44622062, 0.44668562, 0.44730565, 0.4480774 ,
0.44899698, 0.45006001, 0.45126157, 0.4525963 , 0.45405837,
0.45564154, 0.45733918, 0.45914431, 0.4610496 , 0.46304743,
0.46512988, 0.4672888 , 0.46951581, 0.47180231, 0.47413957,
0.47651868, 0.47893064, 0.48136632, 0.48381656, 0.48627214,
0.48872384, 0.49116241, 0.49357868, 0.49596352, 0.49830788,
0.50060282, 0.50283954, 0.50500939, 0.50708952, 0.50899944,
0.51081437, 0.51252644, 0.51412804, 0.51561185, 0.51697089,
0.51819852, 0.51928846, 0.52023486, 0.52103225, 0.52167564,
0.5221605 , 0.52248279, 0.522639 , 0.52262617, 0.52244188,
0.52208434, 0.52155235, 0.52084535, 0.51996342, 0.51890734,
0.51767854, 0.51627917, 0.51471209, 0.51298085, 0.51108975,
0.50904377, 0.50684862, 0.50451069, 0.50203706, 0.49943547,
0.49671429, 0.49388246, 0.49094953, 0.48792553, 0.48482096,
0.48164675, 0.47841417, 0.47513479, 0.47182042, 0.468483 ]])
SKY_BETA20_C1_D0 = np.array(
[[0.09025658, 0.09055715, 0.09085192, 0.09114066, 0.09142313,
0.09169909, 0.09196829, 0.09223048, 0.09248542, 0.09273283,
0.09297247, 0.09320406, 0.09342733, 0.09364202, 0.09384785,
0.09404453, 0.0942318 , 0.09440935, 0.09457692, 0.09473421,
0.09488092, 0.09501677, 0.09514146, 0.0952547 , 0.09535618,
0.09544562, 0.09552272, 0.09558717, 0.09563868, 0.09567695,
0.09570169, 0.09571261, 0.09570941, 0.0956918 , 0.09565949,
0.09561221, 0.09554967, 0.09547159, 0.09537771, 0.09526775,
0.09514146, 0.09499859, 0.09483889, 0.09466211, 0.09446802,
0.09425641, 0.09402706, 0.09377976, 0.09351431, 0.09323055,
0.09292828, 0.09260736, 0.09226763, 0.09190897, 0.09153124,
0.09113435, 0.0907182 , 0.09028272, 0.08982784, 0.08935352,
0.08885973, 0.08834646, 0.08781372, 0.08726153, 0.08668994,
0.086099 , 0.0854888 , 0.08485944, 0.08421102, 0.0835437 ,
0.08285763, 0.08215298, 0.08142994, 0.08068875, 0.07992961,
0.0791528 , 0.07835859, 0.07754725, 0.07671911, 0.07587448,
0.07501371, 0.07413717, 0.07324522, 0.07233826, 0.07141669,
0.07048094, 0.06953143, 0.06856862, 0.06759297, 0.06660493,
0.065605 , 0.06459365, 0.06357138, 0.06253868, 0.06149607,
0.06044405, 0.05938314, 0.05831385, 0.05723669, 0.05615218],
[0.09025658, 0.09055715, 0.09085192, 0.09114066, 0.09142313,
0.09169909, 0.09196829, 0.09223048, 0.09248542, 0.09273283,
0.09297247, 0.09320406, 0.09342733, 0.09364202, 0.09384785,
0.09404453, 0.0942318 , 0.09440935, 0.09457692, 0.09473421,
0.09488092, 0.09501677, 0.09514146, 0.0952547 , 0.09535618,
0.09544562, 0.09552272, 0.09558717, 0.09563868, 0.09567695,
0.09570169, 0.09571261, 0.09570941, 0.0956918 , 0.09565949,
0.09561221, 0.09554967, 0.09547159, 0.09537771, 0.09526775,
0.09514146, 0.09499859, 0.09483889, 0.09466211, 0.09446802,
0.09425641, 0.09402706, 0.09377976, 0.09351431, 0.09323055,
0.09292828, 0.09260736, 0.09226763, 0.09190897, 0.09153124,
0.09113435, 0.0907182 , 0.09028272, 0.08982784, 0.08935352,
0.08885973, 0.08834646, 0.08781372, 0.08726153, 0.08668994,
0.086099 , 0.0854888 , 0.08485944, 0.08421102, 0.0835437 ,
0.08285763, 0.08215298, 0.08142994, 0.08068875, 0.07992961,
0.0791528 , 0.07835859, 0.07754725, 0.07671911, 0.07587448,
0.07501371, 0.07413717, 0.07324522, 0.07233826, 0.07141669,
0.07048094, 0.06953143, 0.06856862, 0.06759297, 0.06660493,
0.065605 , 0.06459365, 0.06357138, 0.06253868, 0.06149607,
0.06044405, 0.05938314, 0.05831385, 0.05723669, 0.05615218]])
SKY_BETA160_C1_D0 = np.array(
[[0.0005987 , 0.00179573, 0.00299166, 0.00418578, 0.00537735,
0.00656566, 0.00774999, 0.00892963, 0.0101039 , 0.01127208,
0.01243352, 0.01358753, 0.01473347, 0.0158707 , 0.01699857,
0.01811649, 0.01922386, 0.02032009, 0.02140464, 0.02247695,
0.0235365 , 0.02458279, 0.02561534, 0.02663368, 0.02763738,
0.02862601, 0.02959919, 0.03055652, 0.03149767, 0.0324223 ,
0.0333301 , 0.03422078, 0.0350941 , 0.0359498 , 0.03678767,
0.0376075 , 0.03840914, 0.03919242, 0.03995722, 0.04070342,
0.04143094, 0.0421397 , 0.04282965, 0.04350077, 0.04415304,
0.04478647, 0.04540109, 0.04599692, 0.04657403, 0.0471325 ,
0.0476724 , 0.04819385, 0.04869696, 0.04918185, 0.04964868,
0.05009759, 0.05052876, 0.05094236, 0.05133857, 0.0517176 ,
0.05207964, 0.05242492, 0.05275366, 0.05306608, 0.05336243,
0.05364293, 0.05390785, 0.05415743, 0.05439194, 0.05461162,
0.05481675, 0.0550076 , 0.05518443, 0.05534752, 0.05549714,
0.05563356, 0.05575708, 0.05586795, 0.05596646, 0.05605289,
0.05612752, 0.05619061, 0.05624245, 0.05628331, 0.05631347,
0.05633319, 0.05634274, 0.05634239, 0.05633241, 0.05631306,
0.05628459, 0.05624726, 0.05620133, 0.05614705, 0.05608466,
0.05601441, 0.05593653, 0.05585127, 0.05575886, 0.05565952],
[0.0005987 , 0.00179573, 0.00299166, 0.00418578, 0.00537735,
0.00656566, 0.00774999, 0.00892963, 0.0101039 , 0.01127208,
0.01243352, 0.01358753, 0.01473347, 0.0158707 , 0.01699857,
0.01811649, 0.01922386, 0.02032009, 0.02140464, 0.02247695,
0.0235365 , 0.02458279, 0.02561534, 0.02663368, 0.02763738,
0.02862601, 0.02959919, 0.03055652, 0.03149767, 0.0324223 ,
0.0333301 , 0.03422078, 0.0350941 , 0.0359498 , 0.03678767,
0.0376075 , 0.03840914, 0.03919242, 0.03995722, 0.04070342,
0.04143094, 0.0421397 , 0.04282965, 0.04350077, 0.04415304,
0.04478647, 0.04540109, 0.04599692, 0.04657403, 0.0471325 ,
0.0476724 , 0.04819385, 0.04869696, 0.04918185, 0.04964868,
0.05009759, 0.05052876, 0.05094236, 0.05133857, 0.0517176 ,
0.05207964, 0.05242492, 0.05275366, 0.05306608, 0.05336243,
0.05364293, 0.05390785, 0.05415743, 0.05439194, 0.05461162,
0.05481675, 0.0550076 , 0.05518443, 0.05534752, 0.05549714,
0.05563356, 0.05575708, 0.05586795, 0.05596646, 0.05605289,
0.05612752, 0.05619061, 0.05624245, 0.05628331, 0.05631347,
0.05633319, 0.05634274, 0.05634239, 0.05633241, 0.05631306,
0.05628459, 0.05624726, 0.05620133, 0.05614705, 0.05608466,
0.05601441, 0.05593653, 0.05585127, 0.05575886, 0.05565952]])
SKY_BETA160_C05_D0 = np.array(
[[0.0019083 , 0.00572098, 0.00952188, 0.01330324, 0.0170574 ,
0.02077689, 0.02445443, 0.028083 , 0.03165587, 0.03516663,
0.03860922, 0.04197798, 0.04526763, 0.04847333, 0.05159066,
0.05461567, 0.05754483, 0.06037508, 0.0631038 , 0.06572882,
0.06824839, 0.0706612 , 0.07296634, 0.07516327, 0.07725184,
0.07923225, 0.08110501, 0.08287096, 0.08453121, 0.08608712,
0.08754031, 0.08889258, 0.09014596, 0.09130261, 0.09236487,
0.09333518, 0.09421611, 0.0950103 , 0.09572047, 0.0963494 ,
0.0968999 , 0.0973748 , 0.09777697, 0.09810924, 0.09837448,
0.09857549, 0.09871507, 0.09879598, 0.09882094, 0.09879261,
0.09871361, 0.09858648, 0.09841371, 0.09819775, 0.09794093,
0.09764555, 0.09731382, 0.09694789, 0.09654982, 0.09612162,
0.09566521, 0.09518243, 0.09467507, 0.09414484, 0.09359337,
0.09302222, 0.09243291, 0.09182686, 0.09120544, 0.09056996,
0.08992166, 0.08926174, 0.08859131, 0.08791146, 0.08722319,
0.08652749, 0.08582525, 0.08511736, 0.08440462, 0.08368783,
0.08296772, 0.08224497, 0.08152024, 0.08079415, 0.08006728,
0.07934017, 0.07861333, 0.07788726, 0.07716238, 0.07643914,
0.07571792, 0.0749991 , 0.07428301, 0.07356998, 0.0728603 ,
0.07215426, 0.07145211, 0.07075408, 0.0700604 , 0.06937127],
[0.0019083 , 0.00572098, 0.00952188, 0.01330324, 0.0170574 ,
0.02077689, 0.02445443, 0.028083 , 0.03165587, 0.03516663,
0.03860922, 0.04197798, 0.04526763, 0.04847333, 0.05159066,
0.05461567, 0.05754483, 0.06037508, 0.0631038 , 0.06572882,
0.06824839, 0.0706612 , 0.07296634, 0.07516327, 0.07725184,
0.07923225, 0.08110501, 0.08287096, 0.08453121, 0.08608712,
0.08754031, 0.08889258, 0.09014596, 0.09130261, 0.09236487,
0.09333518, 0.09421611, 0.0950103 , 0.09572047, 0.0963494 ,
0.0968999 , 0.0973748 , 0.09777697, 0.09810924, 0.09837448,
0.09857549, 0.09871507, 0.09879598, 0.09882094, 0.09879261,
0.09871361, 0.09858648, 0.09841371, 0.09819775, 0.09794093,
0.09764555, 0.09731382, 0.09694789, 0.09654982, 0.09612162,
0.09566521, 0.09518243, 0.09467507, 0.09414484, 0.09359337,
0.09302222, 0.09243291, 0.09182686, 0.09120544, 0.09056996,
0.08992166, 0.08926174, 0.08859131, 0.08791146, 0.08722319,
0.08652749, 0.08582525, 0.08511736, 0.08440462, 0.08368783,
0.08296772, 0.08224497, 0.08152024, 0.08079415, 0.08006728,
0.07934017, 0.07861333, 0.07788726, 0.07716238, 0.07643914,
0.07571792, 0.0749991 , 0.07428301, 0.07356998, 0.0728603 ,
0.07215426, 0.07145211, 0.07075408, 0.0700604 , 0.06937127]])
SKY_BETA20_C05_D0 = np.array(
[[0.09228642, 0.09322975, 0.09418129, 0.09514089, 0.09610841,
0.09708366, 0.09806647, 0.09905662, 0.10005388, 0.10105801,
0.10206874, 0.10308576, 0.10410876, 0.1051374 , 0.1061713 ,
0.10721007, 0.10825326, 0.10930043, 0.11035108, 0.11140467,
0.11246065, 0.11351841, 0.11457731, 0.11563666, 0.11669575,
0.1177538 , 0.11880999, 0.11986347, 0.12091331, 0.12195855,
0.12299818, 0.12403112, 0.12505623, 0.12607232, 0.12707815,
0.1280724 , 0.1290537 , 0.13002059, 0.13097158, 0.13190509,
0.13281946, 0.133713 , 0.13458391, 0.13543033, 0.13625035,
0.13704196, 0.13780311, 0.13853166, 0.1392254 , 0.13988208,
0.14049937, 0.14107488, 0.14160618, 0.14209076, 0.14241963,
0.14264508, 0.14281147, 0.14291603, 0.14295597, 0.14292848,
0.14283078, 0.14266007, 0.1424136 , 0.14208863, 0.14168249,
0.1411926 , 0.14061643, 0.13995158, 0.13919576, 0.13834685,
0.13740287, 0.13636205, 0.1352228 , 0.1339838 , 0.13264396,
0.1312025 , 0.1296589 , 0.12801301, 0.12626498, 0.12441538,
0.12246511, 0.12041551, 0.11826831, 0.1160257 , 0.11369029,
0.11126511, 0.10875367, 0.10615991, 0.10348821, 0.10074338,
0.09793063, 0.09505559, 0.09212424, 0.08914292, 0.08611827,
0.08305723, 0.07996696, 0.07685483, 0.07372836, 0.07059518],
[0.09228642, 0.09322975, 0.09418129, 0.09514089, 0.09610841,
0.09708366, 0.09806647, 0.09905662, 0.10005388, 0.10105801,
0.10206874, 0.10308576, 0.10410876, 0.1051374 , 0.1061713 ,
0.10721007, 0.10825326, 0.10930043, 0.11035108, 0.11140467,
0.11246065, 0.11351841, 0.11457731, 0.11563666, 0.11669575,
0.1177538 , 0.11880999, 0.11986347, 0.12091331, 0.12195855,
0.12299818, 0.12403112, 0.12505623, 0.12607232, 0.12707815,
0.1280724 , 0.1290537 , 0.13002059, 0.13097158, 0.13190509,
0.13281946, 0.133713 , 0.13458391, 0.13543033, 0.13625035,
0.13704196, 0.13780311, 0.13853166, 0.1392254 , 0.13988208,
0.14049937, 0.14107488, 0.14160618, 0.14209076, 0.14241963,
0.14264508, 0.14281147, 0.14291603, 0.14295597, 0.14292848,
0.14283078, 0.14266007, 0.1424136 , 0.14208863, 0.14168249,
0.1411926 , 0.14061643, 0.13995158, 0.13919576, 0.13834685,
0.13740287, 0.13636205, 0.1352228 , 0.1339838 , 0.13264396,
0.1312025 , 0.1296589 , 0.12801301, 0.12626498, 0.12441538,
0.12246511, 0.12041551, 0.11826831, 0.1160257 , 0.11369029,
0.11126511, 0.10875367, 0.10615991, 0.10348821, 0.10074338,
0.09793063, 0.09505559, 0.09212424, 0.08914292, 0.08611827,
0.08305723, 0.07996696, 0.07685483, 0.07372836, 0.07059518]])
| 63.555819
| 67
| 0.671376
| 4,064
| 26,757
| 4.412894
| 0.249262
| 0.003903
| 0.004461
| 0.003346
| 0.993866
| 0.98751
| 0.98751
| 0.98751
| 0.98751
| 0.98751
| 0
| 0.805251
| 0.175767
| 26,757
| 421
| 68
| 63.555819
| 0.007935
| 0
| 0
| 0.875912
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.002433
| 0
| 0.002433
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2a536125aaded0e0e1f64896ac0a1a6b2293f6b2
| 3,649
|
py
|
Python
|
test/comments/typing1.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1,482
|
2015-10-16T21:59:32.000Z
|
2022-03-30T11:44:40.000Z
|
test/comments/typing1.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 226
|
2015-10-15T15:53:44.000Z
|
2022-03-25T03:08:27.000Z
|
test/comments/typing1.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 129
|
2015-10-20T02:41:49.000Z
|
2022-03-22T01:44:36.000Z
|
# type: ignore # test
# type: ignore
# type:ignore
#type:ignore
# type: ignore 1
# type: 1 ignore
# type : ignore
##type: ignore
#.type: ignore
# : comment.line.number-sign.python, meta.typehint.comment.python, source.python
type: : comment.line.number-sign.python, comment.typehint.directive.notation.python, meta.typehint.comment.python, source.python
: comment.line.number-sign.python, meta.typehint.comment.python, source.python
ignore : comment.line.number-sign.python, comment.typehint.ignore.notation.python, meta.typehint.comment.python, source.python
: comment.line.number-sign.python, meta.typehint.comment.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
test : comment.line.number-sign.python, source.python
# : comment.line.number-sign.python, meta.typehint.comment.python, source.python
type: : comment.line.number-sign.python, comment.typehint.directive.notation.python, meta.typehint.comment.python, source.python
: comment.line.number-sign.python, meta.typehint.comment.python, source.python
ignore : comment.line.number-sign.python, comment.typehint.ignore.notation.python, meta.typehint.comment.python, source.python
# : comment.line.number-sign.python, meta.typehint.comment.python, source.python
type: : comment.line.number-sign.python, comment.typehint.directive.notation.python, meta.typehint.comment.python, source.python
ignore : comment.line.number-sign.python, comment.typehint.ignore.notation.python, meta.typehint.comment.python, source.python
# : comment.line.number-sign.python, meta.typehint.comment.python, source.python
type: : comment.line.number-sign.python, comment.typehint.directive.notation.python, meta.typehint.comment.python, source.python
ignore : comment.line.number-sign.python, comment.typehint.ignore.notation.python, meta.typehint.comment.python, source.python
# : comment.line.number-sign.python, meta.typehint.comment.python, source.python
type: : comment.line.number-sign.python, comment.typehint.directive.notation.python, meta.typehint.comment.python, source.python
: comment.line.number-sign.python, meta.typehint.comment.python, source.python
ignore : comment.line.number-sign.python, comment.typehint.variable.notation.python, meta.typehint.comment.python, source.python
1 : comment.line.number-sign.python, meta.typehint.comment.python, source.python
# : comment.line.number-sign.python, meta.typehint.comment.python, source.python
type: : comment.line.number-sign.python, comment.typehint.directive.notation.python, meta.typehint.comment.python, source.python
: comment.line.number-sign.python, meta.typehint.comment.python, source.python
1 : comment.line.number-sign.python, meta.typehint.comment.python, source.python
ignore : comment.line.number-sign.python, comment.typehint.variable.notation.python, meta.typehint.comment.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
type : ignore : comment.line.number-sign.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
#type: ignore : comment.line.number-sign.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
.type: ignore : comment.line.number-sign.python, source.python
| 79.326087
| 136
| 0.734996
| 449
| 3,649
| 5.973274
| 0.037862
| 0.135347
| 0.209172
| 0.258389
| 0.991051
| 0.991051
| 0.98956
| 0.962714
| 0.962714
| 0.962714
| 0
| 0.001278
| 0.141957
| 3,649
| 45
| 137
| 81.088889
| 0.855318
| 0
| 0
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
2a6026e1731b96eac7a98635295459c442131a46
| 1,023
|
py
|
Python
|
pybithumb/__init__.py
|
baobabtr33/pybithumb
|
74fac759502f20c653c9916d831509f1f384e164
|
[
"MIT"
] | null | null | null |
pybithumb/__init__.py
|
baobabtr33/pybithumb
|
74fac759502f20c653c9916d831509f1f384e164
|
[
"MIT"
] | null | null | null |
pybithumb/__init__.py
|
baobabtr33/pybithumb
|
74fac759502f20c653c9916d831509f1f384e164
|
[
"MIT"
] | null | null | null |
from pybithumb.client import Bithumb
from .history import *
def get_ohlc(order_currency, payment_currency="KRW"):
return Bithumb.get_ohlc(order_currency, payment_currency)
def get_tickers(payment_currency="KRW"):
return Bithumb.get_tickers(payment_currency)
def get_market_detail(order_currency, payment_currency="KRW"):
return Bithumb.get_market_detail(order_currency, payment_currency)
def get_current_price(order_currency, payment_currency="KRW"):
return Bithumb.get_current_price(order_currency, payment_currency)
def get_orderbook(order_currency, payment_currency="KRW", limit=5):
return Bithumb.get_orderbook(order_currency, payment_currency, limit)
def get_transaction_history(order_currency, payment_currency="KRW", limit=20):
return Bithumb.get_transaction_history(order_currency, payment_currency, limit)
def get_candlestick(order_currency, payment_currency="KRW", chart_instervals="24h"):
return Bithumb.get_candlestick(order_currency, payment_currency, chart_instervals)
| 35.275862
| 86
| 0.821114
| 133
| 1,023
| 5.954887
| 0.210526
| 0.265152
| 0.30303
| 0.424242
| 0.799242
| 0.795455
| 0.5
| 0.17803
| 0
| 0
| 0
| 0.005382
| 0.091887
| 1,023
| 29
| 86
| 35.275862
| 0.847147
| 0
| 0
| 0
| 0
| 0
| 0.023438
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4375
| false
| 0
| 0.125
| 0.4375
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
2a64675fbf86a732c82186347ac1b8f1c8ed9848
| 66,428
|
py
|
Python
|
functions/blip_functions.py
|
mtasa-typescript/mtasa-wiki-dump
|
edea1746850fb6c99d6155d1d7891e2cceb33a5c
|
[
"MIT"
] | null | null | null |
functions/blip_functions.py
|
mtasa-typescript/mtasa-wiki-dump
|
edea1746850fb6c99d6155d1d7891e2cceb33a5c
|
[
"MIT"
] | 1
|
2021-02-24T21:50:18.000Z
|
2021-02-24T21:50:18.000Z
|
functions/blip_functions.py
|
mtasa-typescript/mtasa-wiki-dump
|
edea1746850fb6c99d6155d1d7891e2cceb33a5c
|
[
"MIT"
] | null | null | null |
# Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
FunctionData, \
CompoundFunctionData
DUMP_PARTIAL = [
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='createBlip',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['blip'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='x',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='y',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='z',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='icon',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='size',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='2',
)
],
[
FunctionArgument(
name='r',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='g',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='b',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='a',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='ordering',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='visibleDistance',
argument_type=FunctionType(
names=['float'],
is_optional=True,
),
default_value='16383.0',
)
],
[
FunctionArgument(
name='visibleTo',
argument_type=FunctionType(
names=['element'],
is_optional=True,
),
default_value='getRootElement()',
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function creates a blip element, which is displayed as an icon on the clients radar.' ,
arguments={
},
result='' ,
),
url='createBlip',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='createBlip',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['blip'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='x',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='y',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='z',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='icon',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='size',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='2',
)
],
[
FunctionArgument(
name='r',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='g',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='b',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='a',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='ordering',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='visibleDistance',
argument_type=FunctionType(
names=['float'],
is_optional=True,
),
default_value='16383.0',
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function creates a blip element, which is displayed as an icon on the clients radar.' ,
arguments={
},
result='' ,
),
url='createBlip',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='createBlipAttachedTo',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['blip'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='elementToAttachTo',
argument_type=FunctionType(
names=['element'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='icon',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='size',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='2',
)
],
[
FunctionArgument(
name='r',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='g',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='b',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='a',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='ordering',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='visibleDistance',
argument_type=FunctionType(
names=['float'],
is_optional=True,
),
default_value='16383.0',
)
],
[
FunctionArgument(
name='visibleTo',
argument_type=FunctionType(
names=['element'],
is_optional=True,
),
default_value='getRootElement()',
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function creates a blip that is attached to an element. This blip is displayed as an icon on the clients radar and will follow the element that it is attached to around.' ,
arguments={
},
result='' ,
),
url='createBlipAttachedTo',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='createBlipAttachedTo',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['blip'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='elementToAttachTo',
argument_type=FunctionType(
names=['element'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='icon',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='size',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='2',
)
],
[
FunctionArgument(
name='r',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='g',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='b',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='a',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='255',
)
],
[
FunctionArgument(
name='ordering',
argument_type=FunctionType(
names=['int'],
is_optional=True,
),
default_value='0',
)
],
[
FunctionArgument(
name='visibleDistance',
argument_type=FunctionType(
names=['float'],
is_optional=True,
),
default_value='16383.0',
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function creates a blip that is attached to an element. This blip is displayed as an icon on the clients radar and will follow the element that it is attached to around.' ,
arguments={
},
result='' ,
),
url='createBlipAttachedTo',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='getBlipColor',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
),
FunctionType(
names=['int'],
is_optional=False,
),
FunctionType(
names=['int'],
is_optional=False,
),
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will tell you what color a blip is. This color is only applicable to the default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or Image:Blipid0d.png|12px). All other icons will ignore this.' ,
arguments={
"theBlip": """The blip whose color you wish to get. """
},
result='returns four integers in rgba format, with a maximum value of 255 for each. the values are, in order, red, green, blue, and alpha. alpha decides the transparancy where 255 is opaque and 0 is fully transparent. false is returned if the blip is invalid.' ,
),
url='getBlipColor',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='getBlipColor',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
),
FunctionType(
names=['int'],
is_optional=False,
),
FunctionType(
names=['int'],
is_optional=False,
),
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will tell you what color a blip is. This color is only applicable to the default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or Image:Blipid0d.png|12px). All other icons will ignore this.' ,
arguments={
"theBlip": """The blip whose color you wish to get. """
},
result='returns four integers in rgba format, with a maximum value of 255 for each. the values are, in order, red, green, blue, and alpha. alpha decides the transparancy where 255 is opaque and 0 is fully transparent. false is returned if the blip is invalid.' ,
),
url='getBlipColor',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='getBlipIcon',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function returns the icon a blip currently has.' ,
arguments={
"theBlip": """: the blip were getting the icon number of. """
},
result='returns an int indicating which icon the blip has. valid values are listed on the radar blips page.' ,
),
url='getBlipIcon',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='getBlipIcon',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function returns the icon a blip currently has.' ,
arguments={
"theBlip": """: the blip were getting the icon number of. """
},
result='returns an int indicating which icon the blip has. valid values are listed on the radar blips page.' ,
),
url='getBlipIcon',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='getBlipOrdering',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function gets the Z ordering value of a blip. The Z ordering determines if a blip appears on top of or below other blips. Blips with a higher Z ordering value appear on top of blips with a lower value. The default value for all blips is 0.' ,
arguments={
"theBlip": """the blip to retrieve the Z ordering value of. """
},
result='returns the z ordering value of the blip if successful, false otherwise.' ,
),
url='getBlipOrdering',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='getBlipOrdering',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function gets the Z ordering value of a blip. The Z ordering determines if a blip appears on top of or below other blips. Blips with a higher Z ordering value appear on top of blips with a lower value. The default value for all blips is 0.' ,
arguments={
"theBlip": """the blip to retrieve the Z ordering value of. """
},
result='returns the z ordering value of the blip if successful, false otherwise.' ,
),
url='getBlipOrdering',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='getBlipSize',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function gets the size of a blip..' ,
arguments={
"theBlip": """The blip you wish to get the size of. """
},
result='returns an int indicating the size of the blip. the default value is 2. the maximum value is 25.' ,
),
url='getBlipSize',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='getBlipSize',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['int'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function gets the size of a blip..' ,
arguments={
"theBlip": """The blip you wish to get the size of. """
},
result='returns an int indicating the size of the blip. the default value is 2. the maximum value is 25.' ,
),
url='getBlipSize',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='getBlipVisibleDistance',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['float'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will tell you what visible distance a blip has.' ,
arguments={
"theBlip": """The blip whose visible distance you wish to get. """
},
result='returns one float with the blips visible distance, false if the blip is invalid.' ,
),
url='getBlipVisibleDistance',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='getBlipVisibleDistance',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['float'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will tell you what visible distance a blip has.' ,
arguments={
"theBlip": """The blip whose visible distance you wish to get. """
},
result='returns one float with the blips visible distance, false if the blip is invalid.' ,
),
url='getBlipVisibleDistance',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='setBlipColor',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='red',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='green',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='blue',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='alpha',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will let you change the color of a blip. This color is only applicable to the default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or Image:Blipid0d.png|12px). All other icons will ignore this.' ,
arguments={
"theBlip": """The blip whos color you wish to set. """,
"red": """The amount of red in the blips color (0 - 255). """,
"green": """The amount of green in the blips color (0 - 255). """,
"blue": """The amount of blue in the blips color (0 - 255). """,
"alpha": """The amount of alpha in the blips color (0 - 255). Alpha decides transparancy where 255 is opaque and 0 is transparent. """
},
result='returns true if the blips color was set successfully. returns false if the blip passed to the function is invalid, or any of the colors are out of the valid range.' ,
),
url='setBlipColor',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='setBlipColor',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='red',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='green',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='blue',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='alpha',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will let you change the color of a blip. This color is only applicable to the default blip icon (Image:Blipid0s.png|12px, Image:Blipid0u.png|12px or Image:Blipid0d.png|12px). All other icons will ignore this.' ,
arguments={
"theBlip": """The blip whos color you wish to set. """,
"red": """The amount of red in the blips color (0 - 255). """,
"green": """The amount of green in the blips color (0 - 255). """,
"blue": """The amount of blue in the blips color (0 - 255). """,
"alpha": """The amount of alpha in the blips color (0 - 255). Alpha decides transparancy where 255 is opaque and 0 is transparent. """
},
result='returns true if the blips color was set successfully. returns false if the blip passed to the function is invalid, or any of the colors are out of the valid range.' ,
),
url='setBlipColor',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='setBlipIcon',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='icon',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function sets the icon for an existing blip element.' ,
arguments={
"theBlip": """The blip you wish to set the icon of. """,
"icon": """A number indicating the icon you wish to change it do. Valid values are listed on the Radar Blips page. """
},
result='returns true if the icon was successfully set, false if the element passed was not a valid blip or the icon value was not a valid icon number.' ,
),
url='setBlipIcon',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='setBlipIcon',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='icon',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function sets the icon for an existing blip element.' ,
arguments={
"theBlip": """The blip you wish to set the icon of. """,
"icon": """A number indicating the icon you wish to change it do. Valid values are listed on the Radar Blips page. """
},
result='returns true if the icon was successfully set, false if the element passed was not a valid blip or the icon value was not a valid icon number.' ,
),
url='setBlipIcon',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='setBlipOrdering',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='ordering',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function sets the Z ordering of a blip. It allows you to make a blip appear on top of or below other blips.' ,
arguments={
"theBlip": """the blip whose Z ordering to change. """,
"ordering": """the new Z ordering value. Blips with higher values will appear on top of blips with lower values. Possible range: -32767 to 32767. Default: 0. """
},
result='returns true if the blip ordering was changed successfully, false otherwise.' ,
),
url='setBlipOrdering',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='setBlipOrdering',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='ordering',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function sets the Z ordering of a blip. It allows you to make a blip appear on top of or below other blips.' ,
arguments={
"theBlip": """the blip whose Z ordering to change. """,
"ordering": """the new Z ordering value. Blips with higher values will appear on top of blips with lower values. Possible range: -32767 to 32767. Default: 0. """
},
result='returns true if the blip ordering was changed successfully, false otherwise.' ,
),
url='setBlipOrdering',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='setBlipSize',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='iconSize',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function sets the size of a blips icon.' ,
arguments={
"theBlip": """The blip you wish to get the size of. """,
"iconSize": """The size you wish the icon to be. 2 is the default value. 25 is the maximum value. Value gets clamped between 0 and 25. """
},
result='returns an true if the blips size was set successfully. returns false if the element passed was not a blip or if the icon size passed was invalid.' ,
),
url='setBlipSize',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='setBlipSize',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='iconSize',
argument_type=FunctionType(
names=['int'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function sets the size of a blips icon.' ,
arguments={
"theBlip": """The blip you wish to get the size of. """,
"iconSize": """The size you wish the icon to be. 2 is the default value. 25 is the maximum value. Value gets clamped between 0 and 25. """
},
result='returns an true if the blips size was set successfully. returns false if the element passed was not a blip or if the icon size passed was invalid.' ,
),
url='setBlipSize',
)
],
),
CompoundFunctionData(
server=[
FunctionData(
signature=FunctionSignature(
name='setBlipVisibleDistance',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='theDistance',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will set the visible distance of a blip.' ,
arguments={
"theBlip": """The blip whose visible distance you wish to get. """,
"theDistance": """The distance you want the blip to be visible for. Value gets clamped between 0 and 65535. """
},
result='returns true if successful, false otherwise.' ,
),
url='setBlipVisibleDistance',
)
],
client=[
FunctionData(
signature=FunctionSignature(
name='setBlipVisibleDistance',
return_types=FunctionReturnTypes(
return_types=[
FunctionType(
names=['bool'],
is_optional=False,
)
],
variable_length=False,
),
arguments=FunctionArgumentValues(
arguments=[
[
FunctionArgument(
name='theBlip',
argument_type=FunctionType(
names=['blip'],
is_optional=False,
),
default_value=None,
)
],
[
FunctionArgument(
name='theDistance',
argument_type=FunctionType(
names=['float'],
is_optional=False,
),
default_value=None,
)
]
],
variable_length=False,
),
generic_types=[
],
),
docs=FunctionDoc(
description='This function will set the visible distance of a blip.' ,
arguments={
"theBlip": """The blip whose visible distance you wish to get. """,
"theDistance": """The distance you want the blip to be visible for. Value gets clamped between 0 and 65535. """
},
result='returns true if successful, false otherwise.' ,
),
url='setBlipVisibleDistance',
)
],
)
]
| 40.878769
| 279
| 0.314039
| 3,429
| 66,428
| 5.971129
| 0.057743
| 0.08967
| 0.091429
| 0.110476
| 0.989695
| 0.986178
| 0.97094
| 0.97094
| 0.97094
| 0.97094
| 0
| 0.008466
| 0.623035
| 66,428
| 1,624
| 280
| 40.903941
| 0.809193
| 0.000768
| 0
| 0.835006
| 1
| 0.017566
| 0.138757
| 0.007051
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.003764
| 0.000627
| 0
| 0.000627
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2a6ae73bc2dc1f855595fdb6792a7f0d899eff63
| 23,511
|
py
|
Python
|
crystalpy/examples/Si111_simple_xraylib_dabax_comparison.py
|
oasys-kit/crystalpy
|
4852851c622ef914844178577dea4075e92cd8dd
|
[
"MIT"
] | null | null | null |
crystalpy/examples/Si111_simple_xraylib_dabax_comparison.py
|
oasys-kit/crystalpy
|
4852851c622ef914844178577dea4075e92cd8dd
|
[
"MIT"
] | null | null | null |
crystalpy/examples/Si111_simple_xraylib_dabax_comparison.py
|
oasys-kit/crystalpy
|
4852851c622ef914844178577dea4075e92cd8dd
|
[
"MIT"
] | null | null | null |
#
#
# This example shows the diffraction by a Si 111 crystal calculated in its simplest implementation:
#
#
# - calculate_simple_diffraction()
# Uses a crystal setup and calculates the complex transmitivity and reflectivity
#
#
import numpy
from crystalpy.diffraction.GeometryType import BraggDiffraction
from crystalpy.diffraction.DiffractionSetup import DiffractionSetup
from crystalpy.diffraction.DiffractionSetupDabax import DiffractionSetupDabax
from crystalpy.diffraction.Diffraction import Diffraction
from crystalpy.util.Vector import Vector
from crystalpy.util.Photon import Photon
from crystalpy.diffraction.PerfectCrystalDiffraction import PerfectCrystalDiffraction
from dabax.dabax_xraylib import DabaxXraylib
import time
#
def calculate_simple_diffraction_angular_scan():
# Create a diffraction setup.
print("\nCreating a diffraction setup...")
diffraction_setup = DiffractionSetup(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0) # radians # int
diffraction_setup_dabax = DiffractionSetupDabax(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0,
dabax=DabaxXraylib()) # radians
energy = 8000.0 # eV
angle_deviation_min = -100e-6 # radians
angle_deviation_max = 100e-6 # radians
angle_deviation_points = 50
angle_step = (angle_deviation_max-angle_deviation_min)/angle_deviation_points
#
# gets Bragg angle needed to create deviation's scan
#
bragg_angle = diffraction_setup.angleBragg(energy)
print("Bragg angle for E=%f eV is %f deg"%(energy,bragg_angle*180.0/numpy.pi))
# Create a Diffraction object (the calculator)
diffraction = Diffraction()
diffraction_dabax = Diffraction()
# initialize arrays for storing outputs
deviations = numpy.zeros(angle_deviation_points)
intensityS = numpy.zeros(angle_deviation_points)
intensityP = numpy.zeros(angle_deviation_points)
intensityS_dabax = numpy.zeros(angle_deviation_points)
intensityP_dabax = numpy.zeros(angle_deviation_points)
for ia in range(angle_deviation_points):
deviation = angle_deviation_min + ia * angle_step
angle = deviation + bragg_angle
# calculate the components of the unitary vector of the incident photon scan
# Note that diffraction plane is YZ
yy = numpy.cos(angle)
zz = - numpy.abs(numpy.sin(angle))
photon = Photon(energy_in_ev=energy,direction_vector=Vector(0.0,yy,zz))
# perform the calculation
coeffs = diffraction.calculateDiffractedComplexAmplitudes(diffraction_setup, photon)
coeffs_dabax = diffraction_dabax.calculateDiffractedComplexAmplitudes(diffraction_setup_dabax, photon)
# store results
deviations[ia] = deviation
intensityS[ia] = coeffs['S'].intensity()
intensityP[ia] = coeffs['P'].intensity()
intensityS_dabax[ia] = coeffs_dabax['S'].intensity()
intensityP_dabax[ia] = coeffs_dabax['P'].intensity()
# plot results
import matplotlib.pylab as plt
plt.plot(1e6*deviations,intensityS)
plt.plot(1e6*deviations,intensityP)
plt.plot(1e6*deviations,intensityS_dabax)
plt.plot(1e6*deviations,intensityP_dabax)
plt.xlabel("deviation angle [urad]")
plt.ylabel("Reflectivity")
plt.legend(["Sigma-polarization XRAYLIB","Pi-polarization XRAYLIB","Sigma-polarization DABAX","Pi-polarization DABAX"])
plt.show()
def calculate_simple_diffraction_angular_scan_accelerated():
# Create a diffraction setup.
print("\nCreating a diffraction setup...")
diffraction_setup = DiffractionSetup(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0) # radians # int
diffraction_setup_dabax = DiffractionSetupDabax(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0,
dabax=DabaxXraylib()) # radians
energy = 8000.0 # eV
angle_deviation_min = -100e-6 # radians
angle_deviation_max = 100e-6 # radians
angle_deviation_points = 50
angle_step = (angle_deviation_max-angle_deviation_min)/angle_deviation_points
#
# gets Bragg angle needed to create deviation's scan
#
bragg_angle = diffraction_setup.angleBragg(energy)
print("Bragg angle for E=%f eV is %f deg"%(energy,bragg_angle*180.0/numpy.pi))
# Create a Diffraction object (the calculator)
diffraction = Diffraction()
diffraction_dabax = Diffraction()
# initialize arrays for storing outputs
deviations = numpy.zeros(angle_deviation_points)
intensityS = numpy.zeros(angle_deviation_points)
intensityP = numpy.zeros(angle_deviation_points)
intensityS_dabax = numpy.zeros(angle_deviation_points)
intensityP_dabax = numpy.zeros(angle_deviation_points)
for ia in range(angle_deviation_points):
deviation = angle_deviation_min + ia * angle_step
angle = deviation + bragg_angle
# calculate the components of the unitary vector of the incident photon scan
# Note that diffraction plane is YZ
yy = numpy.cos(angle)
zz = - numpy.abs(numpy.sin(angle))
photon = Photon(energy_in_ev=energy,direction_vector=Vector(0.0,yy,zz))
# perform the calculation
coeffs = diffraction.calculateDiffractedComplexAmplitudes(diffraction_setup, photon)
# store results
deviations[ia] = deviation
intensityS[ia] = coeffs['S'].intensity()
intensityP[ia] = coeffs['P'].intensity()
psi_0, psi_H, psi_H_bar = diffraction_setup_dabax.psiAll(energy)
for ia in range(angle_deviation_points):
deviation = angle_deviation_min + ia * angle_step
angle = deviation + bragg_angle
# calculate the components of the unitary vector of the incident photon scan
# Note that diffraction plane is YZ
yy = numpy.cos(angle)
zz = - numpy.abs(numpy.sin(angle))
photon = Photon(energy_in_ev=energy,direction_vector=Vector(0.0,yy,zz))
# perform the calculation
# coeffs_dabax = diffraction_dabax.calculateDiffractedComplexAmplitudes(diffraction_setup_dabax, photon)
#
# # store results
# deviations[ia] = deviation
# intensityS_dabax[ia] = coeffs_dabax['S'].intensity()
# intensityP_dabax[ia] = coeffs_dabax['P'].intensity()
# Create PerfectCrystalDiffraction instance.
perfect_crystal = PerfectCrystalDiffraction(geometry_type=diffraction_setup_dabax.geometryType(),
bragg_normal=diffraction_setup_dabax.normalBragg(),
surface_normal=diffraction_setup_dabax.normalSurface(),
bragg_angle=diffraction_setup_dabax.angleBragg(energy),
psi_0=psi_0,
psi_H=psi_H,
psi_H_bar=psi_H_bar,
thickness=diffraction_setup_dabax.thickness(),
d_spacing=diffraction_setup_dabax.dSpacing() * 1e-10)
complex_amplitudes = perfect_crystal.calculateDiffraction(photon)
deviations[ia] = deviation
intensityS_dabax[ia] = complex_amplitudes['S'].intensity() # 0.0 # coeffs_dabax['S'].intensity()
intensityP_dabax[ia] = complex_amplitudes['P'].intensity() # 0.0 # coeffs_dabax['P'].intensity()
# plot results
import matplotlib.pylab as plt
plt.plot(1e6*deviations,intensityS)
plt.plot(1e6*deviations,intensityP)
plt.plot(1e6*deviations,intensityS_dabax)
plt.plot(1e6*deviations,intensityP_dabax)
plt.xlabel("deviation angle [urad]")
plt.ylabel("Reflectivity")
plt.legend(["Sigma-polarization XRAYLIB","Pi-polarization XRAYLIB","Sigma-polarization DABAX","Pi-polarization DABAX"])
plt.show()
def calculate_simple_diffraction_energy_scan():
# Create a diffraction setup.
print("\nCreating a diffraction setup...")
diffraction_setup = DiffractionSetup(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0) # radians # int
import socket
if socket.getfqdn().find("esrf") >= 0:
dx = DabaxXraylib(dabax_repository="http://ftp.esrf.fr/pub/scisoft/DabaxFiles/")
else:
dx = DabaxXraylib()
diffraction_setup_dabax = DiffractionSetupDabax(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0,
dabax=dx) # radians
energy = 8000.0 # eV
angle_deviation_min = -100e-6 # radians
angle_deviation_max = 100e-6 # radians
angle_deviation_points = 50
angle_step = (angle_deviation_max-angle_deviation_min)/angle_deviation_points
#
# gets Bragg angle needed to create deviation's scan
#
bragg_angle_corrected = diffraction_setup.angleBraggCorrected(energy)
print("Bragg angle corrected for E=%f eV is %f deg"%(energy,bragg_angle_corrected*180.0/numpy.pi))
DeltaE = energy * 1e-4
npoints = 100
energies = numpy.linspace(energy-3*DeltaE, energy+3*DeltaE, npoints)
# Create a Diffraction object (the calculator)
diffraction = Diffraction()
diffraction_dabax = Diffraction()
# initialize arrays for storing outputs
intensityS = numpy.zeros(npoints)
intensityP = numpy.zeros(npoints)
intensityS_dabax = numpy.zeros(npoints)
intensityP_dabax = numpy.zeros(npoints)
t0 = time.time()
for ia in range(npoints):
# calculate the components of the unitary vector of the incident photon scan
# Note that diffraction plane is YZ
yy = numpy.cos(bragg_angle_corrected)
zz = - numpy.abs(numpy.sin(bragg_angle_corrected))
photon = Photon(energy_in_ev=energies[ia],direction_vector=Vector(0.0,yy,zz))
# perform the calculation
coeffs = diffraction.calculateDiffractedComplexAmplitudes(diffraction_setup, photon)
# store results
intensityS[ia] = coeffs['S'].intensity()
intensityP[ia] = coeffs['P'].intensity()
t1 = time.time()
for ia in range(npoints):
# calculate the components of the unitary vector of the incident photon scan
# Note that diffraction plane is YZ
yy = numpy.cos(bragg_angle_corrected)
zz = - numpy.abs(numpy.sin(bragg_angle_corrected))
photon = Photon(energy_in_ev=energies[ia],direction_vector=Vector(0.0,yy,zz))
# perform the calculation
coeffs_dabax = diffraction_dabax.calculateDiffractedComplexAmplitudes(diffraction_setup_dabax, photon)
# store results
intensityS_dabax[ia] = coeffs_dabax['S'].intensity()
intensityP_dabax[ia] = coeffs_dabax['P'].intensity()
t2 = time.time()
# plot results
import matplotlib.pylab as plt
plt.plot(energies,intensityS)
plt.plot(energies,intensityP)
plt.plot(energies,intensityS_dabax)
plt.plot(energies,intensityP_dabax)
plt.xlabel("photon energy [eV]")
plt.ylabel("Reflectivity")
plt.legend(["Sigma-polarization XRAYLIB","Pi-polarization XRAYLIB","Sigma-polarization DABAX","Pi-polarization DABAX"])
plt.show()
print("Total time, Time per points XRAYLIB: ", t1-t0, (t1-t0) / npoints)
print("Total time, Time per points DABAX: ", t2-t1, (t2-t1) / npoints)
def calculate_simple_diffraction_energy_scan_accelerated():
# Create a diffraction setup.
print("\nCreating a diffraction setup...")
diffraction_setup = DiffractionSetup(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0) # radians # int
import socket
if socket.getfqdn().find("esrf") >= 0:
dx = DabaxXraylib(dabax_repository="http://ftp.esrf.fr/pub/scisoft/DabaxFiles/")
else:
dx = DabaxXraylib()
diffraction_setup_dabax = DiffractionSetupDabax(geometry_type = BraggDiffraction(), # GeometryType object
crystal_name = "Si", # string
thickness = 1e-2, # meters
miller_h = 1, # int
miller_k = 1, # int
miller_l = 1, # int
asymmetry_angle = 0,#10.0*numpy.pi/180., # radians
azimuthal_angle = 0.0,
dabax=dx) # radians
energy = 8000.0 # eV
angle_deviation_min = -100e-6 # radians
angle_deviation_max = 100e-6 # radians
angle_deviation_points = 50
angle_step = (angle_deviation_max-angle_deviation_min)/angle_deviation_points
#
# gets Bragg angle needed to create deviation's scan
#
bragg_angle_corrected = diffraction_setup.angleBraggCorrected(energy)
print("Bragg angle corrected for E=%f eV is %f deg"%(energy,bragg_angle_corrected*180.0/numpy.pi))
DeltaE = energy * 1e-4
npoints = 100
energies = numpy.linspace(energy-3*DeltaE, energy+3*DeltaE, npoints)
# Create a Diffraction object (the calculator)
diffraction = Diffraction()
diffraction_dabax = Diffraction()
# initialize arrays for storing outputs
intensityS = numpy.zeros(npoints)
intensityP = numpy.zeros(npoints)
intensityS_dabax = numpy.zeros(npoints)
intensityP_dabax = numpy.zeros(npoints)
t0 = time.time()
for ia in range(npoints):
# calculate the components of the unitary vector of the incident photon scan
# Note that diffraction plane is YZ
yy = numpy.cos(bragg_angle_corrected)
zz = - numpy.abs(numpy.sin(bragg_angle_corrected))
photon = Photon(energy_in_ev=energies[ia],direction_vector=Vector(0.0,yy,zz))
# perform the calculation
coeffs = diffraction.calculateDiffractedComplexAmplitudes(diffraction_setup, photon)
# store results
intensityS[ia] = coeffs['S'].intensity()
intensityP[ia] = coeffs['P'].intensity()
COOR = []
ENER = []
for ia in range(npoints):
# calculate the components of the unitary vector of the incident photon scan
# Note that diffraction plane is YZ
yy = numpy.cos(bragg_angle_corrected)
zz = - numpy.abs(numpy.sin(bragg_angle_corrected))
COOR.append([0.0,yy,zz])
ENER.append(energies[ia])
t1 = time.time()
Psi_0, Psi_H, Psi_H_bar = diffraction_setup_dabax.psiAll(ENER)
for ia in range(npoints):
# perform the calculation
incoming_photon = Photon(energy_in_ev=ENER[ia],direction_vector=Vector(COOR[ia][0],COOR[ia][1],COOR[ia][2]))
energy = ENER[ia]
# psi_0, psi_H, psi_H_bar = diffraction_setup_dabax.psiAll(energy)
psi_0, psi_H, psi_H_bar = Psi_0[ia], Psi_H[ia], Psi_H_bar[ia]
# Create PerfectCrystalDiffraction instance.
perfect_crystal = PerfectCrystalDiffraction(geometry_type=diffraction_setup_dabax.geometryType(),
bragg_normal=diffraction_setup_dabax.normalBragg(),
surface_normal=diffraction_setup_dabax.normalSurface(),
bragg_angle=diffraction_setup_dabax.angleBragg(energy),
psi_0=psi_0,
psi_H=psi_H,
psi_H_bar=psi_H_bar,
thickness=diffraction_setup_dabax.thickness(),
d_spacing=diffraction_setup_dabax.dSpacing() * 1e-10)
complex_amplitudes = perfect_crystal.calculateDiffraction(incoming_photon)
intensityS_dabax[ia] = complex_amplitudes['S'].intensity() # 0.0 # coeffs_dabax['S'].intensity()
intensityP_dabax[ia] = complex_amplitudes['P'].intensity() # 0.0 # coeffs_dabax['P'].intensity()
t2 = time.time()
# plot results
import matplotlib.pylab as plt
plt.plot(energies,intensityS)
plt.plot(energies,intensityP)
plt.plot(energies,intensityS_dabax)
plt.plot(energies,intensityP_dabax)
plt.xlabel("photon energy [eV]")
plt.ylabel("Reflectivity")
plt.legend(["Sigma-polarization XRAYLIB","Pi-polarization XRAYLIB","Sigma-polarization DABAX","Pi-polarization DABAX"])
plt.show()
print("Total time, Time per points XRAYLIB: ", t1-t0, (t1-t0) / npoints)
print("Total time, Time per points DABAX: ", t2-t1, (t2-t1) / npoints)
#
# main
#
if __name__ == "__main__":
# calculate_simple_diffraction_angular_scan()
# calculate_simple_diffraction_energy_scan()
calculate_simple_diffraction_angular_scan_accelerated()
calculate_simple_diffraction_energy_scan_accelerated()
| 46.281496
| 148
| 0.514823
| 2,108
| 23,511
| 5.550285
| 0.087761
| 0.051453
| 0.039487
| 0.020513
| 0.929658
| 0.921538
| 0.90188
| 0.900598
| 0.900598
| 0.900598
| 0
| 0.020584
| 0.411084
| 23,511
| 507
| 149
| 46.372781
| 0.824426
| 0.154991
| 0
| 0.904437
| 0
| 0
| 0.05404
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013652
| false
| 0
| 0.054608
| 0
| 0.068259
| 0.040956
| 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
|
2a7558e1d67e4e5ea0e241b3288fb5143325f020
| 182
|
py
|
Python
|
admin.py
|
dboutmybizness/ideation
|
043fccea44835d7c23d1c020ab958e385255eb90
|
[
"MIT"
] | 1
|
2015-07-02T19:58:07.000Z
|
2015-07-02T19:58:07.000Z
|
admin.py
|
dboutmybizness/ideation
|
043fccea44835d7c23d1c020ab958e385255eb90
|
[
"MIT"
] | null | null | null |
admin.py
|
dboutmybizness/ideation
|
043fccea44835d7c23d1c020ab958e385255eb90
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from ideas.models import *
admin.site.register(Idea)
admin.site.register(Idea_Type)
admin.site.register(Note)
#admin.site.register(Recently_Viewed)
| 22.75
| 37
| 0.818681
| 27
| 182
| 5.444444
| 0.518519
| 0.244898
| 0.462585
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 182
| 7
| 38
| 26
| 0.869822
| 0.197802
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 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
|
2a98dcf96c65d014c285833e2938b785dfd4dc3e
| 1,634
|
py
|
Python
|
0123_BestTimeToBuyAndSellStock(3).py
|
yingzhuo1994/LeetCode
|
636eef90867d21e3439d258ec99fbb8e5ad5a742
|
[
"MIT"
] | null | null | null |
0123_BestTimeToBuyAndSellStock(3).py
|
yingzhuo1994/LeetCode
|
636eef90867d21e3439d258ec99fbb8e5ad5a742
|
[
"MIT"
] | null | null | null |
0123_BestTimeToBuyAndSellStock(3).py
|
yingzhuo1994/LeetCode
|
636eef90867d21e3439d258ec99fbb8e5ad5a742
|
[
"MIT"
] | null | null | null |
# 1st solution
# O(kn) time | O(kn) space
# where k = 2
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if len(prices) <= 1:
return 0
n, k = len(prices), 2
profits = [prices[i + 1] - prices[i] for i in range(len(prices) - 1)]
if k > len(prices) // 2:
return sum(x for x in profits if x > 0)
dp = [[0] * (k + 1) for _ in range(n - 1)]
mp = [[0] * (k + 1) for _ in range(n - 1)]
dp[0][1], mp[0][1] = profits[0], profits[0]
for i in range(1, n - 1):
for j in range(1, k + 1):
dp[i][j] = max(mp[i - 1][j - 1], dp[i - 1][j]) + profits[i]
mp[i][j] = max(dp[i][j], mp[i - 1][j])
return max(mp[-1])
# 2nd solution, optimization
# O(kn) time | O(kn) space
# where k = 2
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if len(prices) <= 1:
return 0
delta = [prices[i + 1] - prices[i] for i in range(len(prices) - 1)]
profits = [sum(delta) for _, delta in groupby(delta, key=lambda x: x < 0)]
n, k = len(profits) + 1, 2
if k > len(prices) // 2:
return sum(x for x in profits if x > 0)
dp = [[0] * (k + 1) for _ in range(n - 1)]
mp = [[0] * (k + 1) for _ in range(n - 1)]
dp[0][1], mp[0][1] = profits[0], profits[0]
for i in range(1, n - 1):
for j in range(1, k + 1):
dp[i][j] = max(mp[i - 1][j - 1], dp[i - 1][j]) + profits[i]
mp[i][j] = max(dp[i][j], mp[i - 1][j])
return max(mp[-1])
| 31.423077
| 82
| 0.446756
| 277
| 1,634
| 2.617329
| 0.140794
| 0.096552
| 0.024828
| 0.06069
| 0.833103
| 0.833103
| 0.833103
| 0.833103
| 0.833103
| 0.833103
| 0
| 0.059961
| 0.367197
| 1,634
| 52
| 83
| 31.423077
| 0.641199
| 0.069155
| 0
| 0.848485
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.060606
| false
| 0
| 0
| 0
| 0.30303
| 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
|
aa4bd3ccebfff826b73a9aba68cea8d48ca9246c
| 108,325
|
py
|
Python
|
src/isanlp_rst/td_rst_parser/src/utils/transform.py
|
tchewik/isanlp_rst
|
459864b3daeeb702acf5e65543181068439ce12c
|
[
"MIT"
] | 6
|
2020-05-09T01:13:10.000Z
|
2021-02-05T01:02:40.000Z
|
src/isanlp_rst/td_rst_parser/src/utils/transform.py
|
tchewik/isanlp_rst
|
459864b3daeeb702acf5e65543181068439ce12c
|
[
"MIT"
] | 2
|
2019-09-26T11:32:46.000Z
|
2020-07-24T13:44:46.000Z
|
src/isanlp_rst/td_rst_parser/src/utils/transform.py
|
tchewik/isanlp_rst
|
459864b3daeeb702acf5e65543181068439ce12c
|
[
"MIT"
] | 3
|
2019-09-26T13:39:26.000Z
|
2021-04-12T14:34:50.000Z
|
# -*- coding: utf-8 -*-
from collections.abc import Iterable
import nltk, re
from src.utils.logging import get_logger, progress_bar
from src.utils.util_discourse import RelationAndNucleus2Label, Label2RelationAndNucleus
from src.utils.util_spmrl import custom_chomsky_normal_form, clean_leaves
logger = get_logger(__name__)
from copy import deepcopy
class Transform(object):
"""
A Transform object corresponds to a specific data format.
It holds several instances of data fields that provide instructions for preprocessing and numericalizing, etc.
Attributes:
training (bool):
Sets the object in training mode.
If ``False``, some data fields not required for predictions won't be returned.
Default: ``True``.
"""
fields = []
def __init__(self):
self.training = True
def __call__(self, sentences):
pairs = dict()
for field in self:
if field not in self.src and field not in self.tgt:
continue
# if not self.training and field in self.tgt:
# continue
if not isinstance(field, Iterable):
field = [field]
for f in field:
if f is not None:
pairs[f] = f.transform([getattr(i, f.name) for i in sentences])
return pairs
def __getitem__(self, index):
return getattr(self, self.fields[index])
def train(self, training=True):
self.training = training
def eval(self):
self.train(False)
def append(self, field):
self.fields.append(field.name)
setattr(self, field.name, field)
@property
def src(self):
raise AttributeError
@property
def tgt(self):
raise AttributeError
def save(self, path, sentences):
with open(path, 'w') as f:
f.write('\n'.join([str(i) for i in sentences]) + '\n')
class Sentence(object):
"""
A Sentence object holds a sentence with regard to specific data format.
"""
def __init__(self, transform):
self.transform = transform
# mapping from each nested field to their proper position
self.maps = dict()
# names of each field
self.keys = set()
# values of each position
self.values = []
for i, field in enumerate(self.transform):
if not isinstance(field, Iterable):
field = [field]
for f in field:
if f is not None:
self.maps[f.name] = i
self.keys.add(f.name)
def __len__(self):
return len(self.values[0])
def __contains__(self, key):
return key in self.keys
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
else:
return self.values[self.maps[name]]
def __setattr__(self, name, value):
if 'keys' in self.__dict__ and name in self:
index = self.maps[name]
if index >= len(self.values):
self.__dict__[name] = value
else:
self.values[index] = value
else:
self.__dict__[name] = value
def __getstate__(self):
return vars(self)
def __setstate__(self, state):
self.__dict__.update(state)
class CoNLL(Transform):
"""
The CoNLL object holds ten fields required for CoNLL-X data format.
Each field is binded with one or more :class:`Field` objects. For example,
``FORM`` can contain both :class:`Field` and :class:`SubwordField` to produce tensors for words and subwords.
Attributes:
ID:
Token counter, starting at 1.
FORM:
Words in the sentence.
LEMMA:
Lemmas or stems (depending on the particular treebank) of words, or underscores if not available.
CPOS:
Coarse-grained part-of-speech tags, where the tagset depends on the treebank.
POS:
Fine-grained part-of-speech tags, where the tagset depends on the treebank.
FEATS:
Unordered set of syntactic and/or morphological features (depending on the particular treebank),
or underscores if not available.
HEAD:
Heads of the tokens, which are either values of ID or zeros.
DEPREL:
Dependency relations to the HEAD.
PHEAD:
Projective heads of tokens, which are either values of ID or zeros, or underscores if not available.
PDEPREL:
Dependency relations to the PHEAD, or underscores if not available.
References:
- Sabine Buchholz and Erwin Marsi. 2006.
`CoNLL-X Shared Task on Multilingual Dependency Parsing`_.
.. _CoNLL-X Shared Task on Multilingual Dependency Parsing:
https://www.aclweb.org/anthology/W06-2920/
"""
fields = ['ID', 'FORM', 'LEMMA', 'CPOS', 'POS', 'FEATS', 'HEAD', 'DEPREL', 'PHEAD', 'PDEPREL']
def __init__(self,
ID=None, FORM=None, LEMMA=None, CPOS=None, POS=None,
FEATS=None, HEAD=None, DEPREL=None, PHEAD=None, PDEPREL=None):
super().__init__()
self.ID = ID
self.FORM = FORM
self.LEMMA = LEMMA
self.CPOS = CPOS
self.POS = POS
self.FEATS = FEATS
self.HEAD = HEAD
self.DEPREL = DEPREL
self.PHEAD = PHEAD
self.PDEPREL = PDEPREL
@property
def src(self):
return self.FORM, self.CPOS
@property
def tgt(self):
return self.HEAD, self.DEPREL
@classmethod
def get_arcs(cls, sequence):
return [int(i) for i in sequence]
@classmethod
def get_sibs(cls, sequence):
sibs = [-1] * (len(sequence) + 1)
heads = [0] + [int(i) for i in sequence]
for i in range(1, len(heads)):
hi = heads[i]
for j in range(i + 1, len(heads)):
hj = heads[j]
di, dj = hi - i, hj - j
if hi >= 0 and hj >= 0 and hi == hj and di * dj > 0:
if abs(di) > abs(dj):
sibs[i] = j
else:
sibs[j] = i
break
return sibs[1:]
@classmethod
def toconll(cls, tokens):
"""
Convert a list of tokens to a string in CoNLL-X format.
Missing fields are filled with underscores.
Args:
tokens (list[str] or list[tuple]):
This can be either a list of words or word/pos pairs.
Returns:
a string in CoNLL-X format.
Examples:
>>> print(CoNLL.toconll(['She', 'enjoys', 'playing', 'tennis', '.']))
1 She _ _ _ _ _ _ _ _
2 enjoys _ _ _ _ _ _ _ _
3 playing _ _ _ _ _ _ _ _
4 tennis _ _ _ _ _ _ _ _
5 . _ _ _ _ _ _ _ _
"""
if isinstance(tokens[0], str):
s = '\n'.join([f"{i}\t{word}\t" + '\t'.join(['_'] * 8)
for i, word in enumerate(tokens, 1)])
else:
s = '\n'.join([f"{i}\t{word}\t_\t{tag}\t" + '\t'.join(['_'] * 6)
for i, (word, tag) in enumerate(tokens, 1)])
return s + '\n'
@classmethod
def isprojective(cls, sequence):
"""
Check if the dependency tree is projective.
This also works for partial annotation.
Besides the obvious crossing arcs, the examples below illustrate two non-projective cases
that are hard to detect in the scenario of partial annotation.
Args:
sequence (list[int]):
A list of head indices.
Returns:
``True`` if the tree is projective, ``False`` otherwise.
Examples:
>>> CoNLL.isprojective([2, -1, 1]) # -1 denotes un-annotated cases
False
>>> CoNLL.isprojective([3, -1, 2])
False
"""
pairs = [(h, d) for d, h in enumerate(sequence, 1) if h >= 0]
for i, (hi, di) in enumerate(pairs):
for hj, dj in pairs[i + 1:]:
(li, ri), (lj, rj) = sorted([hi, di]), sorted([hj, dj])
if li <= hj <= ri and hi == dj:
return False
if lj <= hi <= rj and hj == di:
return False
if (li < lj < ri or li < rj < ri) and (li - lj) * (ri - rj) > 0:
return False
return True
@classmethod
def istree(cls, sequence, proj=False, multiroot=False):
"""
Check if the arcs form an valid dependency tree.
Args:
sequence (list[int]):
A list of head indices.
proj (bool):
If ``True``, requires the tree to be projective. Default: ``False``.
multiroot (bool):
If ``False``, requires the tree to contain only a single root. Default: ``True``.
Returns:
``True`` if the arcs form an valid tree, ``False`` otherwise.
Examples:
>>> CoNLL.istree([3, 0, 0, 3], multiroot=True)
True
>>> CoNLL.istree([3, 0, 0, 3], proj=True)
False
"""
from src.utils.alg import tarjan
if proj and not cls.isprojective(sequence):
return False
n_roots = sum(head == 0 for head in sequence)
if n_roots == 0:
return False
if not multiroot and n_roots > 1:
return False
if any(i == head for i, head in enumerate(sequence, 1)):
return False
return next(tarjan(sequence), None) is None
def load(self, data, proj=False, max_len=None, **kwargs):
"""
Load data in CoNLL-X format.
Also support for loading data from CoNLL-U file with comments and non-integer IDs.
Args:
data (list[list] or str):
A list of instances or a filename.
proj (bool):
If ``True``, discard all non-projective sentences. Default: ``False``.
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of CoNLLSentence instances.
"""
if isinstance(data, str):
with open(data, 'r') as f:
lines = [line.strip() for line in f]
else:
data = [data] if isinstance(data[0], str) else data
lines = '\n'.join([self.toconll(i) for i in data]).split('\n')
i, start, sentences = 0, 0, []
for line in progress_bar(lines, leave=False):
if not line:
sentences.append(CoNLLSentence(self, lines[start:i]))
start = i + 1
i += 1
if proj:
sentences = [i for i in sentences if self.isprojective(list(map(int, i.arcs)))]
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class CoNLLSentence(Sentence):
"""
Sencence in CoNLL-X format.
Args:
transform (CoNLL):
A CoNLL object.
lines (list[str]):
A list of strings composing a sentence in CoNLL-X format.
Comments and non-integer IDs are permitted.
Examples:
>>> lines = ['# text = But I found the location wonderful and the neighbors very kind.',
'1\tBut\t_\t_\t_\t_\t_\t_\t_\t_',
'2\tI\t_\t_\t_\t_\t_\t_\t_\t_',
'3\tfound\t_\t_\t_\t_\t_\t_\t_\t_',
'4\tthe\t_\t_\t_\t_\t_\t_\t_\t_',
'5\tlocation\t_\t_\t_\t_\t_\t_\t_\t_',
'6\twonderful\t_\t_\t_\t_\t_\t_\t_\t_',
'7\tand\t_\t_\t_\t_\t_\t_\t_\t_',
'7.1\tfound\t_\t_\t_\t_\t_\t_\t_\t_',
'8\tthe\t_\t_\t_\t_\t_\t_\t_\t_',
'9\tneighbors\t_\t_\t_\t_\t_\t_\t_\t_',
'10\tvery\t_\t_\t_\t_\t_\t_\t_\t_',
'11\tkind\t_\t_\t_\t_\t_\t_\t_\t_',
'12\t.\t_\t_\t_\t_\t_\t_\t_\t_']
>>> sentence = CoNLLSentence(transform, lines) # fields in transform are built from ptb.
>>> sentence.arcs = [3, 3, 0, 5, 6, 3, 6, 9, 11, 11, 6, 3]
>>> sentence.rels = ['cc', 'nsubj', 'root', 'det', 'nsubj', 'xcomp',
'cc', 'det', 'dep', 'advmod', 'conj', 'punct']
>>> sentence
# text = But I found the location wonderful and the neighbors very kind.
1 But _ _ _ _ 3 cc _ _
2 I _ _ _ _ 3 nsubj _ _
3 found _ _ _ _ 0 root _ _
4 the _ _ _ _ 5 det _ _
5 location _ _ _ _ 6 nsubj _ _
6 wonderful _ _ _ _ 3 xcomp _ _
7 and _ _ _ _ 6 cc _ _
7.1 found _ _ _ _ _ _ _ _
8 the _ _ _ _ 9 det _ _
9 neighbors _ _ _ _ 11 dep _ _
10 very _ _ _ _ 11 advmod _ _
11 kind _ _ _ _ 6 conj _ _
12 . _ _ _ _ 3 punct _ _
"""
def __init__(self, transform, lines):
super().__init__(transform)
self.values = []
# record annotations for post-recovery
self.annotations = dict()
for i, line in enumerate(lines):
value = line.split('\t')
if value[0].startswith('#') or not value[0].isdigit():
self.annotations[-i - 1] = line
else:
self.annotations[len(self.values)] = line
self.values.append(value)
self.values = list(zip(*self.values))
def __repr__(self):
# cover the raw lines
merged = {**self.annotations,
**{i: '\t'.join(map(str, line))
for i, line in enumerate(zip(*self.values))}}
return '\n'.join(merged.values()) + '\n'
class Tree(Transform):
"""
The Tree object factorize a constituency tree into four fields, each associated with one or more Field objects.
Attributes:
WORD:
Words in the sentence.
POS:
Part-of-speech tags, or underscores if not available.
TREE:
The raw constituency tree in :class:`nltk.tree.Tree` format.
CHART:
The factorized sequence of binarized tree traversed in pre-order.
"""
root = ''
fields = ['WORD', 'POS', 'TREE', 'CHART', 'PARSINGORDER']
def __init__(self, WORD=None, POS=None, TREE=None, CHART=None, PARSINGORDER=None):
super().__init__()
self.WORD = WORD
self.POS = POS
self.TREE = TREE
self.CHART = CHART
self.PARSINGORDER = PARSINGORDER
@property
def src(self):
return self.WORD, self.POS, self.TREE
@property
def tgt(self):
return self.CHART, self.PARSINGORDER
@classmethod
def totree(cls, tokens, root=''):
"""
Convert a list of tokens to a nltk.Tree.
Missing fields are filled with underscores.
Args:
tokens (list[str] or list[tuple]):
This can be either a list of words or word/pos pairs.
root (str):
The root label of the tree. Default: ''.
Returns:
a nltk.Tree object.
Examples:
>>> print(Tree.totree(['She', 'enjoys', 'playing', 'tennis', '.'], 'TOP'))
(TOP (_ She) (_ enjoys) (_ playing) (_ tennis) (_ .))
"""
if isinstance(tokens[0], str):
tokens = [(token, '_') for token in tokens]
tree = ' '.join([f"({pos} {word})" for word, pos in tokens])
return nltk.Tree.fromstring(f"({root} {tree})")
@classmethod
def binarize(cls, tree):
"""
Conduct binarization over the tree.
First, the tree is transformed to satisfy Chomsky Normal Form (CNF).
Here we call the member function `chomsky_normal_form` in nltk.Tree to conduct left-binarization.
Second, all unary productions in the tree are collapsed.
Args:
tree (nltk.tree.Tree):
the tree to be binarized.
Returns:
the binarized tree.
Examples:
>>> tree = nltk.Tree.fromstring('''
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
''')
>>> print(Tree.binarize(tree))
(TOP
(S
(S|<>
(NP (_ She))
(VP
(VP|<> (_ enjoys))
(S+VP (VP|<> (_ playing)) (NP (_ tennis)))))
(S|<> (_ .))))
"""
tree = tree.copy(True)
nodes = [tree]
while nodes:
node = nodes.pop()
if isinstance(node, nltk.Tree):
nodes.extend([child for child in node])
if len(node) > 1:
for i, child in enumerate(node):
if not isinstance(child[0], nltk.Tree):
node[i] = nltk.Tree(f"{node.label()}|<>", [child])
tree.chomsky_normal_form('left', 0, 0)
tree.collapse_unary()
return tree
@classmethod
def parsingorder_dfs(cls, tree, delete_labels=None, equal_labels=None):
def track(tree, i):
label = tree.label()
if delete_labels is not None and label in delete_labels:
label = None
if equal_labels is not None:
label = equal_labels.get(label, label)
if len(tree) == 1 and not isinstance(tree[0], Tree):
return (i + 1 if label is not None else i), []
j, spans = i, []
parsing_order = (i,)
for child in tree:
j, s = track(child, j)
parsing_order = parsing_order + (j,)
spans += s
if len(parsing_order) == 3:
spans = [parsing_order] + spans
return j, spans
return track(tree, 0)[1]
@classmethod
def factorize(cls, tree, delete_labels=None, equal_labels=None):
"""
Factorize the tree into a sequence.
The tree is traversed in pre-order.
Args:
tree (nltk.tree.Tree):
the tree to be factorized.
delete_labels (set[str]):
A set of labels to be ignored. This is used for evaluation.
If it is a pre-terminal label, delete the word along with the brackets.
If it is a non-terminal label, just delete the brackets (don't delete childrens).
In `EVALB`_, the default set is:
{'TOP', 'S1', '-NONE-', ',', ':', '``', "''", '.', '?', '!', ''}
Default: ``None``.
equal_labels (dict[str, str]):
The key-val pairs in the dict are considered equivalent (non-directional). This is used for evaluation.
The default dict defined in EVALB is: {'ADVP': 'PRT'}
Default: ``None``.
Returns:
The sequence of factorized tree.
Examples:
>>> tree = nltk.Tree.fromstring('''
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
''')
>>> Tree.factorize(tree)
[(0, 5, 'TOP'), (0, 5, 'S'), (0, 1, 'NP'), (1, 4, 'VP'), (2, 4, 'S'), (2, 4, 'VP'), (3, 4, 'NP')]
>>> Tree.factorize(tree, delete_labels={'TOP', 'S1', '-NONE-', ',', ':', '``', "''", '.', '?', '!', ''})
[(0, 5, 'S'), (0, 1, 'NP'), (1, 4, 'VP'), (2, 4, 'S'), (2, 4, 'VP'), (3, 4, 'NP')]
.. _EVALB:
https://nlp.cs.nyu.edu/evalb/
"""
def track(tree, i):
label = tree.label()
if delete_labels is not None and label in delete_labels:
label = None
if equal_labels is not None:
label = equal_labels.get(label, label)
if len(tree) == 1 and not isinstance(tree[0], nltk.Tree):
return (i + 1 if label is not None else i), []
j, spans = i, []
for child in tree:
j, s = track(child, j)
spans += s
if label is not None and j > i:
spans = [(i, j, label)] + spans
return j, spans
return track(tree, 0)[1]
@classmethod
def build(cls, tree, sequence):
"""
Build a constituency tree from the sequence. The sequence is generated in pre-order.
During building the tree, the sequence is de-binarized to the original format (i.e.,
the suffixes ``|<>`` are ignored, the collapsed labels are recovered).
Args:
tree (nltk.tree.Tree):
An empty tree providing a base for building a result tree.
sequence (list[tuple]):
A list of tuples used for generating a tree.
Each tuple consits of the indices of left/right span boundaries and label of the span.
Returns:
A result constituency tree.
Examples:
>>> tree = Tree.totree(['She', 'enjoys', 'playing', 'tennis', '.'], 'TOP')
>>> sequence = [(0, 5, 'S'), (0, 4, 'S|<>'), (0, 1, 'NP'), (1, 4, 'VP'), (1, 2, 'VP|<>'),
(2, 4, 'S+VP'), (2, 3, 'VP|<>'), (3, 4, 'NP'), (4, 5, 'S|<>')]
>>> print(Tree.build(tree, sequence))
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
"""
root = tree.label()
leaves = [subtree for subtree in tree.subtrees()
if not isinstance(subtree[0], nltk.Tree)]
def track(node):
i, j, label = next(node)
if j == i + 1:
children = [leaves[i]]
else:
children = track(node) + track(node)
if label.endswith('|<>'):
return children
labels = label.split('+')
tree = nltk.Tree(labels[-1], children)
for label in reversed(labels[:-1]):
tree = nltk.Tree(label, [tree])
return [tree]
return nltk.Tree(root, track(iter(sequence)))
def load(self, data, max_len=None, **kwargs):
"""
Args:
data (list[list] or str):
A list of instances or a filename.
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of TreeSentence instances.
"""
if isinstance(data, str):
with open(data, 'r') as f:
trees = [nltk.Tree.fromstring(string) for string in f]
self.root = trees[0].label()
else:
data = [data] if isinstance(data[0], str) else data
trees = [self.totree(i, self.root) for i in data]
i, sentences = 0, []
for tree in progress_bar(trees, leave=False):
if len(tree) == 1 and not isinstance(tree[0][0], nltk.Tree):
continue
sentences.append(TreeSentence(self, tree))
i += 1
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class TreeSentence(Sentence):
"""
Args:
transform (Tree):
A Tree object.
tree (nltk.tree.Tree):
A nltk.Tree object.
"""
def __init__(self, transform, tree):
super().__init__(transform)
# the values contain words, pos tags, raw trees, and spans
# the tree is first left-binarized before factorized
# spans are the factorization of tree traversed in pre-order
self.values = [*zip(*tree.pos()),
tree,
Tree.factorize(Tree.binarize(tree)[0]),
Tree.parsingorder_dfs(Tree.binarize(tree)[0])]
def __repr__(self):
return self.values[-3].pformat(1000000)
class DiscourseTree(Transform):
"""
The Tree object factorize a constituency tree into four fields, each associated with one or more Field objects.
Attributes:
WORD:
Words in the sentence.
POS:
Part-of-speech tags, or underscores if not available.
TREE:
The raw constituency tree in :class:`nltk.tree.Tree` format.
CHART:
The factorized sequence of binarized tree traversed in pre-order.
"""
root = ''
fields = ['WORD', 'EDU_BREAK', 'GOLD_METRIC', 'CHART', 'PARSINGORDER']
def __init__(self, WORD=None, EDU_BREAK=None, GOLD_METRIC=None, CHART=None, PARSINGORDER=None):
super().__init__()
self.WORD = WORD
self.EDU_BREAK = EDU_BREAK
self.GOLD_METRIC = GOLD_METRIC
self.CHART = CHART
self.PARSINGORDER = PARSINGORDER
@property
def src(self):
return self.WORD, self.EDU_BREAK, self.GOLD_METRIC
@property
def tgt(self):
return self.CHART, self.PARSINGORDER
@classmethod
def edu2token(cls, golden_metric_edu, edu_break):
# stack = [(0,len(parsing_order))]
# NOTE
# This part to generate parsing order and parsing label in term of edu
# if golden_metric_edu is not 'NONE':
if not (golden_metric_edu == 'NONE'):
parsing_order_edu = []
parsing_label = []
golden_metric_edu_split = re.split(' ', golden_metric_edu)
for each_split in golden_metric_edu_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split(':|=|,', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
relation_label = RelationAndNucleus2Label(Nuclearity_left,
Nuclearity_right,
Relation_left,
Relation_right)
parsing_order_edu.append((left_start, left_end, right_start, right_end))
parsing_label.append(relation_label)
# Now we add to the parsing edu the part that corresponding to edu detection component
# (or when the case all the values)
# in parsing order for edu are the same
parsing_order_self_pointing_edu = []
stacks = ['__StackRoot__', parsing_order_edu[0]]
while stacks[-1] is not '__StackRoot__':
stack_head = stacks[-1]
# assert (len(stack_head) == 4)
parsing_order_self_pointing_edu.append(stack_head)
if stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3] and stack_head[2] == stack_head[1]:
del stacks[-1]
elif stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[0] == stack_head[1]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
# assert len(stack_down) == 1
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[2] == stack_head[3]:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
# assert len(stack_top) == 1
stack_top = stack_top[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
else:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
# assert len(stack_top) == 1 and len(stack_down) == 1
stack_top = stack_top[0]
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
# parsing_label_self_pointing = []
# for x in parsing_order_self_pointing_edu:
# if x in parsing_order_edu:
# parsing_label_self_pointing.append(parsing_label[parsing_order_edu.index(x)])
# else:
# parsing_label_self_pointing.append('None')
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
parsing_order_self_pointing_token = []
for x in parsing_order_self_pointing_edu:
if x[0] == x[1] == x[2] == x[3]:
start_point = edu_span[x[0]][0]
end_point = edu_span[x[0]][1] + 1
parsing_order_self_pointing_token.append((start_point, end_point, end_point))
else:
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_order_self_pointing_token.append((start_point, split_point, end_point))
parsing_order_token = []
for i, x in enumerate(parsing_order_edu):
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_order_token.append((start_point, split_point, end_point, parsing_label[i]))
# parsing_order_token = []
# for x in parsing_order_edu:
# start_leftspan = edu_span[x[0]][0]
# end_leftspan = edu_span[x[1]][1]
# start_rightspan = edu_span[x[2]][0]
# end_rightspan = edu_span[x[3]][1]
# parsing_order_token.append((start_leftspan, end_leftspan, start_rightspan, end_rightspan))
else:
# parsing_order_self_pointing_edu = [(0, 0, 0, 0)]
# edu_span = [(0, edu_break[0])]
# parsing_order_edu = []
parsing_order_self_pointing_token = [(0, edu_break[0] + 1, edu_break[0] + 1)]
parsing_order_token = []
# parsing_label_self_pointing = ['None']
# parsing_label = ['None']
return parsing_order_token, parsing_order_self_pointing_token
@classmethod
def build(cls, sequence):
"""
Build a token-based discourse tree from the sequence.
The sequence is generated in depth first search.
Args:
sequence (list[tuple]):
A list of tuples used for generating a tree.
Each tuple consits of the indices of left/right/split span boundaries,
discourse label of the span.
Returns:
A result discourse tree.
Examples:
>>> sequence = [(0, 24, 30, 'Attribution_NS'), (0, 12, 24,'Joint_NN'), (0, 12, 12,'None'),
(12, 16, 24,'Attribution_SN'), (12, 16, 16,'None'),
(16, 24, 24,'None'), (24, 30, 30,'None')]
>>> print(Tree.build(sequence))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if len(sequence) == 0:
return 'NONE'
else:
result = []
for (i, k, j, label) in sequence:
if k < j:
Nuclearity_left, Nuclearity_right, Relation_left, Relation_right \
= Label2RelationAndNucleus(label)
node = f'({i}:{Nuclearity_left}={Relation_left}:{k - 1},{k}:{Nuclearity_right}={Relation_right}:{j - 1})'
result.append(node)
return ' '.join(result)
@classmethod
def build_gold(cls, edu_break, gold_metric_edu):
"""
Build a token-based discourse tree from gold edu_break and gold_metric_edu.
Args:
edu_break (list(int)):
A list of edu breaking points
gold_metric_edu (string)
edu-based discourse treel
Returns:
A result discourse tree.
Examples:
>>> edu_break =[11, 15, 23, 29, 32, 40]
>>> gold_metric_edu='(1:Nucleus=span:3,4:Satellite=Attribution:4)
(1:Nucleus=Joint:1,2:Nucleus=Joint:3)
(2:Satellite=Attribution:2,3:Nucleus=span:3)'
>>> print(Tree.build_gold(edu_break, gold_metric_edu))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if gold_metric_edu == 'NONE':
return 'NONE'
else:
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
result = []
golden_metric_edu_split = re.split(' ', gold_metric_edu)
for each_split in golden_metric_edu_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split(':|=|,', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
node = f'({edu_span[left_start][0]}:{Nuclearity_left}={Relation_left}:{edu_span[left_end][1]},{edu_span[right_start][0]}:{Nuclearity_right}={Relation_right}:{edu_span[right_end][1]})'
result.append(node)
return ' '.join(result)
def load(self, data, max_len=None, **kwargs):
"""
Args:
data (dict):
A dictionary of 'sentence', 'gold_metric', 'edu_break'
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of TreeSentence instances.
"""
# if isinstance(data, str):
# with open(data, 'r') as f:
# trees = [nltk.Tree.fromstring(string) for string in f]
# self.root = trees[0].label()
# else:
# data = [data] if isinstance(data[0], str) else data
# trees = [self.totree(i, self.root) for i in data]
assert isinstance(data, str)
import pickle
data_dict = pickle.load(open(data, "rb"))
sents = data_dict['InputDocs']
edu_break = data_dict['EduBreak_TokenLevel']
golden_metric = data_dict['Docs_structure']
i, sentences = 0, []
for sent in progress_bar(sents, leave=False):
# if len(tree) == 1 and not isinstance(tree[0][0], nltk.Tree):
# continue
sentences.append(DiscourseTreeSentence(self, sent, edu_break[i], golden_metric[i][0]))
i += 1
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class DiscourseTreeSentence(Sentence):
"""
Args:
transform (Tree):
A Tree object.
tree (nltk.tree.Tree):
A nltk.Tree object.
"""
def __init__(self, transform, sent, edu_break, golden_metric):
super().__init__(transform)
# the values contain words, pos tags, raw trees, and spans
# the tree is first left-binarized before factorized
# spans are the factorization of tree traversed in pre-order
self.values = [sent,
edu_break,
golden_metric,
*DiscourseTree.edu2token(golden_metric_edu=golden_metric, edu_break=edu_break)]
def __repr__(self):
return self.values[-2].pformat(1000000)
class SPMRL_Tree(Transform):
"""
The Tree object factorize a constituency tree into four fields, each associated with one or more Field objects.
Attributes:
WORD:
Words in the sentence.
POS:
Part-of-speech tags, or underscores if not available.
TREE:
The raw constituency tree in :class:`nltk.tree.Tree` format.
CHART:
The factorized sequence of binarized tree traversed in pre-order.
"""
root = ''
fields = ['WORD', 'POS', 'TREE', 'CHART', 'PARSINGORDER']
def __init__(self, WORD=None, POS=None, TREE=None, CHART=None, PARSINGORDER=None):
super().__init__()
self.WORD = WORD
self.POS = POS
self.TREE = TREE
self.CHART = CHART
self.PARSINGORDER = PARSINGORDER
@property
def src(self):
return self.WORD, self.POS, self.TREE
@property
def tgt(self):
return self.CHART, self.PARSINGORDER
@classmethod
def totree(cls, tokens, root=''):
"""
Convert a list of tokens to a nltk.Tree.
Missing fields are filled with underscores.
Args:
tokens (list[str] or list[tuple]):
This can be either a list of words or word/pos pairs.
root (str):
The root label of the tree. Default: ''.
Returns:
a nltk.Tree object.
Examples:
>>> print(Tree.totree(['She', 'enjoys', 'playing', 'tennis', '.'], 'TOP'))
(TOP (_ She) (_ enjoys) (_ playing) (_ tennis) (_ .))
"""
if isinstance(tokens[0], str):
tokens = [(token, '_') for token in tokens]
tree = ' '.join([f"({pos} {word})" for word, pos in tokens])
return nltk.Tree.fromstring(f"({root} {tree})")
@classmethod
def binarize(cls, tree, binarize_direction='left', dummy_label_manipulating='parent'):
assert binarize_direction in ['left',
'right'], f"We only support left/right direction here, yours: {binarize_direction}"
assert dummy_label_manipulating in ['parent', 'universal',
'universal_node_unary'], f"We only support parent/universal direction here"
tree = tree.copy(True)
nodes = [tree]
while nodes:
node = nodes.pop()
if isinstance(node, nltk.Tree):
nodes.extend([child for child in node])
if len(node) > 1:
for i, child in enumerate(node):
if not isinstance(child[0], nltk.Tree):
if dummy_label_manipulating == 'parent':
node[i] = nltk.Tree(f"{node.label()}|<>", [child])
elif dummy_label_manipulating == 'universal':
node[i] = nltk.Tree(f"|<>", [child])
elif dummy_label_manipulating == 'universal_node_unary':
node[i] = nltk.Tree(f"UNARY|<>", [child])
tree = custom_chomsky_normal_form(tree, binarize_direction, dummy_label_manipulating, 0, 0)
tree.collapse_unary(joinChar="====")
return tree
# def binarize(cls, tree,binarize_direction='left'):
# """
# Conduct binarization over the tree.
#
# First, the tree is transformed to satisfy Chomsky Normal Form (CNF).
# Here we call the member function `chomsky_normal_form` in nltk.Tree to conduct left-binarization.
# Second, all unary productions in the tree are collapsed.
#
# Args:
# tree (nltk.tree.Tree):
# the tree to be binarized.
#
# Returns:
# the binarized tree.
#
# Examples:
# >>> tree = nltk.Tree.fromstring('''
# (TOP
# (S
# (NP (_ She))
# (VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
# (_ .)))
# ''')
# >>> print(Tree.binarize(tree))
# (TOP
# (S
# (S|<>
# (NP (_ She))
# (VP
# (VP|<> (_ enjoys))
# (S+VP (VP|<> (_ playing)) (NP (_ tennis)))))
# (S|<> (_ .))))
# """
#
# tree = tree.copy(True)
# nodes = [tree]
# while nodes:
# node = nodes.pop()
# if isinstance(node, nltk.Tree):
# nodes.extend([child for child in node])
# if len(node) > 1:
# for i, child in enumerate(node):
# if not isinstance(child[0], nltk.Tree):
# node[i] = nltk.Tree(f"{node.label()}|<>", [child])
# tree.chomsky_normal_form(binarize_direction, 0, 0)
# tree.collapse_unary()
#
# return tree
@classmethod
def parsingorder_dfs(cls, tree, delete_labels=None, equal_labels=None):
def track(tree, i):
label = tree.label()
if delete_labels is not None and label in delete_labels:
label = None
if equal_labels is not None:
label = equal_labels.get(label, label)
if len(tree) == 1 and not isinstance(tree[0], Tree):
return (i + 1 if label is not None else i), []
j, spans = i, []
parsing_order = (i,)
for child in tree:
j, s = track(child, j)
parsing_order = parsing_order + (j,)
spans += s
if len(parsing_order) == 3:
spans = [parsing_order] + spans
return j, spans
return track(tree, 0)[1]
@classmethod
def factorize(cls, tree, delete_labels=None, equal_labels=None):
"""
Factorize the tree into a sequence.
The tree is traversed in pre-order.
Args:
tree (nltk.tree.Tree):
the tree to be factorized.
delete_labels (set[str]):
A set of labels to be ignored. This is used for evaluation.
If it is a pre-terminal label, delete the word along with the brackets.
If it is a non-terminal label, just delete the brackets (don't delete childrens).
In `EVALB`_, the default set is:
{'TOP', 'S1', '-NONE-', ',', ':', '``', "''", '.', '?', '!', ''}
Default: ``None``.
equal_labels (dict[str, str]):
The key-val pairs in the dict are considered equivalent (non-directional). This is used for evaluation.
The default dict defined in EVALB is: {'ADVP': 'PRT'}
Default: ``None``.
Returns:
The sequence of factorized tree.
Examples:
>>> tree = nltk.Tree.fromstring('''
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
''')
>>> Tree.factorize(tree)
[(0, 5, 'TOP'), (0, 5, 'S'), (0, 1, 'NP'), (1, 4, 'VP'), (2, 4, 'S'), (2, 4, 'VP'), (3, 4, 'NP')]
>>> Tree.factorize(tree, delete_labels={'TOP', 'S1', '-NONE-', ',', ':', '``', "''", '.', '?', '!', ''})
[(0, 5, 'S'), (0, 1, 'NP'), (1, 4, 'VP'), (2, 4, 'S'), (2, 4, 'VP'), (3, 4, 'NP')]
.. _EVALB:
https://nlp.cs.nyu.edu/evalb/
"""
def track(tree, i):
label = tree.label()
if delete_labels is not None and label in delete_labels:
label = None
if equal_labels is not None:
label = equal_labels.get(label, label)
if len(tree) == 1 and not isinstance(tree[0], nltk.Tree):
return (i + 1 if label is not None else i), []
j, spans = i, []
for child in tree:
j, s = track(child, j)
spans += s
if label is not None and j > i:
spans = [(i, j, label)] + spans
return j, spans
return track(tree, 0)[1]
@classmethod
def build(cls, tree, sequence):
"""
Build a constituency tree from the sequence. The sequence is generated in pre-order.
During building the tree, the sequence is de-binarized to the original format (i.e.,
the suffixes ``|<>`` are ignored, the collapsed labels are recovered).
Args:
tree (nltk.tree.Tree):
An empty tree providing a base for building a result tree.
sequence (list[tuple]):
A list of tuples used for generating a tree.
Each tuple consits of the indices of left/right span boundaries and label of the span.
Returns:
A result constituency tree.
Examples:
>>> tree = Tree.totree(['She', 'enjoys', 'playing', 'tennis', '.'], 'TOP')
>>> sequence = [(0, 5, 'S'), (0, 4, 'S|<>'), (0, 1, 'NP'), (1, 4, 'VP'), (1, 2, 'VP|<>'),
(2, 4, 'S+VP'), (2, 3, 'VP|<>'), (3, 4, 'NP'), (4, 5, 'S|<>')]
>>> print(Tree.build(tree, sequence))
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
"""
root = tree.label()
leaves = [subtree for subtree in tree.subtrees()
if not isinstance(subtree[0], nltk.Tree)]
def track(node):
i, j, label = next(node)
if j == i + 1:
children = [leaves[i]]
else:
children = track(node) + track(node)
if label.endswith('|<>'):
return children
labels = label.split('====')
tree = nltk.Tree(labels[-1], children)
for label in reversed(labels[:-1]):
tree = nltk.Tree(label, [tree])
return [tree]
return nltk.Tree(root, track(iter(sequence)))
def load(self, data, max_len=None, binarize_direction='', dummy_label_manipulating='', **kwargs):
"""
Args:
data (list[list] or str):
A list of instances or a filename.
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of TreeSentence instances.
"""
if isinstance(data, str):
with open(data, 'r') as f:
trees = [nltk.Tree.fromstring(string) for string in f]
self.root = trees[0].label()
else:
data = [data] if isinstance(data[0], str) else data
trees = [self.totree(i, self.root) for i in data]
i, sentences = 0, []
for tree in progress_bar(trees, leave=False):
if len(tree) == 1 and not isinstance(tree[0][0], nltk.Tree):
continue
# sentences.append(SPMRL_TreeSentence(self, tree, binarize_direction,dummy_label_manipulating))
sentences.append(SPMRL_TreeSentence(self, tree, binarize_direction, dummy_label_manipulating))
i += 1
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class SPMRL_TreeSentence(Sentence):
"""
Args:
transform (Tree):
A Tree object.
tree (nltk.tree.Tree):
A nltk.Tree object.
"""
def __init__(self, transform, tree, binarize_direction, dummy_label_manipulating):
super().__init__(transform)
# the values contain words, pos tags, raw trees, and spans
# the tree is first left-binarized before factorized
# spans are the factorization of tree traversed in pre-order
if len(tree) > 1:
self.values = [*zip(*tree.pos()),
tree,
SPMRL_Tree.factorize(SPMRL_Tree.binarize(tree, binarize_direction=binarize_direction,
dummy_label_manipulating=dummy_label_manipulating)),
SPMRL_Tree.parsingorder_dfs(SPMRL_Tree.binarize(tree, binarize_direction=binarize_direction,
dummy_label_manipulating=dummy_label_manipulating))]
else:
self.values = [*zip(*tree.pos()),
tree,
SPMRL_Tree.factorize(SPMRL_Tree.binarize(tree, binarize_direction=binarize_direction,
dummy_label_manipulating=dummy_label_manipulating)[
0]),
SPMRL_Tree.parsingorder_dfs(SPMRL_Tree.binarize(tree, binarize_direction=binarize_direction,
dummy_label_manipulating=dummy_label_manipulating)[
0])]
def __repr__(self):
return self.values[-3].pformat(1000000)
class TreeZh(Transform):
"""
The Tree object factorize a constituency tree into four fields, each associated with one or more Field objects.
Attributes:
WORD:
Words in the sentence.
POS:
Part-of-speech tags, or underscores if not available.
TREE:
The raw constituency tree in :class:`nltk.tree.Tree` format.
CHART:
The factorized sequence of binarized tree traversed in pre-order.
"""
root = ''
fields = ['WORD', 'POS', 'TREE', 'CHART', 'PARSINGORDER']
def __init__(self, WORD=None, POS=None, TREE=None, CHART=None, PARSINGORDER=None):
super().__init__()
self.WORD = WORD
self.POS = POS
self.TREE = TREE
self.CHART = CHART
self.PARSINGORDER = PARSINGORDER
@property
def src(self):
return self.WORD, self.POS, self.TREE
@property
def tgt(self):
return self.CHART, self.PARSINGORDER
@classmethod
def totree(cls, tokens, root=''):
"""
Convert a list of tokens to a nltk.Tree.
Missing fields are filled with underscores.
Args:
tokens (list[str] or list[tuple]):
This can be either a list of words or word/pos pairs.
root (str):
The root label of the tree. Default: ''.
Returns:
a nltk.Tree object.
Examples:
>>> print(Tree.totree(['She', 'enjoys', 'playing', 'tennis', '.'], 'TOP'))
(TOP (_ She) (_ enjoys) (_ playing) (_ tennis) (_ .))
"""
if isinstance(tokens[0], str):
tokens = [(token, '_') for token in tokens]
tree = ' '.join([f"({pos} {word})" for word, pos in tokens])
return nltk.Tree.fromstring(f"({root} {tree})")
@classmethod
def binarize(cls, tree):
"""
Conduct binarization over the tree.
First, the tree is transformed to satisfy Chomsky Normal Form (CNF).
Here we call the member function `chomsky_normal_form` in nltk.Tree to conduct left-binarization.
Second, all unary productions in the tree are collapsed.
Args:
tree (nltk.tree.Tree):
the tree to be binarized.
Returns:
the binarized tree.
Examples:
>>> tree = nltk.Tree.fromstring('''
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
''')
>>> print(Tree.binarize(tree))
(TOP
(S
(S|<>
(NP (_ She))
(VP
(VP|<> (_ enjoys))
(S+VP (VP|<> (_ playing)) (NP (_ tennis)))))
(S|<> (_ .))))
"""
tree = tree.copy(True)
nodes = [tree]
while nodes:
node = nodes.pop()
if isinstance(node, nltk.Tree):
nodes.extend([child for child in node])
if len(node) > 1:
for i, child in enumerate(node):
if not isinstance(child[0], nltk.Tree):
node[i] = nltk.Tree(f"{node.label()}|<>", [child])
tree.chomsky_normal_form('left', 0, 0)
tree.collapse_unary()
return tree
@classmethod
def parsingorder_dfs(cls, tree, delete_labels=None, equal_labels=None):
def track(tree, i):
label = tree.label()
if delete_labels is not None and label in delete_labels:
label = None
if equal_labels is not None:
label = equal_labels.get(label, label)
if len(tree) == 1 and not isinstance(tree[0], Tree):
return (i + 1 if label is not None else i), []
j, spans = i, []
parsing_order = (i,)
for child in tree:
j, s = track(child, j)
parsing_order = parsing_order + (j,)
spans += s
if len(parsing_order) == 3:
spans = [parsing_order] + spans
return j, spans
return track(tree, 0)[1]
@classmethod
def factorize(cls, tree, delete_labels=None, equal_labels=None):
"""
Factorize the tree into a sequence.
The tree is traversed in pre-order.
Args:
tree (nltk.tree.Tree):
the tree to be factorized.
delete_labels (set[str]):
A set of labels to be ignored. This is used for evaluation.
If it is a pre-terminal label, delete the word along with the brackets.
If it is a non-terminal label, just delete the brackets (don't delete childrens).
In `EVALB`_, the default set is:
{'TOP', 'S1', '-NONE-', ',', ':', '``', "''", '.', '?', '!', ''}
Default: ``None``.
equal_labels (dict[str, str]):
The key-val pairs in the dict are considered equivalent (non-directional). This is used for evaluation.
The default dict defined in EVALB is: {'ADVP': 'PRT'}
Default: ``None``.
Returns:
The sequence of factorized tree.
Examples:
>>> tree = nltk.Tree.fromstring('''
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
''')
>>> Tree.factorize(tree)
[(0, 5, 'TOP'), (0, 5, 'S'), (0, 1, 'NP'), (1, 4, 'VP'), (2, 4, 'S'), (2, 4, 'VP'), (3, 4, 'NP')]
>>> Tree.factorize(tree, delete_labels={'TOP', 'S1', '-NONE-', ',', ':', '``', "''", '.', '?', '!', ''})
[(0, 5, 'S'), (0, 1, 'NP'), (1, 4, 'VP'), (2, 4, 'S'), (2, 4, 'VP'), (3, 4, 'NP')]
.. _EVALB:
https://nlp.cs.nyu.edu/evalb/
"""
def track(tree, i):
label = tree.label()
if delete_labels is not None and label in delete_labels:
label = None
if equal_labels is not None:
label = equal_labels.get(label, label)
if len(tree) == 1 and not isinstance(tree[0], nltk.Tree):
return (i + 1 if label is not None else i), []
j, spans = i, []
for child in tree:
j, s = track(child, j)
spans += s
if label is not None and j > i:
spans = [(i, j, label)] + spans
return j, spans
return track(tree, 0)[1]
@classmethod
def build(cls, tree, sequence):
"""
Build a constituency tree from the sequence. The sequence is generated in pre-order.
During building the tree, the sequence is de-binarized to the original format (i.e.,
the suffixes ``|<>`` are ignored, the collapsed labels are recovered).
Args:
tree (nltk.tree.Tree):
An empty tree providing a base for building a result tree.
sequence (list[tuple]):
A list of tuples used for generating a tree.
Each tuple consits of the indices of left/right span boundaries and label of the span.
Returns:
A result constituency tree.
Examples:
>>> tree = Tree.totree(['She', 'enjoys', 'playing', 'tennis', '.'], 'TOP')
>>> sequence = [(0, 5, 'S'), (0, 4, 'S|<>'), (0, 1, 'NP'), (1, 4, 'VP'), (1, 2, 'VP|<>'),
(2, 4, 'S+VP'), (2, 3, 'VP|<>'), (3, 4, 'NP'), (4, 5, 'S|<>')]
>>> print(Tree.build(tree, sequence))
(TOP
(S
(NP (_ She))
(VP (_ enjoys) (S (VP (_ playing) (NP (_ tennis)))))
(_ .)))
"""
root = tree.label()
leaves = [subtree for subtree in tree.subtrees()
if not isinstance(subtree[0], nltk.Tree)]
def track(node):
i, j, label = next(node)
if j == i + 1:
children = [leaves[i]]
else:
children = track(node) + track(node)
if label.endswith('|<>'):
return children
labels = label.split('+')
tree = nltk.Tree(labels[-1], children)
for label in reversed(labels[:-1]):
tree = nltk.Tree(label, [tree])
return [tree]
return nltk.Tree(root, track(iter(sequence)))
def load(self, data, max_len=None, **kwargs):
"""
Args:
data (list[list] or str):
A list of instances or a filename.
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of TreeSentence instances.
"""
if isinstance(data, str):
with open(data, 'r') as f:
trees = [nltk.Tree.fromstring(string) for string in f]
self.root = trees[0].label()
else:
data = [data] if isinstance(data[0], str) else data
trees = [self.totree(i, self.root) for i in data]
i, sentences = 0, []
for tree in progress_bar(trees, leave=False):
if len(tree) == 1 and not isinstance(tree[0][0], nltk.Tree):
continue
sentences.append(TreeZhSentence(self, tree))
i += 1
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class TreeZhSentence(Sentence):
"""
Args:
transform (Tree):
A Tree object.
tree (nltk.tree.Tree):
A nltk.Tree object.
"""
def __init__(self, transform, tree):
super().__init__(transform)
# the values contain words, pos tags, raw trees, and spans
# the tree is first left-binarized before factorized
# spans are the factorization of tree traversed in pre-order
self.values = [*zip(*tree.pos()),
tree,
Tree.factorize(TreeZh.binarize(tree)),
Tree.parsingorder_dfs(TreeZh.binarize(tree))]
def __repr__(self):
return self.values[-3].pformat(1000000)
def collect_edus(docs_structure):
edus_id = []
for entry in docs_structure:
if entry:
left, right = entry.split(',')
left = left.replace('(', '').split(':')
du1, du2 = left[0], left[2]
if du1 == du2:
edus_id.append(int(du1))
right = right.replace(')', '').split(':')
du1, du2 = right[0], right[2]
if du1 == du2:
edus_id.append(int(du1))
return edus_id
class DiscourseTreeDoc(Transform):
"""
The Tree object factorize a constituency tree into four fields, each associated with one or more Field objects.
Attributes:
WORD:
Words in the sentence.
POS:
Part-of-speech tags, or underscores if not available.
TREE:
The raw constituency tree in :class:`nltk.tree.Tree` format.
CHART:
The factorized sequence of binarized tree traversed in pre-order.
"""
root = ''
fields = ['WORD', 'EDU_BREAK', 'GOLD_METRIC', 'CHART', 'PARSINGORDER']
def __init__(self, WORD=None, EDU_BREAK=None, GOLD_METRIC=None, CHART=None, PARSINGORDER=None):
super().__init__()
self.WORD = WORD
self.EDU_BREAK = EDU_BREAK
self.GOLD_METRIC = GOLD_METRIC
self.CHART = CHART
self.PARSINGORDER = PARSINGORDER
@property
def src(self):
return self.WORD, self.EDU_BREAK, self.GOLD_METRIC
@property
def tgt(self):
return self.CHART, self.PARSINGORDER
@classmethod
def edu2token(cls, golden_metric_edu, edu_break):
# stack = [(0,len(parsing_order))]
# NOTE
# This part to generate parsing order and parsing label in term of edu
# if golden_metric_edu is not 'NONE':
# print(edu_break)
# print(len(edu_break))
# input()
# print(golden_metric_edu)
# print(edu_break)
# input()
if not (golden_metric_edu == 'NONE'):
parsing_order_edu = []
parsing_label = []
golden_metric_edu_split = re.split(' ', golden_metric_edu)
# assert (len(golden_metric_edu_split) == len(edu_break) - 1), f"something wrong {len(golden_metric_edu_split)}:{len(edu_break) - 1}"
rootsplit = None
edus_numbers = collect_edus(golden_metric_edu_split)
if edus_numbers:
maximum_edu = max(edus_numbers)
for each_split in golden_metric_edu_split:
if each_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split('[:|=|,]', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
relation_label = RelationAndNucleus2Label(Nuclearity_left,
Nuclearity_right,
Relation_left,
Relation_right)
parsing_order_edu.append((left_start, left_end, right_start, right_end))
if left_start == 0 and right_end == maximum_edu - 1:
rootsplit = deepcopy((left_start, left_end, right_start, right_end))
parsing_label.append(relation_label)
# Now we add to the parsing edu the part that corresponding to edu detection component
# (or when the case all the values)
# in parsing order for edu are the same
parsing_order_self_pointing_edu = []
stacks = ['__StackRoot__', rootsplit]
while stacks[-1] is not '__StackRoot__':
stack_head = stacks[-1]
assert (len(stack_head) == 4)
parsing_order_self_pointing_edu.append(stack_head)
if stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3] and stack_head[2] == stack_head[1]:
del stacks[-1]
elif stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[0] == stack_head[1]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
assert len(
stack_down) == 1, f"something wrong, \n{golden_metric_edu}, \n{edu_break}, \n{stack_down}"
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[2] == stack_head[3]:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
assert len(stack_top) == 1
stack_top = stack_top[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
else:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
assert len(stack_top) == 1 and len(stack_down) == 1
stack_top = stack_top[0]
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
# parsing_label_self_pointing = []
# for x in parsing_order_self_pointing_edu:
# if x in parsing_order_edu:
# parsing_label_self_pointing.append(parsing_label[parsing_order_edu.index(x)])
# else:
# parsing_label_self_pointing.append('None')
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
parsing_order_self_pointing_token = []
for x in parsing_order_self_pointing_edu:
if x[0] == x[1] == x[2] == x[3]:
start_point = edu_span[x[0]][0]
end_point = edu_span[x[0]][1] + 1
parsing_order_self_pointing_token.append((start_point, end_point, end_point))
else:
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_order_self_pointing_token.append((start_point, split_point, end_point))
parsing_order_token = []
# print(len(parsing_order_edu))
# print(edu_span)
# print(parsing_order_edu)
for i, x in enumerate(parsing_order_edu):
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_order_token.append((start_point, split_point, end_point, parsing_label[i]))
# parsing_order_token = []
# for x in parsing_order_edu:
# start_leftspan = edu_span[x[0]][0]
# end_leftspan = edu_span[x[1]][1]
# start_rightspan = edu_span[x[2]][0]
# end_rightspan = edu_span[x[3]][1]
# parsing_order_token.append((start_leftspan, end_leftspan, start_rightspan, end_rightspan))
else:
# parsing_order_self_pointing_edu = [(0, 0, 0, 0)]
# edu_span = [(0, edu_break[0])]
# parsing_order_edu = []
parsing_order_self_pointing_token = [(0, edu_break[0] + 1, edu_break[0] + 1)]
parsing_order_token = []
# parsing_label_self_pointing = ['None']
# parsing_label = ['None']
return parsing_order_token, parsing_order_self_pointing_token
@classmethod
def build(cls, sequence):
"""
Build a token-based discourse tree from the sequence.
The sequence is generated in depth first search.
Args:
sequence (list[tuple]):
A list of tuples used for generating a tree.
Each tuple consits of the indices of left/right/split span boundaries,
discourse label of the span.
Returns:
A result discourse tree.
Examples:
>>> sequence = [(0, 24, 30, 'Attribution_NS'), (0, 12, 24,'Joint_NN'), (0, 12, 12,'None'),
(12, 16, 24,'Attribution_SN'), (12, 16, 16,'None'),
(16, 24, 24,'None'), (24, 30, 30,'None')]
>>> print(Tree.build(sequence))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if len(sequence) == 0:
return 'NONE'
else:
result = []
for (i, k, j, label) in sequence:
if k < j:
Nuclearity_left, Nuclearity_right, Relation_left, Relation_right \
= Label2RelationAndNucleus(label)
node = f'({i}:{Nuclearity_left}={Relation_left}:{k - 1},{k}:{Nuclearity_right}={Relation_right}:{j - 1})'
result.append(node)
return ' '.join(result)
@classmethod
def build_gold(cls, edu_break, gold_metric_edu):
"""
Build a token-based discourse tree from gold edu_break and gold_metric_edu.
Args:
edu_break (list(int)):
A list of edu breaking points
gold_metric_edu (string)
edu-based discourse treel
Returns:
A result discourse tree.
Examples:
>>> edu_break =[11, 15, 23, 29, 32, 40]
>>> gold_metric_edu='(1:Nucleus=span:3,4:Satellite=Attribution:4)
(1:Nucleus=Joint:1,2:Nucleus=Joint:3)
(2:Satellite=Attribution:2,3:Nucleus=span:3)'
>>> print(Tree.build_gold(edu_break, gold_metric_edu))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if gold_metric_edu == 'NONE':
return 'NONE'
else:
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
result = []
golden_metric_edu_split = re.split(' ', gold_metric_edu)
for each_split in golden_metric_edu_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split(':|=|,', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
node = f'({edu_span[left_start][0]}:{Nuclearity_left}={Relation_left}:{edu_span[left_end][1]},{edu_span[right_start][0]}:{Nuclearity_right}={Relation_right}:{edu_span[right_end][1]})'
result.append(node)
return ' '.join(result)
def load(self, data, max_len=None, **kwargs):
"""
Args:
data (dict):
A dictionary of 'sentence', 'gold_metric', 'edu_break'
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of TreeSentence instances.
"""
# if isinstance(data, str):
# with open(data, 'r') as f:
# trees = [nltk.Tree.fromstring(string) for string in f]
# self.root = trees[0].label()
# else:
# data = [data] if isinstance(data[0], str) else data
# trees = [self.totree(i, self.root) for i in data]
assert isinstance(data, str)
import pickle
data_dict = pickle.load(open(data, "rb"))
sents = data_dict['InputDocs']
edu_break = data_dict['EduBreak_TokenLevel']
golden_metric = data_dict['Docs_structure']
i, sentences = 0, []
for sent in progress_bar(sents, leave=False):
# if len(tree) == 1 and not isinstance(tree[0][0], nltk.Tree):
# continue
sentences.append(DiscourseTreeDocToken(self, sent, edu_break[i], ' '.join(golden_metric[i])))
i += 1
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class DiscourseTreeDocToken(Sentence):
"""
Args:
transform (Tree):
A Tree object.
tree (nltk.tree.Tree):
A nltk.Tree object.
"""
def __init__(self, transform, sent, edu_break, golden_metric):
super().__init__(transform)
# the values contain words, pos tags, raw trees, and spans
# the tree is first left-binarized before factorized
# spans are the factorization of tree traversed in pre-order
self.values = [sent,
edu_break,
golden_metric,
*DiscourseTreeDoc.edu2token(golden_metric_edu=golden_metric, edu_break=edu_break)]
def __repr__(self):
return self.values[-2].pformat(1000000)
class DiscourseTreeDocSentinfo(Transform):
"""
The Tree object factorize a constituency tree into four fields, each associated with one or more Field objects.
Attributes:
WORD:
Words in the sentence.
POS:
Part-of-speech tags, or underscores if not available.
TREE:
The raw constituency tree in :class:`nltk.tree.Tree` format.
CHART:
The factorized sequence of binarized tree traversed in pre-order.
"""
root = ''
fields = ['WORD', 'ORIGINAL_EDU_BREAK', 'GOLD_METRIC', 'SENT_BREAK', 'EDU_BREAK', 'CHART', 'GOLDPARSINGORDER',
'PARSINGORDER']
def __init__(self, WORD=None, ORIGINAL_EDU_BREAK=None, GOLD_METRIC=None,
SENT_BREAK=None, EDU_BREAK=None, CHART=None, GOLDPARSINGORDER=None, PARSINGORDER=None):
super().__init__()
self.WORD = WORD
self.SENT_BREAK = SENT_BREAK
self.EDU_BREAK = EDU_BREAK
self.ORIGINAL_EDU_BREAK = ORIGINAL_EDU_BREAK
self.GOLD_METRIC = GOLD_METRIC
self.CHART = CHART
self.GOLDPARSINGORDER = GOLDPARSINGORDER
self.PARSINGORDER = PARSINGORDER
@property
def src(self):
return self.WORD, self.GOLD_METRIC, self.SENT_BREAK, self.EDU_BREAK, self.ORIGINAL_EDU_BREAK
@property
def tgt(self):
return self.CHART, self.PARSINGORDER, self.GOLDPARSINGORDER
@classmethod
def edu2token(cls, golden_metric_edu, edu_break, sent_break):
# stack = [(0,len(parsing_order))]
# NOTE
# This part to generate parsing order and parsing label in term of edu
# if golden_metric_edu is not 'NONE':
# print(edu_break)
# print(len(edu_break))
# input()
if not (golden_metric_edu == 'NONE'):
parsing_order_edu = []
parsing_label = []
golden_metric_edu_split = re.split(' ', golden_metric_edu)
assert (len(golden_metric_edu_split) == len(
edu_break) - 1), f"something wrong {len(golden_metric_edu_split)}:{len(edu_break) - 1}"
rootsplit = None
for each_split in golden_metric_edu_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split(':|=|,', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
relation_label = RelationAndNucleus2Label(Nuclearity_left,
Nuclearity_right,
Relation_left,
Relation_right)
parsing_order_edu.append((left_start, left_end, right_start, right_end))
if left_start == 0 and right_end == len(edu_break) - 1:
rootsplit = deepcopy((left_start, left_end, right_start, right_end))
parsing_label.append(relation_label)
# Now we add to the parsing edu the part that corresponding to edu detection component
# (or when the case all the values)
# in parsing order for edu are the same
parsing_order_self_pointing_edu = []
stacks = ['__StackRoot__', rootsplit]
while stacks[-1] is not '__StackRoot__':
stack_head = stacks[-1]
assert (len(stack_head) == 4)
parsing_order_self_pointing_edu.append(stack_head)
if stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3] and stack_head[2] == stack_head[1]:
del stacks[-1]
elif stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[0] == stack_head[1]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
assert len(
stack_down) == 1, f"something wrong, \n{golden_metric_edu}, \n{edu_break}, \n{stack_down}"
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[2] == stack_head[3]:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
assert len(stack_top) == 1
stack_top = stack_top[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
else:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
assert len(stack_top) == 1 and len(stack_down) == 1
stack_top = stack_top[0]
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
# parsing_label_self_pointing = []
# for x in parsing_order_self_pointing_edu:
# if x in parsing_order_edu:
# parsing_label_self_pointing.append(parsing_label[parsing_order_edu.index(x)])
# else:
# parsing_label_self_pointing.append('None')
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
parsing_order_self_pointing_token = []
parsing_order_gold_pointing_token = []
for x in parsing_order_self_pointing_edu:
if x[0] == x[1] == x[2] == x[3]:
start_point = edu_span[x[0]][0]
end_point = edu_span[x[0]][1] + 1
parsing_order_self_pointing_token.append((start_point, end_point, end_point))
else:
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_order_self_pointing_token.append((start_point, split_point, end_point))
parsing_order_gold_pointing_token.append((start_point, split_point, end_point))
parsing_order_token = []
# print(len(parsing_order_edu))
# print(edu_span)
# print(parsing_order_edu)
for i, x in enumerate(parsing_order_edu):
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_order_token.append((start_point, split_point, end_point, parsing_label[i]))
boundary_edu_break = [x + 1 for x in edu_break]
boundary_sent_break = [x + 1 for x in sent_break]
# parsing_order_token = []
# for x in parsing_order_edu:
# start_leftspan = edu_span[x[0]][0]
# end_leftspan = edu_span[x[1]][1]
# start_rightspan = edu_span[x[2]][0]
# end_rightspan = edu_span[x[3]][1]
# parsing_order_token.append((start_leftspan, end_leftspan, start_rightspan, end_rightspan))
else:
# parsing_order_self_pointing_edu = [(0, 0, 0, 0)]
# edu_span = [(0, edu_break[0])]
# parsing_order_edu = []
parsing_order_gold_pointing_token = []
parsing_order_self_pointing_token = [(0, edu_break[0] + 1, edu_break[0] + 1)]
parsing_order_token = []
boundary_edu_break = [edu_break[0] + 1]
boundary_sent_break = [sent_break[0] + 1]
# parsing_label_self_pointing = ['None']
# parsing_label = ['None']
return boundary_sent_break, boundary_edu_break, parsing_order_token, parsing_order_gold_pointing_token, parsing_order_self_pointing_token
@classmethod
def build(cls, sequence):
"""
Build a token-based discourse tree from the sequence.
The sequence is generated in depth first search.
Args:
sequence (list[tuple]):
A list of tuples used for generating a tree.
Each tuple consits of the indices of left/right/split span boundaries,
discourse label of the span.
Returns:
A result discourse tree.
Examples:
>>> sequence = [(0, 24, 30, 'Attribution_NS'), (0, 12, 24,'Joint_NN'), (0, 12, 12,'None'),
(12, 16, 24,'Attribution_SN'), (12, 16, 16,'None'),
(16, 24, 24,'None'), (24, 30, 30,'None')]
>>> print(Tree.build(sequence))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if len(sequence) == 0:
return 'NONE'
else:
result = []
for (i, k, j, label) in sequence:
if k < j:
Nuclearity_left, Nuclearity_right, Relation_left, Relation_right \
= Label2RelationAndNucleus(label)
node = f'({i}:{Nuclearity_left}={Relation_left}:{k - 1},{k}:{Nuclearity_right}={Relation_right}:{j - 1})'
result.append(node)
return ' '.join(result)
@classmethod
def build_gold(cls, edu_break, gold_metric_edu):
"""
Build a token-based discourse tree from gold edu_break and gold_metric_edu.
Args:
edu_break (list(int)):
A list of edu breaking points
gold_metric_edu (string)
edu-based discourse treel
Returns:
A result discourse tree.
Examples:
>>> edu_break =[11, 15, 23, 29, 32, 40]
>>> gold_metric_edu='(1:Nucleus=span:3,4:Satellite=Attribution:4)
(1:Nucleus=Joint:1,2:Nucleus=Joint:3)
(2:Satellite=Attribution:2,3:Nucleus=span:3)'
>>> print(Tree.build_gold(edu_break, gold_metric_edu))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if gold_metric_edu == 'NONE':
return 'NONE'
else:
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
result = []
golden_metric_edu_split = re.split(' ', gold_metric_edu)
for each_split in golden_metric_edu_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split(':|=|,', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
node = f'({edu_span[left_start][0]}:{Nuclearity_left}={Relation_left}:{edu_span[left_end][1]},{edu_span[right_start][0]}:{Nuclearity_right}={Relation_right}:{edu_span[right_end][1]})'
result.append(node)
return ' '.join(result)
def load(self, data, max_len=None, **kwargs):
"""
Args:
data (dict):
A dictionary of 'sentence', 'gold_metric', 'edu_break'
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of TreeSentence instances.
"""
# if isinstance(data, str):
# with open(data, 'r') as f:
# trees = [nltk.Tree.fromstring(string) for string in f]
# self.root = trees[0].label()
# else:
# data = [data] if isinstance(data[0], str) else data
# trees = [self.totree(i, self.root) for i in data]
assert isinstance(data, str)
import pickle
data_dict = pickle.load(open(data, "rb"))
sents = data_dict['InputDocs']
edu_break = data_dict['EduBreak_TokenLevel']
sent_break = data_dict['SentBreak']
golden_metric = data_dict['Docs_structure']
i, sentences = 0, []
for sent in progress_bar(sents, leave=False):
# if len(tree) == 1 and not isinstance(tree[0][0], nltk.Tree):
# continue
sentences.append(
DiscourseTreeDocSentInfoToken(self, sent, sent_break[i], edu_break[i], ' '.join(golden_metric[i])))
i += 1
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class DiscourseTreeDocSentInfoToken(Sentence):
"""
Args:
transform (Tree):
A Tree object.
tree (nltk.tree.Tree):
A nltk.Tree object.
"""
def __init__(self, transform, sent, sent_break, edu_break, golden_metric):
super().__init__(transform)
# the values contain words, pos tags, raw trees, and spans
# the tree is first left-binarized before factorized
# spans are the factorization of tree traversed in pre-order
self.values = [sent,
edu_break,
golden_metric,
*DiscourseTreeDocSentinfo.edu2token(golden_metric_edu=golden_metric, edu_break=edu_break,
sent_break=sent_break)]
def __repr__(self):
return self.values[-3].pformat(1000000)
class DiscourseTreeDocEduGold(Transform):
"""
The Tree object factorize a constituency tree into four fields, each associated with one or more Field objects.
Attributes:
WORD:
Words in the sentence.
ORIGINAL_EDU_BREAK:
EDU break in format of last indices of EDU segments (at token level)
GOLD_METRIC:
The raw discourse tree in string format (the constituents are at edu level).
SENT_BREAK:
Sentence break in format of last indices of EDU segments (at boundary level)
EDU_BREAK:
EDU break in format of last indices of EDU segments (at boundary level)
PARSING_LABEL_TOKEN:
The sequence of parsing label (start_index, split_index, end_index, discourse label)
(at boundary token level)
PARSING_LABEL_EDU:
The sequence of parsing label (start_index, split_index, end_index, discourse label)
(at boundary edu level)
PARSING_ORDER_TOKEN:
The sequence of parsing label (start_index, split_index, end_index)
(at boundary token level)
PARSING_ORDER_SELF_POINTING_TOKEN:
The sequence of parsing label (start_index, split_index, end_index)
at which we allow self pointing (in order to detect the edu)
(at boundary token level)
PARSING_ORDER_EDU:
The sequence of parsing label (start_index, split_index, end_index)
(at boundary edu level)
"""
root = ''
fields = ['WORD', 'ORIGINAL_EDU_BREAK', 'GOLD_METRIC',
'SENT_BREAK', 'EDU_BREAK',
'PARSING_LABEL_TOKEN', 'PARSING_LABEL_EDU',
'PARSING_ORDER_EDU', 'PARSING_ORDER_TOKEN', 'PARSING_ORDER_SELF_POINTING_TOKEN'
]
def __init__(self, WORD=None, ORIGINAL_EDU_BREAK=None, GOLD_METRIC=None,
SENT_BREAK=None, EDU_BREAK=None,
PARSING_LABEL_TOKEN=None, PARSING_LABEL_EDU=None,
PARSING_ORDER_EDU=None, PARSING_ORDER_TOKEN=None,
PARSING_ORDER_SELF_POINTING_TOKEN=None
):
super().__init__()
self.WORD = WORD
self.ORIGINAL_EDU_BREAK = ORIGINAL_EDU_BREAK
self.GOLD_METRIC = GOLD_METRIC
self.SENT_BREAK = SENT_BREAK
self.EDU_BREAK = EDU_BREAK
self.PARSING_LABEL_TOKEN = PARSING_LABEL_TOKEN
self.PARSING_LABEL_EDU = PARSING_LABEL_EDU
self.PARSING_ORDER_EDU = PARSING_ORDER_EDU
self.PARSING_ORDER_TOKEN = PARSING_ORDER_TOKEN
self.PARSING_ORDER_SELF_POINTING_TOKEN = PARSING_ORDER_SELF_POINTING_TOKEN
@property
def src(self):
return self.WORD, self.GOLD_METRIC, self.ORIGINAL_EDU_BREAK, self.SENT_BREAK, self.EDU_BREAK
@property
def tgt(self):
return self.PARSING_ORDER_TOKEN, self.PARSING_ORDER_SELF_POINTING_TOKEN, self.PARSING_ORDER_EDU, self.PARSING_LABEL_TOKEN, self.PARSING_LABEL_EDU
@classmethod
def edu2token(cls, golden_metric_edu, edu_break, sent_break):
# This is to convert from raw data to computatonal data
if not (golden_metric_edu == 'NONE'):
parsing_order_edu = []
parsing_label = []
golden_metric_edu_split = re.split(' ', golden_metric_edu)
# assert (len(golden_metric_edu_split) == len(
# edu_break) - 1), f"something wrong {len(golden_metric_edu_split)}:{len(edu_break) - 1}"
rootsplit = None
for each_split in golden_metric_edu_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split(':|=|,', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
relation_label = RelationAndNucleus2Label(Nuclearity_left,
Nuclearity_right,
Relation_left,
Relation_right)
parsing_order_edu.append((left_start, left_end, right_start, right_end))
if left_start == 0 and right_end == len(edu_break) - 1:
rootsplit = deepcopy((left_start, left_end, right_start, right_end))
parsing_label.append(relation_label)
# Now we add to the parsing edu the part that corresponding to edu detection component
# (or when the case all the values)
# in parsing order for edu are the same
parsing_order_self_pointing_edu = []
stacks = ['__StackRoot__', rootsplit]
while stacks[-1] is not '__StackRoot__':
stack_head = stacks[-1]
assert (len(stack_head) == 4)
parsing_order_self_pointing_edu.append(stack_head)
if stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3] and stack_head[2] == stack_head[1]:
del stacks[-1]
elif stack_head[0] == stack_head[1] and stack_head[2] == stack_head[3]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[0] == stack_head[1]:
stack_top = (stack_head[0], stack_head[0], stack_head[0], stack_head[0])
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
# assert len(
# stack_down) == 1, f"something wrong, \n{golden_metric_edu}, \n{edu_break}, \n{stack_down}"
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
elif stack_head[2] == stack_head[3]:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = (stack_head[2], stack_head[2], stack_head[2], stack_head[2])
assert len(stack_top) == 1
stack_top = stack_top[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
else:
stack_top = [x for x in parsing_order_edu if x[0] == stack_head[0] and x[3] == stack_head[1]]
stack_down = [x for x in parsing_order_edu if x[0] == stack_head[2] and x[3] == stack_head[3]]
# assert len(stack_top) == 1 and len(stack_down) == 1
stack_top = stack_top[0]
stack_down = stack_down[0]
del stacks[-1]
stacks.append(stack_down)
stacks.append(stack_top)
# parsing_label_self_pointing = []
# for x in parsing_order_self_pointing_edu:
# if x in parsing_order_edu:
# parsing_label_self_pointing.append(parsing_label[parsing_order_edu.index(x)])
# else:
# parsing_label_self_pointing.append('None')
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
parsing_order_token = []
parsing_order_self_pointing_token = []
parsing_order_edu_boundary = []
for x in parsing_order_self_pointing_edu:
if x[0] == x[1] == x[2] == x[3]:
start_point = edu_span[x[0]][0]
end_point = edu_span[x[0]][1] + 1
parsing_order_self_pointing_token.append((start_point, end_point, end_point))
else:
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_order_self_pointing_token.append((start_point, split_point, end_point))
parsing_order_token.append((start_point, split_point, end_point))
parsing_order_edu_boundary.append((x[0], x[2], x[3] + 1))
parsing_label_token = []
parsing_label_edu = []
# print(len(parsing_order_edu))
# print(edu_span)
# print(parsing_order_edu)
for i, x in enumerate(parsing_order_edu):
start_point = edu_span[x[0]][0]
split_point = edu_span[x[2]][0]
end_point = edu_span[x[3]][1] + 1
parsing_label_token.append((start_point, split_point, end_point, parsing_label[i]))
parsing_label_edu.append((x[0], x[2], x[3] + 1, parsing_label[i]))
boundary_edu_break = [x + 1 for x in edu_break]
boundary_sent_break = [x + 1 for x in sent_break]
# parsing_order_token = []
# for x in parsing_order_edu:
# start_leftspan = edu_span[x[0]][0]
# end_leftspan = edu_span[x[1]][1]
# start_rightspan = edu_span[x[2]][0]
# end_rightspan = edu_span[x[3]][1]
# parsing_order_token.append((start_leftspan, end_leftspan, start_rightspan, end_rightspan))
else:
# parsing_order_self_pointing_edu = [(0, 0, 0, 0)]
# edu_span = [(0, edu_break[0])]
# parsing_order_edu = []
parsing_order_token = []
parsing_order_edu_boundary = []
parsing_order_self_pointing_token = [(0, edu_break[0] + 1, edu_break[0] + 1)]
parsing_label_token = []
parsing_label_edu = []
boundary_edu_break = [edu_break[0] + 1]
boundary_sent_break = [sent_break[0] + 1]
# parsing_label_self_pointing = ['None']
# parsing_label = ['None']
return boundary_sent_break, boundary_edu_break, parsing_label_token, parsing_label_edu, \
parsing_order_edu_boundary, parsing_order_token, parsing_order_self_pointing_token
@classmethod
def build(cls, sequence):
"""
Build a token-based discourse tree from the sequence.
The sequence is generated in depth first search.
Args:
sequence (list[tuple]):
A list of tuples used for generating a tree.
Each tuple consits of the indices of left/right/split span boundaries,
discourse label of the span.
Returns:
A result discourse tree.
Examples:
>>> sequence = [(0, 24, 30, 'Attribution_NS'), (0, 12, 24,'Joint_NN'), (0, 12, 12,'None'),
(12, 16, 24,'Attribution_SN'), (12, 16, 16,'None'),
(16, 24, 24,'None'), (24, 30, 30,'None')]
>>> print(Tree.build(sequence))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if len(sequence) == 0:
return 'NONE'
else:
result = []
for (i, k, j, label) in sequence:
if k < j:
Nuclearity_left, Nuclearity_right, Relation_left, Relation_right \
= Label2RelationAndNucleus(label)
node = f'({i}:{Nuclearity_left}={Relation_left}:{k - 1},{k}:{Nuclearity_right}={Relation_right}:{j - 1})'
result.append(node)
return ' '.join(result)
@classmethod
def build_gold(cls, edu_break, gold_metric_edu):
"""
Build a token-based discourse tree from gold edu_break and gold_metric_edu.
Args:
edu_break (list(int)):
A list of edu breaking points
gold_metric_edu (string)
edu-based discourse treel
Returns:
A result discourse tree.
Examples:
>>> edu_break =[11, 15, 23, 29, 32, 40]
>>> gold_metric_edu='(1:Nucleus=span:3,4:Satellite=Attribution:4)
(1:Nucleus=Joint:1,2:Nucleus=Joint:3)
(2:Satellite=Attribution:2,3:Nucleus=span:3)'
>>> print(Tree.build_gold(edu_break, gold_metric_edu))
'(0:Nucleus=span:23,24:Satellite=Attribution:29)
(0:Nucleus=Joint:11,12:Nucleus=Joint:23)
(12:Satellite=Attribution:15,16:Nucleus=span:23)'
"""
if gold_metric_edu == 'NONE':
return 'NONE'
else:
edu_span = []
for i in range(len(edu_break)):
if i == 0:
edu_span.append((0, edu_break[0]))
elif i < len(edu_break):
edu_span.append((edu_break[i - 1] + 1, edu_break[i]))
result = []
golden_metric_edu_split = re.split(' ', gold_metric_edu)
for each_split in golden_metric_edu_split:
left_start, Nuclearity_left, Relation_left, left_end, \
right_start, Nuclearity_right, Relation_right, right_end = re.split(':|=|,', each_split[1:-1])
left_start = int(left_start) - 1
left_end = int(left_end) - 1
right_start = int(right_start) - 1
right_end = int(right_end) - 1
node = f'({edu_span[left_start][0]}:{Nuclearity_left}={Relation_left}:{edu_span[left_end][1]},{edu_span[right_start][0]}:{Nuclearity_right}={Relation_right}:{edu_span[right_end][1]})'
result.append(node)
return ' '.join(result)
def load(self, data, max_len=None, **kwargs):
"""
Args:
data (dict):
A dictionary of 'sentence', 'gold_metric', 'edu_break'
max_len (int):
Sentences exceeding the length will be discarded. Default: ``None``.
Returns:
A list of TreeSentence instances.
"""
# if isinstance(data, str):
# with open(data, 'r') as f:
# trees = [nltk.Tree.fromstring(string) for string in f]
# self.root = trees[0].label()
# else:
# data = [data] if isinstance(data[0], str) else data
# trees = [self.totree(i, self.root) for i in data]
assert isinstance(data, str)
import pickle
data_dict = pickle.load(open(data, "rb"))
sents = data_dict['InputDocs']
edu_break = data_dict['EduBreak_TokenLevel']
sent_break = data_dict['SentBreak']
golden_metric = data_dict['Docs_structure']
i, sentences = 0, []
for sent in progress_bar(sents, leave=False):
# if len(tree) == 1 and not isinstance(tree[0][0], nltk.Tree):
# continue
sentences.append(
DiscourseTreeDocEduGoldSentence(self, sent, sent_break[i], edu_break[i], ' '.join(golden_metric[i])))
i += 1
if max_len is not None:
sentences = [i for i in sentences if len(i) < max_len]
return sentences
class DiscourseTreeDocEduGoldSentence(Sentence):
"""
Args:
transform (Tree):
A Tree object.
tree (nltk.tree.Tree):
A nltk.Tree object.
"""
def __init__(self, transform, sent, sent_break, edu_break, golden_metric):
super().__init__(transform)
# the values contain words, pos tags, raw trees, and spans
# the tree is first left-binarized before factorized
# spans are the factorization of tree traversed in pre-order
self.values = [sent,
edu_break,
golden_metric,
*DiscourseTreeDocEduGold.edu2token(golden_metric_edu=golden_metric, edu_break=edu_break,
sent_break=sent_break)]
def __repr__(self):
return self.values[-5].pformat(1000000)
| 41.156915
| 199
| 0.521495
| 12,684
| 108,325
| 4.253784
| 0.045017
| 0.03692
| 0.004393
| 0.004893
| 0.870373
| 0.858994
| 0.85032
| 0.843129
| 0.836568
| 0.82667
| 0
| 0.021417
| 0.368105
| 108,325
| 2,632
| 200
| 41.156915
| 0.766823
| 0.364948
| 0
| 0.817826
| 0
| 0.006255
| 0.040626
| 0.018328
| 0.001564
| 0
| 0
| 0
| 0.013292
| 1
| 0.082877
| false
| 0
| 0.0086
| 0.021892
| 0.200156
| 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
|
aa52e66134ad40fc12bbe83f3a0ee5634c91050c
| 4,792
|
py
|
Python
|
app/tests/views/test_api.py
|
FundingCircle/DjanGoat
|
013c7367294682955daf9eba205270bd2f9725cd
|
[
"MIT"
] | 1
|
2019-05-07T09:49:25.000Z
|
2019-05-07T09:49:25.000Z
|
app/tests/views/test_api.py
|
FundingCircle/DjanGoat
|
013c7367294682955daf9eba205270bd2f9725cd
|
[
"MIT"
] | null | null | null |
app/tests/views/test_api.py
|
FundingCircle/DjanGoat
|
013c7367294682955daf9eba205270bd2f9725cd
|
[
"MIT"
] | null | null | null |
import datetime
import pytz
from django.test import TestCase, RequestFactory, Client
import app.views.api.users.views as api_users_views
from app.models import User
from app.tests.mixins import AuthRouteTestingWithKwargs
class TestApiMobileIndex(TestCase):
def setUp(self):
self.client = Client()
input_email = "cat.dog@contrastsecurity.com"
input_password = "12345"
input_admin = True
input_first_name = "Cat"
input_last_name = "Dog"
u_input_create_date = pytz.utc.localize(datetime.datetime(2017, 6, 1, 0, 0))
u_input_update_date = pytz.utc.localize(datetime.datetime(2017, 6, 3, 0, 0))
self.model = User.objects.create(
email=input_email, password=input_password,
is_admin=input_admin, first_name=input_first_name,
last_name=input_last_name, created_at=u_input_create_date,
updated_at=u_input_update_date
)
input_email = "bird.cow@contrastsecurity.com"
input_password = "54321"
input_admin = True
input_first_name = "Bird"
input_last_name = "Cow"
u_input_create_date = pytz.utc.localize(datetime.datetime(2017, 6, 1, 0, 0))
u_input_update_date = pytz.utc.localize(datetime.datetime(2017, 6, 3, 0, 0))
self.model = User.objects.create(
email=input_email, password=input_password,
is_admin=input_admin, first_name=input_first_name,
last_name=input_last_name, created_at=u_input_create_date,
updated_at=u_input_update_date
)
def test_response_content(self):
response = self.client.get('/api/v1/mobile/?class=User')
self.assertIn('827ccb0eea8a706c4c34a16891f84e7b', str(response.content))
self.assertIn('01cfcd4f6b8770febfb40cb906715822', str(response.content))
class TestApiMobileId(TestCase):
def setUp(self):
self.client = Client()
input_email = "cat.dog@contrastsecurity.com"
input_password = "12345"
input_admin = True
input_first_name = "Cat"
input_last_name = "Dog"
u_input_create_date = pytz.utc.localize(datetime.datetime(2017, 6, 1, 0, 0))
u_input_update_date = pytz.utc.localize(datetime.datetime(2017, 6, 3, 0, 0))
self.model = User.objects.create(
email=input_email, password=input_password,
is_admin=input_admin, first_name=input_first_name,
last_name=input_last_name, created_at=u_input_create_date,
updated_at=u_input_update_date
)
input_email = "bird.cow@contrastsecurity.com"
input_password = "54321"
input_admin = True
input_first_name = "Bird"
input_last_name = "Cow"
u_input_create_date = pytz.utc.localize(datetime.datetime(2017, 6, 1, 0, 0))
u_input_update_date = pytz.utc.localize(datetime.datetime(2017, 6, 3, 0, 0))
self.model = User.objects.create(
email=input_email, password=input_password,
is_admin=input_admin, first_name=input_first_name,
last_name=input_last_name, created_at=u_input_create_date,
updated_at=u_input_update_date
)
def test_response_content(self):
response = self.client.get('/api/v1/mobile/' + str(self.model.id) + '?class=User')
self.assertNotIn('827ccb0eea8a706c4c34a16891f84e7b', str(response.content))
self.assertIn('01cfcd4f6b8770febfb40cb906715822', str(response.content))
class ApiUsersIndexTest(TestCase, AuthRouteTestingWithKwargs):
def setUp(self):
""" Class for testing api index view"""
self.factory = RequestFactory()
self.client = Client()
self.route_name = 'app:api_users_index'
self.route = '/api/v1/users'
self.view = api_users_views.api_index
self.responses = {
'exists': 401,
'GET': 401,
'POST': 405,
'PUT': 405,
'PATCH': 405,
'DELETE': 405,
'HEAD': 405,
'OPTIONS': 405,
'TRACE': 405
}
self.kwargs = {}
class ApiUsersByIDTest(TestCase, AuthRouteTestingWithKwargs):
# setup for all test cases
def setUp(self):
""" Class for testing api index view"""
self.factory = RequestFactory()
self.client = Client()
self.route_name = 'app:api_users_id'
self.route = '/api/v1/users/5'
self.view = api_users_views.api
self.responses = {
'exists': 401,
'GET': 401,
'POST': 405,
'PUT': 405,
'PATCH': 405,
'DELETE': 405,
'HEAD': 405,
'OPTIONS': 405,
'TRACE': 405
}
self.kwargs = {'id_number': 5}
| 37.4375
| 90
| 0.628548
| 574
| 4,792
| 5
| 0.162021
| 0.033449
| 0.039024
| 0.044599
| 0.849477
| 0.836237
| 0.819512
| 0.819512
| 0.819512
| 0.819512
| 0
| 0.062553
| 0.266068
| 4,792
| 127
| 91
| 37.732283
| 0.753483
| 0.01899
| 0
| 0.745455
| 0
| 0
| 0.106274
| 0.057192
| 0
| 0
| 0
| 0
| 0.036364
| 1
| 0.054545
| false
| 0.072727
| 0.054545
| 0
| 0.145455
| 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
|
aa5cf834deeaac7e8fa203b5a8802a14e8ebba02
| 1,319
|
py
|
Python
|
octicons16px/paintbrush.py
|
andrewp-as-is/octicons16px.py
|
1272dc9f290619d83bd881e87dbd723b0c48844c
|
[
"Unlicense"
] | 1
|
2021-01-28T06:47:39.000Z
|
2021-01-28T06:47:39.000Z
|
octicons16px/paintbrush.py
|
andrewp-as-is/octicons16px.py
|
1272dc9f290619d83bd881e87dbd723b0c48844c
|
[
"Unlicense"
] | null | null | null |
octicons16px/paintbrush.py
|
andrewp-as-is/octicons16px.py
|
1272dc9f290619d83bd881e87dbd723b0c48844c
|
[
"Unlicense"
] | null | null | null |
OCTICON_PAINTBRUSH = """
<svg class="octicon octicon-paintbrush" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M11.134 1.535C9.722 2.562 8.16 4.057 6.889 5.312 5.8 6.387 5.041 7.401 4.575 8.294a3.745 3.745 0 00-3.227 1.054c-.43.431-.69 1.066-.86 1.657a11.982 11.982 0 00-.358 1.914A21.263 21.263 0 000 15.203v.054l.75-.007-.007.75h.054a14.404 14.404 0 00.654-.012 21.243 21.243 0 001.63-.118c.62-.07 1.3-.18 1.914-.357.592-.17 1.226-.43 1.657-.861a3.745 3.745 0 001.055-3.217c.908-.461 1.942-1.216 3.04-2.3 1.279-1.262 2.764-2.825 3.775-4.249.501-.706.923-1.428 1.125-2.096.2-.659.235-1.469-.368-2.07-.606-.607-1.42-.55-2.069-.34-.66.213-1.376.646-2.076 1.155zm-3.95 8.48a3.76 3.76 0 00-1.19-1.192 9.758 9.758 0 011.161-1.607l1.658 1.658a9.853 9.853 0 01-1.63 1.142zM.742 16l.007-.75-.75.008A.75.75 0 00.743 16zM12.016 2.749c-1.224.89-2.605 2.189-3.822 3.384l1.718 1.718c1.21-1.205 2.51-2.597 3.387-3.833.47-.662.78-1.227.912-1.662.134-.444.032-.551.009-.575h-.001V1.78c-.014-.014-.112-.113-.548.027-.432.14-.995.462-1.655.942zM1.62 13.089a19.56 19.56 0 00-.104 1.395 19.55 19.55 0 001.396-.104 10.528 10.528 0 001.668-.309c.526-.151.856-.325 1.011-.48a2.25 2.25 0 00-3.182-3.182c-.155.155-.329.485-.48 1.01a10.515 10.515 0 00-.309 1.67z"></path></svg>
"""
| 263.8
| 1,288
| 0.673237
| 351
| 1,319
| 2.527066
| 0.566952
| 0.027058
| 0.015784
| 0.018038
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.608264
| 0.082638
| 1,319
| 4
| 1,289
| 329.75
| 0.124793
| 0
| 0
| 0
| 0
| 0.333333
| 0.978756
| 0.332322
| 0
| 0
| 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
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2d6aaf036c1e83dbe1702973e9c671ef1e4c4085
| 32,743
|
py
|
Python
|
v6.0.5/firewall/test_fortios_firewall_vip6.py
|
fortinet-solutions-cse/ansible_fgt_modules
|
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
|
[
"Apache-2.0"
] | 14
|
2018-09-25T20:35:25.000Z
|
2021-07-14T04:30:54.000Z
|
v6.0.6/firewall/test_fortios_firewall_vip6.py
|
fortinet-solutions-cse/ansible_fgt_modules
|
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
|
[
"Apache-2.0"
] | 32
|
2018-10-09T04:13:42.000Z
|
2020-05-11T07:20:28.000Z
|
v6.0.6/firewall/test_fortios_firewall_vip6.py
|
fortinet-solutions-cse/ansible_fgt_modules
|
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
|
[
"Apache-2.0"
] | 11
|
2018-10-09T00:14:53.000Z
|
2021-11-03T10:54:09.000Z
|
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <https://www.gnu.org/licenses/>.
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
from mock import ANY
from ansible.module_utils.network.fortios.fortios import FortiOSHandler
try:
from ansible.modules.network.fortios import fortios_firewall_vip6
except ImportError:
pytest.skip("Could not load required modules for testing", allow_module_level=True)
@pytest.fixture(autouse=True)
def connection_mock(mocker):
connection_class_mock = mocker.patch('ansible.modules.network.fortios.fortios_firewall_vip6.Connection')
return connection_class_mock
fos_instance = FortiOSHandler(connection_mock)
def test_firewall_vip6_creation(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_vip6': {
'arp_reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http_cookie_age': '8',
'http_cookie_domain': 'test_value_9',
'http_cookie_domain_from_host': 'disable',
'http_cookie_generation': '11',
'http_cookie_path': 'test_value_12',
'http_cookie_share': 'disable',
'http_ip_header': 'enable',
'http_ip_header_name': 'test_value_15',
'http_multiplex': 'enable',
'https_cookie_secure': 'disable',
'id': '18',
'ldb_method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max_embryonic_connections': '22',
'name': 'default_name_23',
'outlook_web_access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server_type': 'http',
'ssl_algorithm': 'high',
'ssl_certificate': 'test_value_30',
'ssl_client_fallback': 'disable',
'ssl_client_renegotiation': 'allow',
'ssl_client_session_state_max': '33',
'ssl_client_session_state_timeout': '34',
'ssl_client_session_state_type': 'disable',
'ssl_dh_bits': '768',
'ssl_hpkp': 'disable',
'ssl_hpkp_age': '38',
'ssl_hpkp_backup': 'test_value_39',
'ssl_hpkp_include_subdomains': 'disable',
'ssl_hpkp_primary': 'test_value_41',
'ssl_hpkp_report_uri': 'test_value_42',
'ssl_hsts': 'disable',
'ssl_hsts_age': '44',
'ssl_hsts_include_subdomains': 'disable',
'ssl_http_location_conversion': 'enable',
'ssl_http_match_host': 'enable',
'ssl_max_version': 'ssl-3.0',
'ssl_min_version': 'ssl-3.0',
'ssl_mode': 'half',
'ssl_pfs': 'require',
'ssl_send_empty_frags': 'enable',
'ssl_server_algorithm': 'high',
'ssl_server_max_version': 'ssl-3.0',
'ssl_server_min_version': 'ssl-3.0',
'ssl_server_session_state_max': '56',
'ssl_server_session_state_timeout': '57',
'ssl_server_session_state_type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic_server': 'disable',
'websphere_server': 'disable'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_vip6.fortios_firewall(input_data, fos_instance)
expected_data = {
'arp-reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http-cookie-age': '8',
'http-cookie-domain': 'test_value_9',
'http-cookie-domain-from-host': 'disable',
'http-cookie-generation': '11',
'http-cookie-path': 'test_value_12',
'http-cookie-share': 'disable',
'http-ip-header': 'enable',
'http-ip-header-name': 'test_value_15',
'http-multiplex': 'enable',
'https-cookie-secure': 'disable',
'id': '18',
'ldb-method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max-embryonic-connections': '22',
'name': 'default_name_23',
'outlook-web-access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server-type': 'http',
'ssl-algorithm': 'high',
'ssl-certificate': 'test_value_30',
'ssl-client-fallback': 'disable',
'ssl-client-renegotiation': 'allow',
'ssl-client-session-state-max': '33',
'ssl-client-session-state-timeout': '34',
'ssl-client-session-state-type': 'disable',
'ssl-dh-bits': '768',
'ssl-hpkp': 'disable',
'ssl-hpkp-age': '38',
'ssl-hpkp-backup': 'test_value_39',
'ssl-hpkp-include-subdomains': 'disable',
'ssl-hpkp-primary': 'test_value_41',
'ssl-hpkp-report-uri': 'test_value_42',
'ssl-hsts': 'disable',
'ssl-hsts-age': '44',
'ssl-hsts-include-subdomains': 'disable',
'ssl-http-location-conversion': 'enable',
'ssl-http-match-host': 'enable',
'ssl-max-version': 'ssl-3.0',
'ssl-min-version': 'ssl-3.0',
'ssl-mode': 'half',
'ssl-pfs': 'require',
'ssl-send-empty-frags': 'enable',
'ssl-server-algorithm': 'high',
'ssl-server-max-version': 'ssl-3.0',
'ssl-server-min-version': 'ssl-3.0',
'ssl-server-session-state-max': '56',
'ssl-server-session-state-timeout': '57',
'ssl-server-session-state-type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic-server': 'disable',
'websphere-server': 'disable'
}
set_method_mock.assert_called_with('firewall', 'vip6', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
def test_firewall_vip6_creation_fails(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'error', 'http_method': 'POST', 'http_status': 500}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_vip6': {
'arp_reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http_cookie_age': '8',
'http_cookie_domain': 'test_value_9',
'http_cookie_domain_from_host': 'disable',
'http_cookie_generation': '11',
'http_cookie_path': 'test_value_12',
'http_cookie_share': 'disable',
'http_ip_header': 'enable',
'http_ip_header_name': 'test_value_15',
'http_multiplex': 'enable',
'https_cookie_secure': 'disable',
'id': '18',
'ldb_method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max_embryonic_connections': '22',
'name': 'default_name_23',
'outlook_web_access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server_type': 'http',
'ssl_algorithm': 'high',
'ssl_certificate': 'test_value_30',
'ssl_client_fallback': 'disable',
'ssl_client_renegotiation': 'allow',
'ssl_client_session_state_max': '33',
'ssl_client_session_state_timeout': '34',
'ssl_client_session_state_type': 'disable',
'ssl_dh_bits': '768',
'ssl_hpkp': 'disable',
'ssl_hpkp_age': '38',
'ssl_hpkp_backup': 'test_value_39',
'ssl_hpkp_include_subdomains': 'disable',
'ssl_hpkp_primary': 'test_value_41',
'ssl_hpkp_report_uri': 'test_value_42',
'ssl_hsts': 'disable',
'ssl_hsts_age': '44',
'ssl_hsts_include_subdomains': 'disable',
'ssl_http_location_conversion': 'enable',
'ssl_http_match_host': 'enable',
'ssl_max_version': 'ssl-3.0',
'ssl_min_version': 'ssl-3.0',
'ssl_mode': 'half',
'ssl_pfs': 'require',
'ssl_send_empty_frags': 'enable',
'ssl_server_algorithm': 'high',
'ssl_server_max_version': 'ssl-3.0',
'ssl_server_min_version': 'ssl-3.0',
'ssl_server_session_state_max': '56',
'ssl_server_session_state_timeout': '57',
'ssl_server_session_state_type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic_server': 'disable',
'websphere_server': 'disable'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_vip6.fortios_firewall(input_data, fos_instance)
expected_data = {
'arp-reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http-cookie-age': '8',
'http-cookie-domain': 'test_value_9',
'http-cookie-domain-from-host': 'disable',
'http-cookie-generation': '11',
'http-cookie-path': 'test_value_12',
'http-cookie-share': 'disable',
'http-ip-header': 'enable',
'http-ip-header-name': 'test_value_15',
'http-multiplex': 'enable',
'https-cookie-secure': 'disable',
'id': '18',
'ldb-method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max-embryonic-connections': '22',
'name': 'default_name_23',
'outlook-web-access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server-type': 'http',
'ssl-algorithm': 'high',
'ssl-certificate': 'test_value_30',
'ssl-client-fallback': 'disable',
'ssl-client-renegotiation': 'allow',
'ssl-client-session-state-max': '33',
'ssl-client-session-state-timeout': '34',
'ssl-client-session-state-type': 'disable',
'ssl-dh-bits': '768',
'ssl-hpkp': 'disable',
'ssl-hpkp-age': '38',
'ssl-hpkp-backup': 'test_value_39',
'ssl-hpkp-include-subdomains': 'disable',
'ssl-hpkp-primary': 'test_value_41',
'ssl-hpkp-report-uri': 'test_value_42',
'ssl-hsts': 'disable',
'ssl-hsts-age': '44',
'ssl-hsts-include-subdomains': 'disable',
'ssl-http-location-conversion': 'enable',
'ssl-http-match-host': 'enable',
'ssl-max-version': 'ssl-3.0',
'ssl-min-version': 'ssl-3.0',
'ssl-mode': 'half',
'ssl-pfs': 'require',
'ssl-send-empty-frags': 'enable',
'ssl-server-algorithm': 'high',
'ssl-server-max-version': 'ssl-3.0',
'ssl-server-min-version': 'ssl-3.0',
'ssl-server-session-state-max': '56',
'ssl-server-session-state-timeout': '57',
'ssl-server-session-state-type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic-server': 'disable',
'websphere-server': 'disable'
}
set_method_mock.assert_called_with('firewall', 'vip6', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 500
def test_firewall_vip6_removal(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
delete_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
delete_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.delete', return_value=delete_method_result)
input_data = {
'username': 'admin',
'state': 'absent',
'firewall_vip6': {
'arp_reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http_cookie_age': '8',
'http_cookie_domain': 'test_value_9',
'http_cookie_domain_from_host': 'disable',
'http_cookie_generation': '11',
'http_cookie_path': 'test_value_12',
'http_cookie_share': 'disable',
'http_ip_header': 'enable',
'http_ip_header_name': 'test_value_15',
'http_multiplex': 'enable',
'https_cookie_secure': 'disable',
'id': '18',
'ldb_method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max_embryonic_connections': '22',
'name': 'default_name_23',
'outlook_web_access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server_type': 'http',
'ssl_algorithm': 'high',
'ssl_certificate': 'test_value_30',
'ssl_client_fallback': 'disable',
'ssl_client_renegotiation': 'allow',
'ssl_client_session_state_max': '33',
'ssl_client_session_state_timeout': '34',
'ssl_client_session_state_type': 'disable',
'ssl_dh_bits': '768',
'ssl_hpkp': 'disable',
'ssl_hpkp_age': '38',
'ssl_hpkp_backup': 'test_value_39',
'ssl_hpkp_include_subdomains': 'disable',
'ssl_hpkp_primary': 'test_value_41',
'ssl_hpkp_report_uri': 'test_value_42',
'ssl_hsts': 'disable',
'ssl_hsts_age': '44',
'ssl_hsts_include_subdomains': 'disable',
'ssl_http_location_conversion': 'enable',
'ssl_http_match_host': 'enable',
'ssl_max_version': 'ssl-3.0',
'ssl_min_version': 'ssl-3.0',
'ssl_mode': 'half',
'ssl_pfs': 'require',
'ssl_send_empty_frags': 'enable',
'ssl_server_algorithm': 'high',
'ssl_server_max_version': 'ssl-3.0',
'ssl_server_min_version': 'ssl-3.0',
'ssl_server_session_state_max': '56',
'ssl_server_session_state_timeout': '57',
'ssl_server_session_state_type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic_server': 'disable',
'websphere_server': 'disable'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_vip6.fortios_firewall(input_data, fos_instance)
delete_method_mock.assert_called_with('firewall', 'vip6', mkey=ANY, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
def test_firewall_vip6_deletion_fails(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
delete_method_result = {'status': 'error', 'http_method': 'POST', 'http_status': 500}
delete_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.delete', return_value=delete_method_result)
input_data = {
'username': 'admin',
'state': 'absent',
'firewall_vip6': {
'arp_reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http_cookie_age': '8',
'http_cookie_domain': 'test_value_9',
'http_cookie_domain_from_host': 'disable',
'http_cookie_generation': '11',
'http_cookie_path': 'test_value_12',
'http_cookie_share': 'disable',
'http_ip_header': 'enable',
'http_ip_header_name': 'test_value_15',
'http_multiplex': 'enable',
'https_cookie_secure': 'disable',
'id': '18',
'ldb_method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max_embryonic_connections': '22',
'name': 'default_name_23',
'outlook_web_access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server_type': 'http',
'ssl_algorithm': 'high',
'ssl_certificate': 'test_value_30',
'ssl_client_fallback': 'disable',
'ssl_client_renegotiation': 'allow',
'ssl_client_session_state_max': '33',
'ssl_client_session_state_timeout': '34',
'ssl_client_session_state_type': 'disable',
'ssl_dh_bits': '768',
'ssl_hpkp': 'disable',
'ssl_hpkp_age': '38',
'ssl_hpkp_backup': 'test_value_39',
'ssl_hpkp_include_subdomains': 'disable',
'ssl_hpkp_primary': 'test_value_41',
'ssl_hpkp_report_uri': 'test_value_42',
'ssl_hsts': 'disable',
'ssl_hsts_age': '44',
'ssl_hsts_include_subdomains': 'disable',
'ssl_http_location_conversion': 'enable',
'ssl_http_match_host': 'enable',
'ssl_max_version': 'ssl-3.0',
'ssl_min_version': 'ssl-3.0',
'ssl_mode': 'half',
'ssl_pfs': 'require',
'ssl_send_empty_frags': 'enable',
'ssl_server_algorithm': 'high',
'ssl_server_max_version': 'ssl-3.0',
'ssl_server_min_version': 'ssl-3.0',
'ssl_server_session_state_max': '56',
'ssl_server_session_state_timeout': '57',
'ssl_server_session_state_type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic_server': 'disable',
'websphere_server': 'disable'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_vip6.fortios_firewall(input_data, fos_instance)
delete_method_mock.assert_called_with('firewall', 'vip6', mkey=ANY, vdom='root')
schema_method_mock.assert_not_called()
assert is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 500
def test_firewall_vip6_idempotent(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'error', 'http_method': 'DELETE', 'http_status': 404}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_vip6': {
'arp_reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http_cookie_age': '8',
'http_cookie_domain': 'test_value_9',
'http_cookie_domain_from_host': 'disable',
'http_cookie_generation': '11',
'http_cookie_path': 'test_value_12',
'http_cookie_share': 'disable',
'http_ip_header': 'enable',
'http_ip_header_name': 'test_value_15',
'http_multiplex': 'enable',
'https_cookie_secure': 'disable',
'id': '18',
'ldb_method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max_embryonic_connections': '22',
'name': 'default_name_23',
'outlook_web_access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server_type': 'http',
'ssl_algorithm': 'high',
'ssl_certificate': 'test_value_30',
'ssl_client_fallback': 'disable',
'ssl_client_renegotiation': 'allow',
'ssl_client_session_state_max': '33',
'ssl_client_session_state_timeout': '34',
'ssl_client_session_state_type': 'disable',
'ssl_dh_bits': '768',
'ssl_hpkp': 'disable',
'ssl_hpkp_age': '38',
'ssl_hpkp_backup': 'test_value_39',
'ssl_hpkp_include_subdomains': 'disable',
'ssl_hpkp_primary': 'test_value_41',
'ssl_hpkp_report_uri': 'test_value_42',
'ssl_hsts': 'disable',
'ssl_hsts_age': '44',
'ssl_hsts_include_subdomains': 'disable',
'ssl_http_location_conversion': 'enable',
'ssl_http_match_host': 'enable',
'ssl_max_version': 'ssl-3.0',
'ssl_min_version': 'ssl-3.0',
'ssl_mode': 'half',
'ssl_pfs': 'require',
'ssl_send_empty_frags': 'enable',
'ssl_server_algorithm': 'high',
'ssl_server_max_version': 'ssl-3.0',
'ssl_server_min_version': 'ssl-3.0',
'ssl_server_session_state_max': '56',
'ssl_server_session_state_timeout': '57',
'ssl_server_session_state_type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic_server': 'disable',
'websphere_server': 'disable'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_vip6.fortios_firewall(input_data, fos_instance)
expected_data = {
'arp-reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http-cookie-age': '8',
'http-cookie-domain': 'test_value_9',
'http-cookie-domain-from-host': 'disable',
'http-cookie-generation': '11',
'http-cookie-path': 'test_value_12',
'http-cookie-share': 'disable',
'http-ip-header': 'enable',
'http-ip-header-name': 'test_value_15',
'http-multiplex': 'enable',
'https-cookie-secure': 'disable',
'id': '18',
'ldb-method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max-embryonic-connections': '22',
'name': 'default_name_23',
'outlook-web-access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server-type': 'http',
'ssl-algorithm': 'high',
'ssl-certificate': 'test_value_30',
'ssl-client-fallback': 'disable',
'ssl-client-renegotiation': 'allow',
'ssl-client-session-state-max': '33',
'ssl-client-session-state-timeout': '34',
'ssl-client-session-state-type': 'disable',
'ssl-dh-bits': '768',
'ssl-hpkp': 'disable',
'ssl-hpkp-age': '38',
'ssl-hpkp-backup': 'test_value_39',
'ssl-hpkp-include-subdomains': 'disable',
'ssl-hpkp-primary': 'test_value_41',
'ssl-hpkp-report-uri': 'test_value_42',
'ssl-hsts': 'disable',
'ssl-hsts-age': '44',
'ssl-hsts-include-subdomains': 'disable',
'ssl-http-location-conversion': 'enable',
'ssl-http-match-host': 'enable',
'ssl-max-version': 'ssl-3.0',
'ssl-min-version': 'ssl-3.0',
'ssl-mode': 'half',
'ssl-pfs': 'require',
'ssl-send-empty-frags': 'enable',
'ssl-server-algorithm': 'high',
'ssl-server-max-version': 'ssl-3.0',
'ssl-server-min-version': 'ssl-3.0',
'ssl-server-session-state-max': '56',
'ssl-server-session-state-timeout': '57',
'ssl-server-session-state-type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic-server': 'disable',
'websphere-server': 'disable'
}
set_method_mock.assert_called_with('firewall', 'vip6', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 404
def test_firewall_vip6_filter_foreign_attributes(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_vip6': {
'random_attribute_not_valid': 'tag',
'arp_reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http_cookie_age': '8',
'http_cookie_domain': 'test_value_9',
'http_cookie_domain_from_host': 'disable',
'http_cookie_generation': '11',
'http_cookie_path': 'test_value_12',
'http_cookie_share': 'disable',
'http_ip_header': 'enable',
'http_ip_header_name': 'test_value_15',
'http_multiplex': 'enable',
'https_cookie_secure': 'disable',
'id': '18',
'ldb_method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max_embryonic_connections': '22',
'name': 'default_name_23',
'outlook_web_access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server_type': 'http',
'ssl_algorithm': 'high',
'ssl_certificate': 'test_value_30',
'ssl_client_fallback': 'disable',
'ssl_client_renegotiation': 'allow',
'ssl_client_session_state_max': '33',
'ssl_client_session_state_timeout': '34',
'ssl_client_session_state_type': 'disable',
'ssl_dh_bits': '768',
'ssl_hpkp': 'disable',
'ssl_hpkp_age': '38',
'ssl_hpkp_backup': 'test_value_39',
'ssl_hpkp_include_subdomains': 'disable',
'ssl_hpkp_primary': 'test_value_41',
'ssl_hpkp_report_uri': 'test_value_42',
'ssl_hsts': 'disable',
'ssl_hsts_age': '44',
'ssl_hsts_include_subdomains': 'disable',
'ssl_http_location_conversion': 'enable',
'ssl_http_match_host': 'enable',
'ssl_max_version': 'ssl-3.0',
'ssl_min_version': 'ssl-3.0',
'ssl_mode': 'half',
'ssl_pfs': 'require',
'ssl_send_empty_frags': 'enable',
'ssl_server_algorithm': 'high',
'ssl_server_max_version': 'ssl-3.0',
'ssl_server_min_version': 'ssl-3.0',
'ssl_server_session_state_max': '56',
'ssl_server_session_state_timeout': '57',
'ssl_server_session_state_type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic_server': 'disable',
'websphere_server': 'disable'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_vip6.fortios_firewall(input_data, fos_instance)
expected_data = {
'arp-reply': 'disable',
'color': '4',
'comment': 'Comment.',
'extip': 'test_value_6',
'extport': 'test_value_7',
'http-cookie-age': '8',
'http-cookie-domain': 'test_value_9',
'http-cookie-domain-from-host': 'disable',
'http-cookie-generation': '11',
'http-cookie-path': 'test_value_12',
'http-cookie-share': 'disable',
'http-ip-header': 'enable',
'http-ip-header-name': 'test_value_15',
'http-multiplex': 'enable',
'https-cookie-secure': 'disable',
'id': '18',
'ldb-method': 'static',
'mappedip': 'test_value_20',
'mappedport': 'test_value_21',
'max-embryonic-connections': '22',
'name': 'default_name_23',
'outlook-web-access': 'disable',
'persistence': 'none',
'portforward': 'disable',
'protocol': 'tcp',
'server-type': 'http',
'ssl-algorithm': 'high',
'ssl-certificate': 'test_value_30',
'ssl-client-fallback': 'disable',
'ssl-client-renegotiation': 'allow',
'ssl-client-session-state-max': '33',
'ssl-client-session-state-timeout': '34',
'ssl-client-session-state-type': 'disable',
'ssl-dh-bits': '768',
'ssl-hpkp': 'disable',
'ssl-hpkp-age': '38',
'ssl-hpkp-backup': 'test_value_39',
'ssl-hpkp-include-subdomains': 'disable',
'ssl-hpkp-primary': 'test_value_41',
'ssl-hpkp-report-uri': 'test_value_42',
'ssl-hsts': 'disable',
'ssl-hsts-age': '44',
'ssl-hsts-include-subdomains': 'disable',
'ssl-http-location-conversion': 'enable',
'ssl-http-match-host': 'enable',
'ssl-max-version': 'ssl-3.0',
'ssl-min-version': 'ssl-3.0',
'ssl-mode': 'half',
'ssl-pfs': 'require',
'ssl-send-empty-frags': 'enable',
'ssl-server-algorithm': 'high',
'ssl-server-max-version': 'ssl-3.0',
'ssl-server-min-version': 'ssl-3.0',
'ssl-server-session-state-max': '56',
'ssl-server-session-state-timeout': '57',
'ssl-server-session-state-type': 'disable',
'type': 'static-nat',
'uuid': 'test_value_60',
'weblogic-server': 'disable',
'websphere-server': 'disable'
}
set_method_mock.assert_called_with('firewall', 'vip6', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
| 41.446835
| 142
| 0.551477
| 3,442
| 32,743
| 4.916909
| 0.074375
| 0.063815
| 0.025999
| 0.028362
| 0.93849
| 0.934885
| 0.929272
| 0.929272
| 0.929272
| 0.929272
| 0
| 0.02651
| 0.299545
| 32,743
| 789
| 143
| 41.499366
| 0.711402
| 0.020279
| 0
| 0.94773
| 0
| 0
| 0.47731
| 0.152824
| 0
| 0
| 0
| 0
| 0.049519
| 1
| 0.009629
| false
| 0
| 0.011004
| 0
| 0.022008
| 0.001376
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2dede3b8299b2c83367e78304017ee70a3105db8
| 508
|
py
|
Python
|
venv/ex109/moeda.py
|
carlosdaniel-cyber/my-python-exercises
|
0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b
|
[
"MIT"
] | null | null | null |
venv/ex109/moeda.py
|
carlosdaniel-cyber/my-python-exercises
|
0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b
|
[
"MIT"
] | null | null | null |
venv/ex109/moeda.py
|
carlosdaniel-cyber/my-python-exercises
|
0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b
|
[
"MIT"
] | null | null | null |
def aumentar(valor=0, taxa=0, fmt=False):
res = valor + (valor * taxa/100)
return moeda(res) if fmt else res
def diminuir(valor=0, taxa=0, fmt=False):
res = valor - (valor * taxa / 100)
return moeda(res) if fmt else res
def dobro(valor=0, fmt=False):
res = valor * 2
return moeda(res) if fmt else res
def metade(valor=0, fmt=False):
res = valor / 2
return moeda(res) if fmt else res
def moeda(valor=0.0, moeda='R$'):
return f'{moeda}{valor:.2f}'.replace('.', ',')
| 22.086957
| 50
| 0.61811
| 85
| 508
| 3.694118
| 0.247059
| 0.095541
| 0.11465
| 0.152866
| 0.764331
| 0.764331
| 0.764331
| 0.764331
| 0.764331
| 0.764331
| 0
| 0.043147
| 0.224409
| 508
| 22
| 51
| 23.090909
| 0.753807
| 0
| 0
| 0.285714
| 0
| 0
| 0.043307
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.357143
| false
| 0
| 0
| 0.071429
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
93393007cad5d10a9d44e687658d4289aa8454d4
| 15,074
|
py
|
Python
|
test/deprecated/test_parse_project_page.py
|
jwodder/pypi-simple
|
5a33e2c31a6896bc0f019ae7e72135b4af7b5a8d
|
[
"MIT"
] | 18
|
2018-08-31T19:29:43.000Z
|
2022-02-25T20:43:33.000Z
|
test/deprecated/test_parse_project_page.py
|
jwodder/pypi-simple
|
5a33e2c31a6896bc0f019ae7e72135b4af7b5a8d
|
[
"MIT"
] | 4
|
2018-09-04T08:46:46.000Z
|
2020-11-24T08:16:55.000Z
|
test/deprecated/test_parse_project_page.py
|
jwodder/pypi-simple
|
5a33e2c31a6896bc0f019ae7e72135b4af7b5a8d
|
[
"MIT"
] | 5
|
2019-06-26T17:41:36.000Z
|
2021-08-06T04:16:55.000Z
|
import os
from os.path import dirname, join
import pytest
from pypi_simple import PYPI_SIMPLE_ENDPOINT, DistributionPackage, parse_project_page
DATA_DIR = join(dirname(__file__), os.pardir, "data")
def test_empty():
with pytest.warns(DeprecationWarning):
files = parse_project_page("", PYPI_SIMPLE_ENDPOINT + "qypi/")
assert files == []
def test_parse_qypi():
with open(join(DATA_DIR, "qypi.html"), "rb") as fp:
with pytest.warns(DeprecationWarning):
files = parse_project_page(
fp.read(),
PYPI_SIMPLE_ENDPOINT + "qypi/",
from_encoding="utf-8",
)
assert files == [
DistributionPackage(
filename="qypi-0.1.0-py3-none-any.whl",
project="qypi",
version="0.1.0",
package_type="wheel",
url="https://files.pythonhosted.org/packages/82/fc/9e25534641d7f63be93079bc07fa92bab136ddf5d4181059a1308a346f96/qypi-0.1.0-py3-none-any.whl#sha256=da69d28dcd527c0e372b3fa7b92fc333b327f8470175f035abc4e351b539189f",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.tar.gz",
project="qypi",
version="0.1.0",
package_type="sdist",
url="https://files.pythonhosted.org/packages/e4/fe/3fdb222a2916b94e9ca12d80c92dbbad1f7068c82fca42872d6c1739fead/qypi-0.1.0.tar.gz#sha256=212093de95b4f5f22e19fa18fe57fa33eccd63adb9b325fe1b673bf71912c551",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.post1-py3-none-any.whl",
project="qypi",
version="0.1.0.post1",
package_type="wheel",
url="https://files.pythonhosted.org/packages/f9/3f/6b184713e79da15cd451f0dab91864633175242f4d321df0cacdd2dc8300/qypi-0.1.0.post1-py3-none-any.whl#sha256=5946a4557550479af90278e5418cd2c32a2626936075078a4c7096be52d43078",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.post1.tar.gz",
project="qypi",
version="0.1.0.post1",
package_type="sdist",
url="https://files.pythonhosted.org/packages/0e/49/3056ee68b44c8eab4d4698b52ae4d18c0db92c80abc312894c02c4722621/qypi-0.1.0.post1.tar.gz#sha256=c99eea315455cf9fde722599ab67eeefdff5c184bb3861a7fd82f8a9387c252d",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.2.0-py3-none-any.whl",
project="qypi",
version="0.2.0",
package_type="wheel",
url="https://files.pythonhosted.org/packages/96/b8/9c2d0c3d0d95ccdaa04ebff77f8e85e9ca0888f2844b102d32a81ca3c92e/qypi-0.2.0-py3-none-any.whl#sha256=0923d60c5ff6aaf73c4805b5381868ccdf44d1cfe1d1a659d679be821fe38d53",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.2.0.tar.gz",
project="qypi",
version="0.2.0",
package_type="sdist",
url="https://files.pythonhosted.org/packages/f6/6a/1d37c72684c19f28060bd7ed1bfe3bfb8c6b9b1132b0ea67f98c036930da/qypi-0.2.0.tar.gz#sha256=cf24ea8841d0f10a822fd5cf3809c1324e5b1eab34e148b841dae6ad54919c85",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.3.0-py3-none-any.whl",
project="qypi",
version="0.3.0",
package_type="wheel",
url="https://files.pythonhosted.org/packages/79/b4/dbdcc76c55d1714f2d51f1da25c2a8a59cd1e35357bcafefb7ef6efd8c78/qypi-0.3.0-py3-none-any.whl#sha256=4dddbfa57d6b0c23a0cc20aa17aa8b17c4b41bcbd57c8d273dad84601e85e2dd",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.3.0.tar.gz",
project="qypi",
version="0.3.0",
package_type="sdist",
url="https://files.pythonhosted.org/packages/46/08/08f54b999c68fb1973824d4ac290a872136e978c6747dca647fc8116c59f/qypi-0.3.0.tar.gz#sha256=d23f45234a2f7431bd331b9fd4dedc0ff8de1361e171f4f47bb83a15b5726ba1",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.4.0-py3-none-any.whl",
project="qypi",
version="0.4.0",
package_type="wheel",
url="https://files.pythonhosted.org/packages/b9/29/82545bfa0b65f8ace22e154f0dd26c3543101523ea86df668995abafcf85/qypi-0.4.0-py3-none-any.whl#sha256=f264f87c34b722afdfde2349999697418e404183c80e5180032b3d61202e9a4d",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.4.0.tar.gz",
project="qypi",
version="0.4.0",
package_type="sdist",
url="https://files.pythonhosted.org/packages/4a/77/c4cd613177fcc894408ba731abc9d3392dcdd4cc9d6be8f1899c942686dd/qypi-0.4.0.tar.gz#sha256=884d59dd776e091b610e967729a57dd29fe095125210ef29ec4f874245baf7b6",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.4.1-py3-none-any.whl",
project="qypi",
version="0.4.1",
package_type="wheel",
url="https://files.pythonhosted.org/packages/b3/43/ac36d6a00a86ba7dc9c61f3dd448c233aae2c014c6cae111908ca5644112/qypi-0.4.1-py3-none-any.whl#sha256=488a65d6bd8c10f211e098d2d6e4a66df003be12f028b8f6f858ac2863579eb1",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.4.1.tar.gz",
project="qypi",
version="0.4.1",
package_type="sdist",
url="https://files.pythonhosted.org/packages/70/7f/8da79c0732787236a9a3a7787f2abfaf996f96f6ebccfdb533646f70640e/qypi-0.4.1.tar.gz#sha256=5f69adbf25e8369d25c31e41912ed0e6be429beb62faf4fc424aa667c561f657",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
]
def test_parse_qypi_base():
with open(join(DATA_DIR, "qypi_base.html"), "rb") as fp:
with pytest.warns(DeprecationWarning):
files = parse_project_page(
fp.read(),
PYPI_SIMPLE_ENDPOINT + "qypi/",
from_encoding="utf-8",
)
assert files == [
DistributionPackage(
filename="qypi-0.1.0-py3-none-any.whl",
project="qypi",
version="0.1.0",
package_type="wheel",
url="https://files.pythonhosted.org/packages/82/fc/9e25534641d7f63be93079bc07fa92bab136ddf5d4181059a1308a346f96/qypi-0.1.0-py3-none-any.whl#sha256=da69d28dcd527c0e372b3fa7b92fc333b327f8470175f035abc4e351b539189f",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.tar.gz",
project="qypi",
version="0.1.0",
package_type="sdist",
url="https://files.pythonhosted.org/packages/e4/fe/3fdb222a2916b94e9ca12d80c92dbbad1f7068c82fca42872d6c1739fead/qypi-0.1.0.tar.gz#sha256=212093de95b4f5f22e19fa18fe57fa33eccd63adb9b325fe1b673bf71912c551",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.post1-py3-none-any.whl",
project="qypi",
version="0.1.0.post1",
package_type="wheel",
url="https://files.pythonhosted.org/packages/f9/3f/6b184713e79da15cd451f0dab91864633175242f4d321df0cacdd2dc8300/qypi-0.1.0.post1-py3-none-any.whl#sha256=5946a4557550479af90278e5418cd2c32a2626936075078a4c7096be52d43078",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.post1.tar.gz",
project="qypi",
version="0.1.0.post1",
package_type="sdist",
url="https://files.pythonhosted.org/packages/0e/49/3056ee68b44c8eab4d4698b52ae4d18c0db92c80abc312894c02c4722621/qypi-0.1.0.post1.tar.gz#sha256=c99eea315455cf9fde722599ab67eeefdff5c184bb3861a7fd82f8a9387c252d",
requires_python="~=3.4",
has_sig=None,
yanked=None,
metadata_digests=None,
),
]
def test_parse_qypi_mixed():
with open(join(DATA_DIR, "qypi_mixed.html"), "rb") as fp:
with pytest.warns(DeprecationWarning):
files = parse_project_page(
fp.read(),
PYPI_SIMPLE_ENDPOINT + "qypi/",
from_encoding="utf-8",
)
assert files == [
DistributionPackage(
filename="qypi-0.1.0-py3-none-any.whl",
project="qypi",
version="0.1.0",
package_type="wheel",
url="https://files.pythonhosted.org/packages/82/fc/9e25534641d7f63be93079bc07fa92bab136ddf5d4181059a1308a346f96/qypi-0.1.0-py3-none-any.whl#sha256=da69d28dcd527c0e372b3fa7b92fc333b327f8470175f035abc4e351b539189f",
requires_python=None,
has_sig=None,
yanked="Metadata was smelly",
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.tar.gz",
project="qypi",
version="0.1.0",
package_type="sdist",
url="https://files.pythonhosted.org/packages/e4/fe/3fdb222a2916b94e9ca12d80c92dbbad1f7068c82fca42872d6c1739fead/qypi-0.1.0.tar.gz#sha256=212093de95b4f5f22e19fa18fe57fa33eccd63adb9b325fe1b673bf71912c551",
requires_python="~=3.4",
has_sig=None,
yanked="",
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.post1-py3-none-any.whl",
project="qypi",
version="0.1.0.post1",
package_type="wheel",
url="https://files.pythonhosted.org/packages/f9/3f/6b184713e79da15cd451f0dab91864633175242f4d321df0cacdd2dc8300/qypi-0.1.0.post1-py3-none-any.whl#sha256=5946a4557550479af90278e5418cd2c32a2626936075078a4c7096be52d43078",
requires_python=None,
has_sig=True,
yanked="",
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.1.0.post1.tar.gz",
project="qypi",
version="0.1.0.post1",
package_type="sdist",
url="https://files.pythonhosted.org/packages/0e/49/3056ee68b44c8eab4d4698b52ae4d18c0db92c80abc312894c02c4722621/qypi-0.1.0.post1.tar.gz#sha256=c99eea315455cf9fde722599ab67eeefdff5c184bb3861a7fd82f8a9387c252d",
requires_python="~=3.4",
has_sig=True,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="qypi-0.2.0-py3-none-any.whl",
project="qypi",
version="0.2.0",
package_type="wheel",
url="https://files.pythonhosted.org/packages/96/b8/9c2d0c3d0d95ccdaa04ebff77f8e85e9ca0888f2844b102d32a81ca3c92e/qypi-0.2.0-py3-none-any.whl#sha256=0923d60c5ff6aaf73c4805b5381868ccdf44d1cfe1d1a659d679be821fe38d53",
requires_python=None,
has_sig=False,
yanked=None,
metadata_digests=None,
),
]
def test_parse_devpi_devpi():
with open(join(DATA_DIR, "devpi_devpi.html"), "rb") as fp:
with pytest.warns(DeprecationWarning):
files = parse_project_page(
fp.read(),
"https://m.devpi.net/fschulze/dev/+simple/devpi",
from_encoding="utf-8",
)
assert files == [
DistributionPackage(
filename="devpi-2.2.0.tar.gz",
project="devpi",
version="2.2.0",
package_type="sdist",
url="https://m.devpi.net/root/pypi/+f/159/5e5f095022ce7/devpi-2.2.0.tar.gz#sha256=1595e5f095022ce7b569326ddceef5d638d936cfb79578d7fc472d46c556cd30",
requires_python=None,
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="devpi-2.1.0.tar.gz",
project="devpi",
version="2.1.0",
package_type="sdist",
url="https://m.devpi.net/root/pypi/+f/453/c95c8472d6645/devpi-2.1.0.tar.gz#sha256=453c95c8472d66456fd4b3a1526f7f9523f77095111068ef0d60e0dd97e5da27",
requires_python=None,
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="devpi-2.0.3.tar.gz",
project="devpi",
version="2.0.3",
package_type="sdist",
url="https://m.devpi.net/fschulze/dev/+f/197/3b59b5a67362a/devpi-2.0.3.tar.gz#sha256=1973b59b5a67362a44fbbcee6a5f078f221c5d6d5545215045b5ceb1fdb477c6",
requires_python=None,
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="devpi-2.0.2.tar.gz",
project="devpi",
version="2.0.2",
package_type="sdist",
url="https://m.devpi.net/root/pypi/+f/ed6/87407ee52c7da/devpi-2.0.2.tar.gz#sha256=ed687407ee52c7dacaaf5d51634a69464cf26c568acee87f6ce595ac3de261e5",
requires_python=None,
has_sig=None,
yanked=None,
metadata_digests=None,
),
DistributionPackage(
filename="devpi-2.0.1.tar.gz",
project="devpi",
version="2.0.1",
package_type="sdist",
url="https://m.devpi.net/root/pypi/+f/bc1/475505afa93aa/devpi-2.0.1.tar.gz#sha256=bc1475505afa93aa41a8fe10249406c4e8804dce4d014ca802807505e3f7594a",
requires_python=None,
has_sig=None,
yanked=None,
metadata_digests=None,
),
]
| 43.440922
| 231
| 0.612843
| 1,447
| 15,074
| 6.277125
| 0.098825
| 0.02312
| 0.01189
| 0.018496
| 0.821535
| 0.813718
| 0.787075
| 0.768138
| 0.732357
| 0.710118
| 0
| 0.211432
| 0.267679
| 15,074
| 346
| 232
| 43.566474
| 0.611378
| 0
| 0
| 0.832836
| 0
| 0.077612
| 0.413228
| 0.025474
| 0
| 0
| 0
| 0
| 0.014925
| 1
| 0.014925
| false
| 0
| 0.01194
| 0
| 0.026866
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 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
| 8
|
93808cb505c96653ed014de6444656696833425e
| 160
|
py
|
Python
|
test/test_version.py
|
briis/pyweatherflowudp
|
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
|
[
"MIT"
] | 3
|
2021-12-22T21:53:07.000Z
|
2022-01-11T17:28:35.000Z
|
test/test_version.py
|
briis/pyweatherflowudp
|
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
|
[
"MIT"
] | 2
|
2021-12-01T06:27:58.000Z
|
2021-12-02T08:45:32.000Z
|
test/test_version.py
|
briis/pyweatherflowudp
|
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
|
[
"MIT"
] | 1
|
2021-12-26T18:24:13.000Z
|
2021-12-26T18:24:13.000Z
|
"""Test the module version."""
from pyweatherflowudp import __version__
def test_version() -> None:
"""Test version."""
assert __version__ == "1.3.0"
| 20
| 40
| 0.66875
| 19
| 160
| 5.157895
| 0.684211
| 0.22449
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022727
| 0.175
| 160
| 7
| 41
| 22.857143
| 0.719697
| 0.2375
| 0
| 0
| 0
| 0
| 0.045045
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
fa94d8a496300d9af492396b2ba59fa171ad4b86
| 4,937
|
py
|
Python
|
tests/unit/test_instance_scheduler.py
|
jaash7zohz/terraform-aws-lambda-scheduler-stop-start
|
b4cc0fe603c02a4a9fc32841cb473e338e350f1e
|
[
"Apache-2.0"
] | 46
|
2019-02-15T23:12:24.000Z
|
2022-02-03T08:52:46.000Z
|
tests/unit/test_instance_scheduler.py
|
jaash7zohz/terraform-aws-lambda-scheduler-stop-start
|
b4cc0fe603c02a4a9fc32841cb473e338e350f1e
|
[
"Apache-2.0"
] | 16
|
2020-02-07T16:19:15.000Z
|
2021-12-14T08:48:34.000Z
|
tests/unit/test_instance_scheduler.py
|
jaash7zohz/terraform-aws-lambda-scheduler-stop-start
|
b4cc0fe603c02a4a9fc32841cb473e338e350f1e
|
[
"Apache-2.0"
] | 39
|
2019-09-24T10:01:20.000Z
|
2022-03-28T04:56:50.000Z
|
# -*- coding: utf-8 -*-
"""Tests for the instance scheduler class."""
import boto3
from moto import (
mock_autoscaling,
mock_cloudwatch,
mock_ec2,
mock_resourcegroupstaggingapi,
)
from package.scheduler.cloudwatch_handler import CloudWatchAlarmScheduler
from package.scheduler.instance_handler import InstanceScheduler
from .utils import launch_asg, launch_ec2_instances
import pytest
@pytest.mark.parametrize(
"aws_region, aws_tags, result_count",
[
(
"eu-west-1",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 16, "Name": "running"},
),
(
"eu-west-2",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 16, "Name": "running"},
),
(
"eu-west-2",
[{"Key": "badtagkey", "Values": ["badtagvalue"]}],
{"Code": 80, "Name": "stopped"},
),
],
)
@mock_ec2
@mock_cloudwatch
@mock_autoscaling
@mock_resourcegroupstaggingapi
def test_start_ec2_instance(aws_region, aws_tags, result_count):
"""Verify start ec2 instance function."""
client = boto3.client("ec2", region_name=aws_region)
launch_ec2_instances(3, aws_region, "tostop", "true")
for ec2 in client.describe_instances()["Reservations"][0]["Instances"]:
client.stop_instances(InstanceIds=[ec2["InstanceId"]])
ec2_scheduler = InstanceScheduler(aws_region)
ec2_scheduler.cloudwatch_alarm = CloudWatchAlarmScheduler(aws_region)
ec2_scheduler.start(aws_tags)
for ec2 in client.describe_instances()["Reservations"][0]["Instances"]:
assert ec2["State"] == result_count
@pytest.mark.parametrize(
"aws_region, aws_tags, result_count",
[
(
"eu-west-1",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 80, "Name": "stopped"},
),
(
"eu-west-2",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 80, "Name": "stopped"},
),
(
"eu-west-2",
[{"Key": "badtagkey", "Values": ["badtagvalue"]}],
{"Code": 16, "Name": "running"},
),
],
)
@mock_ec2
@mock_cloudwatch
@mock_autoscaling
@mock_resourcegroupstaggingapi
def test_stop_ec2_instance(aws_region, aws_tags, result_count):
"""Verify stop ec2 instance function."""
client = boto3.client("ec2", region_name=aws_region)
launch_ec2_instances(3, aws_region, "tostop", "true")
ec2_scheduler = InstanceScheduler(aws_region)
ec2_scheduler.cloudwatch_alarm = CloudWatchAlarmScheduler(aws_region)
ec2_scheduler.stop(aws_tags)
instances = client.describe_instances()["Reservations"][0]["Instances"]
assert len(instances) == 3
for instance in instances:
assert instance["State"] == result_count
@pytest.mark.parametrize(
"aws_region, aws_tags, result_count",
[
(
"eu-west-1",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 16, "Name": "running"},
),
(
"eu-west-2",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 16, "Name": "running"},
),
],
)
@mock_ec2
@mock_cloudwatch
@mock_autoscaling
@mock_resourcegroupstaggingapi
def test_do_not_stop_asg_instance(aws_region, aws_tags, result_count):
client = boto3.client("ec2", region_name=aws_region)
launch_asg(aws_region, "tostop", "true")
ec2_scheduler = InstanceScheduler(aws_region)
ec2_scheduler.cloudwatch_alarm = CloudWatchAlarmScheduler(aws_region)
ec2_scheduler.stop(aws_tags)
instances = client.describe_instances()["Reservations"][0]["Instances"]
assert len(instances) == 3
for instance in instances:
assert instance["State"] == result_count
@pytest.mark.parametrize(
"aws_region, aws_tags, result_count",
[
(
"eu-west-1",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 80, "Name": "stopped"},
),
(
"eu-west-2",
[{"Key": "tostop", "Values": ["true"]}],
{"Code": 80, "Name": "stopped"},
),
],
)
@mock_ec2
@mock_cloudwatch
@mock_autoscaling
@mock_resourcegroupstaggingapi
def test_do_not_start_asg_instance(aws_region, aws_tags, result_count):
client = boto3.client("ec2", region_name=aws_region)
launch_asg(aws_region, "tostop", "true")
instances = client.describe_instances()["Reservations"][0]["Instances"]
for instance in instances:
client.stop_instances(InstanceIds=[instance["InstanceId"]])
ec2_scheduler = InstanceScheduler(aws_region)
ec2_scheduler.cloudwatch_alarm = CloudWatchAlarmScheduler(aws_region)
ec2_scheduler.start(aws_tags)
instances = client.describe_instances()["Reservations"][0]["Instances"]
assert len(instances) == 3
for instance in instances:
assert instance["State"] == result_count
| 30.288344
| 75
| 0.616974
| 516
| 4,937
| 5.664729
| 0.135659
| 0.073897
| 0.032843
| 0.043791
| 0.875128
| 0.851522
| 0.851522
| 0.830996
| 0.813206
| 0.746835
| 0
| 0.020757
| 0.229086
| 4,937
| 162
| 76
| 30.475309
| 0.747241
| 0.026939
| 0
| 0.742857
| 0
| 0
| 0.16792
| 0
| 0
| 0
| 0
| 0
| 0.05
| 1
| 0.028571
| false
| 0
| 0.042857
| 0
| 0.071429
| 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
|
fa9b53e37d93918fd3d307efe4c15b5099190d5b
| 3,422
|
py
|
Python
|
src/compas_view2/objects/polygonobject.py
|
selinabitting/compas_view2
|
cac8abaf8fbde13ceabe35324be92779ea2e535f
|
[
"MIT"
] | 5
|
2021-03-03T13:07:31.000Z
|
2022-02-05T01:07:31.000Z
|
src/compas_view2/objects/polygonobject.py
|
selinabitting/compas_view2
|
cac8abaf8fbde13ceabe35324be92779ea2e535f
|
[
"MIT"
] | 91
|
2021-01-29T14:26:28.000Z
|
2022-03-22T17:15:58.000Z
|
src/compas_view2/objects/polygonobject.py
|
selinabitting/compas_view2
|
cac8abaf8fbde13ceabe35324be92779ea2e535f
|
[
"MIT"
] | 6
|
2021-01-29T11:13:45.000Z
|
2022-02-05T00:56:24.000Z
|
from compas.geometry import centroid_points
from compas.utilities import pairwise
from .polylineobject import PolylineObject
class PolygonObject(PolylineObject):
"""Object for displaying COMPAS Polygon geometry."""
def __init__(self, polygon, show_face=True, facecolor=None, **kwargs):
super().__init__(polygon, close=True, facecolor=facecolor, **kwargs)
self.show_face = show_face
def _frontfaces_data(self):
if not self.show_face:
return
positions = []
colors = []
elements = []
points = self._data.points
color = self.facecolor
if len(points) == 3:
a, b, c = points
positions.append(a)
positions.append(b)
positions.append(c)
colors.append(color)
colors.append(color)
colors.append(color)
elements.append([0, 1, 2])
elif len(points) == 4:
a, b, c, d = points
positions.append(a)
positions.append(b)
positions.append(c)
positions.append(a)
positions.append(c)
positions.append(d)
colors.append(color)
colors.append(color)
colors.append(color)
colors.append(color)
colors.append(color)
colors.append(color)
elements.append([0, 1, 2])
elements.append([3, 4, 5])
else:
c = centroid_points(points)
i = 0
for a, b in pairwise(points + points[:1]):
positions.append(a)
positions.append(b)
positions.append(c)
colors.append(color)
colors.append(color)
colors.append(color)
elements.append([i + 0, i + 1, i + 2])
i += 3
return positions, colors, elements
def _backfaces_data(self):
if not self.show_face:
return
positions = []
colors = []
elements = []
points = self._data.points[::-1]
color = self.facecolor
if len(points) == 3:
a, b, c = points
positions.append(a)
positions.append(b)
positions.append(c)
colors.append(color)
colors.append(color)
colors.append(color)
elements.append([0, 1, 2])
elif len(points) == 4:
a, b, c, d = points
positions.append(a)
positions.append(b)
positions.append(c)
positions.append(a)
positions.append(c)
positions.append(d)
colors.append(color)
colors.append(color)
colors.append(color)
colors.append(color)
colors.append(color)
colors.append(color)
elements.append([0, 1, 2])
elements.append([3, 4, 5])
else:
c = centroid_points(points)
i = 0
for a, b in pairwise(points + points[:1]):
positions.append(a)
positions.append(b)
positions.append(c)
colors.append(color)
colors.append(color)
colors.append(color)
elements.append([i + 0, i + 1, i + 2])
i += 3
return positions, colors, elements
| 32.283019
| 76
| 0.504676
| 354
| 3,422
| 4.816384
| 0.146893
| 0.211144
| 0.239296
| 0.242815
| 0.809384
| 0.809384
| 0.809384
| 0.809384
| 0.809384
| 0.809384
| 0
| 0.016811
| 0.391584
| 3,422
| 105
| 77
| 32.590476
| 0.802113
| 0.013442
| 0
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030303
| false
| 0
| 0.030303
| 0
| 0.111111
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
fac5e09c224af9aa1c7f19771d9eb2c7a02c0f28
| 155
|
py
|
Python
|
extra_tests/snippets/builtin_hex.py
|
dbrgn/RustPython
|
6d371cea8a62d84dbbeec5a53cfd040f45899211
|
[
"CC-BY-4.0",
"MIT"
] | 11,058
|
2018-05-29T07:40:06.000Z
|
2022-03-31T11:38:42.000Z
|
extra_tests/snippets/builtin_hex.py
|
dbrgn/RustPython
|
6d371cea8a62d84dbbeec5a53cfd040f45899211
|
[
"CC-BY-4.0",
"MIT"
] | 2,105
|
2018-06-01T10:07:16.000Z
|
2022-03-31T14:56:42.000Z
|
extra_tests/snippets/builtin_hex.py
|
dbrgn/RustPython
|
6d371cea8a62d84dbbeec5a53cfd040f45899211
|
[
"CC-BY-4.0",
"MIT"
] | 914
|
2018-07-27T09:36:14.000Z
|
2022-03-31T19:56:34.000Z
|
from testutils import assert_raises
assert hex(16) == '0x10'
assert hex(-16) == '-0x10'
assert_raises(TypeError, hex, {}, _msg='ord() called with dict')
| 22.142857
| 64
| 0.696774
| 22
| 155
| 4.772727
| 0.636364
| 0.228571
| 0.209524
| 0.285714
| 0.342857
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074627
| 0.135484
| 155
| 6
| 65
| 25.833333
| 0.708955
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 0
| 0
| 0.051613
| 0
| 1
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
87946635cd1397b14afaeaea1f455b41e0a5cfc5
| 22,200
|
py
|
Python
|
pys/03.1 Hyperparameter Optimization.py
|
kahramankostas/IoTDevIDv2
|
3ca0003f2e740143e8f8f121ffc81f190947f0dc
|
[
"MIT"
] | 4
|
2022-01-11T10:04:10.000Z
|
2022-03-21T08:23:07.000Z
|
pys/03.1 Hyperparameter Optimization.py
|
kahramankostas/IoTDevIDv2
|
3ca0003f2e740143e8f8f121ffc81f190947f0dc
|
[
"MIT"
] | null | null | null |
pys/03.1 Hyperparameter Optimization.py
|
kahramankostas/IoTDevIDv2
|
3ca0003f2e740143e8f8f121ffc81f190947f0dc
|
[
"MIT"
] | 1
|
2021-12-23T05:21:37.000Z
|
2021-12-23T05:21:37.000Z
|
# coding: utf-8
# In[1]:
get_ipython().run_line_magic('matplotlib', 'inline')
from scipy.stats import randint as sp_randint
from scipy.stats import uniform
from scipy.stats import uniform as sp_randFloat
from sklearn import svm
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import RandomizedSearchCV
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.tree import DecisionTreeClassifier
from time import time
import numpy as np
import pandas as pd
import sklearn
import warnings
warnings.filterwarnings('ignore')
# In[2]:
from scipy.stats import randint as sp_randInt
from sklearn.model_selection import GridSearchCV, PredefinedSplit
from sklearn.metrics import make_scorer
from scipy import sparse
# In[3]:
features= ['pck_size', 'Ether_type', 'LLC_ctrl', 'EAPOL_version', 'EAPOL_type', 'IP_ihl', 'IP_tos', 'IP_len', 'IP_flags', 'IP_DF', 'IP_ttl', 'IP_options', 'ICMP_code', 'TCP_dataofs', 'TCP_FIN', 'TCP_ACK', 'TCP_window', 'UDP_len', 'DHCP_options', 'BOOTP_hlen', 'BOOTP_flags', 'BOOTP_sname', 'BOOTP_file', 'BOOTP_options', 'DNS_qr', 'DNS_rd', 'DNS_qdcount', 'dport_class', 'payload_bytes', 'entropy', 'Label']
df=pd.read_csv("Aalto_train_IoTDevID.csv",usecols=features)
X_train = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_train=df['Label'].cat.codes
df=pd.read_csv("Aalto_test_IoTDevID.csv",usecols=features)
X_test = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_test=df['Label'].cat.codes
# In[4]:
print(X_train.shape,X_test.shape)
# # Aalto
# In[5]:
X= np.concatenate([X_train, X_test])
test_fold = [-1 for _ in range(X_train.shape[0])] + [0 for _ in range(X_test.shape[0])]
y = np.concatenate([y_train, y_test])
ps = PredefinedSplit(test_fold)
def run_random_search(model, params, x_train, y_train):
#grid = GridSearchCV(model, params, cv = ps, n_jobs = -1, scoring = score, verbose = 0, refit = False)
grid =RandomizedSearchCV(model, param_grid, cv=ps,scoring = 'f1_macro')
grid.fit(x_train, y_train)
return (grid.best_params_, round(grid.best_score_,8),grid.best_estimator_)
# # RandomizedSearchCV DT
# In[11]:
print ('%-90s %-20s %-8s %-8s' % ("HYPERPARAMETERS","F1 Score", "Time", "No"))
nfolds=10
param_grid = { 'criterion':['gini','entropy'],
"max_depth":np.linspace(1, 32, 32, endpoint=True),
"min_samples_split": sp_randint(2,10),#uniform(0.1,1 ),
# "min_samples_leafs" : np.linspace(0.1, 0.5, 5, endpoint=True)
"max_features" : sp_randint(1,X_train.shape[1])}
second=time()
f1=[]
clf=DecisionTreeClassifier()
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(100):
second=time()
a,b,clf=run_random_search(DecisionTreeClassifier(),param_grid,X,y)
f1=[]
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# # GridSearchCV DT
# In[21]:
param_grid = { 'criterion':['gini','entropy'],
"max_depth":list(range(1,32)),
"min_samples_split":list(range(2,10)),#uniform(0.1,1 ),
# "min_samples_leafs" : np.linspace(0.1, 0.5, 5, endpoint=True)
"max_features" :list(range(1,X_train.shape[1]))}
nbModel_grid = GridSearchCV(estimator=DecisionTreeClassifier(), param_grid=param_grid, verbose=1, cv=ps, n_jobs=-1)
nbModel_grid.fit(X, y)
print(nbModel_grid.best_estimator_)
# # RandomizedSearchCV RF
# In[12]:
# use a full grid over all parameters
param_grid = {"max_depth":np.linspace(1, 32, 32, endpoint=True),
"n_estimators" : sp_randint(1, 200),
"max_features": sp_randint(1, 11),
"min_samples_split":sp_randint(2, 11),
"bootstrap": [True, False],
"criterion": ["gini", "entropy"]}
second=time()
f1=[]
clf=RandomForestClassifier()
for ii in range(1):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(50):
second=time()
a,b,clf=run_random_search(RandomForestClassifier(),param_grid,X,y)
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1=sklearn.metrics.f1_score(y_test, predict,average= "macro")
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# # RandomizedSearchCV KNeighborsClassifier
# In[13]:
# use a full grid over all parameters
param_grid = {"n_neighbors" : sp_randint(1,64) ,
"leaf_size": sp_randint(1,50) ,
"algorithm" : ["auto", "ball_tree", "kd_tree", "brute"],
"weights" : ["uniform", "distance"]}
second=time()
f1=[]
clf=KNeighborsClassifier()
for ii in range(1):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),i))
for i in range(50):
second=time()
a,b,clf=run_random_search(KNeighborsClassifier(),param_grid,X,y)
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1=sklearn.metrics.f1_score(y_test, predict,average= "macro")
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# # RandomizedSearchCV GradientBoostingClassifier
# In[14]:
# use a full grid over all parameters
param_grid = {"learning_rate": sp_randFloat(),
"subsample" : sp_randFloat(),
"n_estimators" : sp_randInt(100, 1000),
"max_depth" : sp_randInt(4, 10)
}
second=time()
f1=[]
clf=GradientBoostingClassifier()
for ii in range(1):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(1):
second=time()
a,b,clf=run_random_search(GradientBoostingClassifier(),param_grid,X,y)
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1=sklearn.metrics.f1_score(y_test, predict,average= "macro")
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# # SVM
# In[15]:
param_grid = {'C': [0.001, 0.01, 0.1, 1, 10], 'gamma' : [0.001, 0.01, 0.1, 1]}
nbModel_grid = GridSearchCV(estimator=svm.SVC(), param_grid=param_grid, verbose=1, cv=ps, n_jobs=-1)
nbModel_grid.fit(X, y)
print(nbModel_grid.best_estimator_)
# # NB
# In[10]:
from sklearn.naive_bayes import CategoricalNB
from sklearn.model_selection import GridSearchCV
param_grid_nb = {
'alpha': np.logspace(0,-9, num=100),
"fit_prior":["True","False"]
}
nbModel_grid = GridSearchCV(estimator=CategoricalNB(), param_grid=param_grid_nb, verbose=1, cv=ps, n_jobs=-1)
nbModel_grid.fit(X, y)
print(nbModel_grid.best_estimator_)
# -------------
# In[2]:
# IoTSense- IoTsentinel
# In[1]:
get_ipython().run_line_magic('matplotlib', 'inline')
from scipy.stats import randint as sp_randint
from scipy.stats import uniform
from scipy.stats import uniform as sp_randFloat
from sklearn import svm
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import RandomizedSearchCV
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.tree import DecisionTreeClassifier
from time import time
import numpy as np
import pandas as pd
import sklearn
import warnings
warnings.filterwarnings('ignore')
# In[2]:
from scipy.stats import randint as sp_randInt
from sklearn.model_selection import GridSearchCV, PredefinedSplit
from sklearn.metrics import make_scorer
from scipy import sparse
# # IoTSentinel
# In[3]:
df=pd.read_csv("Aalto_IoTSentinel_Train.csv")
df
# In[4]:
df.columns
# In[5]:
features= ['ARP', 'LLC', 'EAPOL', 'IP', 'ICMP', 'ICMP6', 'TCP', 'UDP', 'HTTP',
'HTTPS', 'DHCP', 'BOOTP', 'SSDP', 'DNS', 'MDNS', 'NTP', 'IP_padding',
'IP_add_count', 'IP_ralert', 'Portcl_src', 'Portcl_dst', 'Pck_size',
'Pck_rawdata', 'Label']
df=pd.read_csv("Aalto_IoTSentinel_Train.csv",usecols=features)
X_train = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_train=df['Label'].cat.codes
df=pd.read_csv("Aalto_IoTSentinel_Test.csv",usecols=features)
X_test = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_test=df['Label'].cat.codes
# In[6]:
print(X_train.shape,X_test.shape)
# In[7]:
X= np.concatenate([X_train, X_test])
test_fold = [-1 for _ in range(X_train.shape[0])] + [0 for _ in range(X_test.shape[0])]
y = np.concatenate([y_train, y_test])
ps = PredefinedSplit(test_fold)
def run_random_search(model, params, x_train, y_train):
#grid = GridSearchCV(model, params, cv = ps, n_jobs = -1, scoring = score, verbose = 0, refit = False)
grid =RandomizedSearchCV(model, param_grid, cv=ps,scoring = 'f1_macro')
grid.fit(x_train, y_train)
return (grid.best_params_, round(grid.best_score_,8),grid.best_estimator_)
# # RandomizedSearchCV DT
# In[8]:
print ('%-90s %-20s %-8s %-8s' % ("HYPERPARAMETERS","F1 Score", "Time", "No"))
nfolds=10
param_grid = { 'criterion':['gini','entropy'],
"max_depth":np.linspace(1, 32, 32, endpoint=True),
"min_samples_split": sp_randint(2,10),#uniform(0.1,1 ),
# "min_samples_leafs" : np.linspace(0.1, 0.5, 5, endpoint=True)
"max_features" : sp_randint(1,X_train.shape[1])}
second=time()
f1=[]
clf=DecisionTreeClassifier()
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(100):
second=time()
a,b,clf=run_random_search(DecisionTreeClassifier(),param_grid,X,y)
f1=[]
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# # IoT Sense
# In[13]:
df=pd.read_csv("Aalto_IoTSense_Train.csv")
df
# In[14]:
df.columns
# In[15]:
features= ['ARP', 'EAPOL', 'IP', 'ICMP', 'ICMP6', 'TCP', 'UDP', 'TCP_w_size',
'HTTP', 'HTTPS', 'DHCP', 'BOOTP', 'SSDP', 'DNS', 'MDNS', 'NTP',
'IP_padding', 'IP_ralert', 'payload_l', 'Entropy', 'Label']
df=pd.read_csv("Aalto_IoTSense_Train.csv",usecols=features)
X_train = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_train=df['Label'].cat.codes
df=pd.read_csv("Aalto_IoTSense_Test.csv",usecols=features)
X_test = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_test=df['Label'].cat.codes
# In[16]:
print(X_train.shape,X_test.shape)
# In[17]:
X= np.concatenate([X_train, X_test])
test_fold = [-1 for _ in range(X_train.shape[0])] + [0 for _ in range(X_test.shape[0])]
y = np.concatenate([y_train, y_test])
ps = PredefinedSplit(test_fold)
def run_random_search(model, params, x_train, y_train):
#grid = GridSearchCV(model, params, cv = ps, n_jobs = -1, scoring = score, verbose = 0, refit = False)
grid =RandomizedSearchCV(model, param_grid, cv=ps,scoring = 'f1_macro')
grid.fit(x_train, y_train)
return (grid.best_params_, round(grid.best_score_,8),grid.best_estimator_)
# # RandomizedSearchCV DT
# In[18]:
print ('%-90s %-20s %-8s %-8s' % ("HYPERPARAMETERS","F1 Score", "Time", "No"))
nfolds=10
param_grid = { 'criterion':['gini','entropy'],
"max_depth":np.linspace(1, 32, 32, endpoint=True),
"min_samples_split": sp_randint(2,10),#uniform(0.1,1 ),
# "min_samples_leafs" : np.linspace(0.1, 0.5, 5, endpoint=True)
"max_features" : sp_randint(1,X_train.shape[1])}
second=time()
f1=[]
clf=DecisionTreeClassifier()
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(100):
second=time()
a,b,clf=run_random_search(DecisionTreeClassifier(),param_grid,X,y)
f1=[]
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# ________________
# # UNSW
# In[3]:
get_ipython().run_line_magic('matplotlib', 'inline')
from scipy.stats import randint as sp_randint
from scipy.stats import uniform
from scipy.stats import uniform as sp_randFloat
from sklearn import svm
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import RandomizedSearchCV
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.tree import DecisionTreeClassifier
from time import time
import numpy as np
import pandas as pd
import sklearn
import warnings
warnings.filterwarnings('ignore')
# In[4]:
from scipy.stats import randint as sp_randInt
from sklearn.model_selection import GridSearchCV, PredefinedSplit
from sklearn.metrics import make_scorer
from scipy import sparse
# # IoTSentinel
# In[5]:
df=pd.read_csv("UNSW_IoTSentinel_Train.csv")
df
# In[6]:
df.columns
# In[7]:
features= ['ARP', 'LLC', 'EAPOL', 'IP', 'ICMP', 'ICMP6', 'TCP', 'UDP', 'HTTP',
'HTTPS', 'DHCP', 'BOOTP', 'SSDP', 'DNS', 'MDNS', 'NTP', 'IP_padding',
'IP_add_count', 'IP_ralert', 'Portcl_src', 'Portcl_dst', 'Pck_size',
'Pck_rawdata', 'Label']
df=pd.read_csv("UNSW_IoTSentinel_Train.csv",usecols=features)
X_train = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_train=df['Label'].cat.codes
df=pd.read_csv("UNSW_IoTSentinel_Test.csv",usecols=features)
X_test = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_test=df['Label'].cat.codes
# In[8]:
print(X_train.shape,X_test.shape)
# In[9]:
X= np.concatenate([X_train, X_test])
test_fold = [-1 for _ in range(X_train.shape[0])] + [0 for _ in range(X_test.shape[0])]
y = np.concatenate([y_train, y_test])
ps = PredefinedSplit(test_fold)
def run_random_search(model, params, x_train, y_train):
#grid = GridSearchCV(model, params, cv = ps, n_jobs = -1, scoring = score, verbose = 0, refit = False)
grid =RandomizedSearchCV(model, param_grid, cv=ps,scoring = 'f1_macro')
grid.fit(x_train, y_train)
return (grid.best_params_, round(grid.best_score_,8),grid.best_estimator_)
# # RandomizedSearchCV DT
# In[10]:
print ('%-90s %-20s %-8s %-8s' % ("HYPERPARAMETERS","F1 Score", "Time", "No"))
nfolds=10
param_grid = { 'criterion':['gini','entropy'],
"max_depth":np.linspace(1, 32, 32, endpoint=True),
"min_samples_split": sp_randint(2,10),#uniform(0.1,1 ),
# "min_samples_leafs" : np.linspace(0.1, 0.5, 5, endpoint=True)
"max_features" : sp_randint(1,X_train.shape[1])}
second=time()
f1=[]
clf=DecisionTreeClassifier()
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(100):
second=time()
a,b,clf=run_random_search(DecisionTreeClassifier(),param_grid,X,y)
f1=[]
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# # IoT Sense
# In[11]:
df=pd.read_csv("UNSW_IoTSense_Train.csv")
df
# In[12]:
df.columns
# In[17]:
features= ['ARP', 'EAPOL', 'IP', 'ICMP', 'ICMP6', 'TCP', 'UDP', 'TCP_w_size',
'HTTP', 'HTTPS', 'DHCP', 'BOOTP', 'SSDP', 'DNS', 'MDNS', 'NTP',
'IP_padding', 'IP_ralert', 'payload_l', 'Entropy', 'Label']
df=pd.read_csv("UNSW_IoTSense_Train.csv",usecols=features)
X_train = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_train=df['Label'].cat.codes
df=pd.read_csv("UNSW_IoTSense_Test.csv",usecols=features)
X_test = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_test=df['Label'].cat.codes
# In[18]:
print(X_train.shape,X_test.shape)
# In[19]:
X= np.concatenate([X_train, X_test])
test_fold = [-1 for _ in range(X_train.shape[0])] + [0 for _ in range(X_test.shape[0])]
y = np.concatenate([y_train, y_test])
ps = PredefinedSplit(test_fold)
def run_random_search(model, params, x_train, y_train):
#grid = GridSearchCV(model, params, cv = ps, n_jobs = -1, scoring = score, verbose = 0, refit = False)
grid =RandomizedSearchCV(model, param_grid, cv=ps,scoring = 'f1_macro')
grid.fit(x_train, y_train)
return (grid.best_params_, round(grid.best_score_,8),grid.best_estimator_)
# # RandomizedSearchCV DT
# In[20]:
print ('%-90s %-20s %-8s %-8s' % ("HYPERPARAMETERS","F1 Score", "Time", "No"))
nfolds=10
param_grid = { 'criterion':['gini','entropy'],
"max_depth":np.linspace(1, 32, 32, endpoint=True),
"min_samples_split": sp_randint(2,10),#uniform(0.1,1 ),
# "min_samples_leafs" : np.linspace(0.1, 0.5, 5, endpoint=True)
"max_features" : sp_randint(1,X_train.shape[1])}
second=time()
f1=[]
clf=DecisionTreeClassifier()
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(100):
second=time()
a,b,clf=run_random_search(DecisionTreeClassifier(),param_grid,X,y)
f1=[]
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
# # IoTDevID
# In[21]:
df=pd.read_csv("UNSW_train_IoTDevID.csv")
df
# In[22]:
df.columns
# In[23]:
features= ['pck_size', 'Ether_type', 'LLC_ctrl', 'EAPOL_version', 'EAPOL_type', 'IP_ihl', 'IP_tos', 'IP_len', 'IP_flags', 'IP_DF', 'IP_ttl', 'IP_options', 'ICMP_code', 'TCP_dataofs', 'TCP_FIN', 'TCP_ACK', 'TCP_window', 'UDP_len', 'DHCP_options', 'BOOTP_hlen', 'BOOTP_flags', 'BOOTP_sname', 'BOOTP_file', 'BOOTP_options', 'DNS_qr', 'DNS_rd', 'DNS_qdcount', 'dport_class', 'payload_bytes', 'entropy',
'Label']
df=pd.read_csv("UNSW_train_IoTDevID.csv",usecols=features)
X_train = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_train=df['Label'].cat.codes
df=pd.read_csv("UNSW_test_IoTDevID.csv",usecols=features)
X_test = df.iloc[:,0:-1]
df['Label'] = df['Label'].astype('category')
y_test=df['Label'].cat.codes
# In[24]:
print(X_train.shape,X_test.shape)
# In[25]:
X= np.concatenate([X_train, X_test])
test_fold = [-1 for _ in range(X_train.shape[0])] + [0 for _ in range(X_test.shape[0])]
y = np.concatenate([y_train, y_test])
ps = PredefinedSplit(test_fold)
def run_random_search(model, params, x_train, y_train):
#grid = GridSearchCV(model, params, cv = ps, n_jobs = -1, scoring = score, verbose = 0, refit = False)
grid =RandomizedSearchCV(model, param_grid, cv=ps,scoring = 'f1_macro')
grid.fit(x_train, y_train)
return (grid.best_params_, round(grid.best_score_,8),grid.best_estimator_)
# # RandomizedSearchCV DT
# In[26]:
print ('%-90s %-20s %-8s %-8s' % ("HYPERPARAMETERS","F1 Score", "Time", "No"))
nfolds=10
param_grid = { 'criterion':['gini','entropy'],
"max_depth":np.linspace(1, 32, 32, endpoint=True),
"min_samples_split": sp_randint(2,10),#uniform(0.1,1 ),
# "min_samples_leafs" : np.linspace(0.1, 0.5, 5, endpoint=True)
"max_features" : sp_randint(1,X_train.shape[1])}
second=time()
f1=[]
clf=DecisionTreeClassifier()
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % ("default",f1,round(time()-second,3),ii))
for i in range(100):
second=time()
a,b,clf=run_random_search(DecisionTreeClassifier(),param_grid,X,y)
f1=[]
for ii in range(25):
clf.fit(X_train, y_train)
predict =clf.predict(X_test)
f1.append(sklearn.metrics.f1_score(y_test, predict,average= "macro") )
f1=sum(f1)/len(f1)
#if f1>0.76:
print('%-90s %-20s %-8s %-8s' % (a,f1,round(time()-second,3),i))
| 26.555024
| 407
| 0.657703
| 3,337
| 22,200
| 4.19089
| 0.074318
| 0.026171
| 0.015016
| 0.025742
| 0.931284
| 0.923132
| 0.918198
| 0.911906
| 0.886521
| 0.875867
| 0
| 0.040149
| 0.167523
| 22,200
| 835
| 408
| 26.586826
| 0.716574
| 0.099324
| 0
| 0.872979
| 0
| 0
| 0.16587
| 0.02069
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013857
| false
| 0
| 0.143187
| 0
| 0.170901
| 0.076212
| 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
|
87b421b804595a1b801a30c336427f6f487d5749
| 6,050
|
py
|
Python
|
evallpy.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
evallpy.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
evallpy.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
import os
ls = ["python eval_covid19china_timm-regnetx_002_Clahe.py",
"python eval_covid19china_timm-regnetx_002_CoarseDropout.py",
"python eval_covid19china_timm-regnetx_002_ElasticTransform.py",
"python eval_covid19china_timm-regnetx_002_Emboss.py",
"python eval_covid19china_timm-regnetx_002_Flip.py",
"python eval_covid19china_timm-regnetx_002_GaussianBlur.py",
"python eval_covid19china_timm-regnetx_002_GridDistortion.py",
"python eval_covid19china_timm-regnetx_002_GridDropout.py",
"python eval_covid19china_timm-regnetx_002_ImageCompression.py",
"python eval_covid19china_timm-regnetx_002_MedianBlur.py",
"python eval_covid19china_timm-regnetx_002_noda.py",
"python eval_covid19china_timm-regnetx_002_OpticalDistortion.py",
"python eval_covid19china_timm-regnetx_002_PiecewiseAffine.py",
"python eval_covid19china_timm-regnetx_002_Posterize.py",
"python eval_covid19china_timm-regnetx_002_RandomBrightnessContrast.py",
"python eval_covid19china_timm-regnetx_002_RandomCrop.py",
"python eval_covid19china_timm-regnetx_002_RandomGamma.py",
"python eval_covid19china_timm-regnetx_002_RandomSnow.py",
"python eval_covid19china_timm-regnetx_002_Rotate.py",
"python eval_covid19china_timm-regnetx_002_Sharpen.py",
"python eval_covid19china_timm-regnetx_002_ShiftScaleRotate.py",
"python eval_covid20cases_timm-regnetx_002_Clahe.py",
"python eval_covid20cases_timm-regnetx_002_CoarseDropout.py",
"python eval_covid20cases_timm-regnetx_002_ElasticTransform.py",
"python eval_covid20cases_timm-regnetx_002_Emboss.py",
"python eval_covid20cases_timm-regnetx_002_Flip.py",
"python eval_covid20cases_timm-regnetx_002_GaussianBlur.py",
"python eval_covid20cases_timm-regnetx_002_GridDistortion.py",
"python eval_covid20cases_timm-regnetx_002_GridDropout.py",
"python eval_covid20cases_timm-regnetx_002_ImageCompression.py",
"python eval_covid20cases_timm-regnetx_002_MedianBlur.py",
"python eval_covid20cases_timm-regnetx_002_noda.py",
"python eval_covid20cases_timm-regnetx_002_OpticalDistortion.py",
"python eval_covid20cases_timm-regnetx_002_PiecewiseAffine.py",
"python eval_covid20cases_timm-regnetx_002_Posterize.py",
"python eval_covid20cases_timm-regnetx_002_RandomBrightnessContrast.py",
"python eval_covid20cases_timm-regnetx_002_RandomCrop.py",
"python eval_covid20cases_timm-regnetx_002_RandomGamma.py",
"python eval_covid20cases_timm-regnetx_002_RandomSnow.py",
"python eval_covid20cases_timm-regnetx_002_Rotate.py",
"python eval_covid20cases_timm-regnetx_002_Sharpen.py",
"python eval_covid20cases_timm-regnetx_002_ShiftScaleRotate.py",
"python eval_medseg_timm-regnetx_002_Clahe.py",
"python eval_medseg_timm-regnetx_002_CoarseDropout.py",
"python eval_medseg_timm-regnetx_002_ElasticTransform.py",
"python eval_medseg_timm-regnetx_002_Emboss.py",
"python eval_medseg_timm-regnetx_002_Flip.py",
"python eval_medseg_timm-regnetx_002_GaussianBlur.py",
"python eval_medseg_timm-regnetx_002_GridDistortion.py",
"python eval_medseg_timm-regnetx_002_GridDropout.py",
"python eval_medseg_timm-regnetx_002_ImageCompression.py",
"python eval_medseg_timm-regnetx_002_MedianBlur.py",
"python eval_medseg_timm-regnetx_002_noda.py",
"python eval_medseg_timm-regnetx_002_OpticalDistortion.py",
"python eval_medseg_timm-regnetx_002_PiecewiseAffine.py",
"python eval_medseg_timm-regnetx_002_Posterize.py",
"python eval_medseg_timm-regnetx_002_RandomBrightnessContrast.py",
"python eval_medseg_timm-regnetx_002_RandomCrop.py",
"python eval_medseg_timm-regnetx_002_RandomGamma.py",
"python eval_medseg_timm-regnetx_002_RandomSnow.py",
"python eval_medseg_timm-regnetx_002_Rotate.py",
"python eval_medseg_timm-regnetx_002_Sharpen.py",
"python eval_medseg_timm-regnetx_002_ShiftScaleRotate.py",
"python eval_mosmed_timm-regnetx_002_Clahe.py",
"python eval_mosmed_timm-regnetx_002_CoarseDropout.py",
"python eval_mosmed_timm-regnetx_002_ElasticTransform.py",
"python eval_mosmed_timm-regnetx_002_Emboss.py",
"python eval_mosmed_timm-regnetx_002_Flip.py",
"python eval_mosmed_timm-regnetx_002_GaussianBlur.py",
"python eval_mosmed_timm-regnetx_002_GridDistortion.py",
"python eval_mosmed_timm-regnetx_002_GridDropout.py",
"python eval_mosmed_timm-regnetx_002_ImageCompression.py",
"python eval_mosmed_timm-regnetx_002_MedianBlur.py",
"python eval_mosmed_timm-regnetx_002_noda.py",
"python eval_mosmed_timm-regnetx_002_OpticalDistortion.py",
"python eval_mosmed_timm-regnetx_002_PiecewiseAffine.py",
"python eval_mosmed_timm-regnetx_002_Posterize.py",
"python eval_mosmed_timm-regnetx_002_RandomBrightnessContrast.py",
"python eval_mosmed_timm-regnetx_002_RandomCrop.py",
"python eval_mosmed_timm-regnetx_002_RandomGamma.py",
"python eval_mosmed_timm-regnetx_002_RandomSnow.py",
"python eval_mosmed_timm-regnetx_002_Rotate.py",
"python eval_mosmed_timm-regnetx_002_Sharpen.py",
"python eval_mosmed_timm-regnetx_002_ShiftScaleRotate.py",
"python eval_ricord1a_timm-regnetx_002_Clahe.py",
"python eval_ricord1a_timm-regnetx_002_CoarseDropout.py",
"python eval_ricord1a_timm-regnetx_002_ElasticTransform.py",
"python eval_ricord1a_timm-regnetx_002_Emboss.py",
"python eval_ricord1a_timm-regnetx_002_Flip.py",
"python eval_ricord1a_timm-regnetx_002_GaussianBlur.py",
"python eval_ricord1a_timm-regnetx_002_GridDistortion.py",
"python eval_ricord1a_timm-regnetx_002_GridDropout.py",
"python eval_ricord1a_timm-regnetx_002_ImageCompression.py",
"python eval_ricord1a_timm-regnetx_002_MedianBlur.py",
"python eval_ricord1a_timm-regnetx_002_noda.py",
"python eval_ricord1a_timm-regnetx_002_OpticalDistortion.py",
"python eval_ricord1a_timm-regnetx_002_PiecewiseAffine.py",
"python eval_ricord1a_timm-regnetx_002_Posterize.py",
"python eval_ricord1a_timm-regnetx_002_RandomBrightnessContrast.py",
"python eval_ricord1a_timm-regnetx_002_RandomCrop.py",
"python eval_ricord1a_timm-regnetx_002_RandomGamma.py",
"python eval_ricord1a_timm-regnetx_002_RandomSnow.py",
"python eval_ricord1a_timm-regnetx_002_Rotate.py",
"python eval_ricord1a_timm-regnetx_002_Sharpen.py",
"python eval_ricord1a_timm-regnetx_002_ShiftScaleRotate.py"]
for l in ls:
#print(l)
os.system(l)
| 54.504505
| 72
| 0.873884
| 852
| 6,050
| 5.712441
| 0.046948
| 0.215739
| 0.302034
| 0.112184
| 0.99322
| 0.989521
| 0.985001
| 0
| 0
| 0
| 0
| 0.072153
| 0.037851
| 6,050
| 111
| 73
| 54.504505
| 0.763958
| 0.001322
| 0
| 0
| 0
| 0
| 0.921715
| 0.800066
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.009259
| 0
| 0.009259
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 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
|
87f7837c86e0f205df1933577c33bc709e65201b
| 6,970
|
py
|
Python
|
tt/ksl/ksl.py
|
rborrelli/ttpy
|
d3923692495d2e03d3667354e29882935820fa94
|
[
"MIT"
] | null | null | null |
tt/ksl/ksl.py
|
rborrelli/ttpy
|
d3923692495d2e03d3667354e29882935820fa94
|
[
"MIT"
] | null | null | null |
tt/ksl/ksl.py
|
rborrelli/ttpy
|
d3923692495d2e03d3667354e29882935820fa94
|
[
"MIT"
] | null | null | null |
""" Dynamical TT-approximation """
from __future__ import print_function, absolute_import, division
import numpy as np
from . import dyn_tt
import tt
def ksl(A, y0, tau, verb=1, scheme='symm', space=8, rmax=2000, use_normest=1):
""" Dynamical tensor-train approximation based on projector splitting
This function performs one step of dynamical tensor-train approximation
for the equation
.. math ::
\\frac{dy}{dt} = A y, \\quad y(0) = y_0
and outputs approximation for :math:`y(\\tau)`
:References:
1. Christian Lubich, Ivan Oseledets, and Bart Vandereycken.
Time integration of tensor trains. arXiv preprint 1407.2042, 2014.
http://arxiv.org/abs/1407.2042
2. Christian Lubich and Ivan V. Oseledets. A projector-splitting integrator
for dynamical low-rank approximation. BIT, 54(1):171-188, 2014.
http://dx.doi.org/10.1007/s10543-013-0454-0
:param A: Matrix in the TT-format
:type A: matrix
:param y0: Initial condition in the TT-format,
:type y0: tensor
:param tau: Timestep
:type tau: float
:param scheme: The integration scheme, possible values: 'symm' -- second order, 'first' -- first order
:type scheme: str
:param space: Maximal dimension of the Krylov space for the local EXPOKIT solver.
:type space: int
:param use_normest: Use matrix norm estimation instead of the true 1-norm in KSL procedure. 0 -use true norm, 1 - Higham norm estimator, 2 - fixed norm=1.0 (for testing purposes only)
:type use_normest: int, default: 1
:rtype: tensor
:Example:
>>> import tt
>>> import tt.ksl
>>> import numpy as np
>>> d = 8
>>> a = tt.qlaplace_dd([d, d, d])
>>> y0, ev = tt.eigb.eigb(a, tt.rand(2 , 24, 2), 1e-6, verb=0)
Solving a block eigenvalue problem
Looking for 1 eigenvalues with accuracy 1E-06
swp: 1 er = 1.1408 rmax:2
swp: 2 er = 190.01 rmax:2
swp: 3 er = 2.72582E-08 rmax:2
Total number of matvecs: 0
>>> y1 = tt.ksl.ksl(a, y0, 1e-2)
Solving a real-valued dynamical problem with tau=1E-02
>>> print tt.dot(y1, y0) / (y1.norm() * y0.norm()) - 1 #Eigenvectors should not change
0.0
"""
# Commented by Raffaele Borrelli
# This causes problems when the intial state has a zero imaginary part.
# y0 = y0.round(1e-14) # This will fix ranks
# to be no more than maximal reasonable.
# Fortran part doesn't handle excessive ranks
ry = y0.r.copy()
if scheme is 'symm':
tp = 2
else:
tp = 1
usenrm = int(use_normest)
# Check for dtype
y = tt.vector()
if np.iscomplex(A.tt.core).any() or np.iscomplex(y0.core).any():
dyn_tt.dyn_tt.ztt_ksl(
y0.d,
A.n,
A.m,
A.tt.r,
A.tt.core + 0j,
y0.core + 0j,
ry,
tau,
rmax,
0,
10,
verb,
tp,
space,
usenrm
)
y.core = dyn_tt.dyn_tt.zresult_core.copy()
else:
A.tt.core = np.real(A.tt.core)
y0.core = np.real(y0.core)
dyn_tt.dyn_tt.tt_ksl(
y0.d,
A.n,
A.m,
A.tt.r,
A.tt.core,
y0.core,
ry,
tau,
rmax,
0,
10,
verb,
tp,
space,
usenrm
)
y.core = dyn_tt.dyn_tt.dresult_core.copy()
dyn_tt.dyn_tt.deallocate_result()
y.d = y0.d
y.n = A.n.copy()
y.r = ry
y.get_ps()
return y
def diag_ksl(A, y0, tau, verb=1, scheme='symm', space=8, rmax=2000):
""" Dynamical tensor-train approximation based on projector splitting
This function performs one step of dynamical tensor-train approximation with diagonal matrix, i.e. it solves the equation
for the equation
.. math ::
\\frac{dy}{dt} = V y, \\quad y(0) = y_0
and outputs approximation for :math:`y(\\tau)`
:References:
1. Christian Lubich, Ivan Oseledets, and Bart Vandereycken.
Time integration of tensor trains. arXiv preprint 1407.2042, 2014.
http://arxiv.org/abs/1407.2042
2. Christian Lubich and Ivan V. Oseledets. A projector-splitting integrator
for dynamical low-rank approximation. BIT, 54(1):171-188, 2014.
http://dx.doi.org/10.1007/s10543-013-0454-0
:param A: Matrix in the TT-format
:type A: matrix
:param y0: Initial condition in the TT-format,
:type y0: tensor
:param tau: Timestep
:type tau: float
:param scheme: The integration scheme, possible values: 'symm' -- second order, 'first' -- first order
:type scheme: str
:param space: Maximal dimension of the Krylov space for the local EXPOKIT solver.
:type space: int
:rtype: tensor
:Example:
>>> import tt
>>> import tt.ksl
>>> import numpy as np
>>> d = 8
>>> a = tt.qlaplace_dd([d, d, d])
>>> y0, ev = tt.eigb.eigb(a, tt.rand(2 , 24, 2), 1e-6, verb=0)
Solving a block eigenvalue problem
Looking for 1 eigenvalues with accuracy 1E-06
swp: 1 er = 1.1408 rmax:2
swp: 2 er = 190.01 rmax:2
swp: 3 er = 2.72582E-08 rmax:2
Total number of matvecs: 0
>>> y1 = tt.ksl.ksl(a, y0, 1e-2)
Solving a real-valued dynamical problem with tau=1E-02
>>> print tt.dot(y1, y0) / (y1.norm() * y0.norm()) - 1 #Eigenvectors should not change
0.0
"""
y0 = y0.round(1e-14) # This will fix ranks
# to be no more than maximal reasonable.
# Fortran part doesn't handle excessive ranks
ry = y0.r.copy()
if scheme is 'symm':
tp = 2
else:
tp = 1
# Check for dtype
y = tt.vector()
if np.iscomplex(A.core).any() or np.iscomplex(y0.core).any():
dyn_tt.dyn_diag_tt.ztt_diag_ksl(
y0.d,
A.n,
A.r,
A.core + 0j,
y0.core + 0j,
ry,
tau,
rmax,
0,
10,
verb,
tp,
space)
y.core = dyn_tt.dyn_diag_tt.zresult_core.copy()
else:
A.core = np.real(A.core)
y0.core = np.real(y0.core)
dyn_tt.dyn_diag_tt.dtt_diag_ksl(
y0.d,
A.n,
A.r,
A.core,
y0.core,
ry,
tau,
rmax,
0,
10,
verb,
tp,
space)
y.core = dyn_tt.dyn_diag_tt.dresult_core.copy()
dyn_tt.dyn_diag_tt.deallocate_result()
y.d = y0.d
y.n = A.n.copy()
y.r = ry
y.get_ps()
return y
| 29.786325
| 187
| 0.541463
| 985
| 6,970
| 3.775635
| 0.225381
| 0.021511
| 0.021511
| 0.01936
| 0.870933
| 0.8669
| 0.854531
| 0.82818
| 0.82818
| 0.82818
| 0
| 0.064046
| 0.350359
| 6,970
| 233
| 188
| 29.914163
| 0.757288
| 0.571449
| 0
| 0.735849
| 0
| 0
| 0.006121
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.018868
| false
| 0
| 0.037736
| 0
| 0.075472
| 0.009434
| 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
|
355ab41d7bb83c37ca752069908e9b177ffbd187
| 22,925
|
py
|
Python
|
tests/crypto_tests.py
|
webclinic017/polygon
|
bddbb6ab7a250d3a40f88c8973484c399b72d7d5
|
[
"MIT"
] | null | null | null |
tests/crypto_tests.py
|
webclinic017/polygon
|
bddbb6ab7a250d3a40f88c8973484c399b72d7d5
|
[
"MIT"
] | null | null | null |
tests/crypto_tests.py
|
webclinic017/polygon
|
bddbb6ab7a250d3a40f88c8973484c399b72d7d5
|
[
"MIT"
] | null | null | null |
# ========================================================= #
import unittest
import polygon
from polygon import cred
import datetime
from requests.models import Response
import asyncio
from httpx import Response as HttpxResponse
# ========================================================= #
# Test Runners
cred.KEY = cred.CK
# ========================================================= #
# Helper Function for testing asyncio components
def async_test(coro):
def wrapper(*args, **kwargs):
loop = asyncio.new_event_loop()
try:
return loop.run_until_complete(coro(*args, **kwargs))
finally:
loop.close()
return wrapper
# ========================================================= #
class TestCryptoPrefix(unittest.TestCase):
def test_crypto_prefix(self):
func = polygon.crypto.crypto_api.ensure_prefix
data = func('X:BTCUSD')
data2 = func('btcUSD')
data3 = func('X:btcusd')
data4 = func('bTcUsd')
data5 = func('X:BtcUSD')
self.assertEqual(data, 'X:BTCUSD')
self.assertEqual(data2, 'X:BTCUSD')
self.assertEqual(data3, 'X:BTCUSD')
self.assertEqual(data4, 'X:BTCUSD')
self.assertEqual(data5, 'X:BTCUSD')
# ========================================================= #
class TestCrypto(unittest.TestCase):
def test_get_historic_crypto_trades(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_historic_trades('BTC', 'USD', '2021-10-15', limit=5)
data2 = client.get_historic_trades('BTC', 'USD', datetime.date(2021, 10, 15), limit=5,
raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'success')
self.assertEqual(data2.json()['status'], 'success')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_historic_trades('BTC', 'USD', '2021-10-15', limit=5)
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'success')
def test_get_trades(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_trades('X:BTC-USD', limit=5)
data2 = client.get_trades('X:BTC-USD', datetime.date(2021, 10, 15), limit=5, raw_response=True)
data3 = client.get_trades('X:BTC-USD', limit=5, all_pages=True, max_pages=2)
data4 = client.get_trades('X:BTC-USD', limit=5, all_pages=True, max_pages=2, merge_all_pages=False)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data3, list)
self.assertIsInstance(data4, list)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
self.assertEqual(len(data3), 10)
self.assertEqual(len(data4), 2)
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_trades('BTC-USD')
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
def test_get_last_trade(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_last_trade('BTC', 'USD')
data2 = client.get_last_trade('BTC', 'USD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'success')
self.assertEqual(data2.json()['status'], 'success')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_last_trade('BTC', 'USD')
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'success')
def test_get_daily_open_close(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_daily_open_close('BTC', 'USD', '2021-10-15')
data2 = client.get_daily_open_close('BTC', 'USD', date=datetime.date(2021, 10, 15), raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_daily_open_close('BTC', 'USD', '2021-10-15')
client.close()
self.assertIsInstance(data, dict)
def test_get_aggregate_bars(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1), limit=30)
data2 = client.get_aggregate_bars('X:BTCUSD', datetime.date(2021, 9, 10), '2021-10-01',
limit=30, raw_response=True)
data4 = client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1), full_range=True,
run_parallel=False, high_volatility=True)
data3 = client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1), full_range=True,
run_parallel=True, high_volatility=True)
data5 = client.get_aggregate_bars('X:BTCUSD', '2021-06-10', datetime.date(2021, 10, 1),
full_range=True, run_parallel=False, timespan='min',
high_volatility=True)
data6 = client.get_aggregate_bars('X:BTCUSD', '2021-06-10', datetime.date(2021, 10, 1),
full_range=True, run_parallel=True, timespan='minute',
high_volatility=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertIsInstance(data3, list)
self.assertIsInstance(data4, list)
self.assertIsInstance(data5, list)
self.assertIsInstance(data6, list)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
self.assertEqual(len(data3), len(data4))
self.assertEqual(len(data5), 164159)
self.assertEqual(len(data6), 164160)
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1), limit=30)
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
def test_get_grouped_daily_bars(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_grouped_daily_bars('2021-10-15')
data2 = client.get_grouped_daily_bars(datetime.datetime(2021, 10, 15), raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_grouped_daily_bars('2021-10-15')
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
def test_get_previous_close(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_previous_close('X:BTCUSD')
data2 = client.get_previous_close('X:BTCUSD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_previous_close('X:BTCUSD')
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
def test_get_snapshot_all(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_snapshot_all(['X:BTCUSD'])
data2 = client.get_snapshot_all(['X:BTCUSD'], raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_snapshot_all(['X:BTCUSD'])
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
def test_get_snapshot(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_snapshot('X:BTCUSD')
data2 = client.get_snapshot('X:BTCUSD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_snapshot('X:BTCUSD')
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
def test_get_gainers_and_losers(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_gainers_and_losers('gainers')
data2 = client.get_gainers_and_losers('losers', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_gainers_and_losers('gainers')
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
def test_get_level2_book(self):
with polygon.CryptoClient(cred.KEY) as client:
data = client.get_level2_book('X:BTCUSD')
data2 = client.get_level2_book('X:BTCUSD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, Response)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY)
data = client.get_level2_book('X:BTCUSD')
client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
# ASYNC tests
@async_test
async def test_async_get_historic_crypto_trades(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_historic_trades('BTC', 'USD', '2021-10-15', limit=5)
data2 = await client.get_historic_trades('BTC', 'USD', datetime.date(2021, 10, 15), limit=5,
raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'success')
self.assertEqual(data2.json()['status'], 'success')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_historic_trades('BTC', 'USD', '2021-10-15', limit=5)
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'success')
@async_test
async def test_async_get_trades(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_trades('X:BTC-USD', limit=5)
data2 = await client.get_trades('X:BTC-USD', datetime.date(2021, 10, 15), limit=5, raw_response=True)
data3 = await client.get_trades('X:BTC-USD', limit=5, all_pages=True, max_pages=2)
data4 = await client.get_trades('X:BTC-USD', limit=5, all_pages=True, max_pages=2, merge_all_pages=False)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data3, list)
self.assertIsInstance(data4, list)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# print(data4[0]['count'], data4[1]['count'])
print(len(data4[0]['results']), '\n', len(data4[1]['results']))
self.assertEqual(len(data3), 10)
self.assertEqual(len(data4), 2)
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_trades('BTC-USD')
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
@async_test
async def test_async_get_last_trade(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_last_trade('BTC', 'USD')
data2 = await client.get_last_trade('BTC', 'USD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'success')
self.assertEqual(data2.json()['status'], 'success')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_last_trade('BTC', 'USD')
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'success')
@async_test
async def test_async_get_daily_open_close(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_daily_open_close('BTC', 'USD', '2021-10-15')
data2 = await client.get_daily_open_close('BTC', 'USD', date=datetime.date(2021, 10, 15),
raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_daily_open_close('BTC', 'USD', '2021-10-15')
await client.close()
self.assertIsInstance(data, dict)
@async_test
async def test_async_get_aggregate_bars(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1), limit=30)
data2 = await client.get_aggregate_bars('X:BTCUSD', datetime.date(2021, 9, 10), '2021-10-01',
limit=30, raw_response=True)
data4 = await client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1),
full_range=True, run_parallel=False, high_volatility=True)
data3 = await client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1),
full_range=True, run_parallel=True, high_volatility=True)
data5 = await client.get_aggregate_bars('X:BTCUSD', '2021-06-10', datetime.date(2021, 10, 1),
full_range=True, run_parallel=False, timespan='min',
high_volatility=True)
data6 = await client.get_aggregate_bars('X:BTCUSD', '2021-06-10', datetime.date(2021, 10, 1),
full_range=True, run_parallel=True, timespan='minute',
high_volatility=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertIsInstance(data3, list)
self.assertIsInstance(data4, list)
self.assertIsInstance(data5, list)
self.assertIsInstance(data6, list)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
self.assertEqual(len(data3), len(data4))
self.assertEqual(len(data5), 164159)
self.assertEqual(len(data6), 164160)
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_aggregate_bars('X:BTCUSD', '2021-09-10', datetime.date(2021, 10, 1), limit=30)
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
@async_test
async def test_async_get_grouped_daily_bars(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_grouped_daily_bars('2021-10-15')
data2 = await client.get_grouped_daily_bars(datetime.datetime(2021, 10, 15), raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_grouped_daily_bars('2021-10-15')
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
@async_test
async def test_async_get_previous_close(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_previous_close('X:BTCUSD')
data2 = await client.get_previous_close('X:BTCUSD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_previous_close('X:BTCUSD')
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
@async_test
async def test_async_get_snapshot_all(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_snapshot_all(['X:BTCUSD'])
data2 = await client.get_snapshot_all(['X:BTCUSD'], raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_snapshot_all(['X:BTCUSD'])
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
@async_test
async def test_async_get_snapshot(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_snapshot('X:BTCUSD')
data2 = await client.get_snapshot('X:BTCUSD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_snapshot('X:BTCUSD')
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
@async_test
async def test_async__get_gainers_and_losers(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_gainers_and_losers('gainers')
data2 = await client.get_gainers_and_losers('losers', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_gainers_and_losers('gainers')
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
@async_test
async def test_async__get_level2_book(self):
async with polygon.CryptoClient(cred.KEY, True) as client:
data = await client.get_level2_book('X:BTCUSD')
data2 = await client.get_level2_book('X:BTCUSD', raw_response=True)
self.assertIsInstance(data, dict)
self.assertIsInstance(data2, HttpxResponse)
self.assertIsInstance(data2.json(), dict)
self.assertEqual(data['status'], 'OK')
self.assertEqual(data2.json()['status'], 'OK')
# without context manager
client = polygon.CryptoClient(cred.KEY, True)
data = await client.get_level2_book('X:BTCUSD')
await client.close()
self.assertIsInstance(data, dict)
self.assertEqual(data['status'], 'OK')
# ========================================================= #
if __name__ == '__main__':
unittest.main()
# ========================================================= #
| 42.770522
| 117
| 0.600218
| 2,526
| 22,925
| 5.317894
| 0.051465
| 0.148887
| 0.075337
| 0.085163
| 0.935383
| 0.926673
| 0.925408
| 0.902479
| 0.891461
| 0.880667
| 0
| 0.034014
| 0.26133
| 22,925
| 535
| 118
| 42.850467
| 0.759242
| 0.04602
| 0
| 0.755668
| 0
| 0
| 0.066703
| 0
| 0
| 0
| 0
| 0
| 0.440806
| 1
| 0.035264
| false
| 0
| 0.017632
| 0
| 0.062972
| 0.002519
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
357affd4415b3cf4b19d869383756fa295a84f1b
| 29,737
|
py
|
Python
|
line4py/service/SecondaryQrCodeLoginPermitService/SecondaryQrCodeLoginPermitService.py
|
mopeneko/line4py
|
2e35e2dcf1e03720644639520a598244ff0932a8
|
[
"MIT"
] | 23
|
2020-06-02T03:28:20.000Z
|
2022-03-05T12:40:23.000Z
|
line4py/service/SecondaryQrCodeLoginPermitService/SecondaryQrCodeLoginPermitService.py
|
mopeneko/line4py
|
2e35e2dcf1e03720644639520a598244ff0932a8
|
[
"MIT"
] | null | null | null |
line4py/service/SecondaryQrCodeLoginPermitService/SecondaryQrCodeLoginPermitService.py
|
mopeneko/line4py
|
2e35e2dcf1e03720644639520a598244ff0932a8
|
[
"MIT"
] | 6
|
2020-06-02T04:42:10.000Z
|
2020-12-24T10:04:29.000Z
|
#
# Autogenerated by Thrift Compiler (0.13.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
import sys
import logging
from .ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
all_structs = []
class Iface(object):
def verifyQrCode(self, request):
"""
Parameters:
- request
"""
pass
def cancelPinCode(self, request):
"""
Parameters:
- request
"""
pass
def verifyPinCode(self, request):
"""
Parameters:
- request
"""
pass
def getLoginActorContext(self, request):
"""
Parameters:
- request
"""
pass
class Client(Iface):
def __init__(self, iprot, oprot=None):
self._iprot = self._oprot = iprot
if oprot is not None:
self._oprot = oprot
self._seqid = 0
def verifyQrCode(self, request):
"""
Parameters:
- request
"""
self.send_verifyQrCode(request)
return self.recv_verifyQrCode()
def send_verifyQrCode(self, request):
self._oprot.writeMessageBegin('verifyQrCode', TMessageType.CALL, self._seqid)
args = verifyQrCode_args()
args.request = request
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_verifyQrCode(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = verifyQrCode_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.e is not None:
raise result.e
raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyQrCode failed: unknown result")
def cancelPinCode(self, request):
"""
Parameters:
- request
"""
self.send_cancelPinCode(request)
return self.recv_cancelPinCode()
def send_cancelPinCode(self, request):
self._oprot.writeMessageBegin('cancelPinCode', TMessageType.CALL, self._seqid)
args = cancelPinCode_args()
args.request = request
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_cancelPinCode(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = cancelPinCode_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.e is not None:
raise result.e
raise TApplicationException(TApplicationException.MISSING_RESULT, "cancelPinCode failed: unknown result")
def verifyPinCode(self, request):
"""
Parameters:
- request
"""
self.send_verifyPinCode(request)
return self.recv_verifyPinCode()
def send_verifyPinCode(self, request):
self._oprot.writeMessageBegin('verifyPinCode', TMessageType.CALL, self._seqid)
args = verifyPinCode_args()
args.request = request
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_verifyPinCode(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = verifyPinCode_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.e is not None:
raise result.e
raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyPinCode failed: unknown result")
def getLoginActorContext(self, request):
"""
Parameters:
- request
"""
self.send_getLoginActorContext(request)
return self.recv_getLoginActorContext()
def send_getLoginActorContext(self, request):
self._oprot.writeMessageBegin('getLoginActorContext', TMessageType.CALL, self._seqid)
args = getLoginActorContext_args()
args.request = request
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_getLoginActorContext(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = getLoginActorContext_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.e is not None:
raise result.e
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLoginActorContext failed: unknown result")
class Processor(Iface, TProcessor):
def __init__(self, handler):
self._handler = handler
self._processMap = {}
self._processMap["verifyQrCode"] = Processor.process_verifyQrCode
self._processMap["cancelPinCode"] = Processor.process_cancelPinCode
self._processMap["verifyPinCode"] = Processor.process_verifyPinCode
self._processMap["getLoginActorContext"] = Processor.process_getLoginActorContext
self._on_message_begin = None
def on_message_begin(self, func):
self._on_message_begin = func
def process(self, iprot, oprot):
(name, type, seqid) = iprot.readMessageBegin()
if self._on_message_begin:
self._on_message_begin(name, type, seqid)
if name not in self._processMap:
iprot.skip(TType.STRUCT)
iprot.readMessageEnd()
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
x.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
return
else:
self._processMap[name](self, seqid, iprot, oprot)
return True
def process_verifyQrCode(self, seqid, iprot, oprot):
args = verifyQrCode_args()
args.read(iprot)
iprot.readMessageEnd()
result = verifyQrCode_result()
try:
result.success = self._handler.verifyQrCode(args.request)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException as e:
msg_type = TMessageType.REPLY
result.e = e
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("verifyQrCode", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_cancelPinCode(self, seqid, iprot, oprot):
args = cancelPinCode_args()
args.read(iprot)
iprot.readMessageEnd()
result = cancelPinCode_result()
try:
result.success = self._handler.cancelPinCode(args.request)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException as e:
msg_type = TMessageType.REPLY
result.e = e
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("cancelPinCode", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_verifyPinCode(self, seqid, iprot, oprot):
args = verifyPinCode_args()
args.read(iprot)
iprot.readMessageEnd()
result = verifyPinCode_result()
try:
result.success = self._handler.verifyPinCode(args.request)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException as e:
msg_type = TMessageType.REPLY
result.e = e
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("verifyPinCode", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_getLoginActorContext(self, seqid, iprot, oprot):
args = getLoginActorContext_args()
args.read(iprot)
iprot.readMessageEnd()
result = getLoginActorContext_result()
try:
result.success = self._handler.getLoginActorContext(args.request)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException as e:
msg_type = TMessageType.REPLY
result.e = e
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("getLoginActorContext", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
# HELPER FUNCTIONS AND STRUCTURES
class verifyQrCode_args(object):
"""
Attributes:
- request
"""
def __init__(self, request=None,):
self.request = request
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.request = VerifyQrCodeRequest()
self.request.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('verifyQrCode_args')
if self.request is not None:
oprot.writeFieldBegin('request', TType.STRUCT, 1)
self.request.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(verifyQrCode_args)
verifyQrCode_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'request', [VerifyQrCodeRequest, None], None, ), # 1
)
class verifyQrCode_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None,):
self.success = success
self.e = e
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = VerifyQrCodeResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('verifyQrCode_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(verifyQrCode_result)
verifyQrCode_result.thrift_spec = (
(0, TType.STRUCT, 'success', [VerifyQrCodeResponse, None], None, ), # 0
(1, TType.STRUCT, 'e', [SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException, None], None, ), # 1
)
class cancelPinCode_args(object):
"""
Attributes:
- request
"""
def __init__(self, request=None,):
self.request = request
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.request = CancelPinCodeRequest()
self.request.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('cancelPinCode_args')
if self.request is not None:
oprot.writeFieldBegin('request', TType.STRUCT, 1)
self.request.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(cancelPinCode_args)
cancelPinCode_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'request', [CancelPinCodeRequest, None], None, ), # 1
)
class cancelPinCode_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None,):
self.success = success
self.e = e
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = CancelPinCodeResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('cancelPinCode_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(cancelPinCode_result)
cancelPinCode_result.thrift_spec = (
(0, TType.STRUCT, 'success', [CancelPinCodeResponse, None], None, ), # 0
(1, TType.STRUCT, 'e', [SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException, None], None, ), # 1
)
class verifyPinCode_args(object):
"""
Attributes:
- request
"""
def __init__(self, request=None,):
self.request = request
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.request = VerifyPinCodeRequest()
self.request.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('verifyPinCode_args')
if self.request is not None:
oprot.writeFieldBegin('request', TType.STRUCT, 1)
self.request.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(verifyPinCode_args)
verifyPinCode_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'request', [VerifyPinCodeRequest, None], None, ), # 1
)
class verifyPinCode_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None,):
self.success = success
self.e = e
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = VerifyPinCodeResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('verifyPinCode_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(verifyPinCode_result)
verifyPinCode_result.thrift_spec = (
(0, TType.STRUCT, 'success', [VerifyPinCodeResponse, None], None, ), # 0
(1, TType.STRUCT, 'e', [SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException, None], None, ), # 1
)
class getLoginActorContext_args(object):
"""
Attributes:
- request
"""
def __init__(self, request=None,):
self.request = request
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.request = GetLoginActorContextRequest()
self.request.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('getLoginActorContext_args')
if self.request is not None:
oprot.writeFieldBegin('request', TType.STRUCT, 1)
self.request.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(getLoginActorContext_args)
getLoginActorContext_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'request', [GetLoginActorContextRequest, None], None, ), # 1
)
class getLoginActorContext_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None,):
self.success = success
self.e = e
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = GetLoginActorContextResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('getLoginActorContext_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(getLoginActorContext_result)
getLoginActorContext_result.thrift_spec = (
(0, TType.STRUCT, 'success', [GetLoginActorContextResponse, None], None, ), # 0
(1, TType.STRUCT, 'e', [SecondaryQrCodeLoginService.ttypes.SecondaryQrCodeException, None], None, ), # 1
)
fix_spec(all_structs)
del all_structs
| 33.449944
| 134
| 0.600699
| 2,972
| 29,737
| 5.787012
| 0.055855
| 0.015408
| 0.027734
| 0.020931
| 0.837025
| 0.808303
| 0.776906
| 0.756381
| 0.756381
| 0.747543
| 0
| 0.002745
| 0.301712
| 29,737
| 888
| 135
| 33.487613
| 0.825524
| 0.019471
| 0
| 0.807299
| 1
| 0
| 0.03634
| 0.001812
| 0
| 0
| 0
| 0
| 0
| 1
| 0.116788
| false
| 0.005839
| 0.011679
| 0.035036
| 0.229197
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
3585192a3e085d6b481fa5f8502c93d40c91fa84
| 20,400
|
py
|
Python
|
sdk/python/pulumi_azure/loganalytics/data_source_windows_event.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 109
|
2018-06-18T00:19:44.000Z
|
2022-02-20T05:32:57.000Z
|
sdk/python/pulumi_azure/loganalytics/data_source_windows_event.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 663
|
2018-06-18T21:08:46.000Z
|
2022-03-31T20:10:11.000Z
|
sdk/python/pulumi_azure/loganalytics/data_source_windows_event.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 41
|
2018-07-19T22:37:38.000Z
|
2022-03-14T10:56:26.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['DataSourceWindowsEventArgs', 'DataSourceWindowsEvent']
@pulumi.input_type
class DataSourceWindowsEventArgs:
def __init__(__self__, *,
event_log_name: pulumi.Input[str],
event_types: pulumi.Input[Sequence[pulumi.Input[str]]],
resource_group_name: pulumi.Input[str],
workspace_name: pulumi.Input[str],
name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a DataSourceWindowsEvent resource.
:param pulumi.Input[str] event_log_name: Specifies the name of the Windows Event Log to collect events from.
:param pulumi.Input[Sequence[pulumi.Input[str]]] event_types: Specifies an array of event types applied to the specified event log. Possible values include `error`, `warning` and `information`.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] workspace_name: The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] name: The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
pulumi.set(__self__, "event_log_name", event_log_name)
pulumi.set(__self__, "event_types", event_types)
pulumi.set(__self__, "resource_group_name", resource_group_name)
pulumi.set(__self__, "workspace_name", workspace_name)
if name is not None:
pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="eventLogName")
def event_log_name(self) -> pulumi.Input[str]:
"""
Specifies the name of the Windows Event Log to collect events from.
"""
return pulumi.get(self, "event_log_name")
@event_log_name.setter
def event_log_name(self, value: pulumi.Input[str]):
pulumi.set(self, "event_log_name", value)
@property
@pulumi.getter(name="eventTypes")
def event_types(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of event types applied to the specified event log. Possible values include `error`, `warning` and `information`.
"""
return pulumi.get(self, "event_types")
@event_types.setter
def event_types(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "event_types", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Input[str]:
"""
The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_group_name", value)
@property
@pulumi.getter(name="workspaceName")
def workspace_name(self) -> pulumi.Input[str]:
"""
The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "workspace_name")
@workspace_name.setter
def workspace_name(self, value: pulumi.Input[str]):
pulumi.set(self, "workspace_name", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@pulumi.input_type
class _DataSourceWindowsEventState:
def __init__(__self__, *,
event_log_name: Optional[pulumi.Input[str]] = None,
event_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
workspace_name: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering DataSourceWindowsEvent resources.
:param pulumi.Input[str] event_log_name: Specifies the name of the Windows Event Log to collect events from.
:param pulumi.Input[Sequence[pulumi.Input[str]]] event_types: Specifies an array of event types applied to the specified event log. Possible values include `error`, `warning` and `information`.
:param pulumi.Input[str] name: The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] workspace_name: The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
if event_log_name is not None:
pulumi.set(__self__, "event_log_name", event_log_name)
if event_types is not None:
pulumi.set(__self__, "event_types", event_types)
if name is not None:
pulumi.set(__self__, "name", name)
if resource_group_name is not None:
pulumi.set(__self__, "resource_group_name", resource_group_name)
if workspace_name is not None:
pulumi.set(__self__, "workspace_name", workspace_name)
@property
@pulumi.getter(name="eventLogName")
def event_log_name(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the name of the Windows Event Log to collect events from.
"""
return pulumi.get(self, "event_log_name")
@event_log_name.setter
def event_log_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "event_log_name", value)
@property
@pulumi.getter(name="eventTypes")
def event_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies an array of event types applied to the specified event log. Possible values include `error`, `warning` and `information`.
"""
return pulumi.get(self, "event_types")
@event_types.setter
def event_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "event_types", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_group_name", value)
@property
@pulumi.getter(name="workspaceName")
def workspace_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "workspace_name")
@workspace_name.setter
def workspace_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "workspace_name", value)
class DataSourceWindowsEvent(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
event_log_name: Optional[pulumi.Input[str]] = None,
event_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
workspace_name: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Manages a Log Analytics Windows Event DataSource.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="PerGB2018")
example_data_source_windows_event = azure.loganalytics.DataSourceWindowsEvent("exampleDataSourceWindowsEvent",
resource_group_name=example_resource_group.name,
workspace_name=example_analytics_workspace.name,
event_log_name="Application",
event_types=["error"])
```
## Import
Log Analytics Windows Event DataSources can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:loganalytics/dataSourceWindowsEvent:DataSourceWindowsEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/datasources/datasource1
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] event_log_name: Specifies the name of the Windows Event Log to collect events from.
:param pulumi.Input[Sequence[pulumi.Input[str]]] event_types: Specifies an array of event types applied to the specified event log. Possible values include `error`, `warning` and `information`.
:param pulumi.Input[str] name: The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] workspace_name: The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: DataSourceWindowsEventArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages a Log Analytics Windows Event DataSource.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="PerGB2018")
example_data_source_windows_event = azure.loganalytics.DataSourceWindowsEvent("exampleDataSourceWindowsEvent",
resource_group_name=example_resource_group.name,
workspace_name=example_analytics_workspace.name,
event_log_name="Application",
event_types=["error"])
```
## Import
Log Analytics Windows Event DataSources can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:loganalytics/dataSourceWindowsEvent:DataSourceWindowsEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/datasources/datasource1
```
:param str resource_name: The name of the resource.
:param DataSourceWindowsEventArgs 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(DataSourceWindowsEventArgs, 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,
event_log_name: Optional[pulumi.Input[str]] = None,
event_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
workspace_name: Optional[pulumi.Input[str]] = 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__ = DataSourceWindowsEventArgs.__new__(DataSourceWindowsEventArgs)
if event_log_name is None and not opts.urn:
raise TypeError("Missing required property 'event_log_name'")
__props__.__dict__["event_log_name"] = event_log_name
if event_types is None and not opts.urn:
raise TypeError("Missing required property 'event_types'")
__props__.__dict__["event_types"] = event_types
__props__.__dict__["name"] = name
if resource_group_name is None and not opts.urn:
raise TypeError("Missing required property 'resource_group_name'")
__props__.__dict__["resource_group_name"] = resource_group_name
if workspace_name is None and not opts.urn:
raise TypeError("Missing required property 'workspace_name'")
__props__.__dict__["workspace_name"] = workspace_name
super(DataSourceWindowsEvent, __self__).__init__(
'azure:loganalytics/dataSourceWindowsEvent:DataSourceWindowsEvent',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
event_log_name: Optional[pulumi.Input[str]] = None,
event_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
workspace_name: Optional[pulumi.Input[str]] = None) -> 'DataSourceWindowsEvent':
"""
Get an existing DataSourceWindowsEvent resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] event_log_name: Specifies the name of the Windows Event Log to collect events from.
:param pulumi.Input[Sequence[pulumi.Input[str]]] event_types: Specifies an array of event types applied to the specified event log. Possible values include `error`, `warning` and `information`.
:param pulumi.Input[str] name: The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
:param pulumi.Input[str] workspace_name: The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _DataSourceWindowsEventState.__new__(_DataSourceWindowsEventState)
__props__.__dict__["event_log_name"] = event_log_name
__props__.__dict__["event_types"] = event_types
__props__.__dict__["name"] = name
__props__.__dict__["resource_group_name"] = resource_group_name
__props__.__dict__["workspace_name"] = workspace_name
return DataSourceWindowsEvent(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="eventLogName")
def event_log_name(self) -> pulumi.Output[str]:
"""
Specifies the name of the Windows Event Log to collect events from.
"""
return pulumi.get(self, "event_log_name")
@property
@pulumi.getter(name="eventTypes")
def event_types(self) -> pulumi.Output[Sequence[str]]:
"""
Specifies an array of event types applied to the specified event log. Possible values include `error`, `warning` and `information`.
"""
return pulumi.get(self, "event_types")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Output[str]:
"""
The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "resource_group_name")
@property
@pulumi.getter(name="workspaceName")
def workspace_name(self) -> pulumi.Output[str]:
"""
The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
"""
return pulumi.get(self, "workspace_name")
| 52.040816
| 257
| 0.689265
| 2,458
| 20,400
| 5.514239
| 0.078112
| 0.066549
| 0.069205
| 0.081452
| 0.866681
| 0.849786
| 0.838572
| 0.809134
| 0.802272
| 0.784861
| 0
| 0.005007
| 0.22652
| 20,400
| 391
| 258
| 52.173913
| 0.853983
| 0.446373
| 0
| 0.616505
| 1
| 0
| 0.114322
| 0.015081
| 0
| 0
| 0
| 0
| 0
| 1
| 0.15534
| false
| 0.004854
| 0.024272
| 0
| 0.271845
| 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
|
35947754fad3a1f43da0ac15d2e3b8f0ef642eb3
| 7,973
|
py
|
Python
|
pvlib_python/test/test_pvl_tools.py
|
cwhanse/PVLIB_Python
|
4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d
|
[
"BSD-3-Clause"
] | 4
|
2017-08-31T21:09:14.000Z
|
2020-09-09T18:47:32.000Z
|
pvlib_python/test/test_pvl_tools.py
|
cwhanse/PVLIB_Python
|
4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d
|
[
"BSD-3-Clause"
] | null | null | null |
pvlib_python/test/test_pvl_tools.py
|
cwhanse/PVLIB_Python
|
4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d
|
[
"BSD-3-Clause"
] | 1
|
2020-09-09T18:47:40.000Z
|
2020-09-09T18:47:40.000Z
|
from .. import pvl_tools
from nose.tools import *
import numpy as np
import pandas as pd
#Baseline functioning test
def test_inputs_pvl():
kwargs={'AMRelative': np.array([4,5]),
'Pressure': np.array([5,8]),
'setting': 'yes'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', '>0'),
'setting': ('setup', ('yes', 'no')),
}
var=pvl_tools.Parse(kwargs,Expect)
@raises(Exception)
def test_inputs_pvl_sting_in_numeric():
kwargs={'AMRelative': np.array([4,5]),
'Pressure': np.array([5,'goat']),
'setting': 'yes'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', '>0'),
'setting': ('setup', ('yes', 'no')),
}
var=pvl_tools.Parse(kwargs,Expect)
#assert(Exception=='Error: Non-numeric value in numeric input field: Pressure')
#Baseline functioning test
def test_inputs_pvl_not_An_array():
kwargs={'AMRelative': np.array([5]),
'Pressure': np.array([5,8]),
'setting': 'yes'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', '>0'),
'setting': ('str', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
assert isinstance(kwargs.AMRelative,np.ndarray)
@raises(Exception)
def test_inputs_pvl_sting_in_list():
kwargs={'AMRelative': 5,
'Pressure': np.array([5,8]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', '>0'),
'setting': ('str', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
def test_inputs_pvl_open_string():
kwargs={'AMRelative': 5,
'Pressure': np.array([5,8]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', 'x>0'),
'setting': ('open', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
@raises(Exception)
def test_inputs_pvl_fail_logical():
kwargs={'AMRelative': 5,
'Pressure': np.array([-5,8]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', 'x>0'),
'setting': ('open', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
@raises(Exception)
def test_inputs_pvl_fail_logical_multiple():
kwargs={'AMRelative': 5,
'Pressure': np.array([5,20]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', 'x>0','x<10'),
'setting': ('open', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
@raises(Exception)
def test_inputs_pvl_fail_logical_multiple():
kwargs={'AMRelative': 5,
'Pressure': np.array([-5,20]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', 'x>0','x<20'),
'setting': ('open', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
@raises(Exception)
def test_inputs_pvl_fail_syntac():
kwargs={'AMRelative': 5,
'Pressure': np.array([5,20]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', 'x>0','x-<20'),
'setting': ('open', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
@raises(Exception)
def test_inputs_pvl_fail_check_vunerability():
kwargs={'AMRelative': 5,
'Pressure': np.array([5,20]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', 'x>0',"__import__('os')"),
'setting': ('open', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
@raises(Exception)
def test_wrong_inputs():
kwargs={'IAMWRONG': 5,
'Pressure': np.array([5,20]),
'setting': 'start'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', 'x>0'),
'setting': ('open', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
#Test for pandas dataframes
def test_dataframe_input():
df = pd.DataFrame(np.random.randn(100,3),columns=['A','B','C'],index=pd.date_range('20130101',periods=100,freq='H'))
kwargs={'AMRelative' : df.A,
'Pressure': df.B,
'setting': 'yes'}
Expect={'AMRelative': ('num'),
'Pressure': ('num'),
'setting': ('str', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
def test_defaultvalues():
kwargs={'Pressure': np.array([5,8]),
'setting': 'yes'
}
Expect={'AMRelative': ('num','default','default=100'),
'Pressure': ('num', '>0'),
'setting': ('setup', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
assert(kwargs.AMRelative==100)
def test_defaultvalues_actualprovided():
kwargs={'AMRelative': 5,
'Pressure': np.array([5,8]),
'setting': 'yes'
}
Expect={'AMRelative': ('num','default','default=100'),
'Pressure': ('num', '>0'),
'setting': ('setup', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
assert(kwargs.AMRelative==5)
def test_defaultvalues_string():
kwargs={'Pressure': np.array([5,8]),
'setting': 'yes'
}
Expect={'AMRelative': ('num','default','default=house'),
'Pressure': ('num', '>0'),
'setting': ('setup', ('yes', 'no')),
}
kwargs=pvl_tools.Parse(kwargs,Expect)
print kwargs.AMRelative
assert(kwargs.AMRelative=='house')
def test_pandas_df():
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4)+5,index=dates,columns=list('ABCD'))
kwargs={'DataFrame': df,
'meta':{'one':11,'two':22},
'other':2}
Expect={'DataFrame': ('df',('A','B','C')),
'meta': ('dict'),
'other': ('num','x>0'),
'A':('matelement','x>0'),
}
var=pvl_tools.Parse(kwargs,Expect)
assert(var.DataFrame>1)
def test_pandas_double_df():
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4)+5,index=dates,columns=list('ABCD'))
df2= pd.DataFrame(np.random.randn(6,4)+20,index=dates,columns=list('LFGE'))
kwargs={'DataFrame': df,
'module':df2,
'other':2}
Expect={'DataFrame': ('df',('A','B','C')),
'module': (''),
'other': ('num','x>0'),
'A':('matelement','x>0'),
}
var=pvl_tools.Parse(kwargs,Expect)
assert((var.module['L']>0).any())
@raises(Exception)
def test_pandas_df_wrong_inexuality():
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4)+5,index=dates,columns=list('ABCD'))
kwargs={'DataFrame': df,
'meta':{'one':11,'two':22},
'other':2}
Expect={'DataFrame': ('df',('A','B','C')),
'meta': ('dict'),
'other': ('num','x>0'),
'A':('matelement','x<0'),
}
var=pvl_tools.Parse(kwargs,Expect)
assert(var.DataFrame>1)
@raises(Exception)
def test_pandas_df_missing_df_element():
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4)+5,index=dates,columns=list('ABCD'))
kwargs={'DataFrame': df,
'meta':{'one':11,'two':22},
'other':2}
Expect={'DataFrame': ('df',('A','B','C')),
'meta': ('dict'),
'other': ('num','x>0'),
'A':('matelement','x>0'),
'G':('matelement')
}
var=pvl_tools.Parse(kwargs,Expect)
assert(var.DataFrame>1)
def test_optional_value():
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4)+5,index=dates,columns=list('ABCD'))
kwargs={'DataFrame': df,
'meta':{'one':11,'two':22},
'other':2}
Expect={'DataFrame': ('df',('A','B','C')),
'meta': ('dict'),
'other': ('num','x>0'),
'A':('matelement','x>0'),
'G':('optional')
}
var=pvl_tools.Parse(kwargs,Expect)
assert(1)
def test_optional_value_optional_provided():
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4)+5,index=dates,columns=list('ABCD'))
kwargs={'DataFrame': df,
'meta':{'one':11,'two':22},
'other':2,
'G':3}
Expect={'DataFrame': ('df',('A','B','C')),
'meta': ('dict'),
'other': ('num','x>0'),
'A':('matelement','x>0'),
'G':('optional')
}
var=pvl_tools.Parse(kwargs,Expect)
assert(1)
def test_optional_value_optional_provided_logical_constraint():
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4)+5,index=dates,columns=list('ABCD'))
kwargs={'DataFrame': df,
'meta':{'one':11,'two':22},
'other':2,
'G':3}
Expect={'DataFrame': ('df',('A','B','C')),
'meta': ('dict'),
'other': ('num','x>0'),
'A':('matelement','x>0'),
'G':('optional','x>0')
}
var=pvl_tools.Parse(kwargs,Expect)
assert(1)
def main():
unittest.main()
if __name__ == '__main__':
main()
| 24.838006
| 117
| 0.609056
| 1,065
| 7,973
| 4.44507
| 0.110798
| 0.038868
| 0.060414
| 0.088297
| 0.851922
| 0.843684
| 0.825518
| 0.793832
| 0.778834
| 0.765737
| 0
| 0.034148
| 0.1332
| 7,973
| 321
| 118
| 24.838006
| 0.650846
| 0.019942
| 0
| 0.66171
| 0
| 0
| 0.228937
| 0
| 0
| 0
| 0
| 0
| 0.040892
| 0
| null | null | 0
| 0.018587
| null | null | 0.003717
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
35e51a9fb0ea7fccc7243be4637d5041bcf28382
| 12,129
|
py
|
Python
|
tests/st/optimizer/test_dynamic_weight_decay_ascend.py
|
httpsgithu/mindspore
|
c29d6bb764e233b427319cb89ba79e420f1e2c64
|
[
"Apache-2.0"
] | 1
|
2022-02-23T09:13:43.000Z
|
2022-02-23T09:13:43.000Z
|
tests/st/optimizer/test_dynamic_weight_decay_ascend.py
|
949144093/mindspore
|
c29d6bb764e233b427319cb89ba79e420f1e2c64
|
[
"Apache-2.0"
] | null | null | null |
tests/st/optimizer/test_dynamic_weight_decay_ascend.py
|
949144093/mindspore
|
c29d6bb764e233b427319cb89ba79e420f1e2c64
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2022 Huawei Technologies Co., Ltd
#
# 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 mindspore.context as context
import mindspore.nn as nn
from .weight_decay_utils import dynamic_weight_decay_cmp, WeightDecaySchdule, Net
def test_momentum_dynamic_weight_decay_pynative():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Momentum
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.PYNATIVE_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
optimizer1 = nn.Momentum(net1.trainable_params(), momentum=0.001, learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.Momentum(net2.trainable_params(), momentum=0.001, learning_rate=0.001,
weight_decay=weight_decay_schedule)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_momentum_dynamic_weight_decay_graph():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Momentum
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
optimizer1 = nn.Momentum(net1.trainable_params(), momentum=0.001, learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.Momentum(net2.trainable_params(), momentum=0.001, learning_rate=0.001,
weight_decay=weight_decay_schedule)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_momentum_dynamic_weight_decay_graph_group():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Momentum
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
weight_decay_schedule = WeightDecaySchdule()
net1, net2 = Net(), Net()
net1_fc1_params = list(filter(lambda x: 'fc1' in x.name, net1.trainable_params()))
net1_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net1.trainable_params()))
net2_fc1_params = list(filter(lambda x: 'fc1' in x.name, net2.trainable_params()))
net2_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net2.trainable_params()))
params1 = [{'params': net1_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net1_fc2_params, 'weight_decay': 0.001, 'lr': 0.001}]
params2 = [{'params': net2_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net2_fc2_params, 'weight_decay': weight_decay_schedule, 'lr': 0.001}]
optimizer1 = nn.Momentum(params1, momentum=0.001, learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.Momentum(params2, momentum=0.001, learning_rate=0.001, weight_decay=0.001)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_adamweightdecay_dynamic_weight_decay_pynative():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for AdamWeightDecay
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.PYNATIVE_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
optimizer1 = nn.AdamWeightDecay(net1.trainable_params(), learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.AdamWeightDecay(net2.trainable_params(), learning_rate=0.001, weight_decay=weight_decay_schedule)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_adamweightdecay_dynamic_weight_decay_graph():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for AdamWeightDecay
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
optimizer1 = nn.AdamWeightDecay(net1.trainable_params(), learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.AdamWeightDecay(net2.trainable_params(), learning_rate=0.001, weight_decay=weight_decay_schedule)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_adamweightdecay_dynamic_weight_decay_graph_group():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Momentum
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
weight_decay_schedule = WeightDecaySchdule()
net1, net2 = Net(), Net()
net1_fc1_params = list(filter(lambda x: 'fc1' in x.name, net1.trainable_params()))
net1_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net1.trainable_params()))
net2_fc1_params = list(filter(lambda x: 'fc1' in x.name, net2.trainable_params()))
net2_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net2.trainable_params()))
params1 = [{'params': net1_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net1_fc2_params, 'weight_decay': 0.001, 'lr': 0.001}]
params2 = [{'params': net2_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net2_fc2_params, 'weight_decay': weight_decay_schedule, 'lr': 0.001}]
optimizer1 = nn.AdamWeightDecay(params1, learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.AdamWeightDecay(params2, learning_rate=0.001, weight_decay=0.001)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_lamb_dynamic_weight_decay_pynative():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Lamb
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.PYNATIVE_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
optimizer1 = nn.Lamb(net1.trainable_params(), learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.Lamb(net2.trainable_params(), learning_rate=0.001, weight_decay=weight_decay_schedule)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_lamb_dynamic_weight_decay_graph():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Lamb
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
optimizer1 = nn.Lamb(net1.trainable_params(), learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.Lamb(net2.trainable_params(), learning_rate=0.001, weight_decay=weight_decay_schedule)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_lamb_dynamic_weight_decay_graph_group():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Momentum
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
weight_decay_schedule = WeightDecaySchdule()
net1, net2 = Net(), Net()
net1_fc1_params = list(filter(lambda x: 'fc1' in x.name, net1.trainable_params()))
net1_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net1.trainable_params()))
net2_fc1_params = list(filter(lambda x: 'fc1' in x.name, net2.trainable_params()))
net2_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net2.trainable_params()))
params1 = [{'params': net1_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net1_fc2_params, 'weight_decay': 0.001, 'lr': 0.001}]
params2 = [{'params': net2_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net2_fc2_params, 'weight_decay': weight_decay_schedule, 'lr': 0.001}]
optimizer1 = nn.Lamb(params1, learning_rate=0.001, weight_decay=0.001)
optimizer2 = nn.Lamb(params2, learning_rate=0.001, weight_decay=0.001)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_lars_dynamic_weight_decay_pynative():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Lars
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.PYNATIVE_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
opt1 = nn.Momentum(net1.trainable_params(), momentum=0.001, learning_rate=0.001, weight_decay=0.001)
opt2 = nn.Momentum(net2.trainable_params(), momentum=0.001, learning_rate=0.001, weight_decay=weight_decay_schedule)
optimizer1 = nn.LARS(opt1, lars_filter=lambda x: 'LayerNorm' not in x.name)
optimizer2 = nn.LARS(opt2, lars_filter=lambda x: 'LayerNorm' not in x.name)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_lars_dynamic_weight_decay_graph():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Lars
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
opt1 = nn.Momentum(net1.trainable_params(), momentum=0.001, learning_rate=0.001, weight_decay=0.001)
opt2 = nn.Momentum(net2.trainable_params(), momentum=0.001, learning_rate=0.001, weight_decay=weight_decay_schedule)
optimizer1 = nn.LARS(opt1, lars_filter=lambda x: 'LayerNorm' not in x.name)
optimizer2 = nn.LARS(opt2, lars_filter=lambda x: 'LayerNorm' not in x.name)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
def test_lars_dynamic_weight_decay_graph_group():
"""
Feature: Dynamic weight decay
Description: Test dynamic weight decay for Momentum
Expectation: The value of decay changes according to preset weight decay schedule
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
net1, net2 = Net(), Net()
weight_decay_schedule = WeightDecaySchdule()
net1_fc1_params = list(filter(lambda x: 'fc1' in x.name, net1.trainable_params()))
net1_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net1.trainable_params()))
net2_fc1_params = list(filter(lambda x: 'fc1' in x.name, net2.trainable_params()))
net2_fc2_params = list(filter(lambda x: 'fc1' not in x.name, net2.trainable_params()))
params1 = [{'params': net1_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net1_fc2_params, 'weight_decay': 0.001, 'lr': 0.001}]
params2 = [{'params': net2_fc1_params, 'weight_decay': 0.01, 'lr': 0.01},
{'params': net2_fc2_params, 'weight_decay': weight_decay_schedule, 'lr': 0.001}]
opt1 = nn.Momentum(params1, momentum=0.001, learning_rate=0.001, weight_decay=0.001)
opt2 = nn.Momentum(params2, momentum=0.001, learning_rate=0.001, weight_decay=0.001)
optimizer1 = nn.LARS(opt1, lars_filter=lambda x: 'LayerNorm' not in x.name)
optimizer2 = nn.LARS(opt2, lars_filter=lambda x: 'LayerNorm' not in x.name)
dynamic_weight_decay_cmp(net1, net2, optimizer1, optimizer2)
| 48.710843
| 120
| 0.726523
| 1,651
| 12,129
| 5.12235
| 0.073895
| 0.163888
| 0.104292
| 0.045406
| 0.929644
| 0.929644
| 0.92787
| 0.92787
| 0.92787
| 0.92787
| 0
| 0.053636
| 0.157639
| 12,129
| 248
| 121
| 48.907258
| 0.774102
| 0.214775
| 0
| 0.818898
| 0
| 0
| 0.053498
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.094488
| false
| 0
| 0.023622
| 0
| 0.11811
| 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
|
ea1032adb9b14dbc51465a7359ae063e494a5925
| 995
|
py
|
Python
|
tests/lib/bes/common/test_bool_util.py
|
reconstruir/bes
|
82ff54b2dadcaef6849d7de424787f1dedace85c
|
[
"Apache-2.0"
] | null | null | null |
tests/lib/bes/common/test_bool_util.py
|
reconstruir/bes
|
82ff54b2dadcaef6849d7de424787f1dedace85c
|
[
"Apache-2.0"
] | null | null | null |
tests/lib/bes/common/test_bool_util.py
|
reconstruir/bes
|
82ff54b2dadcaef6849d7de424787f1dedace85c
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
#-*- coding:utf-8 -*-
#
from bes.testing.unit_test import unit_test
from bes.common.bool_util import bool_util
class test_bool_util(unit_test):
def test_parse_bool(self):
self.assertEqual( True, bool_util.parse_bool(True) )
self.assertEqual( True, bool_util.parse_bool('True') )
self.assertEqual( True, bool_util.parse_bool('true') )
self.assertEqual( True, bool_util.parse_bool('t') )
self.assertEqual( True, bool_util.parse_bool('1') )
self.assertEqual( True, bool_util.parse_bool(1) )
self.assertEqual( True, bool_util.parse_bool(2) )
self.assertEqual( False, bool_util.parse_bool(False) )
self.assertEqual( False, bool_util.parse_bool('False') )
self.assertEqual( False, bool_util.parse_bool('false') )
self.assertEqual( False, bool_util.parse_bool('f') )
self.assertEqual( False, bool_util.parse_bool('0') )
self.assertEqual( False, bool_util.parse_bool(0) )
if __name__ == "__main__":
unit_test.main()
| 35.535714
| 60
| 0.718593
| 144
| 995
| 4.659722
| 0.215278
| 0.19076
| 0.251863
| 0.329359
| 0.752608
| 0.752608
| 0.752608
| 0.752608
| 0.639344
| 0.639344
| 0
| 0.007018
| 0.140704
| 995
| 27
| 61
| 36.851852
| 0.777778
| 0.040201
| 0
| 0
| 0
| 0
| 0.031513
| 0
| 0
| 0
| 0
| 0
| 0.684211
| 1
| 0.052632
| false
| 0
| 0.105263
| 0
| 0.210526
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 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
| 7
|
ea37058bc51926de878f6e24271b168ff3176109
| 5,094
|
py
|
Python
|
pygmentify/tests/__init__.py
|
richardcornish/django-pygmentize
|
a2d3f6b3c3019d810d46f6ff6beb4e9f53190e7b
|
[
"BSD-3-Clause"
] | 6
|
2016-09-25T22:42:40.000Z
|
2021-03-24T00:35:24.000Z
|
pygmentify/tests/__init__.py
|
richardcornish/django-pygmentize
|
a2d3f6b3c3019d810d46f6ff6beb4e9f53190e7b
|
[
"BSD-3-Clause"
] | 1
|
2018-10-03T03:07:37.000Z
|
2018-10-03T03:07:37.000Z
|
pygmentify/tests/__init__.py
|
richardcornish/django-pygmentify
|
a2d3f6b3c3019d810d46f6ff6beb4e9f53190e7b
|
[
"BSD-3-Clause"
] | null | null | null |
from __future__ import unicode_literals
from django.template import Context, Template
from django.test import TestCase
class PygmentifyTestCase(TestCase):
"""Pygmentify test cases."""
def test_pygmentify_html(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify %}"
'<pre class="html">'
'<p>Hello, world!</p>'
"</pre>"
"{% endpygmentify %}"
).render(Context())
self.assertEqual(out, '<div class="highlight"><pre class="html"><span></span><span class="p"><</span><span class="nt">p</span><span class="p">></span>Hello, world!<span class="p"></</span><span class="nt">p</span><span class="p">></span>\n</pre></div>')
def test_pygmentify_html_kwarg(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify linenos='True' %}"
'<pre class="html">'
'<p>Hello, world!</p>'
"</pre>"
"{% endpygmentify %}"
).render(Context())
self.assertEqual(out, '<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1</pre></div></td><td class="code"><div class="highlight"><pre class="html"><span></span><span class="p"><</span><span class="nt">p</span><span class="p">></span>Hello, world!<span class="p"></</span><span class="nt">p</span><span class="p">></span>\n</pre></div>\n</td></tr></table>')
def test_pygmentify_html_kwargs(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify linenos='True' linenostart=0 %}"
'<pre class="html">'
'<p>Hello, world!</p>'
"</pre>"
"{% endpygmentify %}"
).render(Context())
self.assertEqual(out, '<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>0</pre></div></td><td class="code"><div class="highlight"><pre class="html"><span></span><span class="p"><</span><span class="nt">p</span><span class="p">></span>Hello, world!<span class="p"></</span><span class="nt">p</span><span class="p">></span>\n</pre></div>\n</td></tr></table>')
def test_pygmentify_python(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify %}"
'<pre class="python">'
'print("Hello, world!")'
"</pre>"
"{% endpygmentify %}"
).render(Context())
self.assertEqual(out, '<div class="highlight"><pre class="python"><span></span><span class="k">print</span><span class="p">(</span><span class="s2">"Hello, world!"</span><span class="p">)</span>\n</pre></div>')
def test_pygmentify_python_arg(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify 'monokai' %}"
'<pre class="python">'
'print("Hello, world!")'
"</pre>"
"{% endpygmentify %}"
).render(Context())
self.assertEqual(out, '<div class="highlight"><pre class="python"><span></span><span class="k">print</span><span class="p">(</span><span class="s2">"Hello, world!"</span><span class="p">)</span>\n</pre></div>')
def test_pygmentify_python_kwarg(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify style='monokai' %}"
'<pre class="python">'
'print("Hello, world!")'
"</pre>"
"{% endpygmentify %}"
).render(Context())
self.assertEqual(out, '<div class="highlight"><pre class="python"><span></span><span class="k">print</span><span class="p">(</span><span class="s2">"Hello, world!"</span><span class="p">)</span>\n</pre></div>')
def test_pygmentify_python_kwargs(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify style='monokai' cssclass='cssclass' %}"
'<pre class="python">'
'print("Hello, world!")'
"</pre>"
"{% endpygmentify %}"
).render(Context())
self.assertEqual(out, '<div class="cssclass"><pre class="python"><span></span><span class="k">print</span><span class="p">(</span><span class="s2">"Hello, world!"</span><span class="p">)</span>\n</pre></div>')
def test_pygmentify_css(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify_css %}"
).render(Context())
self.assertEqual(out, '/static/pygmentify/css/default.min.css')
def test_pygmentify_css_arg(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify_css 'monokai' %}"
).render(Context())
self.assertEqual(out, '/static/pygmentify/css/monokai.min.css')
def test_pygmentify_css_kwarg(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify_css style='monokai' %}"
).render(Context())
self.assertEqual(out, '/static/pygmentify/css/monokai.min.css')
| 47.607477
| 410
| 0.553396
| 586
| 5,094
| 4.733788
| 0.102389
| 0.109589
| 0.145278
| 0.085797
| 0.914924
| 0.914924
| 0.898342
| 0.892213
| 0.797044
| 0.689978
| 0
| 0.001783
| 0.229486
| 5,094
| 106
| 411
| 48.056604
| 0.704968
| 0.004319
| 0
| 0.706522
| 0
| 0.076087
| 0.574023
| 0.33261
| 0
| 0
| 0
| 0
| 0.108696
| 1
| 0.108696
| false
| 0
| 0.032609
| 0
| 0.152174
| 0.086957
| 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
|
ea416769c31745446a98d792ebdd4422f3a25db3
| 103
|
py
|
Python
|
pyckaxe/utils/cache/__init__.py
|
Arcensoth/pyckaxe
|
09ed0828d6660a233b827721454293579329991b
|
[
"MIT"
] | 3
|
2018-09-23T05:16:44.000Z
|
2021-12-23T03:06:07.000Z
|
pyckaxe/utils/cache/__init__.py
|
Arcensoth/pyckaxe
|
09ed0828d6660a233b827721454293579329991b
|
[
"MIT"
] | 5
|
2018-07-11T02:31:56.000Z
|
2018-07-11T03:15:05.000Z
|
pyckaxe/utils/cache/__init__.py
|
Arcensoth/pyckaxe
|
09ed0828d6660a233b827721454293579329991b
|
[
"MIT"
] | null | null | null |
from .abc import *
from .lru_cache import *
from .static_cache import *
from .unbounded_cache import *
| 20.6
| 30
| 0.76699
| 15
| 103
| 5.066667
| 0.466667
| 0.394737
| 0.394737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15534
| 103
| 4
| 31
| 25.75
| 0.873563
| 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
|
ea6f59f6a32b410a66cc254450173b582755ae08
| 4,586
|
py
|
Python
|
pset/pset7/compare_webservers.py
|
jamestiotio/esc
|
971d9018e389b5ac374438792a417c74541898e2
|
[
"MIT"
] | null | null | null |
pset/pset7/compare_webservers.py
|
jamestiotio/esc
|
971d9018e389b5ac374438792a417c74541898e2
|
[
"MIT"
] | 1
|
2021-11-04T15:56:26.000Z
|
2021-11-04T15:56:26.000Z
|
pset/pset7/compare_webservers.py
|
jamestiotio/esc
|
971d9018e389b5ac374438792a417c74541898e2
|
[
"MIT"
] | null | null | null |
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
def plot_non_executor_web_servers():
"""
Cohort Exercise 2
"""
sns.set_theme(style="darkgrid")
sns.color_palette("bright")
palette = ["r", "b"]
fig, ax = plt.subplots(1, 2)
df = pd.read_csv("non_executor_webservers.csv")
sns.lineplot(
x="number_of_clients",
y="total_time_taken",
data=df,
markers=True,
hue="webserver_type",
style="webserver_type",
ax=ax[0],
palette=palette,
)
sns.lineplot(
x="number_of_clients",
y="average_throughput",
data=df,
markers=True,
hue="webserver_type",
style="webserver_type",
ax=ax[1],
palette=palette,
)
# Label all the data markers/points
for item, color in zip(df.groupby("webserver_type", sort=False), palette):
# item[1] is the grouped data frame
for idx, data in enumerate(
item[1][
["number_of_clients", "total_time_taken", "average_throughput"]
].values
):
if item[0] == "thread_per_task" and idx == 0:
ax[0].text(
data[0],
data[1],
f"({data[0]:.0f}, {data[1]:.0f})",
color=color,
fontsize=8,
horizontalalignment="left",
verticalalignment="top",
)
ax[1].text(
data[0],
data[2],
f"({data[0]:.0f}, {data[2]:.5f})",
color=color,
fontsize=8,
horizontalalignment="right",
verticalalignment="top",
)
else:
ax[0].text(
data[0],
data[1],
f"({data[0]:.0f}, {data[1]:.0f})",
color=color,
fontsize=8,
horizontalalignment="right",
verticalalignment="bottom",
)
ax[1].text(
data[0],
data[2],
f"({data[0]:.0f}, {data[2]:.5f})",
color=color,
fontsize=8,
horizontalalignment="right",
verticalalignment="bottom",
)
ax[0].set(xlabel="Number of clients", ylabel="Total time taken (ms)")
ax[1].set(xlabel="Number of clients", ylabel="Average throughput (clients/ms)")
plt.show()
def plot_executor_web_servers():
"""
Cohort Exercise 3
"""
sns.set_theme(style="darkgrid")
sns.color_palette("bright")
palette = ["y", "g", "purple"]
fig, ax = plt.subplots(1, 2)
df = pd.read_csv("executor_webservers.csv")
sns.lineplot(
x="number_of_clients",
y="total_time_taken",
data=df,
markers=True,
hue="webserver_type",
style="webserver_type",
ax=ax[0],
palette=palette,
)
sns.lineplot(
x="number_of_clients",
y="average_throughput",
data=df,
markers=True,
hue="webserver_type",
style="webserver_type",
ax=ax[1],
palette=palette,
)
# Label all the data markers/points
for item, color in zip(df.groupby("webserver_type", sort=False), palette):
# item[1] is the grouped data frame
for x, y, z in item[1][["number_of_clients", "total_time_taken", "average_throughput"]].values:
ax[0].text(
x,
y,
f"({x:.0f}, {y:.0f})",
color=color,
fontsize=8,
horizontalalignment="right",
verticalalignment="bottom",
)
ax[1].text(
x,
z,
f"({x:.0f}, {z:.3f})",
color=color,
fontsize=8,
horizontalalignment="right",
verticalalignment="bottom",
)
ax[0].set(xlabel="Number of clients", ylabel="Total time taken (ms)")
ax[1].set(xlabel="Number of clients", ylabel="Average throughput (clients/ms)")
plt.show()
if __name__ == "__main__":
print("Plotting the graphs for non-executor-based web servers...")
plot_non_executor_web_servers()
print("Plotting the graphs for executor-based web servers...")
plot_executor_web_servers()
| 29.779221
| 103
| 0.484954
| 483
| 4,586
| 4.465839
| 0.217391
| 0.037089
| 0.069541
| 0.052851
| 0.890589
| 0.799722
| 0.799722
| 0.799722
| 0.799722
| 0.799722
| 0
| 0.021224
| 0.383559
| 4,586
| 154
| 104
| 29.779221
| 0.741776
| 0.037505
| 0
| 0.709924
| 0
| 0
| 0.225063
| 0.011413
| 0
| 0
| 0
| 0
| 0
| 1
| 0.015267
| false
| 0
| 0.030534
| 0
| 0.045802
| 0.015267
| 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
|
ea7683c922a61e4d2f59c08f15abffb0d26143bd
| 4,459
|
py
|
Python
|
adv/migrations/0001_initial.py
|
muddy-minds/back-end
|
b4f05dd19cbf442ac020dd38b922cf1c1156cb82
|
[
"MIT"
] | null | null | null |
adv/migrations/0001_initial.py
|
muddy-minds/back-end
|
b4f05dd19cbf442ac020dd38b922cf1c1156cb82
|
[
"MIT"
] | 6
|
2019-12-04T23:58:17.000Z
|
2022-02-10T08:13:01.000Z
|
adv/migrations/0001_initial.py
|
muddy-minds/back-end
|
b4f05dd19cbf442ac020dd38b922cf1c1156cb82
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.2.3 on 2019-08-01 23:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Player',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=500)),
('health_points', models.FloatField()),
('lives', models.IntegerField(default=3)),
],
),
migrations.CreateModel(
name='Room',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=500)),
('north', models.IntegerField(default=0)),
('south', models.IntegerField(default=0)),
('east', models.IntegerField(default=0)),
('west', models.IntegerField(default=0)),
],
),
migrations.CreateModel(
name='Weapons',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('description', models.CharField(max_length=500)),
('damage_points', models.FloatField()),
('player_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Player')),
('room_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Room')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Toys',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('description', models.CharField(max_length=500)),
('some_points', models.FloatField()),
('player_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Player')),
('room_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Room')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='player',
name='room_id',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Room'),
),
migrations.CreateModel(
name='Npc',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('health_points', models.FloatField()),
('lives', models.IntegerField(default=3)),
('description', models.CharField(max_length=500)),
('friend_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Player')),
('room_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Room')),
],
),
migrations.CreateModel(
name='FoodItem',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('description', models.CharField(max_length=500)),
('health_points', models.FloatField()),
('player_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Player')),
('room_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='adv.Room')),
],
options={
'abstract': False,
},
),
]
| 45.969072
| 135
| 0.559991
| 454
| 4,459
| 5.361233
| 0.162996
| 0.046015
| 0.088743
| 0.118324
| 0.811011
| 0.811011
| 0.795399
| 0.795399
| 0.795399
| 0.758422
| 0
| 0.017072
| 0.290648
| 4,459
| 96
| 136
| 46.447917
| 0.75245
| 0.010092
| 0
| 0.685393
| 1
| 0
| 0.094742
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.022472
| 0
| 0.067416
| 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
|
ea859c095196cac546eba07a661582a510f8a888
| 3,754
|
py
|
Python
|
src/aws_environments/migrations/0029_auto_20200430_1959.py
|
chiliseed/hub
|
83f29fbdd12e2260397e18e635f508459fa4990e
|
[
"Apache-2.0"
] | null | null | null |
src/aws_environments/migrations/0029_auto_20200430_1959.py
|
chiliseed/hub
|
83f29fbdd12e2260397e18e635f508459fa4990e
|
[
"Apache-2.0"
] | 4
|
2021-04-08T20:10:15.000Z
|
2021-06-10T20:18:17.000Z
|
src/aws_environments/migrations/0029_auto_20200430_1959.py
|
chiliseed/hub
|
83f29fbdd12e2260397e18e635f508459fa4990e
|
[
"Apache-2.0"
] | null | null | null |
# Generated by Django 3.0.2 on 2020-04-30 19:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("aws_environments", "0028_auto_20200430_1813"),
]
operations = [
migrations.AlterField(
model_name="environment",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="environment",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="envstatus",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="envstatus",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="executionlog",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="executionlog",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="project",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="project",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="projectstatus",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="projectstatus",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="resource",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="resource",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="resourcestatus",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="resourcestatus",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="service",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="service",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="servicedeployment",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="servicedeployment",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="servicestatus",
name="deleted_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AlterField(
model_name="servicestatus",
name="is_deleted",
field=models.BooleanField(blank=True, default=False),
),
]
| 32.929825
| 65
| 0.563133
| 330
| 3,754
| 6.272727
| 0.154545
| 0.193237
| 0.241546
| 0.280193
| 0.923672
| 0.923672
| 0.802415
| 0.802415
| 0.802415
| 0.802415
| 0
| 0.012205
| 0.323388
| 3,754
| 113
| 66
| 33.221239
| 0.802756
| 0.011987
| 0
| 0.934579
| 1
| 0
| 0.124359
| 0.006204
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.009346
| 0
| 0.037383
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
a4ae31ff4e139e35e99381b1f2fe121b1e47cc94
| 51,476
|
py
|
Python
|
parser/team25/code/astDML.py
|
itsmjoe/tytus
|
3b0341cc854d67979b766c5c8b06ed172ce0c913
|
[
"MIT"
] | null | null | null |
parser/team25/code/astDML.py
|
itsmjoe/tytus
|
3b0341cc854d67979b766c5c8b06ed172ce0c913
|
[
"MIT"
] | null | null | null |
parser/team25/code/astDML.py
|
itsmjoe/tytus
|
3b0341cc854d67979b766c5c8b06ed172ce0c913
|
[
"MIT"
] | null | null | null |
from astDDL import Instruccion
import storageManager.jsonMode as DBMS
from useDB.instanciaDB import DB_ACTUAL
import typeChecker.typeReference as TypeCheck
from astExpresion import TIPO_DE_DATO
from astFunciones import FuncionTime
from useDB import instanciaDB
import sqlErrors
def parseToNumber(input:str):
try:
result=int(input)
# print("Es un entero")
return result
except ValueError:
try:
result=float(input)
# print("Es un float")
return result
except ValueError:
# print("No es un número")
return None
# Returns True if the column is already a key in this dictionary, otherwise, returns False
def checkColumnsDictionary(dictionary:dict,key:str) -> bool:
try:
a=dictionary[key]
return True
except:
return False
def getColumnIndex(columnList:list,name:str):
try:
return columnList.index(name)
except:
return None
# ------------------------ DML ----------------------------
# Insert into table
class InsertTable(Instruccion):
def __init__(self, tabla, valores,listaColumnas=None):
self.tabla = tabla
self.valores = valores
self.listaColumnas=listaColumnas
def dibujar(self):
identificador = str(hash(self))
nodo = "\n" + identificador + "[ label = \"INSERT TABLE\" ];"
nodo += "\nINTO" + identificador + "[ label = \"INTO\" ];"
nodo += "\n" + identificador + " -> INTO" + identificador + ";"
nodo += "\nNAME" + identificador + "[ label = \"" + self.tabla + "\" ];"
nodo += "\nINTO" + identificador + " -> NAME" + identificador + ";"
nodo += "\nVALUES" + identificador + "[ label = \"VALUES\" ];"
nodo += "\n" + identificador + " -> VALUES" + identificador + ";"
for valor in self.valores:
nodo += "\nVALUES" + identificador + " -> " + str(hash(valor)) + ";"
nodo += valor.dibujar()
return nodo
def ejecutar(self,ts):
tabla1=self.tabla
valores1=self.valores
listaCol=self.listaColumnas
dbName=DB_ACTUAL.getName()
# dbName="test"
# Check if a db is in use
if dbName==None:
# Add this error to the errors Tree
print("ERROR: database \'"+dbName+"\' does not exist")
else:
# Check if the table exists into the db
tables=TypeCheck.tableExist(dbName,tabla1)
if tables == None:
sqlError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.undefined_table
print("ERROR "+sqlError.value+": "+str(sqlError.name)+" \'"+tabla1+"\'")
else:
flag=False
counter=0
result = []
columnsNameList=list(TypeCheck.getColumns(dbName,tabla1).keys())
if listaCol==None:
# INSERT CHECKING ALL COLUMNS ON THEIR RESPECTIVE ORDER
if len(columnsNameList)==len(valores1):
for val in valores1:
if isinstance(val,FuncionTime):
val=val.ejecutar(ts)
if val.tipo==TIPO_DE_DATO.CADENA:
if TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="varchar".casefold() or TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="character varying".casefold():
if len(val.val)<=TypeCheck.getLenght(dbName,tabla1,columnsNameList[counter]):
if len(val.val)==0:
if TypeCheck.getNull(dbName,tabla1,columnsNameList[counter]):
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter])!=None:
result.append(TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter]))
else:
result.append(None)
else:
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter])!=None:
result.append(TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter]))
else:
flag=True
sqlTypeError=sqlErrors.sql_error_data_exception.null_value_not_allowed
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
print("ERROR: la longitud de la cadena es mayor a lo permitido por el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="char".casefold() or TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="character".casefold():
if len(val.val.encode('utf-8'))<=TypeCheck.getLenght(dbName,tabla1,columnsNameList[counter]):
if len(val.val)==0:
if TypeCheck.getNull(dbName,tabla1,columnsNameList[counter]):
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter])!=None:
result.append(TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter]))
else:
result.append(None)
else:
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter])!=None:
result.append(TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter]))
else:
flag=True
sqlTypeError=sqlErrors.sql_error_data_exception.null_value_not_allowed
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
print("ERROR: el tamaño de la cadena es mayor a lo permitido por el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="text".casefold():
if len(val.val)==0:
if TypeCheck.getNull(dbName,tabla1,columnsNameList[counter]):
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter])!=None:
result.append(TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter]))
else:
result.append(None)
else:
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter])!=None:
result.append(TypeCheck.detDefault(dbName,tabla1,columnsNameList[counter]))
else:
flag=True
sqlTypeError=sqlErrors.sql_error_data_exception.null_value_not_allowed
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
elif TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="date".casefold() or\
TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="time".casefold() or\
TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="interval".casefold() :
if val.isFecha:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
elif val.tipo==TIPO_DE_DATO.ENTERO:
if TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="smallint".casefold():
if val.val>=-32768 and val.val<=32767:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
print("ERROR: el tamaño del número no coincide con el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="integer".casefold():
if val.val>=-2147483648 and val.val<=2147483647:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
print("ERROR: el tamaño del número no coincide con el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="bigint".casefold():
if val.val>=-9223372036854775808 and val.val<=9223372036854775807:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
print("ERROR: el tamaño del número no coincide con el tipo de dato")
flag=True
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
elif val.tipo==TIPO_DE_DATO.DECIMAL:
if TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="decimal".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="numeric".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="real".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="double precision".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="money".casefold():
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
elif val.tipo==TIPO_DE_DATO.BOOLEANO and \
TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="boolean".casefold():
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[counter]).lower()
dictCheck={columnsNameList[counter]:val.val}
if eval(check,dictCheck):
result.append(val.val)
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
result.append(val.val)
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
counter+=1
if not flag:
print("Llamando a la funcion insert("+dbName+","+tabla1+","+str(result)+").")
print(DBMS.insert(dbName,tabla1,result))
else:
print("ERROR AL INSERTAR EN LA BD")
else:print("ERROR: La cantidad de parámetros indicados no coincide con los campos de la tabla")
# INSERT VALIDATING THE COLUMNS LIST
else:
if len(listaCol)==len(valores1):
columnsDict={}
columnsIndex=0
counter=0
for val in valores1:
if isinstance(val,FuncionTime):
val=val.ejecutar(ts)
colIndex=getColumnIndex(columnsNameList,listaCol[counter])
if not colIndex==None:
if not checkColumnsDictionary(columnsDict,listaCol[counter]):
if val.tipo==TIPO_DE_DATO.CADENA:
if TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="varchar".casefold() or TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="character varying".casefold():
if len(val.val)<=TypeCheck.getLenght(dbName,tabla1,columnsNameList[colIndex]):
if len(val.val)==0:
if TypeCheck.getNull(dbName,tabla1,columnsNameList[colIndex]):
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])!=None:
columnsDict[listaCol[counter]]=TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])
else:
columnsDict[listaCol[counter]]=None
else:
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])!=None:
columnsDict[listaCol[counter]]=TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])
else:
flag=True
sqlTypeError=sqlErrors.sql_error_data_exception.null_value_not_allowed
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
print("ERROR: la longitud de la cadena es mayor a lo permitido por el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="char".casefold() or TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="character".casefold():
if len(val.val.encode('utf-8'))<=TypeCheck.getLenght(dbName,tabla1,columnsNameList[colIndex]):
if len(val.val)==0:
if TypeCheck.getNull(dbName,tabla1,columnsNameList[colIndex]):
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])!=None:
columnsDict[listaCol[counter]]=TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])
else:
columnsDict[listaCol[counter]]=None
else:
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])!=None:
columnsDict[listaCol[counter]]=TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])
else:
flag=True
sqlTypeError=sqlErrors.sql_error_data_exception.null_value_not_allowed
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
print("ERROR: el tamaño de la cadena es mayor a lo permitido por el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[counter]).casefold()=="text".casefold():
if len(val.val)==0:
if TypeCheck.getNull(dbName,tabla1,columnsNameList[colIndex]):
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])!=None:
columnsDict[listaCol[counter]]=TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])
else:
columnsDict[listaCol[counter]]=None
else:
if TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])!=None:
columnsDict[listaCol[counter]]=TypeCheck.detDefault(dbName,tabla1,columnsNameList[colIndex])
else:
flag=True
sqlTypeError=sqlErrors.sql_error_data_exception.null_value_not_allowed
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
elif TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="date".casefold() or\
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="time".casefold() or\
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="interval".casefold() :
if val.isFecha:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.undefined_column
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name)+" "+listaCol[counter])
elif val.tipo==TIPO_DE_DATO.ENTERO:
if TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="smallint".casefold():
if val.val>=-32768 and val.val<=32767:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
print("ERROR: el tamaño del número no coincide con el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="integer".casefold():
if val.val>=-2147483648 and val.val<=2147483647:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
print("ERROR: el tamaño del número no coincide con el tipo de dato")
flag=True
elif TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="bigint".casefold():
if val.val>=-9223372036854775808 and val.val<=9223372036854775807:
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
print("ERROR: el tamaño del número no coincide con el tipo de dato")
flag=True
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
elif val.tipo==TIPO_DE_DATO.DECIMAL:
if TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="decimal".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="numeric".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="real".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="double precision".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="money".casefold():
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name)+ " "+columnsNameList[colIndex] + " "+str(val.val))
# FALTA COMPROBAR FECHAS Y TYPES
elif val.tipo==TIPO_DE_DATO.DATE:
if TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="date".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="time".casefold() or \
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="interval".casefold():
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name)+ " "+columnsNameList[colIndex] + " "+str(val.val))
elif val.tipo==TIPO_DE_DATO.BOOLEANO and \
TypeCheck.getType(dbName,tabla1,columnsNameList[colIndex]).casefold()=="boolean".casefold():
if not TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex])==None:
check=TypeCheck.getCheck(dbName,tabla1,columnsNameList[colIndex]).lower()
dictCheck={columnsNameList[colIndex]:val.val}
if eval(check,dictCheck):
columnsDict[listaCol[counter]]=val.val
else:
sqlTypeError=sqlErrors.sql_error_integrity_constraint_violation.check_violation
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name))
flag=True
break
else:
columnsDict[listaCol[counter]]=val.val
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.datatype_mismatch
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name) + " "+columnsNameList[colIndex] + " "+str(val.val))
else:
flag=True
print("ERROR: se está intentando ingresar una misma columna dentro de una sentencia INSERT")
break
counter+=1
else:
flag=True
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.undefined_column
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name)+" "+listaCol[counter])
if not flag:
# THIS SECOND FLAG WILL CHECK IF A REMAINING COLUMN CAN BE NULL, IF NOT, RETURNS TRUE AND IS AN ERROR
secondFlag=False
for column in columnsNameList:
# print(column)
if not checkColumnsDictionary(columnsDict,column):
# print("La columna "+column+" no esta especificada en el diccionario, buscando si puede tener un valor nulo")
# THIS MEANS A COLUMN EXISTS IN THE TABLE, BUT IT WAS NOT DECLARED ON THE INSERT SENTENCE
# print("La anulabilidad de "+column+" es "+ str(TypeCheck.getNull(dbName,tabla1,column)))
# print("El valor default de "+column+ " es "+str(TypeCheck.getDefault(dbName,tabla1,column)))
if not TypeCheck.getNull(dbName,tabla1,column):
# IF GETNULL RETURNS TRUE, THE DEFAULT VALUE HAS TO BE INSERTED, SO LET'S FIND IT
if TypeCheck.getDefault(dbName,tabla1,column)!=None:
# IF THE DEFAULT VALUE IS DISTINCT FROM NULL (IN THIS CASE IS NONE), APPEND IT TO THE INSERT LIST
result.append(TypeCheck.getDefault(dbName,tabla1,column))
else:
# THERE WAS NOT A DEFAULT VALUE FOR THIS COLUMN, SO THIS IS AN ERROR, SO WE HAVE TO BREAK THE CYCLE
secondFlag=True
break
else:
if TypeCheck.getDefault(dbName,tabla1,column)!=None:
result.append(TypeCheck.getDefault(dbName,tabla1,column))
else:
# THERE WAS NOT A DEFAULT VALUE FOR THIS COLUMN, SO THIS IS AN ERROR, SO WE HAVE TO BREAK THE CYCLE
result.append(None)
else:
# IF THE COLUMN EXISTS IN THE DICTIONARY, THE JUST APPEND IT TO THE INSERT LIST
# THE ORDER IS DEFINED BY COLUMNSNAMELIST
result.append(columnsDict[column])
# CHECKING IF NO ERRORS WERE PRODUCED
if not secondFlag:
# FINALLY, WE MUST ENSURE ALL THE COLUMNS FROM THE DICTIONARY ARE COLUMNS FROM THE TABLE
# WE ARE GONNA USE A THIRD FLAG :/
thirdFlag=False
for itemDict in list(columnsDict.keys()):
# print(itemDict)
if not itemDict in columnsNameList:
thirdFlag=True
break
if not thirdFlag:
print("Llamando a la funcion insert("+dbName+","+tabla1+","+str(result)+").")
print(DBMS.insert(dbName,tabla1,result))
else:
sqlTypeError=sqlErrors.sql_error_syntax_error_or_access_rule_violation.undefined_column
print("ERROR "+sqlTypeError.value+": "+str(sqlTypeError.name)+" "+listaCol[counter])
else:
print("ERROR: Una o varias columnas no han sido especificadas y no pueden ser nulas")
else:
print("ERROR AL INSERTAR EN LA BD")
else:
print("ERROR: La cantidad de parámetros no coincide con la cantidad de datos a ingresar")
# Delete from a table
class DeleteTabla(Instruccion):
def __init__(self, tabla, condiciones = None):
self.tabla = tabla
self.condiciones = condiciones
def dibujar(self):
identificador = str(hash(self))
nodo = "\n" + identificador + "[ label = \"DELETE TABLE\" ];"
nodo += "\nFROM" + identificador + "[ label = \"FROM\" ];"
nodo += "\n" + identificador + " -> FROM" + identificador + ";"
nodo += "\nNAME" + identificador + "[ label = \"" + self.tabla + "\" ];"
nodo += "\nFROM" + identificador + " -> NAME" + identificador + ";"
if self.condiciones:
nodo += "\nWHERE" + identificador + "[ label = \"WHERE\" ];"
nodo += "\n" + identificador + " -> WHERE" + identificador + ";"
for condicion in self.condiciones:
nodo += "\nWHERE" + identificador + " -> " + str(hash(condicion)) + ";"
nodo += condicion.dibujar()
return nodo
class UpdateTable(Instruccion):
def __init__(self, tabla, asignaciones, condiciones = None):
self.tabla = tabla
self.asignaciones = asignaciones
self.condiciones = condiciones
def dibujar(self):
identificador = str(hash(self))
nodo = "\n" + identificador + "[ label = \"DELETE TABLE\" ];"
nodo += "\nNAME" + identificador + "[ label = \"" + self.tabla + "\" ];"
nodo += "\n" + identificador + " -> NAME" + identificador + ";"
nodo += "\nSET" + identificador + "[ label = \"SET\" ];"
nodo += "\n" + identificador + " -> SET" + identificador + ";"
for asignacion in self.asignaciones:
nodo += "\nSET" + identificador + " -> " + str(hash(asignacion)) + ";"
nodo += asignacion.dibujar()
if self.condiciones:
nodo += "\nWHERE" + identificador + "[ label = \"WHERE\" ];"
nodo += "\n" + identificador + " -> WHERE" + identificador + ";"
for condicion in self.condiciones:
nodo += "\nWHERE" + identificador + " -> " + str(hash(condicion)) + ";"
nodo += condicion.dibujar()
return nodo
| 76.71535
| 240
| 0.418545
| 3,473
| 51,476
| 6.123812
| 0.085517
| 0.068836
| 0.138377
| 0.092157
| 0.847235
| 0.834634
| 0.828569
| 0.822127
| 0.812206
| 0.781926
| 0
| 0.010917
| 0.505323
| 51,476
| 671
| 241
| 76.71535
| 0.824301
| 0.031801
| 0
| 0.813421
| 0
| 0
| 0.043346
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.016367
| false
| 0
| 0.013093
| 0
| 0.050737
| 0.0982
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 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
| 8
|
10570b619bfa36400daf239de0b486fe6c6d878b
| 4,232
|
py
|
Python
|
examples/regression_california/example_rf_california.py
|
c60evaporator/param-tuning-utility
|
80625f875428badac37d8439195a9327a565b040
|
[
"BSD-3-Clause"
] | null | null | null |
examples/regression_california/example_rf_california.py
|
c60evaporator/param-tuning-utility
|
80625f875428badac37d8439195a9327a565b040
|
[
"BSD-3-Clause"
] | null | null | null |
examples/regression_california/example_rf_california.py
|
c60evaporator/param-tuning-utility
|
80625f875428badac37d8439195a9327a565b040
|
[
"BSD-3-Clause"
] | 1
|
2022-01-06T05:13:07.000Z
|
2022-01-06T05:13:07.000Z
|
# %% RandomForestRegressor, GridSearch, no argument
import parent_import
from tune_easy import RFRegressorTuning
from sklearn.datasets import fetch_california_housing
import pandas as pd
import numpy as np
# Load dataset
TARGET_VARIABLE = 'price' # Target variable
USE_EXPLANATORY = ['MedInc', 'AveOccup', 'Latitude', 'HouseAge'] # Explanatory variables
california_housing = pd.DataFrame(np.column_stack((fetch_california_housing().data, fetch_california_housing().target)),
columns = np.append(fetch_california_housing().feature_names, TARGET_VARIABLE))
california_housing = california_housing.sample(n=1000, random_state=42) # sampling from 20640 to 1000
y = california_housing[TARGET_VARIABLE].values
X = california_housing[USE_EXPLANATORY].values
# Run parameter tuning
tuning = RFRegressorTuning(X, y, USE_EXPLANATORY, y_colname=TARGET_VARIABLE)
tuning.plot_first_validation_curve()
tuning.grid_search_tuning()
tuning.plot_search_history()
tuning.plot_search_map()
tuning.plot_best_learning_curve()
tuning.plot_best_validation_curve()
tuning.plot_param_importances()
# %% RandomForestRegressor, RandomSearch, no argument
import parent_import
from tune_easy import RFRegressorTuning
from sklearn.datasets import fetch_california_housing
import pandas as pd
import numpy as np
# Load dataset
TARGET_VARIABLE = 'price' # Target variable
USE_EXPLANATORY = ['MedInc', 'AveOccup', 'Latitude', 'HouseAge'] # Explanatory variables
california_housing = pd.DataFrame(np.column_stack((fetch_california_housing().data, fetch_california_housing().target)),
columns = np.append(fetch_california_housing().feature_names, TARGET_VARIABLE))
california_housing = california_housing.sample(n=1000, random_state=42) # sampling from 20640 to 1000
y = california_housing[TARGET_VARIABLE].values
X = california_housing[USE_EXPLANATORY].values
# Run parameter tuning
tuning = RFRegressorTuning(X, y, USE_EXPLANATORY, y_colname=TARGET_VARIABLE)
tuning.random_search_tuning()
tuning.plot_search_history()
tuning.plot_search_map()
tuning.plot_best_learning_curve()
tuning.plot_best_validation_curve()
tuning.plot_param_importances()
# %% RandomForestRegressor, BayesianOptimization, no argument
import parent_import
from tune_easy import RFRegressorTuning
from sklearn.datasets import fetch_california_housing
import pandas as pd
import numpy as np
# Load dataset
TARGET_VARIABLE = 'price' # Target variable
USE_EXPLANATORY = ['MedInc', 'AveOccup', 'Latitude', 'HouseAge'] # Explanatory variables
california_housing = pd.DataFrame(np.column_stack((fetch_california_housing().data, fetch_california_housing().target)),
columns = np.append(fetch_california_housing().feature_names, TARGET_VARIABLE))
california_housing = california_housing.sample(n=1000, random_state=42) # sampling from 20640 to 1000
y = california_housing[TARGET_VARIABLE].values
X = california_housing[USE_EXPLANATORY].values
# Run parameter tuning
tuning = RFRegressorTuning(X, y, USE_EXPLANATORY, y_colname=TARGET_VARIABLE)
tuning.bayes_opt_tuning()
tuning.plot_search_history()
tuning.plot_search_map()
tuning.plot_best_learning_curve()
tuning.plot_best_validation_curve()
tuning.plot_param_importances()
# %% RandomForestRegressor, Optuna, no argument
import parent_import
from tune_easy import RFRegressorTuning
from sklearn.datasets import fetch_california_housing
import pandas as pd
import numpy as np
# Load dataset
TARGET_VARIABLE = 'price' # Target variable
USE_EXPLANATORY = ['MedInc', 'AveOccup', 'Latitude', 'HouseAge'] # Explanatory variables
california_housing = pd.DataFrame(np.column_stack((fetch_california_housing().data, fetch_california_housing().target)),
columns = np.append(fetch_california_housing().feature_names, TARGET_VARIABLE))
california_housing = california_housing.sample(n=1000, random_state=42) # sampling from 20640 to 1000
y = california_housing[TARGET_VARIABLE].values
X = california_housing[USE_EXPLANATORY].values
# Run parameter tuning
tuning = RFRegressorTuning(X, y, USE_EXPLANATORY, y_colname=TARGET_VARIABLE)
tuning.optuna_tuning()
tuning.plot_search_history()
tuning.plot_search_map()
tuning.plot_best_learning_curve()
tuning.plot_best_validation_curve()
tuning.plot_param_importances()
# %%
| 45.021277
| 120
| 0.821361
| 536
| 4,232
| 6.182836
| 0.136194
| 0.184671
| 0.106216
| 0.026554
| 0.962885
| 0.962885
| 0.962885
| 0.962885
| 0.962885
| 0.962885
| 0
| 0.015568
| 0.089319
| 4,232
| 93
| 121
| 45.505376
| 0.844318
| 0.14414
| 0
| 0.935065
| 0
| 0
| 0.038932
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.311688
| 0
| 0.311688
| 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
| 1
| 0
| 0
| 0
|
0
| 8
|
109aad36580c44643df764948932443804cf2511
| 148
|
py
|
Python
|
app/bootstrap/console/__init__.py
|
ShawnZhang31/flask-artisan
|
7e2c044b44191edab902e349bb79559513b3ff6f
|
[
"MIT"
] | null | null | null |
app/bootstrap/console/__init__.py
|
ShawnZhang31/flask-artisan
|
7e2c044b44191edab902e349bb79559513b3ff6f
|
[
"MIT"
] | null | null | null |
app/bootstrap/console/__init__.py
|
ShawnZhang31/flask-artisan
|
7e2c044b44191edab902e349bb79559513b3ff6f
|
[
"MIT"
] | null | null | null |
'''
/*
* @Author: Shawn Zhang
* @Date: 2019-09-08 17:47:48
* @Last Modified by: Shawn Zhang
* @Last Modified time: 2019-09-08 21:11:29
*/
'''
| 18.5
| 43
| 0.594595
| 24
| 148
| 3.666667
| 0.708333
| 0.227273
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.237288
| 0.202703
| 148
| 8
| 44
| 18.5
| 0.508475
| 0.945946
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 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
|
eac2b0cae947bc620ed99feac676193ad2a67239
| 3,825
|
py
|
Python
|
try.py
|
Rachit8484/Mavs-Abroad
|
b063cade1a52353864b913fa5569004c9b4aae9f
|
[
"MIT"
] | 2
|
2021-09-18T03:58:04.000Z
|
2021-09-21T20:59:10.000Z
|
try.py
|
Rachit8484/Mavs-Abroad
|
b063cade1a52353864b913fa5569004c9b4aae9f
|
[
"MIT"
] | null | null | null |
try.py
|
Rachit8484/Mavs-Abroad
|
b063cade1a52353864b913fa5569004c9b4aae9f
|
[
"MIT"
] | null | null | null |
# Rachit Agarwal
# 1001664316
# Jacobi method
# u1 = lambda a, b, c, p, q, r: (5-r+2*b)/6
# u2 = lambda a, b, c, p, q, r: (3+2*a+2*c-q)/6
# u3 = lambda a, b, c, p, q, r: (1+b+p)/3
# u4 = lambda a, b, c, p, q, r: (1+c+q)/3
# u5 = lambda a, b, c, p, q, r: (3-b+2*p+2*r)/6
# u6 = lambda a, b, c, p, q, r: (5-a+2*q)/6
# a0 = 0
# b0 = 0
# c0 = 0
# p0 = 0
# q0 = 0
# r0 = 0
# count = 100
# TOL = float(input('Enter Error Tolerance: '))
# print('\nCount\ta\tb\tc\tp\tq\tr\n')
# condition = True
# while condition:
# a1 = u1(a0, b0, c0, p0, q0, r0)
# b1 = u2(a0, b0, c0, p0, q0, r0)
# c1 = u3(a0, b0, c0, p0, q0, r0)
# p1 = u4(a0, b0, c0, p0, q0, r0)
# q1 = u5(a0, b0, c0, p0, q0, r0)
# r1 = u6(a0, b0, c0, p0, q0, r0)
# print('%d\t%0.4f\t%0.4f\t%0.4f\t%0.4f\t%0.4f\t%0.4f\n' %(count, a1, b1, c1, p1, q1, r1))
# TOL1 = abs(a0 - a1)
# TOL2 = abs(b0 - b1)
# TOL3 = abs(c0 - c1)
# TOL4 = abs(p0 - p1)
# TOL5 = abs(q0 - q1)
# TOL6 = abs(r0 - r1)
# count += 1
# a0 = a1
# b0 = b1
# c0 = c1
# p0 = p1
# q0 = q1
# r0 = r1
# condition = TOL1>TOL and TOL2>TOL and TOL3>TOL and TOL4>TOL and TOL5>TOL and TOL6>TOL
# print('\nSolution: a=%0.3f, b=%0.3f, c=%0.3f, p=%0.3f, q=%0.3f, r = %0.3f \n'% (a1, b1, c1, p1, q1, r1))
# # Gauss seidal
# u1 = lambda a, b, c, p, q, r: (5-r+2*b)/6
# u2 = lambda a, b, c, p, q, r: (3+2*a+2*c-q)/6
# u3 = lambda a, b, c, p, q, r: (1+b+p)/3
# u4 = lambda a, b, c, p, q, r: (1+c+q)/3
# u5 = lambda a, b, c, p, q, r: (3-b+2*p+2*r)/6
# u6 = lambda a, b, c, p, q, r: (5-a+2*q)/6
# a0 = 0
# b0 = 0
# c0 = 0
# p0 = 0
# q0 = 0
# r0 = 0
# count = 100
# TOL =float(input('Enter error tolerance: '))
# print('\nCount\ta\tb\tc\tp\tq\tr\n')
# condition = True
# while condition:
# a1 = u1(a0, b0, c0, p0, q0, r0)
# b1 = u2(a1, b0, c0, p0, q0, r0)
# c1 = u3(a1, b1, c0, p0, q0, r0)
# p1 = u4(a1, b1, c1, p0, q0, r0)
# q1 = u5(a1, b1, c1, p1, q0, r0)
# r1 = u6(a1, b1, c1, p1, q1, r0)
# print('%d\t%0.4f\t%0.4f\t%0.4f\t%0.4f\t%0.4f\t%0.4f\n' %(count, a1, b1, c1, p1, q1, r1))
# TOL1 = abs(a0-a1)
# TOL2 = abs(b0-b1)
# TOL3 = abs(c0-c1)
# TOL4 = abs(p0-p1)
# TOL5 = abs(q0-q1)
# TOL6 = abs(r0-r1)
# count += 1
# a0 = a1
# b0 = b1
# c0 = c1
# p0 = p1
# q0 = q1
# r0 = r1
# condition = TOL1>TOL and TOL2>TOL and TOL3>TOL and TOL4>TOL and TOL5>TOL and TOL6>TOL
# print('\nSolution: a = %0.3f, b = %0.3f, c = %0.3f, p = %0.3f, q = %0.3f, r = %0.3f\n'% (a1, b1, c1, p1, q1, r1))
# # Successive over-relaxation (SOR)
u1 = lambda a, b, c, p, q, r: (5-r+2*b)/6
u2 = lambda a, b, c, p, q, r: (3+2*a+2*c-q)/6
u3 = lambda a, b, c, p, q, r: (1+b+p)/3
u4 = lambda a, b, c, p, q, r: (1+c+q)/3
u5 = lambda a, b, c, p, q, r: (3-b+2*p+2*r)/6
u6 = lambda a, b, c, p, q, r: (5-a+2*q)/6
a0 = 0
b0 = 0
c0 = 0
p0 = 0
q0 = 0
r0 = 0
count = 100
TOL = float(input('Enter error tolerance: '))
w = float(input("Enter omega value: "))
print('\nCount\ta\tb\tc\tp\tq\tr\n')
condition = True
while condition:
a1 = (1-w) * a0 + w * u1(a0, b0, c0, p0, q0, r0)
b1 = (1-w) * b0 + w * u2(a1, b0, c0, p0, q0, r0)
c1 = (1-w) * c0 + w * u3(a1, b1, c0, p0, q0, r0)
p1 = (1-w) * p0 + w * u4(a1, b1, c1, p0, q0, r0)
q1 = (1-w) * q0 + w * u3(a1, b1, c1, p0, q0, r0)
r1 = (1-w) * r0 + w * u3(a1, b1, c1, p1, q0, r0)
print('%d\t%0.4f\t%0.4f\t%0.4f\t%0.4f\t%0.4f\t%0.4f\n' %(count, a1, b1, c1, p1, q1, r1))
TOL1 = abs(a0-a1)
TOL2 = abs(b0-b1)
TOL3 = abs(c0-c1)
TOL4 = abs(p0-p1)
TOL5 = abs(q0-q1)
TOL6 = abs(r0-r1)
count += 1
a0 = a1
b0 = b1
c0 = c1
p0 = p1
q0 = q1
r0 = r1
condition = TOL1>TOL and TOL2>TOL and TOL3>TOL and TOL4>TOL and TOL5>TOL and TOL6>TOL
print('\nSolution: a = %0.3f, b = %0.3f, c = %0.3f, p = %0.3f, q = %0.3f, r = %0.3f\n'% (a1, b1, c1, p1, q1, r1))
| 28.544776
| 115
| 0.490196
| 857
| 3,825
| 2.187865
| 0.091015
| 0.0672
| 0.0768
| 0.0864
| 0.926933
| 0.9152
| 0.871467
| 0.864
| 0.805333
| 0.805333
| 0
| 0.178775
| 0.265882
| 3,825
| 133
| 116
| 28.759399
| 0.48896
| 0.629281
| 0
| 0
| 0
| 0.05
| 0.144895
| 0.054805
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.075
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ead8c4d0421ee27fb75cb4c984207e91ac8c8aa3
| 190
|
py
|
Python
|
.history/Time_20200514082034.py
|
EvanthiosPapadopoulos/Python3
|
ab773fd458e365c1510f98ecac65965234c881e8
|
[
"MIT"
] | 1
|
2020-05-18T17:50:00.000Z
|
2020-05-18T17:50:00.000Z
|
Udemy/Complete_Python_Bootcamp/AdvanceP/Time.py
|
EvanthiosPapadopoulos/Python3
|
ab773fd458e365c1510f98ecac65965234c881e8
|
[
"MIT"
] | null | null | null |
Udemy/Complete_Python_Bootcamp/AdvanceP/Time.py
|
EvanthiosPapadopoulos/Python3
|
ab773fd458e365c1510f98ecac65965234c881e8
|
[
"MIT"
] | null | null | null |
from HeaderFiles import Header1
import timeit
print(timeit.timeit('"-".join(str(n) for n in range(100))', number=10000))
print(timeit.timeit('"-".join(map(str, range(100)))', number=10000))
| 38
| 74
| 0.715789
| 29
| 190
| 4.689655
| 0.551724
| 0.161765
| 0.25
| 0.308824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097143
| 0.078947
| 190
| 4
| 75
| 47.5
| 0.68
| 0
| 0
| 0
| 0
| 0
| 0.347368
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
eaeb759e1d33fc654c9e0803b3ab3982fb054b71
| 127,123
|
py
|
Python
|
a.py
|
haijuga7/Dec-Enc-Hash
|
3a64feb73940c955419d97ddd5001f77aa19dba9
|
[
"Apache-2.0"
] | 3
|
2018-06-29T00:36:54.000Z
|
2020-04-12T00:53:50.000Z
|
a.py
|
haijuga7/Dec-Enc-Hash
|
3a64feb73940c955419d97ddd5001f77aa19dba9
|
[
"Apache-2.0"
] | null | null | null |
a.py
|
haijuga7/Dec-Enc-Hash
|
3a64feb73940c955419d97ddd5001f77aa19dba9
|
[
"Apache-2.0"
] | null | null | null |
#Created By Mr.A_S
import marshal
exec(marshal.loads('''c\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00@\x00\x00\x00s~\r\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00i}\x00d\x02\x00d\x03\x006d\x04\x00d\x05\x006d\x06\x00d\x07\x006d\x08\x00d\t\x006d\n\x00d\x0b\x006d\x0c\x00d\r\x006d\x0e\x00d\x0f\x006d\x10\x00d\x11\x006d\x12\x00d\x13\x006d\x14\x00d\x15\x006d\x16\x00d\x17\x006d\x18\x00d\x19\x006d\x1a\x00d\x1b\x006d\x1c\x00d\x1d\x006d\x1e\x00d\x1f\x006d \x00d!\x006d"\x00d#\x006d$\x00d%\x006d&\x00d\'\x006d(\x00d)\x006d*\x00d+\x006d,\x00d-\x006d.\x00d/\x006d0\x00d1\x006d2\x00d3\x006d4\x00d5\x006d6\x00d7\x006d8\x00d9\x006d:\x00d;\x006d<\x00d=\x006d>\x00d?\x006d@\x00dA\x006dB\x00dC\x006dD\x00dE\x006dF\x00dG\x006dH\x00dI\x006dJ\x00dK\x006dL\x00dM\x006dN\x00dO\x006dP\x00dQ\x006dR\x00dS\x006dT\x00dU\x006dV\x00dW\x006dX\x00dY\x006dZ\x00d[\x006d\\\x00d]\x006d^\x00d_\x006d`\x00da\x006db\x00dc\x006dd\x00de\x006df\x00dg\x006dh\x00di\x006dj\x00dk\x006dl\x00dm\x006dn\x00do\x006dp\x00dq\x006dr\x00ds\x006dt\x00du\x006dv\x00dw\x006dx\x00dy\x006dz\x00d{\x006d|\x00d}\x006d~\x00d\x7f\x006d\x80\x00d\x81\x006d\x82\x00d\x83\x006d\x84\x00d\x85\x006d\x86\x00d\x87\x006d\x88\x00d\x89\x006d\x8a\x00d\x8b\x006d\x8c\x00d\x8d\x006d\x8e\x00d\x8f\x006d\x90\x00d\x91\x006d\x92\x00d\x93\x006d\x94\x00d\x95\x006d\x96\x00d\x97\x006d\x98\x00d\x99\x006d\x9a\x00d\x9b\x006d\x9c\x00d\x9d\x006d\x9e\x00d\x9f\x006d\xa0\x00d\xa1\x006d\xa2\x00d\xa3\x006d\xa4\x00d\xa5\x006d\xa6\x00d\xa7\x006d\xa8\x00d\xa9\x006d\xaa\x00d\xab\x006d\xac\x00d\xad\x006d\xae\x00d\xaf\x006d\xb0\x00d\xb1\x006d\xb2\x00d\xb3\x006d\xb4\x00d\xb5\x006d\xb6\x00d\xb7\x006d\xb8\x00d\xb9\x006d\xba\x00d\xbb\x006d\xbc\x00d\xbd\x006d\xbe\x00d\xbf\x006d\xc0\x00d\xc1\x006d\xc2\x00d\xc3\x006d\xc4\x00d\xc5\x006d\xc6\x00d\xc7\x006d\xc8\x00d\xc9\x006d\xca\x00d\xcb\x006d\xcc\x00d\xcd\x006d\xce\x00d\xcf\x006d\xd0\x00d\xd1\x006d\xd2\x00d\xd3\x006d\xd4\x00d\xd5\x006d\xd6\x00d\xd7\x006d\xd8\x00d\xd9\x006d\xda\x00d\xdb\x006d\xdc\x00d\xdd\x006d\xde\x00d\xdf\x006d\xe0\x00d\xe1\x006d\xca\x00d\xe2\x006d\xe3\x00d\xe4\x006d\xe5\x00d\xe6\x006d\xe7\x00d\xe8\x006d\xe9\x00d\xea\x006d\xeb\x00d\xec\x006d\xed\x00d\xee\x006d\xde\x00d\xef\x006d\xf0\x00d\xf1\x006d\xf2\x00d\xf3\x006d\xf4\x00d\xf5\x006d\xf6\x00d\xf7\x006d\xf8\x00d\xf9\x006Z\x01\x00d\xfa\x00\x84\x00\x00Z\x02\x00d\xfb\x00\x84\x00\x00Z\x03\x00d\xfc\x00\x84\x00\x00Z\x04\x00d\xfd\x00\x84\x00\x00Z\x05\x00d\xfe\x00\x84\x00\x00Z\x06\x00d\xff\x00\x84\x00\x00Z\x07\x00d\x00\x01\x84\x00\x00Z\x08\x00d\x01\x01\x84\x00\x00Z\t\x00d\x02\x01\x84\x00\x00Z\n\x00d\x03\x01\x84\x00\x00Z\x0b\x00d\x04\x01\x84\x00\x00Z\x0c\x00d\x05\x01\x84\x00\x00Z\r\x00d\x06\x01\x84\x00\x00Z\x0e\x00d\x07\x01\x84\x00\x00Z\x0f\x00d\x08\x01\x84\x00\x00Z\x10\x00d\t\x01\x84\x00\x00Z\x11\x00d\n\x01\x84\x00\x00Z\x12\x00d\x0b\x01\x84\x00\x00Z\x13\x00d\x0c\x01\x84\x00\x00Z\x14\x00d\r\x01\x84\x00\x00Z\x15\x00d\x0e\x01\x84\x00\x00Z\x16\x00d\x0f\x01\x84\x00\x00Z\x17\x00d\x10\x01\x84\x00\x00Z\x18\x00d\x11\x01\x84\x00\x00Z\x19\x00d\x12\x01\x84\x00\x00Z\x1a\x00d\x13\x01\x84\x00\x00Z\x1b\x00d\x14\x01\x84\x00\x00Z\x1c\x00d\x15\x01\x84\x00\x00Z\x1d\x00d\x16\x01\x84\x00\x00Z\x1e\x00d\x17\x01\x84\x00\x00Z\x1f\x00d\x18\x01\x84\x00\x00Z \x00d\x19\x01\x84\x00\x00Z!\x00d\x1a\x01\x84\x00\x00Z"\x00d\x1b\x01\x84\x00\x00Z#\x00d\x1c\x01\x84\x00\x00Z$\x00d\x1d\x01\x84\x00\x00Z%\x00d\x1e\x01\x84\x00\x00Z"\x00d\x1f\x01\x84\x00\x00Z&\x00d \x01\x84\x00\x00Z&\x00d!\x01\x84\x00\x00Z\'\x00d"\x01\x84\x00\x00Z(\x00d#\x01\x84\x00\x00Z)\x00d$\x01\x84\x00\x00Z*\x00d%\x01\x84\x00\x00Z+\x00d&\x01\x84\x00\x00Z,\x00d\'\x01\x84\x00\x00Z-\x00d(\x01\x84\x00\x00Z.\x00d)\x01\x84\x00\x00Z/\x00d*\x01\x84\x00\x00Z0\x00d+\x01\x84\x00\x00Z1\x00d,\x01\x84\x00\x00Z2\x00d-\x01\x84\x00\x00Z3\x00d.\x01\x84\x00\x00Z4\x00d/\x01\x84\x00\x00Z5\x00d0\x01\x84\x00\x00Z6\x00d1\x01\x84\x00\x00Z7\x00d2\x01\x84\x00\x00Z8\x00d3\x01\x84\x00\x00Z9\x00d4\x01\x84\x00\x00Z:\x00d5\x01\x84\x00\x00Z;\x00d6\x01\x84\x00\x00Z<\x00d7\x01\x84\x00\x00Z=\x00d8\x01\x84\x00\x00Z>\x00d9\x01\x84\x00\x00Z?\x00d:\x01\x84\x00\x00Z@\x00d;\x01\x84\x00\x00ZA\x00d<\x01\x84\x00\x00ZB\x00d=\x01\x84\x00\x00ZC\x00d>\x01\x84\x00\x00ZD\x00d?\x01\x84\x00\x00ZE\x00d@\x01\x84\x00\x00ZF\x00dA\x01\x84\x00\x00ZG\x00dB\x01\x84\x00\x00ZH\x00dC\x01\x84\x00\x00ZI\x00dD\x01\x84\x00\x00ZJ\x00dE\x01\x84\x00\x00ZK\x00dF\x01\x84\x00\x00ZL\x00dG\x01\x84\x00\x00ZM\x00dH\x01\x84\x00\x00ZN\x00dI\x01\x84\x00\x00ZO\x00dJ\x01\x84\x00\x00ZP\x00dK\x01\x84\x00\x00ZQ\x00dL\x01\x84\x00\x00ZR\x00dM\x01\x84\x00\x00ZS\x00dN\x01\x84\x00\x00ZT\x00dO\x01\x84\x00\x00ZU\x00dP\x01\x84\x00\x00ZV\x00dQ\x01\x84\x00\x00ZW\x00dR\x01\x84\x00\x00ZX\x00dS\x01\x84\x00\x00ZY\x00dT\x01\x84\x00\x00ZZ\x00dU\x01\x84\x00\x00Z[\x00dV\x01\x84\x00\x00Z\\\x00dW\x01\x84\x00\x00Z]\x00dX\x01\x84\x00\x00Z^\x00dY\x01\x84\x00\x00Z_\x00dZ\x01\x84\x00\x00Z`\x00d[\x01\x84\x00\x00Za\x00d\\\x01\x84\x00\x00Zb\x00d]\x01\x84\x00\x00Zc\x00d^\x01\x84\x00\x00Zd\x00d_\x01\x84\x00\x00Ze\x00d`\x01\x84\x00\x00Zf\x00da\x01\x84\x00\x00Zg\x00db\x01\x84\x00\x00Zh\x00dc\x01\x84\x00\x00Zi\x00dd\x01\x84\x00\x00Zj\x00de\x01\x84\x00\x00Zk\x00df\x01\x84\x00\x00Zl\x00dg\x01\x84\x00\x00Zm\x00dh\x01\x84\x00\x00Zn\x00di\x01\x84\x00\x00Zo\x00dj\x01\x84\x00\x00Zp\x00dk\x01\x84\x00\x00Zq\x00dl\x01\x84\x00\x00Zr\x00dm\x01\x84\x00\x00Zs\x00dn\x01\x84\x00\x00Zt\x00do\x01\x84\x00\x00Zu\x00dp\x01\x84\x00\x00Zv\x00dq\x01\x84\x00\x00Zw\x00dr\x01\x84\x00\x00Zx\x00ds\x01\x84\x00\x00Zy\x00dt\x01\x84\x00\x00Zz\x00du\x01\x84\x00\x00Z{\x00dv\x01\x84\x00\x00Z|\x00dw\x01Z}\x00dx\x01Z~\x00dy\x01Z\x7f\x00dz\x01Z\x80\x00d{\x01Z\x81\x00d|\x01Z\x82\x00d}\x01Z\x83\x00d~\x01Z\x84\x00d\x7f\x01Z\x85\x00d\x80\x01Z\x86\x00d\x81\x01Z\x87\x00d\x82\x01f\x00\x00d\x83\x01\x84\x00\x00\x83\x00\x00YZ\x88\x00g\x00\x00Z\x89\x00e\x00\x00j\x8a\x00d\x84\x01\x19Z\x8b\x00e\x06\x00\x83\x00\x00\x01e\x02\x00\x83\x00\x00\x01e\x03\x00\x83\x00\x00\x01e\x05\x00\x83\x00\x00\x01e\x07\x00\x83\x00\x00\x01e\x0b\x00\x83\x00\x00\x01e\x0f\x00\x83\x00\x00\x01e\x04\x00\x83\x00\x00\x01e\t\x00\x83\x00\x00\x01e\n\x00\x83\x00\x00\x01ei\x00\x83\x00\x00\x01e\x10\x00\x83\x00\x00\x01e\x11\x00\x83\x00\x00\x01e>\x00\x83\x00\x00\x01e?\x00\x83\x00\x00\x01e[\x00\x83\x00\x00\x01e\\\x00\x83\x00\x00\x01ea\x00\x83\x00\x00\x01eb\x00\x83\x00\x00\x01eg\x00\x83\x00\x00\x01eh\x00\x83\x00\x00\x01e9\x00\x83\x00\x00\x01e\x12\x00\x83\x00\x00\x01e\x13\x00\x83\x00\x00\x01e\x14\x00\x83\x00\x00\x01e\x15\x00\x83\x00\x00\x01e\x16\x00\x83\x00\x00\x01e=\x00\x83\x00\x00\x01e\x17\x00\x83\x00\x00\x01e\x18\x00\x83\x00\x00\x01e:\x00\x83\x00\x00\x01e;\x00\x83\x00\x00\x01e<\x00\x83\x00\x00\x01e\x0c\x00\x83\x00\x00\x01e\r\x00\x83\x00\x00\x01e_\x00\x83\x00\x00\x01ep\x00\x83\x00\x00\x01e\x0e\x00\x83\x00\x00\x01e@\x00\x83\x00\x00\x01eA\x00\x83\x00\x00\x01e\x19\x00\x83\x00\x00\x01e\x1a\x00\x83\x00\x00\x01e\x1b\x00\x83\x00\x00\x01e\x1c\x00\x83\x00\x00\x01eB\x00\x83\x00\x00\x01eC\x00\x83\x00\x00\x01ej\x00\x83\x00\x00\x01ek\x00\x83\x00\x00\x01es\x00\x83\x00\x00\x01et\x00\x83\x00\x00\x01eq\x00\x83\x00\x00\x01eD\x00\x83\x00\x00\x01e`\x00\x83\x00\x00\x01eE\x00\x83\x00\x00\x01eF\x00\x83\x00\x00\x01eG\x00\x83\x00\x00\x01ec\x00\x83\x00\x00\x01ed\x00\x83\x00\x00\x01ee\x00\x83\x00\x00\x01ew\x00\x83\x00\x00\x01er\x00\x83\x00\x00\x01ef\x00\x83\x00\x00\x01en\x00\x83\x00\x00\x01eo\x00\x83\x00\x00\x01eu\x00\x83\x00\x00\x01ex\x00\x83\x00\x00\x01ev\x00\x83\x00\x00\x01ey\x00\x83\x00\x00\x01ez\x00\x83\x00\x00\x01e\x1d\x00\x83\x00\x00\x01e\x1e\x00\x83\x00\x00\x01el\x00\x83\x00\x00\x01em\x00\x83\x00\x00\x01e\x1f\x00\x83\x00\x00\x01e \x00\x83\x00\x00\x01eH\x00\x83\x00\x00\x01eI\x00\x83\x00\x00\x01e]\x00\x83\x00\x00\x01e^\x00\x83\x00\x00\x01e{\x00\x83\x00\x00\x01e|\x00\x83\x00\x00\x01e\x08\x00\x83\x00\x00\x01e!\x00\x83\x00\x00\x01e"\x00\x83\x00\x00\x01e#\x00\x83\x00\x00\x01e$\x00\x83\x00\x00\x01e%\x00\x83\x00\x00\x01e"\x00\x83\x00\x00\x01e&\x00\x83\x00\x00\x01e&\x00\x83\x00\x00\x01e\'\x00\x83\x00\x00\x01e(\x00\x83\x00\x00\x01e)\x00\x83\x00\x00\x01e*\x00\x83\x00\x00\x01e+\x00\x83\x00\x00\x01e,\x00\x83\x00\x00\x01e-\x00\x83\x00\x00\x01e.\x00\x83\x00\x00\x01e/\x00\x83\x00\x00\x01e0\x00\x83\x00\x00\x01e1\x00\x83\x00\x00\x01e2\x00\x83\x00\x00\x01e3\x00\x83\x00\x00\x01e4\x00\x83\x00\x00\x01e5\x00\x83\x00\x00\x01e6\x00\x83\x00\x00\x01e7\x00\x83\x00\x00\x01e8\x00\x83\x00\x00\x01eJ\x00\x83\x00\x00\x01eK\x00\x83\x00\x00\x01eL\x00\x83\x00\x00\x01eM\x00\x83\x00\x00\x01eN\x00\x83\x00\x00\x01eO\x00\x83\x00\x00\x01eP\x00\x83\x00\x00\x01eQ\x00\x83\x00\x00\x01eR\x00\x83\x00\x00\x01eS\x00\x83\x00\x00\x01eT\x00\x83\x00\x00\x01eU\x00\x83\x00\x00\x01eV\x00\x83\x00\x00\x01eW\x00\x83\x00\x00\x01eX\x00\x83\x00\x00\x01eY\x00\x83\x00\x00\x01eZ\x00\x83\x00\x00\x01e\x8c\x00e\x89\x00\x83\x01\x00d\x85\x01k\x02\x00r\xe4\x0be\x88\x00j\x8d\x00e\x88\x00j\x8e\x00\x17d\x86\x01\x17e\x88\x00j\x8f\x00\x17GHn\x96\x01e\x8c\x00e\x89\x00\x83\x01\x00d\x87\x01k\x04\x00r\xff\x0ce\x89\x00j\x90\x00\x83\x00\x00\x01e}\x00d\x88\x01\x17e\x82\x00\x17d\x89\x01\x17e}\x00\x17d\x8a\x01\x17e\x88\x00j\x91\x00\x17d\x8b\x01\x17e\x88\x00j\x8f\x00\x17GHe\x83\x00d\x8c\x01\x17e\x82\x00\x17d\x8d\x01\x17e\x83\x00\x17d\x8e\x01\x17e}\x00\x17Ge\x01\x00e\x89\x00d\x85\x01\x19\x19GHe\x83\x00d\x8c\x01\x17e\x82\x00\x17d\x8d\x01\x17e\x83\x00\x17d\x8e\x01\x17e}\x00\x17Ge\x01\x00e\x89\x00d\x84\x01\x19\x19GHe~\x00d\x88\x01\x17e\x82\x00\x17d\x89\x01\x17e~\x00\x17d\x8a\x01\x17e\x88\x00j\x91\x00\x17d\x8f\x01\x17e\x88\x00j\x8f\x00\x17GHxQ\x00e\x92\x00e\x93\x00e\x8c\x00e\x89\x00\x83\x01\x00\x83\x01\x00d\x87\x01\x18\x83\x01\x00D]3\x00Z\x87\x00e\x81\x00d\x8c\x01\x17e\x82\x00\x17d\x8d\x01\x17e\x81\x00\x17d\x8e\x01\x17e~\x00\x17Ge\x01\x00e\x89\x00e\x87\x00d\x87\x01\x17\x19\x19GHq\xc5\x0cWn{\x00e\x89\x00j\x90\x00\x83\x00\x00\x01e}\x00d\x88\x01\x17e\x82\x00\x17d\x89\x01\x17e}\x00\x17d\x8a\x01\x17e\x88\x00j\x91\x00\x17d\x8b\x01\x17e\x88\x00j\x8f\x00\x17GHxC\x00e\x92\x00e\x8c\x00e\x89\x00\x83\x01\x00\x83\x01\x00D]/\x00Z\x87\x00e\x83\x00d\x8c\x01\x17e\x82\x00\x17d\x8d\x01\x17e\x83\x00\x17d\x8e\x01\x17e}\x00\x17Ge\x01\x00e\x89\x00e\x87\x00\x19\x19GHqG\rWd\x01\x00S(\x90\x01\x00\x00i\xff\xff\xff\xffNs\x08\x00\x00\x00ADLER-32t\x06\x00\x00\x00102020s\x06\x00\x00\x00CRC-32t\x06\x00\x00\x00102040s\x07\x00\x00\x00CRC-32Bt\x06\x00\x00\x00102060s\x06\x00\x00\x00CRC-16t\x06\x00\x00\x00101020s\x0c\x00\x00\x00CRC-16-CCITTt\x06\x00\x00\x00101040s\t\x00\x00\x00DES(Unix)t\x06\x00\x00\x00104020s\x06\x00\x00\x00FCS-16t\x06\x00\x00\x00101060s\n\x00\x00\x00GHash-32-3t\x06\x00\x00\x00103040s\n\x00\x00\x00GHash-32-5t\x06\x00\x00\x00103020s\x0f\x00\x00\x00GOST R 34.11-94t\x06\x00\x00\x00115060s\t\x00\x00\x00Haval-160t\x06\x00\x00\x00109100s\x0f\x00\x00\x00Haval-160(HMAC)t\x06\x00\x00\x00109200s\t\x00\x00\x00Haval-192t\x06\x00\x00\x00110040s\x0f\x00\x00\x00Haval-192(HMAC)t\x06\x00\x00\x00110080s\t\x00\x00\x00Haval-224t\x06\x00\x00\x00114040s\x0f\x00\x00\x00Haval-224(HMAC)t\x06\x00\x00\x00114080s\t\x00\x00\x00Haval-256t\x06\x00\x00\x00115040s\x0f\x00\x00\x00Haval-256(HMAC)t\x06\x00\x00\x00115140s\r\x00\x00\x00Lineage II C4t\x06\x00\x00\x00107080sE\x00\x00\x00Domain Cached Credentials - MD4(MD4(($pass)).(strtolower($username)))t\x06\x00\x00\x00106025s\x06\x00\x00\x00XOR-32t\x06\x00\x00\x00102080s\t\x00\x00\x00MD5(Half)t\x06\x00\x00\x00105060s\x0b\x00\x00\x00MD5(Middle)t\x06\x00\x00\x00105040t\x05\x00\x00\x00MySQLt\x06\x00\x00\x00105020s\x0b\x00\x00\x00MD5(phpBB3)t\x06\x00\x00\x00107040s\t\x00\x00\x00MD5(Unix)t\x06\x00\x00\x00107060s\x0e\x00\x00\x00MD5(Wordpress)t\x06\x00\x00\x00107020s\x08\x00\x00\x00MD5(APR)t\x06\x00\x00\x00108020s\t\x00\x00\x00Haval-128t\x06\x00\x00\x00106160s\x0f\x00\x00\x00Haval-128(HMAC)t\x06\x00\x00\x00106165t\x03\x00\x00\x00MD2t\x06\x00\x00\x00106060s\t\x00\x00\x00MD2(HMAC)t\x06\x00\x00\x00106120t\x03\x00\x00\x00MD4t\x06\x00\x00\x00106040s\t\x00\x00\x00MD4(HMAC)t\x06\x00\x00\x00106100t\x03\x00\x00\x00MD5t\x06\x00\x00\x00106020s\t\x00\x00\x00MD5(HMAC)t\x06\x00\x00\x00106080s\x14\x00\x00\x00MD5(HMAC(Wordpress))t\x06\x00\x00\x00106140t\x04\x00\x00\x00NTLMt\x06\x00\x00\x00106029s\x0b\x00\x00\x00RAdmin v2.xt\x06\x00\x00\x00106027s\n\x00\x00\x00RipeMD-128t\x06\x00\x00\x00106180s\x10\x00\x00\x00RipeMD-128(HMAC)t\x06\x00\x00\x00106185s\n\x00\x00\x00SNEFRU-128t\x06\x00\x00\x00106200s\x10\x00\x00\x00SNEFRU-128(HMAC)t\x06\x00\x00\x00106205s\t\x00\x00\x00Tiger-128t\x06\x00\x00\x00106220s\x0f\x00\x00\x00Tiger-128(HMAC)t\x06\x00\x00\x00106225s\x10\x00\x00\x00md5($pass.$salt)t\x06\x00\x00\x00106240s\x19\x00\x00\x00md5($salt.\'-\'.md5($pass))t\x06\x00\x00\x00106260s\x10\x00\x00\x00md5($salt.$pass)t\x06\x00\x00\x00106280s\x16\x00\x00\x00md5($salt.$pass.$salt)t\x06\x00\x00\x00106300s\x1a\x00\x00\x00md5($salt.$pass.$username)t\x06\x00\x00\x00106320s\x15\x00\x00\x00md5($salt.md5($pass))t\x06\x00\x00\x00106340s\x1b\x00\x00\x00md5($salt.md5($pass).$salt)t\x06\x00\x00\x00106360s\x1b\x00\x00\x00md5($salt.md5($pass.$salt))t\x06\x00\x00\x00106380s\x1b\x00\x00\x00md5($salt.md5($salt.$pass))t\x06\x00\x00\x00106400s \x00\x00\x00md5($salt.md5(md5($pass).$salt))t\x06\x00\x00\x00106420s\x16\x00\x00\x00md5($username.0.$pass)t\x06\x00\x00\x00106440s\x17\x00\x00\x00md5($username.LF.$pass)t\x06\x00\x00\x00106460s\x1f\x00\x00\x00md5($username.md5($pass).$salt)t\x06\x00\x00\x00106480s\x0f\x00\x00\x00md5(md5($pass))t\x06\x00\x00\x00106500s\x15\x00\x00\x00md5(md5($pass).$salt)t\x06\x00\x00\x00106520s\x1a\x00\x00\x00md5(md5($pass).md5($salt))t\x06\x00\x00\x00106540s\x15\x00\x00\x00md5(md5($salt).$pass)t\x06\x00\x00\x00106560s\x1a\x00\x00\x00md5(md5($salt).md5($pass))t\x06\x00\x00\x00106580s\x1f\x00\x00\x00md5(md5($username.$pass).$salt)t\x06\x00\x00\x00106600s\x14\x00\x00\x00md5(md5(md5($pass)))t\x06\x00\x00\x00106620s\x19\x00\x00\x00md5(md5(md5(md5($pass))))t\x06\x00\x00\x00106640s\x1e\x00\x00\x00md5(md5(md5(md5(md5($pass)))))t\x06\x00\x00\x00106660s\x10\x00\x00\x00md5(sha1($pass))t\x06\x00\x00\x00106680s\x15\x00\x00\x00md5(sha1(md5($pass)))t\x06\x00\x00\x00106700s\x1b\x00\x00\x00md5(sha1(md5(sha1($pass))))t\x06\x00\x00\x00106720s\x1b\x00\x00\x00md5(strtoupper(md5($pass)))t\x06\x00\x00\x00106740s\x1c\x00\x00\x00MySQL5 - SHA-1(SHA-1($pass))t\x06\x00\x00\x00109040s"\x00\x00\x00MySQL 160bit - SHA-1(SHA-1($pass))t\x06\x00\x00\x00109060s\x10\x00\x00\x00RipeMD-160(HMAC)t\x06\x00\x00\x00109180s\n\x00\x00\x00RipeMD-160t\x06\x00\x00\x00109120s\x05\x00\x00\x00SHA-1t\x06\x00\x00\x00109020s\x0b\x00\x00\x00SHA-1(HMAC)t\x06\x00\x00\x00109140s\r\x00\x00\x00SHA-1(MaNGOS)t\x06\x00\x00\x00109220s\x0e\x00\x00\x00SHA-1(MaNGOS2)t\x06\x00\x00\x00109240s\t\x00\x00\x00Tiger-160t\x06\x00\x00\x00109080s\x0f\x00\x00\x00Tiger-160(HMAC)t\x06\x00\x00\x00109160s\x11\x00\x00\x00sha1($pass.$salt)t\x06\x00\x00\x00109260s\x11\x00\x00\x00sha1($salt.$pass)t\x06\x00\x00\x00109280s\x16\x00\x00\x00sha1($salt.md5($pass))t\x06\x00\x00\x00109300s\x1c\x00\x00\x00sha1($salt.md5($pass).$salt)t\x06\x00\x00\x00109320s\x17\x00\x00\x00sha1($salt.sha1($pass))t\x06\x00\x00\x00109340s#\x00\x00\x00sha1($salt.sha1($salt.sha1($pass)))t\x06\x00\x00\x00109360s\x15\x00\x00\x00sha1($username.$pass)t\x06\x00\x00\x00109380s\x1b\x00\x00\x00sha1($username.$pass.$salt)t\x06\x00\x00\x00109400s\x10\x00\x00\x00sha1(md5($pass))t\x07\x00\x00\x001094202s\x16\x00\x00\x00sha1(md5($pass).$salt)t\x06\x00\x00\x00109440s\x16\x00\x00\x00sha1(md5(sha1($pass)))t\x06\x00\x00\x00109460s\x11\x00\x00\x00sha1(sha1($pass))t\x06\x00\x00\x00109480s\x17\x00\x00\x00sha1(sha1($pass).$salt)t\x06\x00\x00\x00109500s#\x00\x00\x00sha1(sha1($pass).substr($pass,0,3))t\x06\x00\x00\x00109520s\x17\x00\x00\x00sha1(sha1($salt.$pass))t\x06\x00\x00\x00109540s\x17\x00\x00\x00sha1(sha1(sha1($pass)))t\x06\x00\x00\x00109560s!\x00\x00\x00sha1(strtolower($username).$pass)t\x06\x00\x00\x00109580s\t\x00\x00\x00Tiger-192t\x06\x00\x00\x00110020s\x0f\x00\x00\x00Tiger-192(HMAC)t\x06\x00\x00\x00110060s\x19\x00\x00\x00md5($pass.$salt) - Joomlat\x06\x00\x00\x00112020s\r\x00\x00\x00SHA-1(Django)t\x06\x00\x00\x00113020s\x07\x00\x00\x00SHA-224t\x06\x00\x00\x00114020s\r\x00\x00\x00SHA-224(HMAC)t\x06\x00\x00\x00114060s\n\x00\x00\x00RipeMD-256t\x06\x00\x00\x00115080s\x10\x00\x00\x00RipeMD-256(HMAC)t\x06\x00\x00\x00115160s\n\x00\x00\x00SNEFRU-256t\x06\x00\x00\x00115100s\x10\x00\x00\x00SNEFRU-256(HMAC)t\x06\x00\x00\x00115180s\x13\x00\x00\x00SHA-256(md5($pass))t\x06\x00\x00\x00115200s\x14\x00\x00\x00SHA-256(sha1($pass))t\x06\x00\x00\x00115220s\x07\x00\x00\x00SHA-256t\x06\x00\x00\x00115020s\r\x00\x00\x00SHA-256(HMAC)t\x06\x00\x00\x00115120t\x06\x00\x00\x00116020s\x17\x00\x00\x00SAM - (LM_hash:NT_hash)t\x06\x00\x00\x00116040s\x0f\x00\x00\x00SHA-256(Django)t\x06\x00\x00\x00117020s\n\x00\x00\x00RipeMD-320t\x06\x00\x00\x00118020s\x10\x00\x00\x00RipeMD-320(HMAC)t\x06\x00\x00\x00118040s\x07\x00\x00\x00SHA-384t\x06\x00\x00\x00119020s\r\x00\x00\x00SHA-384(HMAC)t\x06\x00\x00\x00119040t\x06\x00\x00\x00120020s\x0f\x00\x00\x00SHA-384(Django)t\x06\x00\x00\x00121020s\x07\x00\x00\x00SHA-512t\x06\x00\x00\x00122020s\r\x00\x00\x00SHA-512(HMAC)t\x06\x00\x00\x00122060t\t\x00\x00\x00Whirlpoolt\x06\x00\x00\x00122040s\x0f\x00\x00\x00Whirlpool(HMAC)t\x06\x00\x00\x00122080c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sV\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rR\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rR\x00t\x01\x00j\x04\x00\x83\x00\x00t\x05\x00k\x02\x00rR\x00t\x06\x00j\x07\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x04\x00\x00\x004607R\x03\x00\x00\x00(\x08\x00\x00\x00t\x03\x00\x00\x00lent\x04\x00\x00\x00hasht\x07\x00\x00\x00isalphat\x05\x00\x00\x00Falset\x07\x00\x00\x00isalnumt\x04\x00\x00\x00Truet\x05\x00\x00\x00jerart\x06\x00\x00\x00append(\x01\x00\x00\x00t\x02\x00\x00\x00hs(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x05\x00\x00\x00CRC16\x0b\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01<\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x04\x00\x00\x003d08R\x04\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00t\x07\x00\x00\x00isdigitR\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00CRC16CCITT\x0f\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x04\x00\x00\x000e5bR\x06\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x05\x00\x00\x00FCS16\x13\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x08\x00\x00\x00b33fd057R\x01\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x05\x00\x00\x00CRC32\x18\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x08\x00\x00\x000607cb42R\x00\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00ADLER32\x1c\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x08\x00\x00\x00b764a0d9R\x02\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00CRC32B \x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x08\x00\x00\x000000003fR\x14\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x05\x00\x00\x00XOR32$\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x05\x00k\x02\x00rd\x00t\x01\x00j\x06\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x08\x00\x00\x0080000000R\x07\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x89\x00\x00\x00R\x86\x00\x00\x00R\x87\x00\x00\x00R\x88\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00GHash323)\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x05\x00k\x02\x00rd\x00t\x01\x00j\x06\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x08\x00\x00\x0085318985R\x08\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x89\x00\x00\x00R\x86\x00\x00\x00R\x87\x00\x00\x00R\x88\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00GHash325-\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sV\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rR\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rR\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rR\x00t\x05\x00j\x06\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\r\x00\x00\x00ZiY8YtDKXJwYQR\x05\x00\x00\x00(\x07\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00DESUnix2\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01<\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x10\x00\x00\x00ae11fd697ec92c7cR\x15\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00MD5Half7\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x10\x00\x00\x007ec92c7c98de3facR\x16\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00MD5Middle;\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x10\x00\x00\x0063cea4673fd25f46R\x18\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R\x17\x00\x00\x00?\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00f42005ec1afe77967cbc83dce1b4d714R\x13\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x17\x00\x00\x00DomainCachedCredentialsD\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00d6e3ec49aa0f138a619f27609022df10R\x1d\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Haval128H\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x003ce8b0ffd75bc240fc7d967729cd6637R\x1e\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Haval128HMACL\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x0008bbef4754d98806c373f2cd7d9a43c4R \x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R\x1f\x00\x00\x00P\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x004b61b72ead2b0eb0fa3b8a56556a6dcaR!\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00MD2HMACT\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00a2acde400e61410e79dacbdfc3413151R#\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R"\x00\x00\x00X\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x006be20b66f2211fe937294c1c95d1cd4fR$\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00MD4HMAC\\\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00ae11fd697ec92c7c98de3fac23aba525R&\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R%\x00\x00\x00`\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00d57e43d2c7e397bf788f66541d6fdef9R\'\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00MD5HMACd\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x003f47886719268dfa83468630948228f6R(\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00MD5HMACWordpressh\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00cc348bace876ea440a28ddaeb9fd3550R*\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R)\x00\x00\x00l\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00baea31c728cbf0cd548476aa687add4bR+\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00RAdminv2xp\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x004985351cd74aff0abc5a75a0c8a54115R,\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00RipeMD128t\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00ae1995b931cf4cbcf1ac6fbf1a83d1d3R-\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00RipeMD128HMACx\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x004fb58702b617ac4f7ca87ec77b93da8aR.\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00SNEFRU128|\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x0059b2b9dcc7a9a7d089cecf1b83520350R/\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00SNEFRU128HMAC\x80\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00c086184486ec6388ff81ec9f23528727R0\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Tiger128\x84\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00c87032009e7c4b2ea27eb6f99723454bR1\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Tiger128HMAC\x88\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x005634cc3b922578434d6e9342ff5913f7R2\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00md5passsalt\x8c\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00245c5763b95ba42d4b02d44bbcd916f1R3\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0e\x00\x00\x00md5saltmd5pass\x90\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x0022cc5ce1a1ef747cd3fa06106c148dfaR4\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00md5saltpass\x94\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00469e9cdcaff745460595a7a386c4db0cR5\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0f\x00\x00\x00md5saltpasssalt\x98\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x009ae20f88189f6e3a62711608ddb6f5fdR6\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x13\x00\x00\x00md5saltpassusername\x9c\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00aca2a052962b2564027ee62933d2382fR7\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R\xc9\x00\x00\x00\xa0\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00de0237dc03a8efdf6552fbe7788b2fddR8\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x12\x00\x00\x00md5saltmd5passsalt\xa4\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x005b8b12ca69d3e7b2a3e2308e7bef3e6fR9\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R\xd2\x00\x00\x00\xa8\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00d8f3b3f004d387086aae24326b575b23R:\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x12\x00\x00\x00md5saltmd5saltpass\xac\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x0081f181454e23319779b03d74d062b1a2R;\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x15\x00\x00\x00md5saltmd5md5passsalt\xb0\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00e44a60f8f2106492ae16581c91edb3baR<\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00md5username0pass\xb4\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00654741780db415732eaee12b1b909119R=\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x11\x00\x00\x00md5usernameLFpass\xb8\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00954ac5505fd1843bbb97d1b2cda0b98fR>\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x16\x00\x00\x00md5usernamemd5passsalt\xbc\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00a96103d267d024583d5565436e52dfb3R?\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00md5md5pass\xc0\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x005848c73c2482d3c2c7b6af134ed8dd89R@\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0e\x00\x00\x00md5md5passsalt\xc4\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x008dc71ef37197b2edba02d48c30217b32RA\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x11\x00\x00\x00md5md5passmd5salt\xc8\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x009032fabd905e273b9ceb1e124631bd67RB\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0e\x00\x00\x00md5md5saltpass\xcc\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x008966f37dbb4aca377a71a9d3d09cd1acRC\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x11\x00\x00\x00md5md5saltmd5pass\xd0\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x004319a3befce729b34c3105dbc29d0c40RD\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x16\x00\x00\x00md5md5usernamepasssalt\xd4\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00ea086739755920e732d0f4d8c1b6ad8dRE\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00md5md5md5pass\xd8\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x0002528c1f2ed8ac7d83fe76f3cf1c133fRF\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00md5md5md5md5pass\xdc\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x004548d2c062933dff53928fd4ae427fc0RG\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x13\x00\x00\x00md5md5md5md5md5pass\xe0\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00cb4ebaaedfd536d965c452d9569a6b1eRH\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00md5sha1pass\xe4\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00099b8a59795e07c334a696a10c0ebce0RI\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0e\x00\x00\x00md5sha1md5pass\xe8\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x0006e4af76833da7cc138d90602ef80070RJ\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x12\x00\x00\x00md5sha1md5sha1pass\xec\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt \x00\x00\x00519de146f1a658ab5e5e2aa9b7d2eec8RK\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x14\x00\x00\x00md5strtouppermd5pass\xf0\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x07\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x08\x00j\t\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Nt"\x00\x00\x000x49a57f66bd3d5ba6abda5579c264a0e4i\x00\x00\x00\x00i\x02\x00\x00\x00t\x02\x00\x00\x000xR\x12\x00\x00\x00(\n\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00t\x04\x00\x00\x00findR\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00LineageIIC4\xf5\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Ns"\x00\x00\x00$H$9kyOtE8CDqMJ44yfn9PFz2E.L2oVzL1i\x00\x00\x00\x00i\x03\x00\x00\x00s\x03\x00\x00\x00$H$R\x19\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00MD5phpBB3\xf9\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Ns"\x00\x00\x00$1$cTuJH0Ju$1J8rI.mJReeMvpKUZbSlY/i\x00\x00\x00\x00i\x03\x00\x00\x00s\x03\x00\x00\x00$1$R\x1a\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00MD5Unix\xfd\x00\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Ns"\x00\x00\x00$P$BiTOhOj3ukMgCci2juN0HRbCdDRqeh.i\x00\x00\x00\x00i\x03\x00\x00\x00s\x03\x00\x00\x00$P$R\x1b\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00MD5Wordpress\x01\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sr\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rn\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rn\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rn\x00t\x01\x00d\x02\x00d\x03\x00!j\x05\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00rn\x00t\x06\x00j\x07\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Ns%\x00\x00\x00$apr1$qAUKoKlG$3LuCncByN76eLxZAh/Ldr1i\x00\x00\x00\x00i\x04\x00\x00\x00s\x04\x00\x00\x00$aprR\x1c\x00\x00\x00(\x08\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00MD5APR\x06\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01X\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00a106e921284dd69dad06192a4411ec32fce83dbbR\n\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Haval160\x0b\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x0029206f83edc1d6c3f680ff11276ec20642881243R\x0b\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Haval160HMAC\x0f\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x009bb2fb57063821c762cc009f7584ddae9da431ffRL\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00MySQL5\x13\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Ns)\x00\x00\x00*2470c0c06dee42fd1618bb99005adca2ec9d1e19i\x00\x00\x00\x00i\x01\x00\x00\x00t\x01\x00\x00\x00*RM\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00MySQL160bit\x17\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00dc65552812c66997ea7320ddfb51f5625d74721bRO\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00RipeMD160\x1b\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00ca28af47653b4f21e96c1235984cb50229331359RN\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00RipeMD160HMAC\x1f\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x004a1d4dbc1e193ec3ab2e9213876ceb8f4db72333RP\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x04\x00\x00\x00SHA1#\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x006f5daac3fee96ba1382a09b1ba326ca73dccf9e7RQ\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00SHA1HMAC\'\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00a2c0cdb6d1ebd1b9f85c6e25e0f8732e88f02f96RR\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00SHA1MaNGOS+\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00644a29679136e09d0bd99dfd9e8c5be84108b5fdRS\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00SHA1MaNGOS2/\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00c086184486ec6388ff81ec9f235287270429b225RT\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Tiger1603\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x006603161719da5e56e1866e4f61f79496334e6a10RU\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Tiger160HMAC7\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00f006a1863663c21c541c8d600355abfeeaadb5e4RV\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00sha1passsalt;\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00299c3d65a0dcab1fc38421783d64d0ecf4113448RW\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00sha1saltpass?\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00860465ede0625deebb4fbbedcb0db9dc65faec30RX\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0f\x00\x00\x00sha1saltmd5passC\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x006716d047c98c25a9c2cc54ee6134c73e6315a0ffRY\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x13\x00\x00\x00sha1saltmd5passsaltG\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x0058714327f9407097c64032a2fd5bff3a260cb85fRZ\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00sha1saltsha1passK\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00cc600a2903130c945aa178396910135cc7f93c63R[\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x18\x00\x00\x00sha1saltsha1saltsha1passO\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x003de3d8093bf04b8eb5f595bc2da3f37358522c9fR\\\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00sha1usernamepassS\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x0000025111b3c4d0ac1635558ce2393f77e94770c5R]\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x14\x00\x00\x00sha1usernamepasssaltW\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00fa960056c0dea57de94776d3759fb555a15cae87R^\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00sha1md5pass[\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x001dad2b71432d83312e61d25aeb627593295bcc9aR_\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0f\x00\x00\x00sha1md5passsalt_\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x008bceaeed74c17571c15cdb9494e992db3c263695R`\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0f\x00\x00\x00sha1md5sha1passc\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x003109b810188fcde0900f9907d2ebcaa10277d10eRa\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00sha1sha1passg\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x00780d43fa11693b61875321b6b54905ee488d7760Rb\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00sha1sha1passsaltk\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x005ed6bc680b59c580db4a38df307bd4621759324eRc\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x18\x00\x00\x00sha1sha1passsubstrpass03o\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x0070506bac605485b4143ca114cbd4a3580d76a413Rd\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00sha1sha1saltpasss\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x003328ee2a3b4bf41805bd6aab8e894a992fa91549Re\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x10\x00\x00\x00sha1sha1sha1passw\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt(\x00\x00\x0079f575543061e158c2da3799f999eb7c95261f07Rf\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x1a\x00\x00\x00sha1strtolowerusernamepass{\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt0\x00\x00\x00cd3a90a3bebd3fa6b6797eba5dab8441f16a7dfa96c6e641R\x0c\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Haval192\x80\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt0\x00\x00\x0039b4d8ecf70534e2fd86bb04a877d01dbf9387e640366029R\r\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Haval192HMAC\x84\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt0\x00\x00\x00c086184486ec6388ff81ec9f235287270429b2253b248a70Rg\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Tiger192\x88\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt0\x00\x00\x008e914bb64353d4d29ab680e693272d0bd38023afa3943a41Rh\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Tiger192HMAC\x8c\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x05\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x06\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x07\x00\x00\x00Ns1\x00\x00\x0035d1c0d69a2df62be2df13b087343dc9:BeKMviAfcXeTPTlXi \x00\x00\x00i!\x00\x00\x00t\x01\x00\x00\x00:i\x00\x00\x00\x00Ri\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x12\x00\x00\x00MD5passsaltjoomla1\x91\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Ns4\x00\x00\x00sha1$Zion3R$299c3d65a0dcab1fc38421783d64d0ecf4113448i\x00\x00\x00\x00i\x05\x00\x00\x00s\x05\x00\x00\x00sha1$Rj\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00SHA1Django\x96\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt8\x00\x00\x00f65d3c0ef6c56f4c74ea884815414c24dbf0195635b550f47eac651aR\x0e\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Haval224\x9b\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt8\x00\x00\x00f10de2518a9f7aed5cf09b455112114d18487f0c894e349c3c76a681R\x0f\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Haval224HMAC\x9f\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt8\x00\x00\x00e301f414993d5ec2bd1d780688d37fe41512f8b57f6923d054ef8e59Rk\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00SHA224\xa3\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt8\x00\x00\x00c15ff86a859892b5e95cdfd50af17d05268824a6c9caaa54e4bf1514Rl\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00SHA224HMAC\xa7\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x002c740d20dab7f14ec30510a11f8fd78b82bc3a711abe8a993acdb323e78e6d5eRs\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00SHA256\xac\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x00d3dd251b7668b8b6c12e639c681e88f2c9b81105ef41caccb25fcde7673a1132Rt\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00SHA256HMAC\xb0\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x007169ecae19a5cd729f6e9574228b8b3c91699175324e6222dec569d4281d4a4aR\x10\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00Haval256\xb4\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x006aa856a2cfd349fb4ee781749d2d92a1ba2d38866e337a4a1db907654d4d4d7aR\x11\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00Haval256HMAC\xb8\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x00ab709d384cce5fda0793becd3da0cb6a926c86a8f3460efb471adddee1c63793R\t\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0b\x00\x00\x00GOSTR341194\xbc\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x005fcbe06df20ce8ee16e92542e591bdea706fbdc2442aecbf42c223f4461a12afRm\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00RipeMD256\xc0\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x0043227322be1b8d743e004c628e0042184f1288f27c13155412f08beeee0e54bfRn\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00RipeMD256HMAC\xc4\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x003a654de48e8d6b669258b2d33fe6fb179356083eed6ff67e27c5ebfa4d9732bbRo\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00SNEFRU256\xc8\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x004e9418436e301a488f675c9508a2d518d8f8f99e966136f2dd7e308b194d74f9Rp\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00SNEFRU256HMAC\xcc\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x00b419557099cfa18a86d1d693e2b3b3e979e7a5aba361d9c4ec585a1a70c7bde4Rq\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00SHA256md5pass\xd0\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt@\x00\x00\x00afbed6e0c79338dbfe0000efe6b8e74e3b7121fe73c383ae22f5b505cb39c886Rr\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0e\x00\x00\x00SHA256sha1pass\xd4\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x05\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x06\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x07\x00\x00\x00NsA\x00\x00\x00fb33e01e4f8787dc8beb93dac4107209:fxJUXVjYRafVauT77Cze8XwFrWaeAYB2i \x00\x00\x00i!\x00\x00\x00RB\x01\x00\x00i\x00\x00\x00\x00Ru\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x12\x00\x00\x00MD5passsaltjoomla2\xd9\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x96\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x92\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x92\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x92\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x92\x00t\x01\x00j\x06\x00\x83\x00\x00t\x03\x00k\x02\x00r\x92\x00t\x01\x00d\x02\x00d\x03\x00!j\x07\x00d\x04\x00\x83\x01\x00d\x05\x00k\x02\x00r\x92\x00t\x08\x00j\t\x00d\x06\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x07\x00\x00\x00NsA\x00\x00\x004318B176C3D8E3DEAAD3B435B51404EE:B7C899154197E8A2A33121D76A240AB5i \x00\x00\x00i!\x00\x00\x00RB\x01\x00\x00i\x00\x00\x00\x00Rv\x00\x00\x00(\n\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00t\x07\x00\x00\x00islowerR\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x03\x00\x00\x00SAM\xdd\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01|\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00NsN\x00\x00\x00sha256$Zion3R$9e1a08aa28a22dfff722fad7517bae68a55444bb5e2f909d340767cec9acf2c3i\x00\x00\x00\x00i\x06\x00\x00\x00t\x06\x00\x00\x00sha256Rw\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00SHA256Django\xe2\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00NtP\x00\x00\x00b4f7c8993a389eac4f421b9b3b2bfb3a241d05949324a8dab1286069a18de69aaf5ecc3c2009d8efRx\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\t\x00\x00\x00RipeMD320\xe7\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00NtP\x00\x00\x00244516688f8ad7dd625836c0d0bfc3a888854f7c0161f01de81351f61e98807dcd55b39ffe5d7a78Ry\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00RipeMD320HMAC\xeb\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt`\x00\x00\x003b21c44f8d830fa55ee9328a7713c6aad548fe6d7a4a438723a0da67c48c485220081a2fbc3e8c17fd9bd65f8d4b4e6bRz\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00SHA384\xf0\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt`\x00\x00\x00bef0dd791e814d28b4115eb6924a10beb53da47d463171fe8e63f68207521a4171219bb91d0580bca37b0f96fddeeb8bR{\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00SHA384HMAC\xf4\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x84\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x80\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x80\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x80\x00t\x07\x00j\x08\x00d\x05\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x06\x00\x00\x00Nsb\x00\x00\x00$6$g4TpUQzk$OmsZBJFwvy6MwZckPvVYfDnwsgktm2CckOlNJGy9HNwHSuHFvywGIuwkJ6Bjn3kKbB6zoyEjIYNMpHWBNxJ6g.i\x00\x00\x00\x00i\x03\x00\x00\x00s\x03\x00\x00\x00$6$R|\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x07\x00\x00\x00SHA256s\xf9\x01\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01j\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x89\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00r\x85\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00r\x85\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00r\x85\x00t\x01\x00j\x05\x00\x83\x00\x00t\x03\x00k\x02\x00r\x85\x00t\x01\x00d\x02\x00d\x03\x00!j\x06\x00d\x04\x00\x83\x01\x00d\x02\x00k\x02\x00r\x85\x00d\x05\x00GHt\x07\x00j\x08\x00d\x06\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x07\x00\x00\x00Nsn\x00\x00\x00sha384$Zion3R$88cfd5bc332a4af9f09aa33a1593f24eddc01de00b84395765193c3887f4deac46dc723ac14ddeb4d3a9b958816b7bbai\x00\x00\x00\x00i\x06\x00\x00\x00t\x06\x00\x00\x00sha384s\x14\x00\x00\x00 [+] SHA-384(Django)R}\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\xfa\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x0c\x00\x00\x00SHA384Django\xfe\x01\x00\x00s\x08\x00\x00\x00\x00\x01\x06\x01j\x01\x05\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x80\x00\x00\x00ea8e6f0935b34e2e6573b89c0856c81b831ef2cadfdee9f44eb9aa0955155ba5e8dd97f85c73f030666846773c91404fb0e12fb38936c56f8cf38a33ac89a24eR~\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00SHA512\x04\x02\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x80\x00\x00\x00dd0ada8693250b31d9f44f3ec2d4a106003a6ce67eaa92e384b356d1b4ef6d66a818d47c1f3a2c6e8a9a9b9bdbd28d485e06161ccd0f528c8bbb5541c3fef36fR\x7f\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\n\x00\x00\x00SHA512HMAC\x08\x02\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x80\x00\x00\x0076df96157e632410998ad7f823d82930f79a96578acc8ac5ce1bfc34346cf64b4610aefa8a549da3f0c1da36dad314927cebf8ca6f3fcd0649d363c5a370dddbR\x81\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R\x80\x00\x00\x00\x0c\x02\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sh\x00\x00\x00d\x01\x00}\x00\x00t\x00\x00t\x01\x00\x83\x01\x00t\x00\x00|\x00\x00\x83\x01\x00k\x02\x00rd\x00t\x01\x00j\x02\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x04\x00\x83\x00\x00t\x03\x00k\x02\x00rd\x00t\x01\x00j\x05\x00\x83\x00\x00t\x06\x00k\x02\x00rd\x00t\x07\x00j\x08\x00d\x02\x00\x83\x01\x00\x01n\x00\x00d\x00\x00S(\x03\x00\x00\x00Nt\x80\x00\x00\x0077996016cf6111e97d6ad31484bab1bf7de7b7ee64aebbc243e650a75a2f9256cef104e504d3cf29405888fca5a231fcac85d36cd614b1d52fce850b53ddf7f9R\x82\x00\x00\x00(\t\x00\x00\x00R\x84\x00\x00\x00R\x85\x00\x00\x00R\x8f\x00\x00\x00R\x87\x00\x00\x00R\x86\x00\x00\x00R\x88\x00\x00\x00R\x89\x00\x00\x00R\x8a\x00\x00\x00R\x8b\x00\x00\x00(\x01\x00\x00\x00R\x8c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\r\x00\x00\x00WhirlpoolHMAC\x10\x02\x00\x00s\x06\x00\x00\x00\x00\x01\x06\x01N\x01s\x07\x00\x00\x00\x1b[32;1ms\x07\x00\x00\x00\x1b[0;32ms\x07\x00\x00\x00\x1b[34;1ms\x07\x00\x00\x00\x1b[36;1ms\x07\x00\x00\x00\x1b[31;1ms\x04\x00\x00\x00\x1b[0ms\x07\x00\x00\x00\x1b[35;1ms\x06\x00\x00\x00\x1b[3;1ms\x07\x00\x00\x00\x1b[33;1ms\x07\x00\x00\x00\x1b[0;33ms\x07\x00\x00\x00\x1b[30;1mt\x06\x00\x00\x00colorsc\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00B\x00\x00\x00s&\x00\x00\x00e\x00\x00Z\x01\x00d\x00\x00Z\x02\x00d\x01\x00Z\x03\x00d\x02\x00Z\x04\x00d\x03\x00Z\x05\x00d\x04\x00Z\x06\x00RS(\x05\x00\x00\x00s\x05\x00\x00\x00\x1b[91ms\x05\x00\x00\x00\x1b[32ms\x05\x00\x00\x00\x1b[93ms\x04\x00\x00\x00\x1b[0ms\x04\x00\x00\x00\x1b[1m(\x07\x00\x00\x00t\x08\x00\x00\x00__name__t\n\x00\x00\x00__module__t\x04\x00\x00\x00FAILt\x05\x00\x00\x00GREENt\x04\x00\x00\x00INFOt\x04\x00\x00\x00ENDCt\x04\x00\x00\x00BOLD(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>Rz\x01\x00\x00!\x02\x00\x00s\n\x00\x00\x00\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01i\x01\x00\x00\x00i\x00\x00\x00\x00s\x11\x00\x00\x00\n[!] Not Found!!\ni\x02\x00\x00\x00s\x03\x00\x00\x00\n [t\x01\x00\x00\x00+t\x01\x00\x00\x00]s\x11\x00\x00\x00 Possible Hashs: s\x03\x00\x00\x00 [t\x01\x00\x00\x00-s\x02\x00\x00\x00] s\x16\x00\x00\x00 Least Possible Hashs:(\x94\x00\x00\x00t\x03\x00\x00\x00syst\n\x00\x00\x00algorithmsR\x8d\x00\x00\x00R\x90\x00\x00\x00R\x92\x00\x00\x00R\x94\x00\x00\x00R\x96\x00\x00\x00R\x98\x00\x00\x00R\x9a\x00\x00\x00R\x9c\x00\x00\x00R\x9e\x00\x00\x00R\xa0\x00\x00\x00R\xa2\x00\x00\x00R\xa4\x00\x00\x00R\x17\x00\x00\x00R\xa7\x00\x00\x00R\xa9\x00\x00\x00R\xab\x00\x00\x00R\x1f\x00\x00\x00R\xae\x00\x00\x00R"\x00\x00\x00R\xb1\x00\x00\x00R%\x00\x00\x00R\xb4\x00\x00\x00R\xb6\x00\x00\x00R)\x00\x00\x00R\xb9\x00\x00\x00R\xbb\x00\x00\x00R\xbd\x00\x00\x00R\xbf\x00\x00\x00R\xc1\x00\x00\x00R\xc3\x00\x00\x00R\xc5\x00\x00\x00R\xc7\x00\x00\x00R\xc9\x00\x00\x00R\xcb\x00\x00\x00R\xcd\x00\x00\x00R\xcf\x00\x00\x00R\xd2\x00\x00\x00R\xd5\x00\x00\x00R\xd7\x00\x00\x00R\xd9\x00\x00\x00R\xdb\x00\x00\x00R\xdd\x00\x00\x00R\xdf\x00\x00\x00R\xe1\x00\x00\x00R\xe3\x00\x00\x00R\xe5\x00\x00\x00R\xe7\x00\x00\x00R\xe9\x00\x00\x00R\xeb\x00\x00\x00R\xed\x00\x00\x00R\xef\x00\x00\x00R\xf1\x00\x00\x00R\xf3\x00\x00\x00R\xf5\x00\x00\x00R\xf7\x00\x00\x00R\xfb\x00\x00\x00R\xfc\x00\x00\x00R\xfd\x00\x00\x00R\xfe\x00\x00\x00R\xff\x00\x00\x00R\x01\x01\x00\x00R\x03\x01\x00\x00R\x05\x01\x00\x00R\x07\x01\x00\x00R\t\x01\x00\x00R\x0b\x01\x00\x00R\r\x01\x00\x00R\x0f\x01\x00\x00R\x11\x01\x00\x00R\x13\x01\x00\x00R\x15\x01\x00\x00R\x17\x01\x00\x00R\x19\x01\x00\x00R\x1b\x01\x00\x00R\x1d\x01\x00\x00R\x1f\x01\x00\x00R!\x01\x00\x00R#\x01\x00\x00R%\x01\x00\x00R\'\x01\x00\x00R)\x01\x00\x00R+\x01\x00\x00R-\x01\x00\x00R/\x01\x00\x00R1\x01\x00\x00R3\x01\x00\x00R5\x01\x00\x00R7\x01\x00\x00R9\x01\x00\x00R;\x01\x00\x00R=\x01\x00\x00R?\x01\x00\x00RA\x01\x00\x00RC\x01\x00\x00RD\x01\x00\x00RF\x01\x00\x00RH\x01\x00\x00RJ\x01\x00\x00RL\x01\x00\x00RN\x01\x00\x00RP\x01\x00\x00RR\x01\x00\x00RT\x01\x00\x00RV\x01\x00\x00RX\x01\x00\x00RZ\x01\x00\x00R\\\x01\x00\x00R^\x01\x00\x00R`\x01\x00\x00Rb\x01\x00\x00Rc\x01\x00\x00Re\x01\x00\x00Rg\x01\x00\x00Ri\x01\x00\x00Rk\x01\x00\x00Rm\x01\x00\x00Ro\x01\x00\x00Rp\x01\x00\x00Rr\x01\x00\x00Rt\x01\x00\x00Rv\x01\x00\x00R\x80\x00\x00\x00Ry\x01\x00\x00t\x01\x00\x00\x00gt\x02\x00\x00\x00gtt\x02\x00\x00\x00btt\x01\x00\x00\x00bt\x01\x00\x00\x00mt\x01\x00\x00\x00pt\x01\x00\x00\x00ut\x01\x00\x00\x00Mt\x01\x00\x00\x00kt\x02\x00\x00\x00ktt\x01\x00\x00\x00aRz\x01\x00\x00R\x8a\x00\x00\x00t\x04\x00\x00\x00argvR\x85\x00\x00\x00R\x84\x00\x00\x00R}\x01\x00\x00R\x81\x01\x00\x00R\x80\x01\x00\x00t\x04\x00\x00\x00sortR\x7f\x01\x00\x00t\x05\x00\x00\x00ranget\x03\x00\x00\x00int(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00<module>\x05\x00\x00\x00s4\x02\x00\x00\x0c\x03\xff\x00\xff\x00\xff\x00t\x03\t\x04\t\x04\t\x05\t\x04\t\x04\t\x04\t\x05\t\x04\t\x05\t\x05\t\x04\t\x04\t\x05\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x05\t\x04\t\x04\t\x04\t\x05\t\x05\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x05\t\x04\t\x04\t\x04\t\x05\t\x05\t\x05\t\x04\t\x04\t\x04\t\x05\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x04\t\x05\t\x04\t\x05\t\x05\t\x04\t\x05\t\x04\t\x05\t\x05\t\x06\t\x04\t\x04\t\x04\t\x05\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x02\x13\x08\x06\x01\r\x01\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x02\x12\x01\x1d\x01\x12\x01\n\x01+\x01)\x01)\x01+\x01#\x014\x02\n\x01+\x01\x19\x01'''))
| 42,374.333333
| 127,089
| 0.771104
| 27,684
| 127,123
| 3.54024
| 0.033232
| 0.372337
| 0.215615
| 0.156722
| 0.827065
| 0.810852
| 0.800557
| 0.794588
| 0.792517
| 0.785946
| 0
| 0.448383
| 0.000716
| 127,123
| 3
| 127,089
| 42,374.333333
| 0.323139
| 0.000134
| 0
| 0
| 0
| 0.5
| 0.999654
| 0.998206
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 20
|
eaf0b91cc66e81f78e221c0781b99db261e83e51
| 112
|
py
|
Python
|
__init__.py
|
Sherevv/robot
|
84586670ff06e95eb0a4d73971b37f939e8dac67
|
[
"MIT"
] | null | null | null |
__init__.py
|
Sherevv/robot
|
84586670ff06e95eb0a4d73971b37f939e8dac67
|
[
"MIT"
] | null | null | null |
__init__.py
|
Sherevv/robot
|
84586670ff06e95eb0a4d73971b37f939e8dac67
|
[
"MIT"
] | 1
|
2019-10-09T17:34:42.000Z
|
2019-10-09T17:34:42.000Z
|
from .robot import Robot, RobotRot, RobotOrt, robot_engine
from .robot import exceptions
from .robot import bug
| 28
| 58
| 0.8125
| 16
| 112
| 5.625
| 0.5
| 0.3
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133929
| 112
| 3
| 59
| 37.333333
| 0.927835
| 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
|
eaf8cb22310115004243097d8007fbc6fda1c804
| 2,861
|
py
|
Python
|
deepconcolic/gen_fashion_mnist.py
|
nberth/DeepConcolic
|
baece182b34a50fbc781993b1d46bb293976ca9a
|
[
"BSD-3-Clause"
] | 102
|
2018-05-10T05:46:47.000Z
|
2022-01-31T12:40:22.000Z
|
deepconcolic/gen_fashion_mnist.py
|
eriksali/DeepConcolic
|
baece182b34a50fbc781993b1d46bb293976ca9a
|
[
"BSD-3-Clause"
] | 19
|
2018-07-29T12:45:21.000Z
|
2022-03-16T13:09:00.000Z
|
deepconcolic/gen_fashion_mnist.py
|
eriksali/DeepConcolic
|
baece182b34a50fbc781993b1d46bb293976ca9a
|
[
"BSD-3-Clause"
] | 43
|
2018-05-02T15:09:20.000Z
|
2022-02-02T10:36:30.000Z
|
#!/usr/bin/env python3
from training import *
from datasets import load_fashion_mnist_data as load_data
# def make_small_model (input_shape, **kwds):
# return tf.keras.models.Sequential([
# tf.keras.layers.Conv2D(6, (5, 5), input_shape = input_shape),
# tf.keras.layers.Activation('relu'),
# tf.keras.layers.Flatten(),
# tf.keras.layers.Dense(128),
# tf.keras.layers.Activation('relu'),
# tf.keras.layers.Dense(64),
# tf.keras.layers.Activation('relu'),
# tf.keras.layers.Dense(10),
# tf.keras.layers.Activation('softmax'),
# ], **kwds)
# classifier (load_data, make_small_model,
# model_name = 'fashion_mnist_small',
# cm_plot_args = dict (hrotate = True))
def make_medium_model (input_shape, **kwds):
return tf.keras.models.Sequential([
tf.keras.layers.Conv2D(32, (3, 3), input_shape = input_shape),
tf.keras.layers.Activation('relu'),
tf.keras.layers.MaxPooling2D((2, 2)),
tf.keras.layers.Conv2D(64, (5, 5)),
tf.keras.layers.Activation('relu'),
tf.keras.layers.MaxPooling2D((2, 2)),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(100),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Dense(10),
tf.keras.layers.Activation('softmax'),
], **kwds)
classifier (load_data, make_medium_model,
model_name = 'fashion_mnist_medium',
epochs = 50,
cm_plot_args = dict (hrotate = True))
def make_large_model (input_shape, **kwds):
return tf.keras.models.Sequential([
tf.keras.layers.Conv2D(16, (3, 3), input_shape = input_shape),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Conv2D(16, (3, 3)),
tf.keras.layers.Activation('relu'),
tf.keras.layers.MaxPooling2D((2, 2)),
tf.keras.layers.Dropout(0.25),
tf.keras.layers.Conv2D(24, (3, 3)),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Conv2D(24, (3, 3)),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Conv2D(24, (3, 3)),
tf.keras.layers.Activation('relu'),
tf.keras.layers.MaxPooling2D((2, 2)),
tf.keras.layers.Dropout(0.25),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(256),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Dense(128),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Dense(92),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Dense(92),
tf.keras.layers.Activation('relu'),
tf.keras.layers.Dense(10),
tf.keras.layers.Activation('softmax'),
], **kwds)
classifier (load_data, make_large_model,
model_name = 'fashion_mnist_large',
epochs = 50,
cm_plot_args = dict (hrotate = True))
| 38.146667
| 71
| 0.608528
| 367
| 2,861
| 4.626703
| 0.166213
| 0.19788
| 0.344523
| 0.243816
| 0.905772
| 0.859835
| 0.859835
| 0.857479
| 0.762073
| 0.742638
| 0
| 0.038949
| 0.228242
| 2,861
| 74
| 72
| 38.662162
| 0.730072
| 0.226844
| 0
| 0.711538
| 0
| 0
| 0.045993
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038462
| false
| 0
| 0.038462
| 0.038462
| 0.115385
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
eaf92de11e6a9293ce8a63d78d2d14f9b87e3a70
| 107
|
py
|
Python
|
test/__init__.py
|
ShabbirHasan1/cysimdjson
|
c83b2be6bc001358d2fde189d87be3d40f54d1de
|
[
"Apache-2.0"
] | 178
|
2021-03-09T15:10:32.000Z
|
2022-03-31T10:03:06.000Z
|
test/__init__.py
|
ShabbirHasan1/cysimdjson
|
c83b2be6bc001358d2fde189d87be3d40f54d1de
|
[
"Apache-2.0"
] | 23
|
2021-03-09T15:15:47.000Z
|
2022-03-23T12:20:37.000Z
|
test/__init__.py
|
ShabbirHasan1/cysimdjson
|
c83b2be6bc001358d2fde189d87be3d40f54d1de
|
[
"Apache-2.0"
] | 4
|
2021-03-15T01:57:33.000Z
|
2022-03-28T13:13:57.000Z
|
from .test_array import *
from .test_document import *
from .test_scalar import *
from .test_capi import *
| 21.4
| 28
| 0.775701
| 16
| 107
| 4.9375
| 0.4375
| 0.405063
| 0.531646
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149533
| 107
| 4
| 29
| 26.75
| 0.868132
| 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
|
d8153bd6a9ac901172e4d4c0dd6836a90dbc963d
| 171,860
|
py
|
Python
|
neutrinoBisect.py
|
HCasler/NeutrinoBisect
|
6b35adcdf2703ecfeebcd152f6a813654d5a0327
|
[
"MIT"
] | null | null | null |
neutrinoBisect.py
|
HCasler/NeutrinoBisect
|
6b35adcdf2703ecfeebcd152f6a813654d5a0327
|
[
"MIT"
] | null | null | null |
neutrinoBisect.py
|
HCasler/NeutrinoBisect
|
6b35adcdf2703ecfeebcd152f6a813654d5a0327
|
[
"MIT"
] | null | null | null |
#! usr/bin/env python
import numpy as np
from datetime import datetime
import numpy.linalg as linalg
import math
import sys
class EventInput:
def __init__(self):
self.totalEnergy = 0.0
self.totalP = np.array([0.0, 0.0, 0.0])
self.antiMuP = np.array([0.0, 0.0, 0.0])
self.muP = np.array([0.0, 0.0, 0.0])
self.bAntiBP = [np.array([0.0, 0.0, 0.0]), np.array([0.0, 0.0, 0.0])]
class NuSolver(object):
maxSolnsPerFunc = 2
grazeTolerance = 10
crossTolerance = 0.1
def __init__(self, eventInput):
self.mWm = 80.4
self.mWp = 80.4
self.eInit = eventInput.totalEnergy
self.pInit = eventInput.totalP
self.p1Vec = eventInput.antiMuP
self.p3Vec = eventInput.bAntiBP[0]
self.p4Vec = eventInput.muP
self.p6Vec = eventInput.bAntiBP[1]
self.p1Norm = linalg.norm(self.p1Vec)
self.p4Norm = linalg.norm(self.p4Vec)
self.enRem = self.eInit - (self.p1Norm + self.p4Norm + np.sqrt(np.vdot(self.p3Vec, self.p3Vec)) + np.sqrt(np.vdot(self.p6Vec, self.p6Vec)) )
self.pRemVec = self.pInit - (self.p1Vec + self.p3Vec + self.p4Vec + self.p6Vec)
self.totalMaxP2z = np.sqrt(self.enRem**2 - self.pRemVec[0]**2 - self.pRemVec[1]**2)
self.totalMinP2z = -1*self.totalMaxP2z
self.probCalc = None
self.resultsListOne = []
self.resultsListTwo = []
self.allResultsList = []
self.funcInitialized = [False, False]
self.funcDone = [False, False]
self.newFunc = False
self.cheat = 0.0
self.ranges = []
self.fullRange = []
self.ranges = []
self.verbose = False
def talk(self, strng):
if self.verbose:
print strng
def sameSign(self, num1, num2):
real1 = 0
real2 = 0
imag1 = 0
imag2 = 0
if isinstance(num1, complex):
real1 = num1.real
imag1 = num1.imag
if imag1==-0: imag1=0
else:
real1 = num1
imag1 = 0
if isinstance(num2, complex):
real2 = num2.real
imag2 = num2.imag
if imag2==-0: imag2=0
else:
real2 = num2
imag2 = 0
return np.sign(real1)==np.sign(real2) and np.sign(imag1)==np.sign(imag2)
def p5VecFromP2Vec(self, p2Vec):
return np.array([self.pRemVec[0] - p2Vec[0], self.pRemVec[1] - p2Vec[1], self.pRemVec[2] - p2Vec[2]])
# Methods used in evaluating the function we are solving
def _underSqrt(self, p2z, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm):
ans = ((4*enRem**4*mwm2*p4x**3 + 4*enRem**4*mwm2*p4x*p4y**2 - 8*enRem**4*p2z*p4x**3*p4z - 8*enRem**4*p2z*p4x*p4y**2*p4z - 4*enRem**5*p4x**3*p4Norm - 4*enRem**5*p4x*p4y**2*p4Norm - 4*enRem**4*p4x**4*premx - 4*enRem**4*p4x**2*p4y**2*premx - 4*enRem**4*p4x**2*p4z**2*premx + 4*enRem**4*p4y**2*p4z**2*premx + 4*enRem**3*mwm2*p4x**2*p4Norm*premx - 4*enRem**3*mwm2*p4y**2*p4Norm*premx - 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx + 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx - 4*enRem**2*mwm2*p4x**3*premx**2 - 8*enRem**2*mwm2*p4x*p4y**2*premx**2 + 8*enRem**2*p2z*p4x**3*p4z*premx**2 + 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 - 4*enRem**2*mwm2*p4x*p4z**2*premx**2 + 8*enRem**2*p2z*p4x*p4z**3*premx**2 + 8*enRem**3*p4x**3*p4Norm*premx**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 + 8*enRem**2*p4x**4*premx**3 + 4*enRem**2*p4x**2*p4y**2*premx**3 + 12*enRem**2*p4x**2*p4z**2*premx**3 - 4*enRem**2*p4y**2*p4z**2*premx**3 + 4*enRem**2*p4z**4*premx**3 - 4*enRem*mwm2*p4x**2*p4Norm*premx**3 + 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 - 4*enRem*mwm2*p4z**2*p4Norm*premx**3 + 8*enRem*p2z*p4z**3*p4Norm*premx**3 - 4*enRem*p4x**3*p4Norm*premx**4 - 4*enRem*p4x*p4z**2*p4Norm*premx**4 - 4*p4x**4*premx**5 - 8*p4x**2*p4z**2*premx**5 - 4*p4z**4*premx**5 - 4*enRem**4*p4x**3*p4y*premy - 4*enRem**4*p4x*p4y**3*premy - 8*enRem**4*p4x*p4y*p4z**2*premy + 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy - 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy + 4*enRem**2*mwm2*p4x**2*p4y*premx*premy - 4*enRem**2*mwm2*p4y**3*premx*premy - 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy + 8*enRem**2*p2z*p4y**3*p4z*premx*premy - 8*enRem**2*mwm2*p4y*p4z**2*premx*premy + 16*enRem**2*p2z*p4y*p4z**3*premx*premy + 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy + 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy + 16*enRem**2*p4x**3*p4y*premx**2*premy + 4*enRem**2*p4x*p4y**3*premx**2*premy + 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy + 4*mwm2*p4x**2*p4y*premx**3*premy - 8*p2z*p4x**2*p4y*p4z*premx**3*premy + 4*mwm2*p4y*p4z**2*premx**3*premy - 8*p2z*p4y*p4z**3*premx**3*premy - 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy - 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy - 12*p4x**3*p4y*premx**4*premy - 12*p4x*p4y*p4z**2*premx**4*premy - 4*enRem**2*mwm2*p4x**3*premy**2 + 8*enRem**2*p2z*p4x**3*p4z*premy**2 + 4*enRem**2*mwm2*p4x*p4z**2*premy**2 - 8*enRem**2*p2z*p4x*p4z**3*premy**2 + 4*enRem**3*p4x**3*p4Norm*premy**2 + 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 + 4*enRem**2*p4x**4*premx*premy**2 + 16*enRem**2*p4x**2*p4y**2*premx*premy**2 + 8*enRem**2*p4x**2*p4z**2*premx*premy**2 + 4*enRem**2*p4z**4*premx*premy**2 - 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 + 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 - 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 + 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 - 4*mwm2*p4x**3*premx**2*premy**2 + 8*mwm2*p4x*p4y**2*premx**2*premy**2 + 8*p2z*p4x**3*p4z*premx**2*premy**2 - 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 - 4*mwm2*p4x*p4z**2*premx**2*premy**2 + 8*p2z*p4x*p4z**3*premx**2*premy**2 - 4*enRem*p4x**3*p4Norm*premx**2*premy**2 - 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 - 4*p4x**4*premx**3*premy**2 - 12*p4x**2*p4y**2*premx**3*premy**2 - 12*p4x**2*p4z**2*premx**3*premy**2 - 4*p4y**2*p4z**2*premx**3*premy**2 - 8*p4z**4*premx**3*premy**2 + 4*enRem**2*p4x**3*p4y*premy**3 + 8*enRem**2*p4x*p4y**3*premy**3 + 12*enRem**2*p4x*p4y*p4z**2*premy**3 - 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 + 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 - 8*mwm2*p4x**2*p4y*premx*premy**3 + 4*mwm2*p4y**3*premx*premy**3 + 16*p2z*p4x**2*p4y*p4z*premx*premy**3 - 8*p2z*p4y**3*p4z*premx*premy**3 + 4*mwm2*p4y*p4z**2*premx*premy**3 - 8*p2z*p4y*p4z**3*premx*premy**3 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 - 12*p4x**3*p4y*premx**2*premy**3 - 4*p4x*p4y**3*premx**2*premy**3 - 16*p4x*p4y*p4z**2*premx**2*premy**3 - 4*mwm2*p4x*p4y**2*premy**4 + 8*p2z*p4x*p4y**2*p4z*premy**4 - 4*mwm2*p4x*p4z**2*premy**4 + 8*p2z*p4x*p4z**3*premy**4 - 4*enRem*p4x*p4y**2*p4Norm*premy**4 + 4*enRem*p4x*p4z**2*p4Norm*premy**4 - 12*p4x**2*p4y**2*premx*premy**4 - 4*p4x**2*p4z**2*premx*premy**4 - 4*p4y**2*p4z**2*premx*premy**4 - 4*p4z**4*premx*premy**4 - 4*p4x*p4y**3*premy**5 - 4*p4x*p4y*p4z**2*premy**5 + 8*enRem**4*p4x**3*p4z*premz + 8*enRem**4*p4x*p4y**2*p4z*premz + 8*enRem**3*p2z*p4x**3*p4Norm*premz + 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz + 8*enRem**2*p2z*p4x**4*premx*premz + 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz + 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz - 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz + 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz - 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz - 8*enRem**2*p4x**3*p4z*premx**2*premz - 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz - 8*enRem**2*p4x*p4z**3*premx**2*premz - 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz - 8*p2z*p4x**4*premx**3*premz - 16*p2z*p4x**2*p4z**2*premx**3*premz - 8*p2z*p4z**4*premx**3*premz - 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz - 8*enRem*p4z**3*p4Norm*premx**3*premz + 8*enRem**2*p2z*p4x**3*p4y*premy*premz + 8*enRem**2*p2z*p4x*p4y**3*premy*premz + 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz + 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz + 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz - 8*enRem**2*p4y**3*p4z*premx*premy*premz - 16*enRem**2*p4y*p4z**3*premx*premy*premz - 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz - 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz - 24*p2z*p4x**3*p4y*premx**2*premy*premz - 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz + 8*p4x**2*p4y*p4z*premx**3*premy*premz + 8*p4y*p4z**3*premx**3*premy*premz - 8*enRem**2*p4x**3*p4z*premy**2*premz + 8*enRem**2*p4x*p4z**3*premy**2*premz - 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz - 24*p2z*p4x**2*p4y**2*premx*premy**2*premz - 8*p2z*p4x**2*p4z**2*premx*premy**2*premz - 8*p2z*p4y**2*p4z**2*premx*premy**2*premz - 8*p2z*p4z**4*premx*premy**2*premz - 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4z**3*p4Norm*premx*premy**2*premz - 8*p4x**3*p4z*premx**2*premy**2*premz + 16*p4x*p4y**2*p4z*premx**2*premy**2*premz - 8*p4x*p4z**3*premx**2*premy**2*premz - 8*p2z*p4x*p4y**3*premy**3*premz - 8*p2z*p4x*p4y*p4z**2*premy**3*premz - 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz - 16*p4x**2*p4y*p4z*premx*premy**3*premz + 8*p4y**3*p4z*premx*premy**3*premz + 8*p4y*p4z**3*premx*premy**3*premz - 8*p4x*p4y**2*p4z*premy**4*premz - 8*p4x*p4z**3*premy**4*premz - 4*enRem**3*p4x**3*p4Norm*premz**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 - 4*enRem**2*p4x**4*premx*premz**2 - 4*enRem**2*p4x**2*p4y**2*premx*premz**2 - 4*enRem**2*p4x**2*p4z**2*premx*premz**2 + 4*enRem**2*p4y**2*p4z**2*premx*premz**2 + 4*enRem*p4x**3*p4Norm*premx**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 + 4*p4x**4*premx**3*premz**2 + 8*p4x**2*p4z**2*premx**3*premz**2 + 4*p4z**4*premx**3*premz**2 - 4*enRem**2*p4x**3*p4y*premy*premz**2 - 4*enRem**2*p4x*p4y**3*premy*premz**2 - 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 + 12*p4x**3*p4y*premx**2*premy*premz**2 + 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 + 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 + 12*p4x**2*p4y**2*premx*premy**2*premz**2 + 4*p4x**2*p4z**2*premx*premy**2*premz**2 + 4*p4y**2*p4z**2*premx*premy**2*premz**2 + 4*p4z**4*premx*premy**2*premz**2 + 4*p4x*p4y**3*premy**3*premz**2 + 4*p4x*p4y*p4z**2*premy**3*premz**2)**2 - 4*(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4)*(enRem**4*mwm2**2*p4x**2 + enRem**6*p4x**4 + enRem**4*mwm2**2*p4y**2 + enRem**6*p4x**2*p4y**2 + 4*enRem**4*p2z**2*p4x**2*p4y**2 + 4*enRem**4*p2z**2*p4y**4 - 4*enRem**4*mwm2*p2z*p4x**2*p4z - 4*enRem**4*mwm2*p2z*p4y**2*p4z + enRem**6*p4x**2*p4z**2 + 4*enRem**4*p2z**2*p4x**2*p4z**2 + enRem**6*p4y**2*p4z**2 + 4*enRem**4*p2z**2*p4y**2*p4z**2 - 2*enRem**5*mwm2*p4x**2*p4Norm - 2*enRem**5*mwm2*p4y**2*p4Norm + 4*enRem**5*p2z*p4x**2*p4z*p4Norm + 4*enRem**5*p2z*p4y**2*p4z*p4Norm - 4*enRem**4*mwm2*p4x**3*premx - 4*enRem**4*mwm2*p4x*p4y**2*premx + 8*enRem**4*p2z*p4x**3*p4z*premx + 8*enRem**4*p2z*p4x*p4y**2*p4z*premx - 4*enRem**4*mwm2*p4x*p4z**2*premx + 8*enRem**4*p2z*p4x*p4z**3*premx + 2*enRem**3*mwm2**2*p4x*p4Norm*premx + 2*enRem**5*p4x**3*p4Norm*premx + 8*enRem**3*p2z**2*p4x*p4y**2*p4Norm*premx - 8*enRem**3*mwm2*p2z*p4x*p4z*p4Norm*premx + 2*enRem**5*p4x*p4z**2*p4Norm*premx + 8*enRem**3*p2z**2*p4x*p4z**2*p4Norm*premx + enRem**2*mwm2**2*p4x**2*premx**2 - enRem**4*p4x**4*premx**2 - 2*enRem**4*p4x**2*p4y**2*premx**2 + 4*enRem**2*p2z**2*p4x**2*p4y**2*premx**2 - 4*enRem**2*mwm2*p2z*p4x**2*p4z*premx**2 + enRem**2*mwm2**2*p4z**2*premx**2 + 4*enRem**2*p2z**2*p4x**2*p4z**2*premx**2 - 2*enRem**4*p4y**2*p4z**2*premx**2 + 4*enRem**2*p2z**2*p4y**2*p4z**2*premx**2 - 4*enRem**2*mwm2*p2z*p4z**3*premx**2 + enRem**4*p4z**4*premx**2 + 4*enRem**2*p2z**2*p4z**4*premx**2 + 2*enRem**3*mwm2*p4y**2*p4Norm*premx**2 - 4*enRem**3*p2z*p4y**2*p4z*p4Norm*premx**2 - 2*enRem**3*mwm2*p4z**2*p4Norm*premx**2 + 4*enRem**3*p2z*p4z**3*p4Norm*premx**2 + 4*enRem**2*mwm2*p4x**3*premx**3 + 4*enRem**2*mwm2*p4x*p4y**2*premx**3 - 8*enRem**2*p2z*p4x**3*p4z*premx**3 - 8*enRem**2*p2z*p4x*p4y**2*p4z*premx**3 + 4*enRem**2*mwm2*p4x*p4z**2*premx**3 - 8*enRem**2*p2z*p4x*p4z**3*premx**3 - 4*enRem**3*p4x**3*p4Norm*premx**3 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**3 - enRem**2*p4x**4*premx**4 + enRem**2*p4x**2*p4y**2*premx**4 - 3*enRem**2*p4x**2*p4z**2*premx**4 + enRem**2*p4y**2*p4z**2*premx**4 - 2*enRem**2*p4z**4*premx**4 + 2*enRem*mwm2*p4x**2*p4Norm*premx**4 - 4*enRem*p2z*p4x**2*p4z*p4Norm*premx**4 + 2*enRem*mwm2*p4z**2*p4Norm*premx**4 - 4*enRem*p2z*p4z**3*p4Norm*premx**4 + 2*enRem*p4x**3*p4Norm*premx**5 + 2*enRem*p4x*p4z**2*p4Norm*premx**5 + p4x**4*premx**6 + 2*p4x**2*p4z**2*premx**6 + p4z**4*premx**6 - 2*enRem**4*mwm2*p4x**2*p4y*premy - 2*enRem**4*mwm2*p4y**3*premy + 4*enRem**4*p2z*p4x**2*p4y*p4z*premy + 4*enRem**4*p2z*p4y**3*p4z*premy - 4*enRem**4*mwm2*p4y*p4z**2*premy + 8*enRem**4*p2z*p4y*p4z**3*premy + 2*enRem**3*mwm2**2*p4y*p4Norm*premy + 2*enRem**5*p4x**2*p4y*p4Norm*premy - 8*enRem**3*p2z**2*p4x**2*p4y*p4Norm*premy - 8*enRem**3*mwm2*p2z*p4y*p4z*p4Norm*premy + 2*enRem**5*p4y*p4z**2*p4Norm*premy + 8*enRem**3*p2z**2*p4y*p4z**2*p4Norm*premy + 2*enRem**2*mwm2**2*p4x*p4y*premx*premy + 2*enRem**4*p4x**3*p4y*premx*premy - 16*enRem**2*p2z**2*p4x**3*p4y*premx*premy - 8*enRem**2*p2z**2*p4x*p4y**3*premx*premy - 8*enRem**2*mwm2*p2z*p4x*p4y*p4z*premx*premy + 2*enRem**4*p4x*p4y*p4z**2*premx*premy - 8*enRem**2*p2z**2*p4x*p4y*p4z**2*premx*premy + 4*enRem**2*mwm2*p4x**2*p4y*premx**2*premy + 2*enRem**2*mwm2*p4y**3*premx**2*premy - 8*enRem**2*p2z*p4x**2*p4y*p4z*premx**2*premy - 4*enRem**2*p2z*p4y**3*p4z*premx**2*premy + 6*enRem**2*mwm2*p4y*p4z**2*premx**2*premy - 12*enRem**2*p2z*p4y*p4z**3*premx**2*premy - 4*enRem**3*p4x**2*p4y*p4Norm*premx**2*premy - 8*enRem*p2z**2*p4x**2*p4y*p4Norm*premx**2*premy - 4*enRem**3*p4y*p4z**2*p4Norm*premx**2*premy - 8*enRem*p2z**2*p4y*p4z**2*p4Norm*premx**2*premy - 4*enRem**2*p4x**3*p4y*premx**3*premy - 4*enRem**2*p4x*p4y*p4z**2*premx**3*premy - 2*mwm2*p4x**2*p4y*premx**4*premy + 4*p2z*p4x**2*p4y*p4z*premx**4*premy - 2*mwm2*p4y*p4z**2*premx**4*premy + 4*p2z*p4y*p4z**3*premx**4*premy + 2*enRem*p4x**2*p4y*p4Norm*premx**4*premy + 2*enRem*p4y*p4z**2*p4Norm*premx**4*premy + 2*p4x**3*p4y*premx**5*premy + 2*p4x*p4y*p4z**2*premx**5*premy - enRem**2*mwm2**2*p4x**2*premy**2 - 2*enRem**4*p4x**4*premy**2 + 4*enRem**2*p2z**2*p4x**4*premy**2 - enRem**4*p4x**2*p4y**2*premy**2 - 8*enRem**2*p2z**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p2z**2*p4y**4*premy**2 + 4*enRem**2*mwm2*p2z*p4x**2*p4z*premy**2 + enRem**2*mwm2**2*p4z**2*premy**2 - enRem**4*p4x**2*p4z**2*premy**2 - enRem**4*p4y**2*p4z**2*premy**2 - 8*enRem**2*p2z**2*p4y**2*p4z**2*premy**2 - 4*enRem**2*mwm2*p2z*p4z**3*premy**2 + enRem**4*p4z**4*premy**2 + 4*enRem**2*p2z**2*p4z**4*premy**2 + 2*enRem**3*mwm2*p4x**2*p4Norm*premy**2 + 4*enRem**3*mwm2*p4y**2*p4Norm*premy**2 - 4*enRem**3*p2z*p4x**2*p4z*p4Norm*premy**2 - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premy**2 - 2*enRem**3*mwm2*p4z**2*p4Norm*premy**2 + 4*enRem**3*p2z*p4z**3*p4Norm*premy**2 + 4*enRem**2*mwm2*p4x**3*premx*premy**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premx*premy**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx*premy**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx*premy**2 - 8*enRem**2*p2z*p4x*p4z**3*premx*premy**2 - 2*enRem*mwm2**2*p4x*p4Norm*premx*premy**2 - 4*enRem**3*p4x**3*p4Norm*premx*premy**2 + 8*enRem*p2z**2*p4x**3*p4Norm*premx*premy**2 - 8*enRem*p2z**2*p4x*p4y**2*p4Norm*premx*premy**2 + 8*enRem*mwm2*p2z*p4x*p4z*p4Norm*premx*premy**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx*premy**2 - mwm2**2*p4x**2*premx**2*premy**2 + 4*p2z**2*p4x**4*premx**2*premy**2 + 4*p2z**2*p4x**2*p4y**2*premx**2*premy**2 + 4*mwm2*p2z*p4x**2*p4z*premx**2*premy**2 - mwm2**2*p4z**2*premx**2*premy**2 - 4*enRem**2*p4x**2*p4z**2*premx**2*premy**2 + 4*p2z**2*p4x**2*p4z**2*premx**2*premy**2 + 4*p2z**2*p4y**2*p4z**2*premx**2*premy**2 + 4*mwm2*p2z*p4z**3*premx**2*premy**2 - 4*enRem**2*p4z**4*premx**2*premy**2 + 2*enRem*mwm2*p4x**2*p4Norm*premx**2*premy**2 - 2*enRem*mwm2*p4y**2*p4Norm*premx**2*premy**2 - 4*enRem*p2z*p4x**2*p4z*p4Norm*premx**2*premy**2 + 4*enRem*p2z*p4y**2*p4z*p4Norm*premx**2*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx**2*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx**2*premy**2 - 4*mwm2*p4x*p4y**2*premx**3*premy**2 + 8*p2z*p4x*p4y**2*p4z*premx**3*premy**2 + 4*enRem*p4x**3*p4Norm*premx**3*premy**2 + 4*enRem*p4x*p4z**2*p4Norm*premx**3*premy**2 + 2*p4x**4*premx**4*premy**2 + p4x**2*p4y**2*premx**4*premy**2 + 5*p4x**2*p4z**2*premx**4*premy**2 + p4y**2*p4z**2*premx**4*premy**2 + 3*p4z**4*premx**4*premy**2 + 2*enRem**2*mwm2*p4x**2*p4y*premy**3 + 4*enRem**2*mwm2*p4y**3*premy**3 - 4*enRem**2*p2z*p4x**2*p4y*p4z*premy**3 - 8*enRem**2*p2z*p4y**3*p4z*premy**3 + 6*enRem**2*mwm2*p4y*p4z**2*premy**3 - 12*enRem**2*p2z*p4y*p4z**3*premy**3 - 2*enRem*mwm2**2*p4y*p4Norm*premy**3 - 4*enRem**3*p4x**2*p4y*p4Norm*premy**3 + 8*enRem*p2z**2*p4x**2*p4y*p4Norm*premy**3 + 8*enRem*mwm2*p2z*p4y*p4z*p4Norm*premy**3 - 4*enRem**3*p4y*p4z**2*p4Norm*premy**3 - 8*enRem*p2z**2*p4y*p4z**2*p4Norm*premy**3 - 2*mwm2**2*p4x*p4y*premx*premy**3 - 4*enRem**2*p4x**3*p4y*premx*premy**3 + 8*p2z**2*p4x**3*p4y*premx*premy**3 + 8*p2z**2*p4x*p4y**3*premx*premy**3 + 8*mwm2*p2z*p4x*p4y*p4z*premx*premy**3 - 4*enRem**2*p4x*p4y*p4z**2*premx*premy**3 - 2*mwm2*p4x**2*p4y*premx**2*premy**3 - 2*mwm2*p4y**3*premx**2*premy**3 + 4*p2z*p4x**2*p4y*p4z*premx**2*premy**3 + 4*p2z*p4y**3*p4z*premx**2*premy**3 - 4*mwm2*p4y*p4z**2*premx**2*premy**3 + 8*p2z*p4y*p4z**3*premx**2*premy**3 + 4*enRem*p4x**2*p4y*p4Norm*premx**2*premy**3 + 4*enRem*p4y*p4z**2*p4Norm*premx**2*premy**3 + 4*p4x**3*p4y*premx**3*premy**3 + 4*p4x*p4y*p4z**2*premx**3*premy**3 + enRem**2*p4x**4*premy**4 - mwm2**2*p4y**2*premy**4 - enRem**2*p4x**2*p4y**2*premy**4 + 4*p2z**2*p4x**2*p4y**2*premy**4 + 4*p2z**2*p4y**4*premy**4 + 4*mwm2*p2z*p4y**2*p4z*premy**4 - mwm2**2*p4z**2*premy**4 - enRem**2*p4x**2*p4z**2*premy**4 + 4*p2z**2*p4x**2*p4z**2*premy**4 - enRem**2*p4y**2*p4z**2*premy**4 + 4*p2z**2*p4y**2*p4z**2*premy**4 + 4*mwm2*p2z*p4z**3*premy**4 - 2*enRem**2*p4z**4*premy**4 - 2*enRem*mwm2*p4y**2*p4Norm*premy**4 + 4*enRem*p2z*p4y**2*p4z*p4Norm*premy**4 + 2*enRem*mwm2*p4z**2*p4Norm*premy**4 - 4*enRem*p2z*p4z**3*p4Norm*premy**4 - 4*mwm2*p4x*p4y**2*premx*premy**4 + 8*p2z*p4x*p4y**2*p4z*premx*premy**4 + 2*enRem*p4x**3*p4Norm*premx*premy**4 + 2*enRem*p4x*p4z**2*p4Norm*premx*premy**4 + p4x**4*premx**2*premy**4 + 2*p4x**2*p4y**2*premx**2*premy**4 + 4*p4x**2*p4z**2*premx**2*premy**4 + 2*p4y**2*p4z**2*premx**2*premy**4 + 3*p4z**4*premx**2*premy**4 - 2*mwm2*p4y**3*premy**5 + 4*p2z*p4y**3*p4z*premy**5 - 2*mwm2*p4y*p4z**2*premy**5 + 4*p2z*p4y*p4z**3*premy**5 + 2*enRem*p4x**2*p4y*p4Norm*premy**5 + 2*enRem*p4y*p4z**2*p4Norm*premy**5 + 2*p4x**3*p4y*premx*premy**5 + 2*p4x*p4y*p4z**2*premx*premy**5 + p4x**2*p4y**2*premy**6 + p4x**2*p4z**2*premy**6 + p4y**2*p4z**2*premy**6 + p4z**4*premy**6 - 4*enRem**4*p2z*p4x**4*premz - 12*enRem**4*p2z*p4x**2*p4y**2*premz - 8*enRem**4*p2z*p4y**4*premz + 4*enRem**4*mwm2*p4x**2*p4z*premz + 4*enRem**4*mwm2*p4y**2*p4z*premz - 12*enRem**4*p2z*p4x**2*p4z**2*premz - 12*enRem**4*p2z*p4y**2*p4z**2*premz + 4*enRem**3*mwm2*p2z*p4x**2*p4Norm*premz + 4*enRem**3*mwm2*p2z*p4y**2*p4Norm*premz - 4*enRem**5*p4x**2*p4z*p4Norm*premz - 8*enRem**3*p2z**2*p4x**2*p4z*p4Norm*premz - 4*enRem**5*p4y**2*p4z*p4Norm*premz - 8*enRem**3*p2z**2*p4y**2*p4z*p4Norm*premz + 8*enRem**2*mwm2*p2z*p4x**3*premx*premz + 8*enRem**2*mwm2*p2z*p4x*p4y**2*premx*premz - 8*enRem**4*p4x**3*p4z*premx*premz - 16*enRem**2*p2z**2*p4x**3*p4z*premx*premz - 8*enRem**4*p4x*p4y**2*p4z*premx*premz - 16*enRem**2*p2z**2*p4x*p4y**2*p4z*premx*premz + 8*enRem**2*mwm2*p2z*p4x*p4z**2*premx*premz - 8*enRem**4*p4x*p4z**3*premx*premz - 16*enRem**2*p2z**2*p4x*p4z**3*premx*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premx*premz - 16*enRem**3*p2z*p4x*p4y**2*p4Norm*premx*premz + 8*enRem**3*mwm2*p4x*p4z*p4Norm*premx*premz - 24*enRem**3*p2z*p4x*p4z**2*p4Norm*premx*premz - 4*enRem**2*p2z*p4x**2*p4y**2*premx**2*premz + 4*enRem**2*mwm2*p4x**2*p4z*premx**2*premz - 12*enRem**2*p2z*p4x**2*p4z**2*premx**2*premz - 4*enRem**2*p2z*p4y**2*p4z**2*premx**2*premz + 4*enRem**2*mwm2*p4z**3*premx**2*premz - 12*enRem**2*p2z*p4z**4*premx**2*premz + 4*enRem*mwm2*p2z*p4x**2*p4Norm*premx**2*premz - 8*enRem*p2z**2*p4x**2*p4z*p4Norm*premx**2*premz + 4*enRem**3*p4y**2*p4z*p4Norm*premx**2*premz + 4*enRem*mwm2*p2z*p4z**2*p4Norm*premx**2*premz - 4*enRem**3*p4z**3*p4Norm*premx**2*premz - 8*enRem*p2z**2*p4z**3*p4Norm*premx**2*premz + 8*enRem**2*p4x**3*p4z*premx**3*premz + 8*enRem**2*p4x*p4y**2*p4z*premx**3*premz + 8*enRem**2*p4x*p4z**3*premx**3*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**3*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**3*premz + 4*p2z*p4x**4*premx**4*premz + 8*p2z*p4x**2*p4z**2*premx**4*premz + 4*p2z*p4z**4*premx**4*premz + 4*enRem*p4x**2*p4z*p4Norm*premx**4*premz + 4*enRem*p4z**3*p4Norm*premx**4*premz + 4*enRem**2*mwm2*p2z*p4x**2*p4y*premy*premz + 4*enRem**2*mwm2*p2z*p4y**3*premy*premz - 4*enRem**4*p4x**2*p4y*p4z*premy*premz - 8*enRem**2*p2z**2*p4x**2*p4y*p4z*premy*premz - 4*enRem**4*p4y**3*p4z*premy*premz - 8*enRem**2*p2z**2*p4y**3*p4z*premy*premz + 8*enRem**2*mwm2*p2z*p4y*p4z**2*premy*premz - 8*enRem**4*p4y*p4z**3*premy*premz - 16*enRem**2*p2z**2*p4y*p4z**3*premy*premz + 8*enRem**3*p2z*p4x**2*p4y*p4Norm*premy*premz + 8*enRem**3*mwm2*p4y*p4z*p4Norm*premy*premz - 24*enRem**3*p2z*p4y*p4z**2*p4Norm*premy*premz + 24*enRem**2*p2z*p4x**3*p4y*premx*premy*premz + 16*enRem**2*p2z*p4x*p4y**3*premx*premy*premz + 8*enRem**2*mwm2*p4x*p4y*p4z*premx*premy*premz + 8*enRem**2*p2z*p4x*p4y*p4z**2*premx*premy*premz - 4*mwm2*p2z*p4x**2*p4y*premx**2*premy*premz + 8*enRem**2*p4x**2*p4y*p4z*premx**2*premy*premz + 8*p2z**2*p4x**2*p4y*p4z*premx**2*premy*premz + 4*enRem**2*p4y**3*p4z*premx**2*premy*premz - 4*mwm2*p2z*p4y*p4z**2*premx**2*premy*premz + 12*enRem**2*p4y*p4z**3*premx**2*premy*premz + 8*p2z**2*p4y*p4z**3*premx**2*premy*premz + 24*enRem*p2z*p4x**2*p4y*p4Norm*premx**2*premy*premz + 24*enRem*p2z*p4y*p4z**2*p4Norm*premx**2*premy*premz + 8*p2z*p4x**3*p4y*premx**3*premy*premz + 8*p2z*p4x*p4y*p4z**2*premx**3*premy*premz - 4*p4x**2*p4y*p4z*premx**4*premy*premz - 4*p4y*p4z**3*premx**4*premy*premz - 4*enRem**2*p2z*p4x**4*premy**2*premz + 16*enRem**2*p2z*p4x**2*p4y**2*premy**2*premz + 16*enRem**2*p2z*p4y**4*premy**2*premz - 4*enRem**2*mwm2*p4x**2*p4z*premy**2*premz + 16*enRem**2*p2z*p4y**2*p4z**2*premy**2*premz + 4*enRem**2*mwm2*p4z**3*premy**2*premz - 12*enRem**2*p2z*p4z**4*premy**2*premz - 4*enRem*mwm2*p2z*p4y**2*p4Norm*premy**2*premz + 4*enRem**3*p4x**2*p4z*p4Norm*premy**2*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premy**2*premz + 8*enRem*p2z**2*p4y**2*p4z*p4Norm*premy**2*premz + 4*enRem*mwm2*p2z*p4z**2*p4Norm*premy**2*premz - 4*enRem**3*p4z**3*p4Norm*premy**2*premz - 8*enRem*p2z**2*p4z**3*p4Norm*premy**2*premz - 8*mwm2*p2z*p4x*p4y**2*premx*premy**2*premz + 8*enRem**2*p4x**3*p4z*premx*premy**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx*premy**2*premz + 16*p2z**2*p4x*p4y**2*p4z*premx*premy**2*premz + 8*enRem**2*p4x*p4z**3*premx*premy**2*premz - 8*enRem*p2z*p4x**3*p4Norm*premx*premy**2*premz + 16*enRem*p2z*p4x*p4y**2*p4Norm*premx*premy**2*premz - 8*enRem*mwm2*p4x*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx*premy**2*premz - 4*p2z*p4x**4*premx**2*premy**2*premz - 4*p2z*p4x**2*p4y**2*premx**2*premy**2*premz - 4*mwm2*p4x**2*p4z*premx**2*premy**2*premz + 4*p2z*p4x**2*p4z**2*premx**2*premy**2*premz - 4*p2z*p4y**2*p4z**2*premx**2*premy**2*premz - 4*mwm2*p4z**3*premx**2*premy**2*premz + 8*p2z*p4z**4*premx**2*premy**2*premz + 4*enRem*p4x**2*p4z*p4Norm*premx**2*premy**2*premz - 4*enRem*p4y**2*p4z*p4Norm*premx**2*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx**2*premy**2*premz - 8*p4x*p4y**2*p4z*premx**3*premy**2*premz - 4*mwm2*p2z*p4y**3*premy**3*premz + 4*enRem**2*p4x**2*p4y*p4z*premy**3*premz + 8*enRem**2*p4y**3*p4z*premy**3*premz + 8*p2z**2*p4y**3*p4z*premy**3*premz - 4*mwm2*p2z*p4y*p4z**2*premy**3*premz + 12*enRem**2*p4y*p4z**3*premy**3*premz + 8*p2z**2*p4y*p4z**3*premy**3*premz - 8*enRem*p2z*p4x**2*p4y*p4Norm*premy**3*premz - 8*enRem*mwm2*p4y*p4z*p4Norm*premy**3*premz + 24*enRem*p2z*p4y*p4z**2*p4Norm*premy**3*premz - 8*p2z*p4x**3*p4y*premx*premy**3*premz - 16*p2z*p4x*p4y**3*premx*premy**3*premz - 8*mwm2*p4x*p4y*p4z*premx*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premx*premy**3*premz - 4*p4x**2*p4y*p4z*premx**2*premy**3*premz - 4*p4y**3*p4z*premx**2*premy**3*premz - 8*p4y*p4z**3*premx**2*premy**3*premz - 4*p2z*p4x**2*p4y**2*premy**4*premz - 8*p2z*p4y**4*premy**4*premz - 4*mwm2*p4y**2*p4z*premy**4*premz - 4*p2z*p4x**2*p4z**2*premy**4*premz - 4*p2z*p4y**2*p4z**2*premy**4*premz - 4*mwm2*p4z**3*premy**4*premz + 4*p2z*p4z**4*premy**4*premz - 4*enRem*p4y**2*p4z*p4Norm*premy**4*premz + 4*enRem*p4z**3*p4Norm*premy**4*premz - 8*p4x*p4y**2*p4z*premx*premy**4*premz - 4*p4y**3*p4z*premy**5*premz - 4*p4y*p4z**3*premy**5*premz + 2*enRem**4*p4x**4*premz**2 + 4*enRem**2*p2z**2*p4x**4*premz**2 + 6*enRem**4*p4x**2*p4y**2*premz**2 + 4*enRem**2*p2z**2*p4x**2*p4y**2*premz**2 + 4*enRem**4*p4y**4*premz**2 + 6*enRem**4*p4x**2*p4z**2*premz**2 + 4*enRem**2*p2z**2*p4x**2*p4z**2*premz**2 + 6*enRem**4*p4y**2*p4z**2*premz**2 + 4*enRem**2*p2z**2*p4y**2*p4z**2*premz**2 - 2*enRem**3*mwm2*p4x**2*p4Norm*premz**2 - 2*enRem**3*mwm2*p4y**2*p4Norm*premz**2 + 12*enRem**3*p2z*p4x**2*p4z*p4Norm*premz**2 + 12*enRem**3*p2z*p4y**2*p4z*p4Norm*premz**2 - 4*enRem**2*mwm2*p4x**3*premx*premz**2 - 4*enRem**2*mwm2*p4x*p4y**2*premx*premz**2 + 24*enRem**2*p2z*p4x**3*p4z*premx*premz**2 + 24*enRem**2*p2z*p4x*p4y**2*p4z*premx*premz**2 - 4*enRem**2*mwm2*p4x*p4z**2*premx*premz**2 + 24*enRem**2*p2z*p4x*p4z**3*premx*premz**2 + 4*enRem**3*p4x**3*p4Norm*premx*premz**2 + 8*enRem*p2z**2*p4x**3*p4Norm*premx*premz**2 + 8*enRem**3*p4x*p4y**2*p4Norm*premx*premz**2 + 12*enRem**3*p4x*p4z**2*p4Norm*premx*premz**2 + 8*enRem*p2z**2*p4x*p4z**2*p4Norm*premx*premz**2 + 4*p2z**2*p4x**4*premx**2*premz**2 + 2*enRem**2*p4x**2*p4y**2*premx**2*premz**2 + 6*enRem**2*p4x**2*p4z**2*premx**2*premz**2 + 8*p2z**2*p4x**2*p4z**2*premx**2*premz**2 + 2*enRem**2*p4y**2*p4z**2*premx**2*premz**2 + 6*enRem**2*p4z**4*premx**2*premz**2 + 4*p2z**2*p4z**4*premx**2*premz**2 - 2*enRem*mwm2*p4x**2*p4Norm*premx**2*premz**2 + 12*enRem*p2z*p4x**2*p4z*p4Norm*premx**2*premz**2 - 2*enRem*mwm2*p4z**2*p4Norm*premx**2*premz**2 + 12*enRem*p2z*p4z**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x**3*p4Norm*premx**3*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**3*premz**2 - 2*p4x**4*premx**4*premz**2 - 4*p4x**2*p4z**2*premx**4*premz**2 - 2*p4z**4*premx**4*premz**2 - 2*enRem**2*mwm2*p4x**2*p4y*premy*premz**2 - 2*enRem**2*mwm2*p4y**3*premy*premz**2 + 12*enRem**2*p2z*p4x**2*p4y*p4z*premy*premz**2 + 12*enRem**2*p2z*p4y**3*p4z*premy*premz**2 - 4*enRem**2*mwm2*p4y*p4z**2*premy*premz**2 + 24*enRem**2*p2z*p4y*p4z**3*premy*premz**2 - 4*enRem**3*p4x**2*p4y*p4Norm*premy*premz**2 + 8*enRem*p2z**2*p4x**2*p4y*p4Norm*premy*premz**2 + 12*enRem**3*p4y*p4z**2*p4Norm*premy*premz**2 + 8*enRem*p2z**2*p4y*p4z**2*p4Norm*premy*premz**2 - 12*enRem**2*p4x**3*p4y*premx*premy*premz**2 + 8*p2z**2*p4x**3*p4y*premx*premy*premz**2 - 8*enRem**2*p4x*p4y**3*premx*premy*premz**2 - 4*enRem**2*p4x*p4y*p4z**2*premx*premy*premz**2 + 8*p2z**2*p4x*p4y*p4z**2*premx*premy*premz**2 + 2*mwm2*p4x**2*p4y*premx**2*premy*premz**2 - 12*p2z*p4x**2*p4y*p4z*premx**2*premy*premz**2 + 2*mwm2*p4y*p4z**2*premx**2*premy*premz**2 - 12*p2z*p4y*p4z**3*premx**2*premy*premz**2 - 12*enRem*p4x**2*p4y*p4Norm*premx**2*premy*premz**2 - 12*enRem*p4y*p4z**2*p4Norm*premx**2*premy*premz**2 - 4*p4x**3*p4y*premx**3*premy*premz**2 - 4*p4x*p4y*p4z**2*premx**3*premy*premz**2 + 2*enRem**2*p4x**4*premy**2*premz**2 - 8*enRem**2*p4x**2*p4y**2*premy**2*premz**2 + 4*p2z**2*p4x**2*p4y**2*premy**2*premz**2 - 8*enRem**2*p4y**4*premy**2*premz**2 + 4*p2z**2*p4x**2*p4z**2*premy**2*premz**2 - 8*enRem**2*p4y**2*p4z**2*premy**2*premz**2 + 4*p2z**2*p4y**2*p4z**2*premy**2*premz**2 + 6*enRem**2*p4z**4*premy**2*premz**2 + 4*p2z**2*p4z**4*premy**2*premz**2 + 2*enRem*mwm2*p4y**2*p4Norm*premy**2*premz**2 - 12*enRem*p2z*p4y**2*p4z*p4Norm*premy**2*premz**2 - 2*enRem*mwm2*p4z**2*p4Norm*premy**2*premz**2 + 12*enRem*p2z*p4z**3*p4Norm*premy**2*premz**2 + 4*mwm2*p4x*p4y**2*premx*premy**2*premz**2 - 24*p2z*p4x*p4y**2*p4z*premx*premy**2*premz**2 + 4*enRem*p4x**3*p4Norm*premx*premy**2*premz**2 - 8*enRem*p4x*p4y**2*p4Norm*premx*premy**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx*premy**2*premz**2 + 2*p4x**4*premx**2*premy**2*premz**2 + 2*p4x**2*p4y**2*premx**2*premy**2*premz**2 - 2*p4x**2*p4z**2*premx**2*premy**2*premz**2 + 2*p4y**2*p4z**2*premx**2*premy**2*premz**2 - 4*p4z**4*premx**2*premy**2*premz**2 + 2*mwm2*p4y**3*premy**3*premz**2 - 12*p2z*p4y**3*p4z*premy**3*premz**2 + 2*mwm2*p4y*p4z**2*premy**3*premz**2 - 12*p2z*p4y*p4z**3*premy**3*premz**2 + 4*enRem*p4x**2*p4y*p4Norm*premy**3*premz**2 - 12*enRem*p4y*p4z**2*p4Norm*premy**3*premz**2 + 4*p4x**3*p4y*premx*premy**3*premz**2 + 8*p4x*p4y**3*premx*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premx*premy**3*premz**2 + 2*p4x**2*p4y**2*premy**4*premz**2 + 4*p4y**4*premy**4*premz**2 + 2*p4x**2*p4z**2*premy**4*premz**2 + 2*p4y**2*p4z**2*premy**4*premz**2 - 2*p4z**4*premy**4*premz**2 - 4*enRem**2*p2z*p4x**4*premz**3 - 4*enRem**2*p2z*p4x**2*p4y**2*premz**3 - 4*enRem**2*p2z*p4x**2*p4z**2*premz**3 - 4*enRem**2*p2z*p4y**2*p4z**2*premz**3 - 4*enRem**3*p4x**2*p4z*p4Norm*premz**3 - 4*enRem**3*p4y**2*p4z*p4Norm*premz**3 - 8*enRem**2*p4x**3*p4z*premx*premz**3 - 8*enRem**2*p4x*p4y**2*p4z*premx*premz**3 - 8*enRem**2*p4x*p4z**3*premx*premz**3 - 8*enRem*p2z*p4x**3*p4Norm*premx*premz**3 - 8*enRem*p2z*p4x*p4z**2*p4Norm*premx*premz**3 - 4*p2z*p4x**4*premx**2*premz**3 - 8*p2z*p4x**2*p4z**2*premx**2*premz**3 - 4*p2z*p4z**4*premx**2*premz**3 - 4*enRem*p4x**2*p4z*p4Norm*premx**2*premz**3 - 4*enRem*p4z**3*p4Norm*premx**2*premz**3 - 4*enRem**2*p4x**2*p4y*p4z*premy*premz**3 - 4*enRem**2*p4y**3*p4z*premy*premz**3 - 8*enRem**2*p4y*p4z**3*premy*premz**3 - 8*enRem*p2z*p4x**2*p4y*p4Norm*premy*premz**3 - 8*enRem*p2z*p4y*p4z**2*p4Norm*premy*premz**3 - 8*p2z*p4x**3*p4y*premx*premy*premz**3 - 8*p2z*p4x*p4y*p4z**2*premx*premy*premz**3 + 4*p4x**2*p4y*p4z*premx**2*premy*premz**3 + 4*p4y*p4z**3*premx**2*premy*premz**3 - 4*p2z*p4x**2*p4y**2*premy**2*premz**3 - 4*p2z*p4x**2*p4z**2*premy**2*premz**3 - 4*p2z*p4y**2*p4z**2*premy**2*premz**3 - 4*p2z*p4z**4*premy**2*premz**3 + 4*enRem*p4y**2*p4z*p4Norm*premy**2*premz**3 - 4*enRem*p4z**3*p4Norm*premy**2*premz**3 + 8*p4x*p4y**2*p4z*premx*premy**2*premz**3 + 4*p4y**3*p4z*premy**3*premz**3 + 4*p4y*p4z**3*premy**3*premz**3 + enRem**2*p4x**4*premz**4 + enRem**2*p4x**2*p4y**2*premz**4 + enRem**2*p4x**2*p4z**2*premz**4 + enRem**2*p4y**2*p4z**2*premz**4 + 2*enRem*p4x**3*p4Norm*premx*premz**4 + 2*enRem*p4x*p4z**2*p4Norm*premx*premz**4 + p4x**4*premx**2*premz**4 + 2*p4x**2*p4z**2*premx**2*premz**4 + p4z**4*premx**2*premz**4 + 2*enRem*p4x**2*p4y*p4Norm*premy*premz**4 + 2*enRem*p4y*p4z**2*p4Norm*premy*premz**4 + 2*p4x**3*p4y*premx*premy*premz**4 + 2*p4x*p4y*p4z**2*premx*premy*premz**4 + p4x**2*p4y**2*premy**2*premz**4 + p4x**2*p4z**2*premy**2*premz**4 + p4y**2*p4z**2*premy**2*premz**4 + p4z**4*premy**2*premz**4))
return ans
def _p2x_func1(self, p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm):
p2x = premx - (-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 - np.sqrt(underSqrt))/(2*(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4))
return p2x
def _p2y_func1(self, p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm):
p2y = premy - (-(enRem**2*mwm2*p4y) + 2*enRem**2*p2z*p4y*p4z + enRem**3*p4y*p4Norm - enRem*p4y*p4Norm*premx**2 + enRem**2*p4x**2*premy + enRem**2*p4y**2*premy + enRem**2*p4z**2*premy - enRem*mwm2*p4Norm*premy + 2*enRem*p2z*p4z*p4Norm*premy - p4x**2*premx**2*premy - p4y**2*premx**2*premy - p4z**2*premx**2*premy - enRem*p4y*p4Norm*premy**2 - p4x**2*premy**3 - p4y**2*premy**3 - p4z**2*premy**3 - 2*enRem**2*p4y*p4z*premz - 2*enRem*p2z*p4y*p4Norm*premz - 2*p2z*p4x**2*premy*premz - 2*p2z*p4y**2*premy*premz - 2*p2z*p4z**2*premy*premz - 2*enRem*p4z*p4Norm*premy*premz + enRem*p4y*p4Norm*premz**2 + p4x**2*premy*premz**2 + p4y**2*premy*premz**2 + p4z**2*premy*premz**2 - (enRem**2*p4x*p4y*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 - np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (enRem*p4y*p4Norm*premx*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 - np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) - (enRem*p4x*p4Norm*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 - np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (p4x**2*premx*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 - np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (p4y**2*premx*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 - np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (p4z**2*premx*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 - np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4))/(2*enRem**2*p4y**2 - 2*p4x**2*premy**2 - 2*p4y**2*premy**2 - 2*p4z**2*premy**2)
return p2y
def _p2x_func2(self, p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm):
p2x = premx - (-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 + np.sqrt(underSqrt))/(2*(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4))
return p2x
def _p2y_func2(self, p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm):
p2y = premy - (-(enRem**2*mwm2*p4y) + 2*enRem**2*p2z*p4y*p4z + enRem**3*p4y*p4Norm - enRem*p4y*p4Norm*premx**2 + enRem**2*p4x**2*premy + enRem**2*p4y**2*premy + enRem**2*p4z**2*premy - enRem*mwm2*p4Norm*premy + 2*enRem*p2z*p4z*p4Norm*premy - p4x**2*premx**2*premy - p4y**2*premx**2*premy - p4z**2*premx**2*premy - enRem*p4y*p4Norm*premy**2 - p4x**2*premy**3 - p4y**2*premy**3 - p4z**2*premy**3 - 2*enRem**2*p4y*p4z*premz - 2*enRem*p2z*p4y*p4Norm*premz - 2*p2z*p4x**2*premy*premz - 2*p2z*p4y**2*premy*premz - 2*p2z*p4z**2*premy*premz - 2*enRem*p4z*p4Norm*premy*premz + enRem*p4y*p4Norm*premz**2 + p4x**2*premy*premz**2 + p4y**2*premy*premz**2 + p4z**2*premy*premz**2 - (enRem**2*p4x*p4y*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 + np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (enRem*p4y*p4Norm*premx*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 + np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) - (enRem*p4x*p4Norm*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 + np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (p4x**2*premx*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 + np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (p4y**2*premx*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 + np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4) + (p4z**2*premx*premy*(-4*enRem**4*mwm2*p4x**3 - 4*enRem**4*mwm2*p4x*p4y**2 + 8*enRem**4*p2z*p4x**3*p4z + 8*enRem**4*p2z*p4x*p4y**2*p4z + 4*enRem**5*p4x**3*p4Norm + 4*enRem**5*p4x*p4y**2*p4Norm + 4*enRem**4*p4x**4*premx + 4*enRem**4*p4x**2*p4y**2*premx + 4*enRem**4*p4x**2*p4z**2*premx - 4*enRem**4*p4y**2*p4z**2*premx - 4*enRem**3*mwm2*p4x**2*p4Norm*premx + 4*enRem**3*mwm2*p4y**2*p4Norm*premx + 8*enRem**3*p2z*p4x**2*p4z*p4Norm*premx - 8*enRem**3*p2z*p4y**2*p4z*p4Norm*premx + 4*enRem**2*mwm2*p4x**3*premx**2 + 8*enRem**2*mwm2*p4x*p4y**2*premx**2 - 8*enRem**2*p2z*p4x**3*p4z*premx**2 - 16*enRem**2*p2z*p4x*p4y**2*p4z*premx**2 + 4*enRem**2*mwm2*p4x*p4z**2*premx**2 - 8*enRem**2*p2z*p4x*p4z**3*premx**2 - 8*enRem**3*p4x**3*p4Norm*premx**2 - 4*enRem**3*p4x*p4y**2*p4Norm*premx**2 - 4*enRem**3*p4x*p4z**2*p4Norm*premx**2 - 8*enRem**2*p4x**4*premx**3 - 4*enRem**2*p4x**2*p4y**2*premx**3 - 12*enRem**2*p4x**2*p4z**2*premx**3 + 4*enRem**2*p4y**2*p4z**2*premx**3 - 4*enRem**2*p4z**4*premx**3 + 4*enRem*mwm2*p4x**2*p4Norm*premx**3 - 8*enRem*p2z*p4x**2*p4z*p4Norm*premx**3 + 4*enRem*mwm2*p4z**2*p4Norm*premx**3 - 8*enRem*p2z*p4z**3*p4Norm*premx**3 + 4*enRem*p4x**3*p4Norm*premx**4 + 4*enRem*p4x*p4z**2*p4Norm*premx**4 + 4*p4x**4*premx**5 + 8*p4x**2*p4z**2*premx**5 + 4*p4z**4*premx**5 + 4*enRem**4*p4x**3*p4y*premy + 4*enRem**4*p4x*p4y**3*premy + 8*enRem**4*p4x*p4y*p4z**2*premy - 8*enRem**3*mwm2*p4x*p4y*p4Norm*premy + 16*enRem**3*p2z*p4x*p4y*p4z*p4Norm*premy - 4*enRem**2*mwm2*p4x**2*p4y*premx*premy + 4*enRem**2*mwm2*p4y**3*premx*premy + 8*enRem**2*p2z*p4x**2*p4y*p4z*premx*premy - 8*enRem**2*p2z*p4y**3*p4z*premx*premy + 8*enRem**2*mwm2*p4y*p4z**2*premx*premy - 16*enRem**2*p2z*p4y*p4z**3*premx*premy - 8*enRem**3*p4x**2*p4y*p4Norm*premx*premy - 8*enRem**3*p4y*p4z**2*p4Norm*premx*premy - 16*enRem**2*p4x**3*p4y*premx**2*premy - 4*enRem**2*p4x*p4y**3*premx**2*premy - 20*enRem**2*p4x*p4y*p4z**2*premx**2*premy - 4*mwm2*p4x**2*p4y*premx**3*premy + 8*p2z*p4x**2*p4y*p4z*premx**3*premy - 4*mwm2*p4y*p4z**2*premx**3*premy + 8*p2z*p4y*p4z**3*premx**3*premy + 8*enRem*p4x**2*p4y*p4Norm*premx**3*premy + 8*enRem*p4y*p4z**2*p4Norm*premx**3*premy + 12*p4x**3*p4y*premx**4*premy + 12*p4x*p4y*p4z**2*premx**4*premy + 4*enRem**2*mwm2*p4x**3*premy**2 - 8*enRem**2*p2z*p4x**3*p4z*premy**2 - 4*enRem**2*mwm2*p4x*p4z**2*premy**2 + 8*enRem**2*p2z*p4x*p4z**3*premy**2 - 4*enRem**3*p4x**3*p4Norm*premy**2 - 8*enRem**3*p4x*p4y**2*p4Norm*premy**2 + 4*enRem**3*p4x*p4z**2*p4Norm*premy**2 - 4*enRem**2*p4x**4*premx*premy**2 - 16*enRem**2*p4x**2*p4y**2*premx*premy**2 - 8*enRem**2*p4x**2*p4z**2*premx*premy**2 - 4*enRem**2*p4z**4*premx*premy**2 + 8*enRem*mwm2*p4x**2*p4Norm*premx*premy**2 - 4*enRem*mwm2*p4y**2*p4Norm*premx*premy**2 - 16*enRem*p2z*p4x**2*p4z*p4Norm*premx*premy**2 + 8*enRem*p2z*p4y**2*p4z*p4Norm*premx*premy**2 + 4*enRem*mwm2*p4z**2*p4Norm*premx*premy**2 - 8*enRem*p2z*p4z**3*p4Norm*premx*premy**2 + 4*mwm2*p4x**3*premx**2*premy**2 - 8*mwm2*p4x*p4y**2*premx**2*premy**2 - 8*p2z*p4x**3*p4z*premx**2*premy**2 + 16*p2z*p4x*p4y**2*p4z*premx**2*premy**2 + 4*mwm2*p4x*p4z**2*premx**2*premy**2 - 8*p2z*p4x*p4z**3*premx**2*premy**2 + 4*enRem*p4x**3*p4Norm*premx**2*premy**2 + 4*enRem*p4x*p4y**2*p4Norm*premx**2*premy**2 + 4*p4x**4*premx**3*premy**2 + 12*p4x**2*p4y**2*premx**3*premy**2 + 12*p4x**2*p4z**2*premx**3*premy**2 + 4*p4y**2*p4z**2*premx**3*premy**2 + 8*p4z**4*premx**3*premy**2 - 4*enRem**2*p4x**3*p4y*premy**3 - 8*enRem**2*p4x*p4y**3*premy**3 - 12*enRem**2*p4x*p4y*p4z**2*premy**3 + 8*enRem*mwm2*p4x*p4y*p4Norm*premy**3 - 16*enRem*p2z*p4x*p4y*p4z*p4Norm*premy**3 + 8*mwm2*p4x**2*p4y*premx*premy**3 - 4*mwm2*p4y**3*premx*premy**3 - 16*p2z*p4x**2*p4y*p4z*premx*premy**3 + 8*p2z*p4y**3*p4z*premx*premy**3 - 4*mwm2*p4y*p4z**2*premx*premy**3 + 8*p2z*p4y*p4z**3*premx*premy**3 + 8*enRem*p4x**2*p4y*p4Norm*premx*premy**3 + 8*enRem*p4y*p4z**2*p4Norm*premx*premy**3 + 12*p4x**3*p4y*premx**2*premy**3 + 4*p4x*p4y**3*premx**2*premy**3 + 16*p4x*p4y*p4z**2*premx**2*premy**3 + 4*mwm2*p4x*p4y**2*premy**4 - 8*p2z*p4x*p4y**2*p4z*premy**4 + 4*mwm2*p4x*p4z**2*premy**4 - 8*p2z*p4x*p4z**3*premy**4 + 4*enRem*p4x*p4y**2*p4Norm*premy**4 - 4*enRem*p4x*p4z**2*p4Norm*premy**4 + 12*p4x**2*p4y**2*premx*premy**4 + 4*p4x**2*p4z**2*premx*premy**4 + 4*p4y**2*p4z**2*premx*premy**4 + 4*p4z**4*premx*premy**4 + 4*p4x*p4y**3*premy**5 + 4*p4x*p4y*p4z**2*premy**5 - 8*enRem**4*p4x**3*p4z*premz - 8*enRem**4*p4x*p4y**2*p4z*premz - 8*enRem**3*p2z*p4x**3*p4Norm*premz - 8*enRem**3*p2z*p4x*p4y**2*p4Norm*premz - 8*enRem**2*p2z*p4x**4*premx*premz - 8*enRem**2*p2z*p4x**2*p4y**2*premx*premz - 8*enRem**2*p2z*p4x**2*p4z**2*premx*premz + 8*enRem**2*p2z*p4y**2*p4z**2*premx*premz - 8*enRem**3*p4x**2*p4z*p4Norm*premx*premz + 8*enRem**3*p4y**2*p4z*p4Norm*premx*premz + 8*enRem**2*p4x**3*p4z*premx**2*premz + 16*enRem**2*p4x*p4y**2*p4z*premx**2*premz + 8*enRem**2*p4x*p4z**3*premx**2*premz + 8*enRem*p2z*p4x**3*p4Norm*premx**2*premz + 8*enRem*p2z*p4x*p4z**2*p4Norm*premx**2*premz + 8*p2z*p4x**4*premx**3*premz + 16*p2z*p4x**2*p4z**2*premx**3*premz + 8*p2z*p4z**4*premx**3*premz + 8*enRem*p4x**2*p4z*p4Norm*premx**3*premz + 8*enRem*p4z**3*p4Norm*premx**3*premz - 8*enRem**2*p2z*p4x**3*p4y*premy*premz - 8*enRem**2*p2z*p4x*p4y**3*premy*premz - 16*enRem**2*p2z*p4x*p4y*p4z**2*premy*premz - 16*enRem**3*p4x*p4y*p4z*p4Norm*premy*premz - 8*enRem**2*p4x**2*p4y*p4z*premx*premy*premz + 8*enRem**2*p4y**3*p4z*premx*premy*premz + 16*enRem**2*p4y*p4z**3*premx*premy*premz + 16*enRem*p2z*p4x**2*p4y*p4Norm*premx*premy*premz + 16*enRem*p2z*p4y*p4z**2*p4Norm*premx*premy*premz + 24*p2z*p4x**3*p4y*premx**2*premy*premz + 24*p2z*p4x*p4y*p4z**2*premx**2*premy*premz - 8*p4x**2*p4y*p4z*premx**3*premy*premz - 8*p4y*p4z**3*premx**3*premy*premz + 8*enRem**2*p4x**3*p4z*premy**2*premz - 8*enRem**2*p4x*p4z**3*premy**2*premz + 8*enRem*p2z*p4x*p4y**2*p4Norm*premy**2*premz - 8*enRem*p2z*p4x*p4z**2*p4Norm*premy**2*premz + 24*p2z*p4x**2*p4y**2*premx*premy**2*premz + 8*p2z*p4x**2*p4z**2*premx*premy**2*premz + 8*p2z*p4y**2*p4z**2*premx*premy**2*premz + 8*p2z*p4z**4*premx*premy**2*premz + 16*enRem*p4x**2*p4z*p4Norm*premx*premy**2*premz - 8*enRem*p4y**2*p4z*p4Norm*premx*premy**2*premz + 8*enRem*p4z**3*p4Norm*premx*premy**2*premz + 8*p4x**3*p4z*premx**2*premy**2*premz - 16*p4x*p4y**2*p4z*premx**2*premy**2*premz + 8*p4x*p4z**3*premx**2*premy**2*premz + 8*p2z*p4x*p4y**3*premy**3*premz + 8*p2z*p4x*p4y*p4z**2*premy**3*premz + 16*enRem*p4x*p4y*p4z*p4Norm*premy**3*premz + 16*p4x**2*p4y*p4z*premx*premy**3*premz - 8*p4y**3*p4z*premx*premy**3*premz - 8*p4y*p4z**3*premx*premy**3*premz + 8*p4x*p4y**2*p4z*premy**4*premz + 8*p4x*p4z**3*premy**4*premz + 4*enRem**3*p4x**3*p4Norm*premz**2 + 4*enRem**3*p4x*p4y**2*p4Norm*premz**2 + 4*enRem**2*p4x**4*premx*premz**2 + 4*enRem**2*p4x**2*p4y**2*premx*premz**2 + 4*enRem**2*p4x**2*p4z**2*premx*premz**2 - 4*enRem**2*p4y**2*p4z**2*premx*premz**2 - 4*enRem*p4x**3*p4Norm*premx**2*premz**2 - 4*enRem*p4x*p4z**2*p4Norm*premx**2*premz**2 - 4*p4x**4*premx**3*premz**2 - 8*p4x**2*p4z**2*premx**3*premz**2 - 4*p4z**4*premx**3*premz**2 + 4*enRem**2*p4x**3*p4y*premy*premz**2 + 4*enRem**2*p4x*p4y**3*premy*premz**2 + 8*enRem**2*p4x*p4y*p4z**2*premy*premz**2 - 8*enRem*p4x**2*p4y*p4Norm*premx*premy*premz**2 - 8*enRem*p4y*p4z**2*p4Norm*premx*premy*premz**2 - 12*p4x**3*p4y*premx**2*premy*premz**2 - 12*p4x*p4y*p4z**2*premx**2*premy*premz**2 - 4*enRem*p4x*p4y**2*p4Norm*premy**2*premz**2 + 4*enRem*p4x*p4z**2*p4Norm*premy**2*premz**2 - 12*p4x**2*p4y**2*premx*premy**2*premz**2 - 4*p4x**2*p4z**2*premx*premy**2*premz**2 - 4*p4y**2*p4z**2*premx*premy**2*premz**2 - 4*p4z**4*premx*premy**2*premz**2 - 4*p4x*p4y**3*premy**3*premz**2 - 4*p4x*p4y*p4z**2*premy**3*premz**2 + np.sqrt(underSqrt)))/(4*enRem**4*p4x**4 + 8*enRem**4*p4x**2*p4y**2 + 4*enRem**4*p4y**4 - 8*enRem**2*p4x**4*premx**2 - 8*enRem**2*p4x**2*p4y**2*premx**2 - 8*enRem**2*p4x**2*p4z**2*premx**2 + 8*enRem**2*p4y**2*p4z**2*premx**2 + 4*p4x**4*premx**4 + 8*p4x**2*p4z**2*premx**4 + 4*p4z**4*premx**4 - 16*enRem**2*p4x**3*p4y*premx*premy - 16*enRem**2*p4x*p4y**3*premx*premy - 32*enRem**2*p4x*p4y*p4z**2*premx*premy + 16*p4x**3*p4y*premx**3*premy + 16*p4x*p4y*p4z**2*premx**3*premy - 8*enRem**2*p4x**2*p4y**2*premy**2 - 8*enRem**2*p4y**4*premy**2 + 8*enRem**2*p4x**2*p4z**2*premy**2 - 8*enRem**2*p4y**2*p4z**2*premy**2 + 24*p4x**2*p4y**2*premx**2*premy**2 + 8*p4x**2*p4z**2*premx**2*premy**2 + 8*p4y**2*p4z**2*premx**2*premy**2 + 8*p4z**4*premx**2*premy**2 + 16*p4x*p4y**3*premx*premy**3 + 16*p4x*p4y*p4z**2*premx*premy**3 + 4*p4y**4*premy**4 + 8*p4y**2*p4z**2*premy**4 + 4*p4z**4*premy**4))/(2*enRem**2*p4y**2 - 2*p4x**2*premy**2 - 2*p4y**2*premy**2 - 2*p4z**2*premy**2)
return p2y
def p2VecFromP2z(self, p2z, oneOrTwo, doComplex=True):
p2x = 0.0
p2y = 0.0
p4x = self.p4Vec[0]
p4y = self.p4Vec[1]
p4z = self.p4Vec[2]
premx = self.pRemVec[0]
premy = self.pRemVec[1]
premz = self.pRemVec[2]
mwm2 = self.mWm**2
p1Norm = self.p1Norm
p4Norm = self.p4Norm
enRem = self.enRem
underSqrt = self._underSqrt(p2z, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm)
if doComplex and underSqrt < 0:
underSqrt += 0j
elif underSqrt < 0:
return [np.nan, np.nan, p2z]
if oneOrTwo == 1:
p2x = self._p2x_func1(p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm)
p2y = self._p2y_func1(p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm)
elif oneOrTwo == 2:
p2x = self._p2x_func2(p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm)
p2y = self._p2y_func2(p2z, underSqrt, p4x, p4y, p4z, premx, premy, premz, mwm2, enRem, p4Norm, p1Norm)
p2Vec = np.array([p2x, p2y, p2z])
return p2Vec
def func(self, p2z, oneOrTwo, doComplex=True):
p2Vec = self.p2VecFromP2z(p2z, oneOrTwo, doComplex)
p2Norm = linalg.norm(p2Vec)
out = (self.p1Norm + p2Norm)**2 - np.vdot(self.p1Vec + p2Vec, self.p1Vec + p2Vec) - self.mWp**2
return out
def expandSolution(self, p2z, oneOrTwo):
out = {}
p2Vec = self.p2VecFromP2z(p2z, oneOrTwo, doComplex=False)
if not (isinstance(p2Vec[0], complex) or isinstance(p2Vec[1], complex)) and not (math.isnan(p2Vec[0]) or math.isnan(p2Vec[1])):
p5Vec = self.p5VecFromP2Vec(p2Vec)
funcVal = self.func(p2z, oneOrTwo, doComplex=False)
out = {'nu': p2Vec, 'nu~': p5Vec, 'func': funcVal}
else:
raise RuntimeError("Neutrino momentum contains complex or null values")
return out
def cleanSolutions(self, solnsList):
newList = []
for soln in solnsList:
newSoln = {'nu':soln['nu'], 'nu~':soln['nu~']}
newList.append(newSoln)
return newList
# Find a single solution within a given range
def findCrossSolution(self, rangeMin, rangeMax, fAtMin, fAtMax, oneOrTwo, maxIters=30):
iterCount = 0
while (rangeMax - rangeMin > self.crossTolerance) and iterCount < maxIters:
iterCount += 1
midpoint = float(rangeMax + rangeMin) / 2.0
fMid = self.func(midpoint, oneOrTwo)
if self.sameSign(fMid, fAtMax):
rangeMax = midpoint
fAtMax = fMid
else:
rangeMin = midpoint
fAtMin = fMid
if rangeMax - rangeMin <= self.crossTolerance and fAtMax < 100:
res = (rangeMin + rangeMax)/2.0
try:
soln = self.expandSolution(res, oneOrTwo)
except RuntimeError:
soln = None
return soln
return None
# finds a minimum of the function. Assumes you're already kinf od near the minimum to begin with
def findGrazedSolution(self, startingMin, fMid, smidgeSize, oneOrTwo, maxIters=15):
# Get a value to the left, and a value to the right.
for i in range(0, maxIters):
leftPt = startingMin - smidgeSize
rightPt = startingMin + smidgeSize
valStart = abs(self.func(startingMin, oneOrTwo))
valLeft = abs(self.func(leftPt, oneOrTwo))
valRight = abs(self.func(rightPt, oneOrTwo))
if (valLeft < valStart):
#move left
startingMin = leftPt
valStart = valLeft
elif(valRight < valStart):
#move right
startingMin = rightPt
valStart = valRight
else:
# neither valLeft nor valRight is less than your current point
smidgeSize = smidgeSize/2.0
if valStart < self.grazeTolerance:
break
# don't return a bogus min
if valStart < self.grazeTolerance:
soln = None
try:
soln = self.expandSolution(startingMin, oneOrTwo)
except RuntimeError:
soln = None
return soln
else:
return None
# This returns EITHER:
# A) a point at which the function value has the opposite sign as the function values at the ends, OR
# B) if (A) does not exist, returns a roughly-minimum point of the absolute value of the function
def findOppositeSignOrMin(self, maxAllowed, minAllowed, fAtMax, fAtMin, oneOrTwo):
denom = 2
middle = float(maxAllowed + minAllowed) / denom
fMid = self.func(middle, oneOrTwo, doComplex=False)
if math.isnan(fMid): fMid = fAtMax # we can just say NaN is "not a useful value"
minAbs = abs(fMid)
minAbsWithSign = fMid
minPoint = middle
while np.sign(fMid)==np.sign(fAtMax) and middle < maxAllowed and middle > minAllowed and denom < 33:
checkPoint = middle
fCheck = fMid
denom *= 2
i = 1
while i < denom and np.sign(fCheck)==np.sign(fAtMax):
checkPoint = minAllowed + i*(float(maxAllowed - minAllowed)/denom)
fCheck = self.func(checkPoint, oneOrTwo, doComplex=False)
if math.isnan(fCheck):
fCheck = fAtMax # we can just say NaN is "not a useful value"
else:
# if you get a real answer populate fMid so it doesn't get lost
middle = checkPoint
fMid = fCheck
absVal = abs(fMid)
if absVal < minAbs:
minAbs = absVal
minPoint = middle
minAbsWithSign = fMid
i += 2
# Last check: NEVER return NaN for the midpoint function value
if math.isnan(fMid): fMid = self.func(middle, oneOrTwo, doComplex=True)
if self.sameSign(fMid, fAtMax):
# no opposite-sign point found. Return the minimum
return (minPoint, minAbsWithSign)
else:
# fouund sign flip
return (middle, fMid)
def findSignFlip(self, rangeMin, rangeMax, fAtMin, fAtMax, oneOrTwo):
# use the fact that these functions tend to have simple, smooth shapes in the regions where they are real-valued
# assumes fAtMax and fAtMin are on the same side of the x-axis
# increment the min and max of the range
minInc = rangeMin + self.cheat
maxInc = rangeMax - self.cheat # increment "inward"
minIncVal = self.func(minInc, oneOrTwo, doComplex=False)
maxIncVal = self.func(maxInc, oneOrTwo, doComplex=False)
# If both incremented values are even further from the x-axis than the original endpoints, this is a no-hoper.
if self.sameSign(minIncVal, fAtMin) and self.sameSign(maxIncVal, fAtMax) and (abs(minIncVal) > abs(fAtMin)) and (abs(maxIncVal) > abs(fAtMax)):
# nothing valuable here -- all same signs, and getting further from zero
return (minInc, minIncVal)
# If you happen to have stumbled upon a sign flip, sweet!
if np.sign(minIncVal) != np.sign(fAtMin):
return (minInc, minIncVal)
if np.sign(maxIncVal) != np.sign(fAtMax):
return (maxInc, maxIncVal)
# if you're here, then you haven't found a sign flip, but there might be one
return self.findOppositeSignOrMin(rangeMax, rangeMin, fAtMax, fAtMin, oneOrTwo)
def saveResult(self, sol1, oneOrTwo):
if sol1 is None:
return False
if math.isnan(sol1['nu'][0]) or math.isnan(sol1['nu'][1]):
return False
resList = None
if oneOrTwo == 1:
resList = self.resultsListOne
elif oneOrTwo == 2:
resList = self.resultsListTwo
isDuplicate = False
for j in range(0, len(self.resultsListOne)+len(self.resultsListTwo)):
sol2 = None
searchList = None
itemCount = j
if j < len(self.resultsListOne):
sol2 = self.resultsListOne[itemCount]
searchList = self.resultsListOne
else:
itemCount = j - len(self.resultsListOne)
sol2 = self.resultsListTwo[itemCount]
searchList = self.resultsListTwo
# new way to find duplicates: magnitude and solid angle
mag1 = linalg.norm(sol1['nu'])
mag2 = linalg.norm(sol2['nu'])
magDiff = abs(mag1 - mag2) / max([mag1, mag2])
if magDiff > 0.1:
continue
px1 = sol1['nu'][0]
py1 = sol1['nu'][1]
pz1 = sol1['nu'][2]
px2 = sol2['nu'][0]
py2 = sol2['nu'][1]
pz2 = sol2['nu'][2]
maxCoord1 = max([abs(px1), abs(py1), abs(pz1)])
maxCoord2 = max([abs(px2), abs(py2), abs(pz2)])
if abs(maxCoord1 - maxCoord2)/max([maxCoord1, maxCoord2]) > 0.1:
continue
# check that the relations between the other coordinate and the max coordinate are similar
if (px1/maxCoord1) - (px2/maxCoord2) > 0.1 or (px1/maxCoord1) - (px2/maxCoord2) < -0.1:
continue
if (py1/maxCoord1) - (py2/maxCoord2) > 0.1 or (py1/maxCoord1) - (py2/maxCoord2) < -0.1:
continue
if (pz1/maxCoord1) - (pz2/maxCoord2) > 0.1 or (pz1/maxCoord1) - (pz2/maxCoord2) < -0.1:
continue
# At this point, your neutrino momenta are within 5%, and your calculated top mass is within 5%
# These are duplicates
isDuplicate = True
self.talk("Found an actual duplicate!")
# which solutions is "better"? Compare the function values
if abs(sol1['func']) >= abs(sol2['func']):
return False # we're done. Don't add the new one
else: # the new solution is better than the old one -- replace the old one
searchList.pop(itemCount)
resList.append(sol1)
return False # was still a dup
if not isDuplicate:
resList.append(sol1)
return True
def isFunctionUseful(self, oneOrTwo):
# what we are looking for here:
# either the two ends of the range are on opposite sides of the x axis,
# or they are on the same side, but at least one end curces toward the x axis
fAtMin = self.func(self.fullRange[0], oneOrTwo, doComplex=False)
fAtMax = self.func(self.fullRange[1], oneOrTwo, doComplex=False)
if not self.sameSign(fAtMin, fAtMax):
return True
fAtLow = self.func(self.fullRange[0]+(5*self.cheat), oneOrTwo, doComplex=False)
fAtHigh = self.func(self.fullRange[1]-(5*self.cheat), oneOrTwo, doComplex=False)
if abs(fAtLow) < abs(fAtMin) or abs(fAtHigh) < abs(fAtMax):
return True
elif not self.sameSign(fAtMin, fAtLow) or not self.sameSign(fAtMax, fAtHigh):
return True
return False
def seekSolution(self, oneOrTwo, recursed=False):
self.newFunc = False
if len(self.ranges) == 0:
# you've used up all your ranges
self.funcDone[oneOrTwo-1] = True
return None
resList = None
if oneOrTwo == 1:
resList = self.resultsListOne
elif oneOrTwo == 2:
resList = self.resultsListTwo
if len(resList) >= self.maxSolnsPerFunc:
self.funcDone[oneOrTwo-1] = True
return None
# NEW CHECK: if you have 2 solutions TOTAL, you are done
if len(self.resultsListOne)+len(self.resultsListTwo) >= self.maxSolnsPerFunc:
self.funcDone[oneOrTwo-1] = True
return None
grazedSolution = False
fMid = 0.0
startingMin = 0.0
# pop the first range off the list
nextRange = self.ranges.pop(0)
if nextRange[1] - nextRange[0] < self.cheat:
# this search range is no good. skip this attemps
self.seekSolution(oneOrTwo, recursed=True)
return None # so when the recursive call is done this does not continue like business as usual
fAtMin = self.func(nextRange[0], oneOrTwo, doComplex=False)
fAtMax = self.func(nextRange[1], oneOrTwo, doComplex=False)
if self.sameSign(fAtMin, fAtMax):
oppOrMin, val = self.findSignFlip(nextRange[0], nextRange[1], fAtMax, fAtMin, oneOrTwo)
# if we find an opposite-sign point, make a new range for now using it as the MAX
# create a second range using the opposite-sign point as the MIN, store it for later.
if self.sameSign(val, fAtMax):
grazedSolution = True
fMid = val
startingMin = oppOrMin
else:
self.talk("splitting range: midpoint at {}".format(oppOrMin))
oldMax = nextRange[1]
nextRange = [nextRange[0], oppOrMin]
fAtMax = val
self.ranges.append([oppOrMin, oldMax])
# If no opposite-sign point, try to find a grazed solution
soln = None
foundSolution = False
if grazedSolution:
soln = self.findGrazedSolution(startingMin, fMid, self.cheat, oneOrTwo)
allGood = self.saveResult(soln, oneOrTwo)
if allGood:
foundSolution = True
self.talk("found grazed solution")
if not grazedSolution:
soln = self.findCrossSolution(nextRange[0], nextRange[1], fAtMin, fAtMax, oneOrTwo)
allGood = self.saveResult(soln, oneOrTwo)
if allGood:
foundSolution = True
self.talk("found cross solution")
# If found: break the range in the spot where the solution was, put both new ranges at the end of the list
# If not found, go to the next range and try again
# If you run out of ranges, or hit four solutions, you are done
if not foundSolution:
# no solution in this range... trying the next one
self.seekSolution(oneOrTwo, recursed=True)
return None # so when the recursive call is done this does not continue like business as usual
else:
range1 = [nextRange[0], soln['nu'][2]-self.cheat]
range2 = [soln['nu'][2]+self.cheat, nextRange[1]]
self.ranges.append(range1)
self.ranges.append(range2)
# From plotting these functions, it is clear that there are large regions
# and the edge of the "allowed" z-range with no solutions. Also, there
# are large areas without any solutions with real px, py, and pz.
# This should cut out a bunch of that -- up to 50% of the total z range.
def shrinkRange(self, tmpMin, tmpMax):
stepCount = 0
stepRatio = 100
numSteps = stepRatio
stepSize = (tmpMax - tmpMin) / float(stepRatio)
underRad = self._underSqrt(tmpMin, self.p4Vec[0], self.p4Vec[1], self.p4Vec[2], self.pRemVec[0], self.pRemVec[1], self.pRemVec[2], self.mWm**2, self.enRem, self.p4Norm, self.p1Norm)
while underRad < 0 and stepCount < numSteps:
stepCount += 1
tmpMin += stepSize
# this is much quicker than evaluating the whole function over the whole range
underRad = self._underSqrt(tmpMin, self.p4Vec[0], self.p4Vec[1], self.p4Vec[2], self.pRemVec[0], self.pRemVec[1], self.pRemVec[2], self.mWm**2, self.enRem, self.p4Norm, self.p1Norm)
underRad = self._underSqrt(tmpMax, self.p4Vec[0], self.p4Vec[1], self.p4Vec[2], self.pRemVec[0], self.pRemVec[1], self.pRemVec[2], self.mWm**2, self.enRem, self.p4Norm, self.p1Norm)
while underRad < 0 and stepCount < numSteps:
stepCount += 1
tmpMax -= stepSize
# this is much quicker than evaluating the whole function over the whole range
underRad = self._underSqrt(tmpMax, self.p4Vec[0], self.p4Vec[1], self.p4Vec[2], self.pRemVec[0], self.pRemVec[1], self.pRemVec[2], self.mWm**2, self.enRem, self.p4Norm, self.p1Norm)
self.talk("allowed range: {0} - {1}".format(tmpMin, tmpMax))
return (tmpMin, tmpMax)
def initFunc(self, oneOrTwo):
if len(self.fullRange) == 0:
rangeMin = self.totalMinP2z
rangeMax = self.totalMaxP2z
# right... a lot of that is probably far from our solutions, so let's clear that out
(rangeMin, rangeMax) = self.shrinkRange(rangeMin, rangeMax)
self.fullRange = [rangeMin, rangeMax]
self.cheat = (rangeMax - rangeMin)*0.01
if self.cheat > 10:
self.cheat = 10
#print "set cheat to 10!"
self.ranges = [self.fullRange]
self.funcInitialized[oneOrTwo-1] = True
def findNextSolution(self):
oneOrTwo = 0
if not self.funcInitialized[0]:
oneOrTwo = 1
self.initFunc(1)
self.seekSolution(1)
self.allResultsList.extend(self.cleanSolutions(self.resultsListOne))
return True
elif self.funcInitialized[0] and not self.funcDone[0]:
oneOrTwo = 1
self.seekSolution(1)
self.allResultsList.extend(self.cleanSolutions(self.resultsListOne))
return True
elif not self.funcInitialized[1]:
oneOrTwo = 2
self.initFunc(2)
self.seekSolution(2)
self.allResultsList.extend(self.cleanSolutions(self.resultsListTwo))
return True
elif self.funcInitialized[1] and not self.funcDone[1]:
oneOrTwo = 2
self.seekSolution(2)
self.allResultsList.extend(self.cleanSolutions(self.resultsListTwo))
return True
else:
# all done
return False
def findAllSolutions(self):
self.initFunc(1)
self.newFunc = True
while not self.funcDone[0]:
self.seekSolution(1)
self.initFunc(2)
self.newFunc = True
while not self.funcDone[1]:
self.seekSolution(2)
self.talk("solutions for func 1: ")
for sol in self.resultsListOne:
self.talk("\t{0}".format(sol))
self.talk("solutions for func 2: ")
for sol in self.resultsListTwo:
self.talk("\t{0}".format(sol))
self.allResultsList.extend(self.cleanSolutions(self.resultsListOne))
self.allResultsList.extend(self.cleanSolutions(self.resultsListTwo))
return self.allResultsList
| 328.604207
| 51,766
| 0.640975
| 36,678
| 171,860
| 3.002563
| 0.012487
| 0.041043
| 0.051322
| 0.036594
| 0.920157
| 0.905791
| 0.885542
| 0.850301
| 0.811665
| 0.788719
| 0
| 0.164501
| 0.087763
| 171,860
| 522
| 51,767
| 329.233716
| 0.537949
| 0.019632
| 0
| 0.311751
| 0
| 0
| 0.001639
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.01199
| null | null | 0.002398
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
dc645228ccb100b1d855eee639dd758c50d3f8f6
| 3,806
|
py
|
Python
|
userbot/plugins/nekos_stickers.py
|
meaall-com/Telebot
|
a08193ae6c3e5814b309d079e95c4951eafcbc19
|
[
"MIT"
] | null | null | null |
userbot/plugins/nekos_stickers.py
|
meaall-com/Telebot
|
a08193ae6c3e5814b309d079e95c4951eafcbc19
|
[
"MIT"
] | null | null | null |
userbot/plugins/nekos_stickers.py
|
meaall-com/Telebot
|
a08193ae6c3e5814b309d079e95c4951eafcbc19
|
[
"MIT"
] | null | null | null |
# Made
# Re-written by
# Kangers kwwp the credits
#Made
#From Nekos API
import datetime
from telethon import events
from telethon.errors.rpcerrorlist import YouBlockedUserError
from telethon.tl.functions.account import UpdateNotifySettingsRequest
from uniborg.util import admin_cmd
@borg.on(admin_cmd("alewd"))
async def _(event):
if event.fwd_from:
return
chat = ""
await event.edit("**")
async with borg.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1212429864))
await borg.send_message(chat, "/avatarlewd")
response = await response
except YouBlockedUserError:
await event.reply("```Please unblock @KeikoSDbot and try again```")
return
if response.text.startswith("Forward"):
await event.edit("```can you kindly disable your forward privacy settings for good?```")
else:
await event.delete()
await borg.send_file(event.chat_id, response.message.media)
#By @WhySooSerious
@borg.on(admin_cmd("gasm"))
async def _(event):
if event.fwd_from:
return
chat = "@KeikoSDbot"
await event.edit("```Finding a Random Orgasm Sticker..```\n**WARNING : It's NSFW**")
async with borg.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1212429864))
await borg.send_message(chat, "/gasm")
response = await response
except YouBlockedUserError:
await event.reply("```Please unblock @KeikoSDbot and try again```")
return
if response.text.startswith("Forward"):
await event.edit("```can you kindly disable your forward privacy settings for good?```")
else:
await event.delete()
await borg.send_file(event.chat_id, response.message.media)
#By @WhySooSerious
@borg.on(admin_cmd("avatar"))
async def _(event):
if event.fwd_from:
return
chat = "@KeikoSDbot"
await event.edit("```Finding a Hentai Avatar Sticker..```\n**WARNING : It's NSFW**")
async with borg.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1212429864))
await borg.send_message(chat, "/avatar")
response = await response
except YouBlockedUserError:
await event.reply("```Please unblock @KeikoSDbot and try again```")
return
if response.text.startswith("Forward"):
await event.edit("```can you kindly disable your forward privacy settings for good?```")
else:
await event.delete()
await borg.send_file(event.chat_id, response.message.media)
#By @WhySooSerious
@borg.on(admin_cmd("waifu"))
async def _(event):
if event.fwd_from:
return
chat = "@KeikoSDbot"
await event.edit("```Finding an Anime Waifu Sticker..```\n**Yay, It's SFW**")
async with borg.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1212429864))
await borg.send_message(chat, "/waifu")
response = await response
except YouBlockedUserError:
await event.reply("```Please unblock @KeikoSDbot and try again```")
return
if response.text.startswith("Forward"):
await event.edit("```can you kindly disable your forward privacy settings for good?```")
else:
await event.delete()
await borg.send_file(event.chat_id, response.message.media)
#By @WhySooSerious
| 39.645833
| 102
| 0.622438
| 434
| 3,806
| 5.382488
| 0.221198
| 0.068493
| 0.047945
| 0.023973
| 0.844606
| 0.844606
| 0.844606
| 0.844606
| 0.844606
| 0.828767
| 0
| 0.014352
| 0.267735
| 3,806
| 95
| 103
| 40.063158
| 0.823825
| 0.034682
| 0
| 0.777778
| 0
| 0
| 0.210983
| 0.012889
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.061728
| 0
| 0.160494
| 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
|
f4d658a88e9d1eeb121247b89fe970c1a948472b
| 39,336
|
py
|
Python
|
vendor/penguin_client/penguin_client/api/_deprecated_ap_is_api.py
|
Sait0Yuuki/ArknightsAutoHelper
|
5ecec0d120482c930181346cfdb8542090e169c1
|
[
"MIT"
] | 1,035
|
2019-05-14T11:58:32.000Z
|
2022-03-16T15:09:53.000Z
|
vendor/penguin_client/penguin_client/api/_deprecated_ap_is_api.py
|
Sait0Yuuki/ArknightsAutoHelper
|
5ecec0d120482c930181346cfdb8542090e169c1
|
[
"MIT"
] | 209
|
2019-05-11T13:19:57.000Z
|
2022-03-12T01:42:11.000Z
|
vendor/penguin_client/penguin_client/api/_deprecated_ap_is_api.py
|
Sait0Yuuki/ArknightsAutoHelper
|
5ecec0d120482c930181346cfdb8542090e169c1
|
[
"MIT"
] | 254
|
2019-05-13T09:06:54.000Z
|
2022-03-16T09:47:44.000Z
|
# coding: utf-8
"""
Penguin Statistics - REST APIs
Backend APIs for Arknights drop rate statistics website 'Penguin Statistics': https://penguin-stats.io/ # noqa: E501
OpenAPI spec version: 2.0.0
Contact: alvissreimu@gmail.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from penguin_client.api_client import ApiClient
class DeprecatedAPIsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def get_all_extended_limitations_using_get(self, **kwargs): # noqa: E501
"""Get all real limitations # 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_all_extended_limitations_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[Limitation]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_all_extended_limitations_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_extended_limitations_using_get_with_http_info(**kwargs) # noqa: E501
return data
def get_all_extended_limitations_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get all real limitations # 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_all_extended_limitations_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[Limitation]
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_all_extended_limitations_using_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/limitations', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Limitation]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_all_items_using_get(self, **kwargs): # noqa: E501
"""Get all items # 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_all_items_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool
:param bool i18n: i18n
:return: list[Item]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_all_items_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_items_using_get_with_http_info(**kwargs) # noqa: E501
return data
def get_all_items_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get all items # 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_all_items_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param bool i18n: i18n
:return: list[Item]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['i18n'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_all_items_using_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'i18n' in params:
query_params.append(('i18n', params['i18n'])) # 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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/items', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Item]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_all_stages_using_get(self, **kwargs): # noqa: E501
"""Get all stages # 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_all_stages_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str zone_id: zoneId
:return: list[Stage]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_all_stages_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_stages_using_get_with_http_info(**kwargs) # noqa: E501
return data
def get_all_stages_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get all stages # 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_all_stages_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str zone_id: zoneId
:return: list[Stage]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['zone_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_all_stages_using_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'zone_id' in params:
query_params.append(('zoneId', params['zone_id'])) # 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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/stages', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Stage]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_all_zones_using_get(self, **kwargs): # noqa: E501
"""Get all zones # 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_all_zones_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool
:param bool i18n: i18n
:return: list[Zone]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_all_zones_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_all_zones_using_get_with_http_info(**kwargs) # noqa: E501
return data
def get_all_zones_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get all zones # 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_all_zones_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param bool i18n: i18n
:return: list[Zone]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['i18n'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_all_zones_using_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'i18n' in params:
query_params.append(('i18n', params['i18n'])) # 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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/zones', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Zone]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_extended_limitation_using_get(self, stage_id, **kwargs): # noqa: E501
"""Get limitation by stageId # 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_extended_limitation_using_get(stage_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str stage_id: stageId (required)
:return: Limitation
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_extended_limitation_using_get_with_http_info(stage_id, **kwargs) # noqa: E501
else:
(data) = self.get_extended_limitation_using_get_with_http_info(stage_id, **kwargs) # noqa: E501
return data
def get_extended_limitation_using_get_with_http_info(self, stage_id, **kwargs): # noqa: E501
"""Get limitation by stageId # 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_extended_limitation_using_get_with_http_info(stage_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str stage_id: stageId (required)
:return: Limitation
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['stage_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_extended_limitation_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'stage_id' is set
if ('stage_id' not in params or
params['stage_id'] is None):
raise ValueError("Missing the required parameter `stage_id` when calling `get_extended_limitation_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'stage_id' in params:
path_params['stageId'] = params['stage_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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/limitations/{stageId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Limitation', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_formula_using_get1(self, **kwargs): # noqa: E501
"""Get formula # 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_formula_using_get1(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_formula_using_get1_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_formula_using_get1_with_http_info(**kwargs) # noqa: E501
return data
def get_formula_using_get1_with_http_info(self, **kwargs): # noqa: E501
"""Get formula # 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_formula_using_get1_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_formula_using_get1" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/formula', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_item_by_item_id_using_get(self, item_id, **kwargs): # noqa: E501
"""Get item by item ID # 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_item_by_item_id_using_get(item_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str item_id: itemId (required)
:param bool i18n: i18n
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_item_by_item_id_using_get_with_http_info(item_id, **kwargs) # noqa: E501
else:
(data) = self.get_item_by_item_id_using_get_with_http_info(item_id, **kwargs) # noqa: E501
return data
def get_item_by_item_id_using_get_with_http_info(self, item_id, **kwargs): # noqa: E501
"""Get item by item ID # 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_item_by_item_id_using_get_with_http_info(item_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str item_id: itemId (required)
:param bool i18n: i18n
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['item_id', 'i18n'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_item_by_item_id_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'item_id' is set
if ('item_id' not in params or
params['item_id'] is None):
raise ValueError("Missing the required parameter `item_id` when calling `get_item_by_item_id_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'item_id' in params:
path_params['itemId'] = params['item_id'] # noqa: E501
query_params = []
if 'i18n' in params:
query_params.append(('i18n', params['i18n'])) # 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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/items/{itemId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Item', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_matrix_using_get(self, **kwargs): # noqa: E501
"""Get matrix # 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_matrix_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool
:param bool is_personal: is_personal
:param bool is_weighted: is_weighted
:param bool show_closed_zones: show_closed_zones
:param bool show_item_details: show_item_details
:param bool show_stage_details: show_stage_details
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_matrix_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_matrix_using_get_with_http_info(**kwargs) # noqa: E501
return data
def get_matrix_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get matrix # 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_matrix_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param bool is_personal: is_personal
:param bool is_weighted: is_weighted
:param bool show_closed_zones: show_closed_zones
:param bool show_item_details: show_item_details
:param bool show_stage_details: show_stage_details
:return: str
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['is_personal', 'is_weighted', 'show_closed_zones', 'show_item_details', 'show_stage_details'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_matrix_using_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'is_personal' in params:
query_params.append(('is_personal', params['is_personal'])) # noqa: E501
if 'is_weighted' in params:
query_params.append(('is_weighted', params['is_weighted'])) # noqa: E501
if 'show_closed_zones' in params:
query_params.append(('show_closed_zones', params['show_closed_zones'])) # noqa: E501
if 'show_item_details' in params:
query_params.append(('show_item_details', params['show_item_details'])) # noqa: E501
if 'show_stage_details' in params:
query_params.append(('show_stage_details', params['show_stage_details'])) # 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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/result/matrix', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_stage_by_stage_id_using_get(self, stage_id, **kwargs): # noqa: E501
"""Get stage by stage ID # 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_stage_by_stage_id_using_get(stage_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str stage_id: stageId (required)
:return: Stage
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_stage_by_stage_id_using_get_with_http_info(stage_id, **kwargs) # noqa: E501
else:
(data) = self.get_stage_by_stage_id_using_get_with_http_info(stage_id, **kwargs) # noqa: E501
return data
def get_stage_by_stage_id_using_get_with_http_info(self, stage_id, **kwargs): # noqa: E501
"""Get stage by stage ID # 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_stage_by_stage_id_using_get_with_http_info(stage_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str stage_id: stageId (required)
:return: Stage
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['stage_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_stage_by_stage_id_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'stage_id' is set
if ('stage_id' not in params or
params['stage_id'] is None):
raise ValueError("Missing the required parameter `stage_id` when calling `get_stage_by_stage_id_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'stage_id' in params:
path_params['stageId'] = params['stage_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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/stages/{stageId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Stage', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_zone_by_zone_id_using_get(self, zone_id, **kwargs): # noqa: E501
"""Get zone by zone ID # 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_zone_by_zone_id_using_get(zone_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str zone_id: zoneId (required)
:param bool i18n: i18n
:return: Zone
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_zone_by_zone_id_using_get_with_http_info(zone_id, **kwargs) # noqa: E501
else:
(data) = self.get_zone_by_zone_id_using_get_with_http_info(zone_id, **kwargs) # noqa: E501
return data
def get_zone_by_zone_id_using_get_with_http_info(self, zone_id, **kwargs): # noqa: E501
"""Get zone by zone ID # 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_zone_by_zone_id_using_get_with_http_info(zone_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str zone_id: zoneId (required)
:param bool i18n: i18n
:return: Zone
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['zone_id', 'i18n'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_zone_by_zone_id_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'zone_id' is set
if ('zone_id' not in params or
params['zone_id'] is None):
raise ValueError("Missing the required parameter `zone_id` when calling `get_zone_by_zone_id_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'zone_id' in params:
path_params['zoneId'] = params['zone_id'] # noqa: E501
query_params = []
if 'i18n' in params:
query_params.append(('i18n', params['i18n'])) # 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;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/zones/{zoneId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Zone', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def login_using_post(self, user_id, **kwargs): # noqa: E501
"""Login # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.login_using_post(user_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: userID (required)
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.login_using_post_with_http_info(user_id, **kwargs) # noqa: E501
else:
(data) = self.login_using_post_with_http_info(user_id, **kwargs) # noqa: E501
return data
def login_using_post_with_http_info(self, user_id, **kwargs): # noqa: E501
"""Login # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.login_using_post_with_http_info(user_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: userID (required)
:return: str
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['user_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method login_using_post" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'user_id' is set
if ('user_id' not in params or
params['user_id'] is None):
raise ValueError("Missing the required parameter `user_id` when calling `login_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'user_id' in params:
body_params = params['user_id']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['text/plain;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/users', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 37.320683
| 136
| 0.604357
| 4,660
| 39,336
| 4.788841
| 0.03927
| 0.04732
| 0.027604
| 0.03549
| 0.949588
| 0.939147
| 0.925928
| 0.912619
| 0.904284
| 0.895994
| 0
| 0.01781
| 0.304861
| 39,336
| 1,053
| 137
| 37.356125
| 0.79831
| 0.30092
| 0
| 0.774869
| 0
| 0
| 0.174225
| 0.058325
| 0
| 0
| 0
| 0
| 0
| 1
| 0.04014
| false
| 0
| 0.006981
| 0
| 0.106457
| 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
|
f4f95b5a6e8a416e1850ff36d84db23b8fbd90bf
| 26,474
|
py
|
Python
|
tests/bugs/core_2238_test.py
|
FirebirdSQL/firebird-qa
|
96af2def7f905a06f178e2a80a2c8be4a4b44782
|
[
"MIT"
] | 1
|
2022-02-05T11:37:13.000Z
|
2022-02-05T11:37:13.000Z
|
tests/bugs/core_2238_test.py
|
FirebirdSQL/firebird-qa
|
96af2def7f905a06f178e2a80a2c8be4a4b44782
|
[
"MIT"
] | 1
|
2021-09-03T11:47:00.000Z
|
2021-09-03T12:42:10.000Z
|
tests/bugs/core_2238_test.py
|
FirebirdSQL/firebird-qa
|
96af2def7f905a06f178e2a80a2c8be4a4b44782
|
[
"MIT"
] | 1
|
2021-06-30T14:14:16.000Z
|
2021-06-30T14:14:16.000Z
|
#coding:utf-8
#
# id: bugs.core_2238
# title: UTF8 and large varchar fields, is disinct from > Implementation limit exceeded.
# decription:
# Test operates with literals of utf8 charset with length = exactly 8191 symbols.
# We insert such literal and then try to update table with another string which differs only in last character.
# Confirmed exception on 2.5:
# statement failed, sqlstate = 54000
# dynamic sql error
# -sql error code = -204
# -implementation limit exceeded
# -block size exceeds implementation restriction
#
# tracker_id: CORE-2238
# min_versions: ['3.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 3.0
# resources: None
substitutions_1 = []
init_script_1 = """"""
db_1 = db_factory(charset='UTF8', sql_dialect=3, init=init_script_1)
test_script_1 = """
set bail on;
create domain dm_long_utf8 as varchar(8191) character set utf8;
create table test (long_text dm_long_utf8);
commit;
set count on;
-- Length of this literal is exact 8191 characters:
insert into test(long_text)
values(
'Kaikki neuvon-antajat ja etevimmät päälliköt ja mollat ja imamit ja kadit ja kaupungin päähenkilöt olivat suuresti hämmästyksissään. Hänen tunnettu hurskautensa vaati kaikkia äänettömyyteen, sillä välin kuin hän itse lausui pitkän rukouksen, pyytäen Allah''ta ja Profeettaa hämmentämään kaikkia häväiseviä Juutalaisia ja uskottomia ja vuodattamaan totuuden sanoja jumalisten ihmisten suuhun. Ja nyt kunnian-arvoisa sheiki kutsui esiin kaikki todistajat David Alroy''ta vastaan. Heti Kisloch, Kurdilainen, joka oli koroitettu Bagdadin kadiksi, astui esiin, veti sametti-kukkarostansa paperikääryn ja luki semmoisen todistuksen, jossa arvoisa Kisloch vakuutti, että hän ensin tutustui vangin, David Alroy''n kanssa joissakin erämaan raunioissa -- muutamain rosvojen pesässä, joita Alroy johdatti; että hän, Kisloch, oli rehellinen kauppias ja että nämät konnat olivat ryöstäneet hänen karavaninsa ja hän itse joutunut vankeuteen; että hänen vankeutensa toisena yönä Alroy oli ilmestynyt hänen eteensä leijonan muodossa ja kolmantena tuimasilmäisenä härkänä; että hänen oli tapa alinomaa muuttaa itsensä; että hän usein nosti henkiä; että viimein eräänä kauheana yönä Eblis itse tuli suurella juhlasaatolla ja antoi Alroy''lle Salomonin, Davidin pojan valtikan; ja että tämä seuraavana päivänä kohotti lippunsa ja kohta sen jälkeen kukisti Hassan Subah''n ja tämän Seldshukit useitten hirmuisten paholaisten silminnähtävällä avulla. Kalidaan, Indialaisen, Guebriläisen ja Neekerin ja muutamien muitten saman hengen lapsien todistukset vetivät täysin määrin vertoja Kisloch Kurdilaisen uhkealle kertomukselle. Hebrealaisen valloittajan vastustamaton menestys oli kieltämättömällä tavalla selitetty, Mahomettilaisten aseitten kunnia ja Moslemin uskon puhtaus olivat asetetut jälleen entiseen loistoonsa ja saastuttamattomaan maineesensa. Todeksi saatiin, että David Alroy oli Ebliin lapsi, noitamies, taikakalujen ja myrkkyjen käyttäjä. Kansa kuunteli kauhulla ja harmilla. He olisivat tunkeneet vartiaväen läpitse ja repineet hänet kappaleiksi, jolleivät olisi pelänneet Karamanialaisten sotatapparoita. Niin he lohduttivat mieltänsä sillä, että he ennen pitkää saisivat nähdä hänen kidutuksensa. Bagdadin kadi kumarsi Karamanian kuningasta ja kuiskasi soveliaan matkan päästä jotakin kuninkaalliseen korvaan. Torvet kaikkuivat, kuuluttajat vaativat äänettömyyttä ja kuninkaan huulet liikkuivat taas. "Kuule, oi kansa, ja ole viisas. Pääkadi aikoo nyt lukea kuninkaallisen prinsessan Schirenen, noiturin etevimmän uhrin todistuksen." Ja todistus luettiin, joka vakuutti, että David Alroy omisti ja kantoi lähinnä sydäntänsä erästä talismania, jonka Eblis oli antanut hänelle ja jonka voima oli niin suuri, että, jos sitä kerta painettiin naisen rintaa vastaan, tämä ei enää voinut hallita tahtoansa. Tämmöinen kova onni oli kohdannut oikeauskoisten hallitsian tytärtä. "Onko siinä niin kirjoitettu?" vanki kysyi. "On", kadi vastasi, "ja sen alla on vielä prinsessan kuninkaallinen allekirjoitus." "Se on väärennetty." Karamanian kuningas kavahti valta-istuimeltansa ja oli vihoissansa astumallaan sen portaita alas. Hänen kasvonsa olivat veripunaiset, hänen partansa kuin tulen liekki. Joku lempiministeri rohkeni vienosti pidättää häntä hänen kuninkaallisesta vaipastansa. "Tapa paikalla pois se koira", Karamanian kuningas mutisi. "Prinsessa on itse täällä", lausui kadi, "todistamassa niitä noitakeinoja, joitten alaisena hän oli, vaan joitten vaikutuksesta hän nyt Allah''n ja Profeetan voiman kautta on pääsnyt." Alroy''ta vävähti! "Astu esiin, kuninkaallinen prinsessa", kadi sanoi, "ja jos se todistus, jonka kuulit, on perustettu, nosta ylös se kuninkaallinen käsi, joka koristi sen allekirjoituksellaan." Lähellä valta-istuinta oleva eunukkien joukko teki tilaa; naishaamu, joka oli verhottu hunnulla jalkoihin saakka, astui esiin. Hän nosti ylös kätensä; koko kerääntynyt kansa tuskin hengitti mielenliikutuksesta; eunukkien rivit ummistuivat jälleen; huuto kuului ja hunnustettu haamu katosi. "Minä odotan kidutuskoneitasi, kuningas", Alroy lausui raskaan surun äänellä. Hänen lujuutensa näytti luopuneen hänestä. Hänen silmänsä olivat luodut maahan. Hän oli nähtävästi vaipunut syvään miettimiseen taikka heittäynyt epätoivoon. "Valmistakaat seipäät", käski Alp Arslan. Koko kansan joukkoa värisytti vasten mieltäkin. Yksi orja lähestyi ja tarjosi paperikääryä Alroy''lle. Hän tunsi Nubialaisen, joka oli Honainin palveluksessa. Hänen entinen ministerinsä ilmoitti hänelle, että hän oli saapuvilla; että ne ehdot, joita hän vankihuoneessa tarjosi, vielä myönnettäisiin; että jos Alroy, jota asiaa hän ei epäillyt ja jota hän rukoili, suostuisi niitä vastaan-ottamaan, hänen tuli pistää paperikäärö poveensa, mutta, jos hän yhä oli taipumaton, jos hänen yhä oli mieletön päätös kuolla hirveä ja häväisevä kuolema, hänen tuli repiä se rikki ja heittää se tanterelle. Silmänräpäyksellä Alroy otti paperikääryn ja repi sen kiivaasti tuhansiin palasiin. Tuulen puuska levitti kappaleet laajalle yliympäri. Alhaiso riiteli näistä David Alroy''n viimeisistä muistoista; ja tämä vähäinen tapaus tuotti paljon hämminkiä. Tällä välin Neekerit varustivat kidutuksen ja kuoleman koneita. "Tuon juutalaisen koiran itsepintaisuus tekee minun hulluksi", lausui Karamanian kuningas hovimiehillensä. "Minua haluttaa puhutella häntä vähän, ennenkuin hän kuolee." Lempiministeri pyysi hallitsiaansa olemaan levollisena; mutta kuninkaallinen parta kävi niin punaiseksi, ja kuninkaalliset silmät iskivät niin kauheata tulta, että lempiministerikin lopulta myöntyi. Torvi kaikkui, kuuluttajat vaativat vaiti-oloa, ja Alp Arslanin ääni eroitettiin jälleen. "Senkin koira, näetkö sinä, mikä on tarjonasi? Tiedätkö sinä, mikä vartoo sinua sinun herrasi Ebliin asunnoissa? Voiko väärä ylpeys viehättää Juutalaistakin? Eikö elämä ole suloista? Eikö olisi parempi olla minun varvaskenkieni kantaja kuin tulla seivästetyksi?" "Jalomielinen Alp Arslan", vastasi Alroy ilmeisen ylenkatseen äänellä; "luuletko, että mikään kidutus rasittaa niin, kuin se muisto, että sinä olet voittanut minun?" "Partani kautta, hän ivaa minua!" Karamanialaisten hallitsia huudahti; "hän tekee kiusaa minulle! Älkäät koskeko vaippaani. Minä tahdon puhua hänen kanssaan. Te ette näe kauemmaksi kuin hunnustettu haukka, te sokean äidin lapset. Se on noita; hänellä on vielä jälellä joku päätaika; hän pelastaa vielä henkensä. Hän lentää ilmaan taikka vaipuu maan sisään. Hän nauraa meidän kidutuksiamme." Karamanian kuningas astui tuota pikaa valta-istuimensa portaita alaspäin; häntä seurasivat hänen lempiministerinsä ja hänen neuvon-antajansa ja hänen etevimmät päällikkönsä ja kadit ja mollat ja imamit ja kaupungin päähenkilöt. "Sinä noita!" Alp Arslan huudahti, "hävytön noita! halvan äidin halpa poika! koirien koira! niskotteletko sinä meitä vastaan? Kuiskaako herrasi Eblis toivoa sinun korviisi? Nauratko meidän rangaistuksiamme? Aiotko lentää ylös ilmaan? vai painua alas maahan? Niinkö, niinkö?" Hengästyneenä ja vihastansa uupuneena hallitsia vaikeni. Hän repi partaansa ja polki maata rajussa vimmassaan. "Sinä olet viisaampi kuin neuvon-antajasi, kuningas Arslan; minä en nöyrry sinun edessäsi. Minun Herrani, vaikka hän ei ole Eblis, ei ole hylännyt minua. Minä nauran sinun rangaistuksiasi. Sinun kidutuksiasi minä ylenkatson. Minä sekä vaivun maan sisään että kohoan ilmaan. Tyydytkö nyt vastaukseeni?" "Partani kautta", huudahti tulistunut Arslan, "minä tyydyn vastaukseesi. Pelastakoon Eblis sinut, jos hän voi;" ja Karamanian kuningas, Aasian mainioin miekan piteliä veti säilänsä, ikäänkuin salaman, tupesta ja silpaisi yhdellä säväyksellä Alroy''lta pään. Se kaatui, vaan, kun se kaatui, riemuitsevan pilkan hymy näytti vivahtelevan sankarin kylmenevillä kasvoilla ja kysyvän hänen vihollisiltansa: "missä kaikki teidän kidutuksenne nyt ovat?" Do Dzieci Gołąbki i Dziewczynka Dziecię i Koza Wróbel i Jaskółka Osieł i Chłopczyk Nieposłuszny Zajączek Kotek Brytan i Pudelek Egzamin Małego "Misia" Wilk i Owce Lis i Gąski Chłopczyk i Źrebię Gęsia Kapela Lew i Piesek Niedźwiedź i Pszczółka Śniadanie Artysta Z Zimowych Rozrywek Leniwy Chłopczyk Przygoda z Indykiem O hämmästyksissään. Leniwy ЙЦУКЕН'
);
insert into test(long_text)
values(
'Kaikki neuvon-antajat ja etevimmät päälliköt ja mollat ja imamit ja kadit ja kaupungin päähenkilöt olivat suuresti hämmästyksissään. Hänen tunnettu hurskautensa vaati kaikkia äänettömyyteen, sillä välin kuin hän itse lausui pitkän rukouksen, pyytäen Allah''ta ja Profeettaa hämmentämään kaikkia häväiseviä Juutalaisia ja uskottomia ja vuodattamaan totuuden sanoja jumalisten ihmisten suuhun. Ja nyt kunnian-arvoisa sheiki kutsui esiin kaikki todistajat David Alroy''ta vastaan. Heti Kisloch, Kurdilainen, joka oli koroitettu Bagdadin kadiksi, astui esiin, veti sametti-kukkarostansa paperikääryn ja luki semmoisen todistuksen, jossa arvoisa Kisloch vakuutti, että hän ensin tutustui vangin, David Alroy''n kanssa joissakin erämaan raunioissa -- muutamain rosvojen pesässä, joita Alroy johdatti; että hän, Kisloch, oli rehellinen kauppias ja että nämät konnat olivat ryöstäneet hänen karavaninsa ja hän itse joutunut vankeuteen; että hänen vankeutensa toisena yönä Alroy oli ilmestynyt hänen eteensä leijonan muodossa ja kolmantena tuimasilmäisenä härkänä; että hänen oli tapa alinomaa muuttaa itsensä; että hän usein nosti henkiä; että viimein eräänä kauheana yönä Eblis itse tuli suurella juhlasaatolla ja antoi Alroy''lle Salomonin, Davidin pojan valtikan; ja että tämä seuraavana päivänä kohotti lippunsa ja kohta sen jälkeen kukisti Hassan Subah''n ja tämän Seldshukit useitten hirmuisten paholaisten silminnähtävällä avulla. Kalidaan, Indialaisen, Guebriläisen ja Neekerin ja muutamien muitten saman hengen lapsien todistukset vetivät täysin määrin vertoja Kisloch Kurdilaisen uhkealle kertomukselle. Hebrealaisen valloittajan vastustamaton menestys oli kieltämättömällä tavalla selitetty, Mahomettilaisten aseitten kunnia ja Moslemin uskon puhtaus olivat asetetut jälleen entiseen loistoonsa ja saastuttamattomaan maineesensa. Todeksi saatiin, että David Alroy oli Ebliin lapsi, noitamies, taikakalujen ja myrkkyjen käyttäjä. Kansa kuunteli kauhulla ja harmilla. He olisivat tunkeneet vartiaväen läpitse ja repineet hänet kappaleiksi, jolleivät olisi pelänneet Karamanialaisten sotatapparoita. Niin he lohduttivat mieltänsä sillä, että he ennen pitkää saisivat nähdä hänen kidutuksensa. Bagdadin kadi kumarsi Karamanian kuningasta ja kuiskasi soveliaan matkan päästä jotakin kuninkaalliseen korvaan. Torvet kaikkuivat, kuuluttajat vaativat äänettömyyttä ja kuninkaan huulet liikkuivat taas. "Kuule, oi kansa, ja ole viisas. Pääkadi aikoo nyt lukea kuninkaallisen prinsessan Schirenen, noiturin etevimmän uhrin todistuksen." Ja todistus luettiin, joka vakuutti, että David Alroy omisti ja kantoi lähinnä sydäntänsä erästä talismania, jonka Eblis oli antanut hänelle ja jonka voima oli niin suuri, että, jos sitä kerta painettiin naisen rintaa vastaan, tämä ei enää voinut hallita tahtoansa. Tämmöinen kova onni oli kohdannut oikeauskoisten hallitsian tytärtä. "Onko siinä niin kirjoitettu?" vanki kysyi. "On", kadi vastasi, "ja sen alla on vielä prinsessan kuninkaallinen allekirjoitus." "Se on väärennetty." Karamanian kuningas kavahti valta-istuimeltansa ja oli vihoissansa astumallaan sen portaita alas. Hänen kasvonsa olivat veripunaiset, hänen partansa kuin tulen liekki. Joku lempiministeri rohkeni vienosti pidättää häntä hänen kuninkaallisesta vaipastansa. "Tapa paikalla pois se koira", Karamanian kuningas mutisi. "Prinsessa on itse täällä", lausui kadi, "todistamassa niitä noitakeinoja, joitten alaisena hän oli, vaan joitten vaikutuksesta hän nyt Allah''n ja Profeetan voiman kautta on pääsnyt." Alroy''ta vävähti! "Astu esiin, kuninkaallinen prinsessa", kadi sanoi, "ja jos se todistus, jonka kuulit, on perustettu, nosta ylös se kuninkaallinen käsi, joka koristi sen allekirjoituksellaan." Lähellä valta-istuinta oleva eunukkien joukko teki tilaa; naishaamu, joka oli verhottu hunnulla jalkoihin saakka, astui esiin. Hän nosti ylös kätensä; koko kerääntynyt kansa tuskin hengitti mielenliikutuksesta; eunukkien rivit ummistuivat jälleen; huuto kuului ja hunnustettu haamu katosi. "Minä odotan kidutuskoneitasi, kuningas", Alroy lausui raskaan surun äänellä. Hänen lujuutensa näytti luopuneen hänestä. Hänen silmänsä olivat luodut maahan. Hän oli nähtävästi vaipunut syvään miettimiseen taikka heittäynyt epätoivoon. "Valmistakaat seipäät", käski Alp Arslan. Koko kansan joukkoa värisytti vasten mieltäkin. Yksi orja lähestyi ja tarjosi paperikääryä Alroy''lle. Hän tunsi Nubialaisen, joka oli Honainin palveluksessa. Hänen entinen ministerinsä ilmoitti hänelle, että hän oli saapuvilla; että ne ehdot, joita hän vankihuoneessa tarjosi, vielä myönnettäisiin; että jos Alroy, jota asiaa hän ei epäillyt ja jota hän rukoili, suostuisi niitä vastaan-ottamaan, hänen tuli pistää paperikäärö poveensa, mutta, jos hän yhä oli taipumaton, jos hänen yhä oli mieletön päätös kuolla hirveä ja häväisevä kuolema, hänen tuli repiä se rikki ja heittää se tanterelle. Silmänräpäyksellä Alroy otti paperikääryn ja repi sen kiivaasti tuhansiin palasiin. Tuulen puuska levitti kappaleet laajalle yliympäri. Alhaiso riiteli näistä David Alroy''n viimeisistä muistoista; ja tämä vähäinen tapaus tuotti paljon hämminkiä. Tällä välin Neekerit varustivat kidutuksen ja kuoleman koneita. "Tuon juutalaisen koiran itsepintaisuus tekee minun hulluksi", lausui Karamanian kuningas hovimiehillensä. "Minua haluttaa puhutella häntä vähän, ennenkuin hän kuolee." Lempiministeri pyysi hallitsiaansa olemaan levollisena; mutta kuninkaallinen parta kävi niin punaiseksi, ja kuninkaalliset silmät iskivät niin kauheata tulta, että lempiministerikin lopulta myöntyi. Torvi kaikkui, kuuluttajat vaativat vaiti-oloa, ja Alp Arslanin ääni eroitettiin jälleen. "Senkin koira, näetkö sinä, mikä on tarjonasi? Tiedätkö sinä, mikä vartoo sinua sinun herrasi Ebliin asunnoissa? Voiko väärä ylpeys viehättää Juutalaistakin? Eikö elämä ole suloista? Eikö olisi parempi olla minun varvaskenkieni kantaja kuin tulla seivästetyksi?" "Jalomielinen Alp Arslan", vastasi Alroy ilmeisen ylenkatseen äänellä; "luuletko, että mikään kidutus rasittaa niin, kuin se muisto, että sinä olet voittanut minun?" "Partani kautta, hän ivaa minua!" Karamanialaisten hallitsia huudahti; "hän tekee kiusaa minulle! Älkäät koskeko vaippaani. Minä tahdon puhua hänen kanssaan. Te ette näe kauemmaksi kuin hunnustettu haukka, te sokean äidin lapset. Se on noita; hänellä on vielä jälellä joku päätaika; hän pelastaa vielä henkensä. Hän lentää ilmaan taikka vaipuu maan sisään. Hän nauraa meidän kidutuksiamme." Karamanian kuningas astui tuota pikaa valta-istuimensa portaita alaspäin; häntä seurasivat hänen lempiministerinsä ja hänen neuvon-antajansa ja hänen etevimmät päällikkönsä ja kadit ja mollat ja imamit ja kaupungin päähenkilöt. "Sinä noita!" Alp Arslan huudahti, "hävytön noita! halvan äidin halpa poika! koirien koira! niskotteletko sinä meitä vastaan? Kuiskaako herrasi Eblis toivoa sinun korviisi? Nauratko meidän rangaistuksiamme? Aiotko lentää ylös ilmaan? vai painua alas maahan? Niinkö, niinkö?" Hengästyneenä ja vihastansa uupuneena hallitsia vaikeni. Hän repi partaansa ja polki maata rajussa vimmassaan. "Sinä olet viisaampi kuin neuvon-antajasi, kuningas Arslan; minä en nöyrry sinun edessäsi. Minun Herrani, vaikka hän ei ole Eblis, ei ole hylännyt minua. Minä nauran sinun rangaistuksiasi. Sinun kidutuksiasi minä ylenkatson. Minä sekä vaivun maan sisään että kohoan ilmaan. Tyydytkö nyt vastaukseeni?" "Partani kautta", huudahti tulistunut Arslan, "minä tyydyn vastaukseesi. Pelastakoon Eblis sinut, jos hän voi;" ja Karamanian kuningas, Aasian mainioin miekan piteliä veti säilänsä, ikäänkuin salaman, tupesta ja silpaisi yhdellä säväyksellä Alroy''lta pään. Se kaatui, vaan, kun se kaatui, riemuitsevan pilkan hymy näytti vivahtelevan sankarin kylmenevillä kasvoilla ja kysyvän hänen vihollisiltansa: "missä kaikki teidän kidutuksenne nyt ovat?" Do Dzieci Gołąbki i Dziewczynka Dziecię i Koza Wróbel i Jaskółka Osieł i Chłopczyk Nieposłuszny Zajączek Kotek Brytan i Pudelek Egzamin Małego "Misia" Wilk i Owce Lis i Gąski Chłopczyk i Źrebię Gęsia Kapela Lew i Piesek Niedźwiedź i Pszczółka Śniadanie Artysta Z Zimowych Rozrywek Leniwy Chłopczyk Przygoda z Indykiem O hämmästyksissään. Leniwy НЕКУЦЙ'
);
update test set long_text = null
where long_text is distinct from
'Kaikki neuvon-antajat ja etevimmät päälliköt ja mollat ja imamit ja kadit ja kaupungin päähenkilöt olivat suuresti hämmästyksissään. Hänen tunnettu hurskautensa vaati kaikkia äänettömyyteen, sillä välin kuin hän itse lausui pitkän rukouksen, pyytäen Allah''ta ja Profeettaa hämmentämään kaikkia häväiseviä Juutalaisia ja uskottomia ja vuodattamaan totuuden sanoja jumalisten ihmisten suuhun. Ja nyt kunnian-arvoisa sheiki kutsui esiin kaikki todistajat David Alroy''ta vastaan. Heti Kisloch, Kurdilainen, joka oli koroitettu Bagdadin kadiksi, astui esiin, veti sametti-kukkarostansa paperikääryn ja luki semmoisen todistuksen, jossa arvoisa Kisloch vakuutti, että hän ensin tutustui vangin, David Alroy''n kanssa joissakin erämaan raunioissa -- muutamain rosvojen pesässä, joita Alroy johdatti; että hän, Kisloch, oli rehellinen kauppias ja että nämät konnat olivat ryöstäneet hänen karavaninsa ja hän itse joutunut vankeuteen; että hänen vankeutensa toisena yönä Alroy oli ilmestynyt hänen eteensä leijonan muodossa ja kolmantena tuimasilmäisenä härkänä; että hänen oli tapa alinomaa muuttaa itsensä; että hän usein nosti henkiä; että viimein eräänä kauheana yönä Eblis itse tuli suurella juhlasaatolla ja antoi Alroy''lle Salomonin, Davidin pojan valtikan; ja että tämä seuraavana päivänä kohotti lippunsa ja kohta sen jälkeen kukisti Hassan Subah''n ja tämän Seldshukit useitten hirmuisten paholaisten silminnähtävällä avulla. Kalidaan, Indialaisen, Guebriläisen ja Neekerin ja muutamien muitten saman hengen lapsien todistukset vetivät täysin määrin vertoja Kisloch Kurdilaisen uhkealle kertomukselle. Hebrealaisen valloittajan vastustamaton menestys oli kieltämättömällä tavalla selitetty, Mahomettilaisten aseitten kunnia ja Moslemin uskon puhtaus olivat asetetut jälleen entiseen loistoonsa ja saastuttamattomaan maineesensa. Todeksi saatiin, että David Alroy oli Ebliin lapsi, noitamies, taikakalujen ja myrkkyjen käyttäjä. Kansa kuunteli kauhulla ja harmilla. He olisivat tunkeneet vartiaväen läpitse ja repineet hänet kappaleiksi, jolleivät olisi pelänneet Karamanialaisten sotatapparoita. Niin he lohduttivat mieltänsä sillä, että he ennen pitkää saisivat nähdä hänen kidutuksensa. Bagdadin kadi kumarsi Karamanian kuningasta ja kuiskasi soveliaan matkan päästä jotakin kuninkaalliseen korvaan. Torvet kaikkuivat, kuuluttajat vaativat äänettömyyttä ja kuninkaan huulet liikkuivat taas. "Kuule, oi kansa, ja ole viisas. Pääkadi aikoo nyt lukea kuninkaallisen prinsessan Schirenen, noiturin etevimmän uhrin todistuksen." Ja todistus luettiin, joka vakuutti, että David Alroy omisti ja kantoi lähinnä sydäntänsä erästä talismania, jonka Eblis oli antanut hänelle ja jonka voima oli niin suuri, että, jos sitä kerta painettiin naisen rintaa vastaan, tämä ei enää voinut hallita tahtoansa. Tämmöinen kova onni oli kohdannut oikeauskoisten hallitsian tytärtä. "Onko siinä niin kirjoitettu?" vanki kysyi. "On", kadi vastasi, "ja sen alla on vielä prinsessan kuninkaallinen allekirjoitus." "Se on väärennetty." Karamanian kuningas kavahti valta-istuimeltansa ja oli vihoissansa astumallaan sen portaita alas. Hänen kasvonsa olivat veripunaiset, hänen partansa kuin tulen liekki. Joku lempiministeri rohkeni vienosti pidättää häntä hänen kuninkaallisesta vaipastansa. "Tapa paikalla pois se koira", Karamanian kuningas mutisi. "Prinsessa on itse täällä", lausui kadi, "todistamassa niitä noitakeinoja, joitten alaisena hän oli, vaan joitten vaikutuksesta hän nyt Allah''n ja Profeetan voiman kautta on pääsnyt." Alroy''ta vävähti! "Astu esiin, kuninkaallinen prinsessa", kadi sanoi, "ja jos se todistus, jonka kuulit, on perustettu, nosta ylös se kuninkaallinen käsi, joka koristi sen allekirjoituksellaan." Lähellä valta-istuinta oleva eunukkien joukko teki tilaa; naishaamu, joka oli verhottu hunnulla jalkoihin saakka, astui esiin. Hän nosti ylös kätensä; koko kerääntynyt kansa tuskin hengitti mielenliikutuksesta; eunukkien rivit ummistuivat jälleen; huuto kuului ja hunnustettu haamu katosi. "Minä odotan kidutuskoneitasi, kuningas", Alroy lausui raskaan surun äänellä. Hänen lujuutensa näytti luopuneen hänestä. Hänen silmänsä olivat luodut maahan. Hän oli nähtävästi vaipunut syvään miettimiseen taikka heittäynyt epätoivoon. "Valmistakaat seipäät", käski Alp Arslan. Koko kansan joukkoa värisytti vasten mieltäkin. Yksi orja lähestyi ja tarjosi paperikääryä Alroy''lle. Hän tunsi Nubialaisen, joka oli Honainin palveluksessa. Hänen entinen ministerinsä ilmoitti hänelle, että hän oli saapuvilla; että ne ehdot, joita hän vankihuoneessa tarjosi, vielä myönnettäisiin; että jos Alroy, jota asiaa hän ei epäillyt ja jota hän rukoili, suostuisi niitä vastaan-ottamaan, hänen tuli pistää paperikäärö poveensa, mutta, jos hän yhä oli taipumaton, jos hänen yhä oli mieletön päätös kuolla hirveä ja häväisevä kuolema, hänen tuli repiä se rikki ja heittää se tanterelle. Silmänräpäyksellä Alroy otti paperikääryn ja repi sen kiivaasti tuhansiin palasiin. Tuulen puuska levitti kappaleet laajalle yliympäri. Alhaiso riiteli näistä David Alroy''n viimeisistä muistoista; ja tämä vähäinen tapaus tuotti paljon hämminkiä. Tällä välin Neekerit varustivat kidutuksen ja kuoleman koneita. "Tuon juutalaisen koiran itsepintaisuus tekee minun hulluksi", lausui Karamanian kuningas hovimiehillensä. "Minua haluttaa puhutella häntä vähän, ennenkuin hän kuolee." Lempiministeri pyysi hallitsiaansa olemaan levollisena; mutta kuninkaallinen parta kävi niin punaiseksi, ja kuninkaalliset silmät iskivät niin kauheata tulta, että lempiministerikin lopulta myöntyi. Torvi kaikkui, kuuluttajat vaativat vaiti-oloa, ja Alp Arslanin ääni eroitettiin jälleen. "Senkin koira, näetkö sinä, mikä on tarjonasi? Tiedätkö sinä, mikä vartoo sinua sinun herrasi Ebliin asunnoissa? Voiko väärä ylpeys viehättää Juutalaistakin? Eikö elämä ole suloista? Eikö olisi parempi olla minun varvaskenkieni kantaja kuin tulla seivästetyksi?" "Jalomielinen Alp Arslan", vastasi Alroy ilmeisen ylenkatseen äänellä; "luuletko, että mikään kidutus rasittaa niin, kuin se muisto, että sinä olet voittanut minun?" "Partani kautta, hän ivaa minua!" Karamanialaisten hallitsia huudahti; "hän tekee kiusaa minulle! Älkäät koskeko vaippaani. Minä tahdon puhua hänen kanssaan. Te ette näe kauemmaksi kuin hunnustettu haukka, te sokean äidin lapset. Se on noita; hänellä on vielä jälellä joku päätaika; hän pelastaa vielä henkensä. Hän lentää ilmaan taikka vaipuu maan sisään. Hän nauraa meidän kidutuksiamme." Karamanian kuningas astui tuota pikaa valta-istuimensa portaita alaspäin; häntä seurasivat hänen lempiministerinsä ja hänen neuvon-antajansa ja hänen etevimmät päällikkönsä ja kadit ja mollat ja imamit ja kaupungin päähenkilöt. "Sinä noita!" Alp Arslan huudahti, "hävytön noita! halvan äidin halpa poika! koirien koira! niskotteletko sinä meitä vastaan? Kuiskaako herrasi Eblis toivoa sinun korviisi? Nauratko meidän rangaistuksiamme? Aiotko lentää ylös ilmaan? vai painua alas maahan? Niinkö, niinkö?" Hengästyneenä ja vihastansa uupuneena hallitsia vaikeni. Hän repi partaansa ja polki maata rajussa vimmassaan. "Sinä olet viisaampi kuin neuvon-antajasi, kuningas Arslan; minä en nöyrry sinun edessäsi. Minun Herrani, vaikka hän ei ole Eblis, ei ole hylännyt minua. Minä nauran sinun rangaistuksiasi. Sinun kidutuksiasi minä ylenkatson. Minä sekä vaivun maan sisään että kohoan ilmaan. Tyydytkö nyt vastaukseeni?" "Partani kautta", huudahti tulistunut Arslan, "minä tyydyn vastaukseesi. Pelastakoon Eblis sinut, jos hän voi;" ja Karamanian kuningas, Aasian mainioin miekan piteliä veti säilänsä, ikäänkuin salaman, tupesta ja silpaisi yhdellä säväyksellä Alroy''lta pään. Se kaatui, vaan, kun se kaatui, riemuitsevan pilkan hymy näytti vivahtelevan sankarin kylmenevillä kasvoilla ja kysyvän hänen vihollisiltansa: "missä kaikki teidän kidutuksenne nyt ovat?" Do Dzieci Gołąbki i Dziewczynka Dziecię i Koza Wróbel i Jaskółka Osieł i Chłopczyk Nieposłuszny Zajączek Kotek Brytan i Pudelek Egzamin Małego "Misia" Wilk i Owce Lis i Gąski Chłopczyk i Źrebię Gęsia Kapela Lew i Piesek Niedźwiedź i Pszczółka Śniadanie Artysta Z Zimowych Rozrywek Leniwy Chłopczyk Przygoda z Indykiem O hämmästyksissään. Leniwy ЙЦУКЕН'
;
"""
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
expected_stdout_1 = """
Records affected: 1
Records affected: 1
Records affected: 1
"""
@pytest.mark.version('>=3.0')
def test_1(act_1: Action):
act_1.expected_stdout = expected_stdout_1
act_1.execute()
assert act_1.clean_stdout == act_1.clean_expected_stdout
| 389.323529
| 8,211
| 0.819257
| 3,451
| 26,474
| 6.272095
| 0.231817
| 0.00693
| 0.002772
| 0.004435
| 0.953153
| 0.953153
| 0.953153
| 0.950889
| 0.950889
| 0.950889
| 0
| 0.002909
| 0.143122
| 26,474
| 67
| 8,212
| 395.134328
| 0.951245
| 0.030823
| 0
| 0.361111
| 0
| 0.083333
| 0.980458
| 0.005032
| 0
| 0
| 0
| 0
| 0.027778
| 1
| 0.027778
| false
| 0
| 0.055556
| 0
| 0.083333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
7621fa787cc5d04ebb04f7b7b4d20aebdd830c54
| 152
|
py
|
Python
|
tests/fixtures/defxmlschema/chapter04/__init__.py
|
nimish/xsdata
|
7afe2781b66982428cc1731f53c065086acd35c1
|
[
"MIT"
] | null | null | null |
tests/fixtures/defxmlschema/chapter04/__init__.py
|
nimish/xsdata
|
7afe2781b66982428cc1731f53c065086acd35c1
|
[
"MIT"
] | null | null | null |
tests/fixtures/defxmlschema/chapter04/__init__.py
|
nimish/xsdata
|
7afe2781b66982428cc1731f53c065086acd35c1
|
[
"MIT"
] | null | null | null |
from tests.fixtures.defxmlschema.chapter04.example04053 import OrderDetails
from tests.fixtures.defxmlschema.chapter04.example04052 import OrderSummary
| 50.666667
| 75
| 0.894737
| 16
| 152
| 8.5
| 0.625
| 0.132353
| 0.25
| 0.426471
| 0.558824
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097222
| 0.052632
| 152
| 2
| 76
| 76
| 0.847222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
520048f32c5df01577f8ce76e053c32474eafc6e
| 4,402
|
py
|
Python
|
authors/apps/articles/tests/test_search.py
|
andela/ah-backend-zeus
|
44e2f554c4a7a10c06bd3c7be42fc91571c09f29
|
[
"BSD-3-Clause"
] | 1
|
2019-03-22T09:13:35.000Z
|
2019-03-22T09:13:35.000Z
|
authors/apps/articles/tests/test_search.py
|
andela/ah-backend-zeus
|
44e2f554c4a7a10c06bd3c7be42fc91571c09f29
|
[
"BSD-3-Clause"
] | 13
|
2018-11-27T16:48:25.000Z
|
2021-06-10T21:00:19.000Z
|
authors/apps/articles/tests/test_search.py
|
andela/ah-backend-zeus
|
44e2f554c4a7a10c06bd3c7be42fc91571c09f29
|
[
"BSD-3-Clause"
] | 9
|
2018-11-23T11:10:24.000Z
|
2019-04-04T11:04:33.000Z
|
from rest_framework.test import APIClient
from rest_framework import status
from .base_test import BaseTest
class SearchTest(BaseTest):
def test_search_article_by_author(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
author = self.user_data['user']['username']
response = self.client.get(
'/api/articles/search/?author={}'.format(author))
self.assertEqual(len(response.data['search results']), 1)
self.assertEqual(response.status_code, 200)
def test_search_article_by_wrong_author(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
author = self.user_data['user']['username']
response = self.client.get(
'/api/articles/search/?author=sam')
self.assertTrue(response.data['errors'])
self.assertEqual(response.status_code, 404)
def test_search_article_by_title(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
title = self.new_article['article']['title']
response = self.client.get(
'/api/articles/search/?title={}'.format(title))
self.assertEqual(len(response.data['search results']), 1)
self.assertEqual(response.status_code, 200)
def test_search_article_by_keywords(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
keywords = self.new_article['article']['title']
response = self.client.get(
'/api/articles/search/?keyword={}'.format(keywords))
self.assertEqual(len(response.data['search results']), 1)
self.assertEqual(response.status_code, 200)
def test_search_article_by_title_and_author(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
title = self.new_article['article']['title']
author = self.user_data['user']['username']
response = self.client.get(
'/api/articles/search/?title={}&author={}'.format(title,author))
self.assertEqual(len(response.data['search results']), 1)
self.assertEqual(response.status_code, 200)
def test_search_article_by_tag(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
tags = self.new_article['article']['tags']
response = self.client.get(
'/api/articles/search/?tags={}'.format(tags))
self.assertEqual(len(response.data['search results']), 1)
self.assertEqual(response.status_code, 200)
def test_search_article_by_tag_and_author(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
tags = self.new_article['article']['tags']
author = self.user_data['user']['username']
response = self.client.get(
'/api/articles/search/?tags={}&author={}'.format(tags,author))
self.assertEqual(len(response.data['search results']), 1)
self.assertEqual(response.status_code, 200)
def test_search_article_by_wrong_tag(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
self.assertEqual(reponse.status_code, status.HTTP_201_CREATED)
tags = self.new_article['article']['tags']
response = self.client.get(
'/api/articles/search/?tags=wbnbnbb')
self.assertEqual(len(response.data['search results']), 1)
self.assertEqual(response.status_code, 200)
| 34.661417
| 76
| 0.625625
| 500
| 4,402
| 5.326
| 0.102
| 0.129553
| 0.073601
| 0.060083
| 0.903868
| 0.883214
| 0.871198
| 0.871198
| 0.865941
| 0.865941
| 0
| 0.016487
| 0.242163
| 4,402
| 127
| 77
| 34.661417
| 0.781775
| 0
| 0
| 0.755319
| 0
| 0
| 0.143539
| 0.06064
| 0
| 0
| 0
| 0
| 0.255319
| 1
| 0.085106
| false
| 0
| 0.031915
| 0
| 0.12766
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
520376800e12355c3c4d39dac0e20d661f57ecf7
| 3,469
|
py
|
Python
|
tests/test_dag.py
|
ligo-asimov/asimov
|
0b4e59bbd88ccab642ff044208a55cdf7333d81b
|
[
"0BSD"
] | 2
|
2020-11-27T02:56:12.000Z
|
2021-05-26T01:08:52.000Z
|
tests/test_dag.py
|
transientlunatic/asimov
|
93d0b52be43b2a6ad0a1ee424338d98a69354bda
|
[
"0BSD"
] | 3
|
2022-02-16T17:42:41.000Z
|
2022-03-17T20:55:02.000Z
|
tests/test_dag.py
|
ligo-asimov/asimov
|
0b4e59bbd88ccab642ff044208a55cdf7333d81b
|
[
"0BSD"
] | null | null | null |
import os
import unittest
import asimov.event
import git
class DAGTests(unittest.TestCase):
"""All the tests to check production DAGs are generated successfully."""
@classmethod
def setUpClass(cls):
cls.cwd = os.getcwd()
repo = git.Repo.init(cls.cwd+"/tests/test_data/s000000xx/")
os.chdir(cls.cwd+"/tests/test_data/s000000xx/")
os.system("git add C01_offline/Prod3_test.ini C01_offline/s000000xx_gpsTime.txt")
os.system("git commit -m 'test'")
os.chdir(cls.cwd)
@classmethod
def tearDownClass(cls):
"""Destroy all the products of this test."""
os.system("rm asimov.conf")
os.system(f"rm -rf {cls.cwd}/tests/tmp/")
os.system(f"rm -rf {cls.cwd}/tests/test_data/s000000xx/.git")
try:
shutil.rmtree("/tmp/S000000xx")
except:
pass
def setUp(self):
pass
def test_simple_dag(self):
"""Check that all jobs are run when there are no dependencies specified."""
TEST_YAML = """
name: S000000xx
repository: {0}/tests/test_data/s000000xx/
working_directory: {0}/tests/tmp/s000000xx/
webdir: ''
productions:
- Prod0:
rundir: {0}/tests/tmp/s000000xx/Prod0
pipeline: lalinference
comment: PSD production
status: ready
- Prod1:
rundir: {0}/tests/tmp/s000000xx/Prod1
pipeline: lalinference
comment: PSD production
status: ready
"""
event = asimov.event.Event.from_yaml(TEST_YAML.format(self.cwd))
self.assertEqual(len(event.get_all_latest()), 2)
def test_linear_dag(self):
"""Check that all jobs are run when the dependencies are a chain."""
TEST_YAML = """
name: S000000xx
repository: {0}/tests/test_data/s000000xx/
working_directory: {0}/tests/tmp/s000000xx/
webdir: ''
productions:
- Prod0:
rundir: {0}/tests/tmp/s000000xx/Prod0
pipeline: lalinference
comment: PSD production
status: ready
- Prod1:
rundir: {0}/tests/tmp/s000000xx/Prod1
pipeline: lalinference
comment: PSD production
status: ready
needs: Prod0
"""
event = asimov.event.Event.from_yaml(TEST_YAML.format(self.cwd))
self.assertEqual(len(event.get_all_latest()), 1)
def test_complex_dag(self):
"""Check that all jobs are run when the dependencies are not a chain."""
TEST_YAML = """
name: S000000xx
repository: {0}/tests/test_data/s000000xx/
working_directory: {0}/tests/tmp/s000000xx/
webdir: ''
productions:
- Prod0:
rundir: {0}/tests/tmp/s000000xx/Prod0
pipeline: lalinference
comment: PSD production
status: finished
- Prod1:
rundir: {0}/tests/tmp/s000000xx/Prod1
pipeline: lalinference
comment: PSD production
status: wait
needs: Prod0
- Prod2:
rundir: {0}/tests/tmp/s000000xx/Prod2
pipeline: lalinference
comment: PSD production
status: wait
needs: Prod1
- Prod3:
rundir: {0}/tests/tmp/s000000xx/Prod2
pipeline: lalinference
comment: PSD production
status: wait
needs:
- Prod0
- Prod4:
rundir: {0}/tests/tmp/s000000xx/Prod2
pipeline: lalinference
comment: PSD production
status: wait
needs:
- Prod2
- Prod3
- Prod5:
rundir: {0}/tests/tmp/s000000xx/Prod2
pipeline: lalinference
comment: PSD production
status: wait
"""
event = asimov.event.Event.from_yaml(TEST_YAML.format(self.cwd))
self.assertEqual(len(event.get_all_latest()), 2)
| 27.975806
| 89
| 0.659556
| 435
| 3,469
| 5.181609
| 0.23908
| 0.042591
| 0.051908
| 0.103815
| 0.751553
| 0.751553
| 0.744011
| 0.717391
| 0.696096
| 0.673026
| 0
| 0.071799
| 0.221101
| 3,469
| 123
| 90
| 28.203252
| 0.762398
| 0.087922
| 0
| 0.705357
| 1
| 0
| 0.631931
| 0.192798
| 0
| 0
| 0
| 0
| 0.026786
| 1
| 0.053571
| false
| 0.017857
| 0.035714
| 0
| 0.098214
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
870010ddf78ef3beedd3ecdececf05145dadf419
| 7,861
|
py
|
Python
|
tests/unit/apps/forum_member/test_receivers.py
|
tim-schilling/django-machina
|
c48d31b2313b59d810771ee53909d941e7475679
|
[
"BSD-3-Clause"
] | null | null | null |
tests/unit/apps/forum_member/test_receivers.py
|
tim-schilling/django-machina
|
c48d31b2313b59d810771ee53909d941e7475679
|
[
"BSD-3-Clause"
] | null | null | null |
tests/unit/apps/forum_member/test_receivers.py
|
tim-schilling/django-machina
|
c48d31b2313b59d810771ee53909d941e7475679
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
from machina.core.db.models import get_model
from machina.test.factories import PostFactory, UserFactory, create_forum, create_topic
ForumProfile = get_model('forum_member', 'ForumProfile')
@pytest.mark.django_db
class TestIncreasePostsCountReceiver(object):
def test_can_increase_the_posts_count_of_the_post_being_created(self):
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
profile = ForumProfile.objects.get(user=u1)
initial_posts_count = profile.posts_count
# Run
PostFactory.create(topic=topic, poster=u1, approved=True)
# Check
profile.refresh_from_db()
assert profile.posts_count == initial_posts_count + 1
def test_cannot_increase_the_posts_count_of_the_post_being_created_if_it_is_not_approved(self):
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
profile = ForumProfile.objects.get(user=u1)
initial_posts_count = profile.posts_count
# Run
PostFactory.create(topic=topic, poster=u1, approved=False)
# Check
profile.refresh_from_db()
assert profile.posts_count == initial_posts_count
def test_can_increase_the_posts_count_of_a_post_being_approved(self):
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
post = PostFactory.create(topic=topic, poster=u1, approved=False)
profile = ForumProfile.objects.get(user=u1)
initial_posts_count = profile.posts_count
# Run
post.approved = True
post.save()
# Check
profile.refresh_from_db()
assert profile.posts_count == initial_posts_count + 1
def test_do_nothing_if_the_poster_is_anonymous(self):
# Setup
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=None)
# Run
PostFactory.create(topic=topic, poster=None, username='test')
# Check
assert ForumProfile.objects.exists() is False
@pytest.mark.django_db
class TestDecreasePostsCountAfterPostUnaprovalReceiver(object):
def test_can_decrease_the_posts_count_of_a_post_being_set_as_not_approved(self):
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
profile = ForumProfile.objects.get(user=u1)
post = PostFactory.create(topic=topic, poster=u1, approved=True)
# Run
post.approved = False
post.save()
# Check
profile.refresh_from_db()
assert profile.posts_count == 1
def test_do_nothing_if_the_post_has_been_created_by_an_anonymous_user(self):
u1 = UserFactory.create()
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
profile = ForumProfile.objects.get(user=u1)
post = PostFactory.create(topic=topic, poster=None, approved=True)
post.approved = False
post.save()
profile.refresh_from_db()
assert profile.posts_count == 1
@pytest.mark.django_db
class TestDecreasePostsCountAfterPostDeletionReceiver(object):
def test_can_decrease_the_posts_count_of_the_post_being_deleted(self):
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
post = PostFactory.create(topic=topic, poster=u1)
profile = ForumProfile.objects.get(user=u1)
initial_posts_count = profile.posts_count
# Run
post.delete()
# Check
profile.refresh_from_db()
assert profile.posts_count == initial_posts_count - 1
def test_do_nothing_if_the_poster_is_anonymous(self):
# Setup
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=None)
post = PostFactory.create(topic=topic, poster=None, username='test')
# Run
post.delete()
# Check
assert ForumProfile.objects.exists() is False
def test_do_nothing_if_the_post_is_not_approved(self):
# Setup
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
PostFactory.create(topic=topic, poster=u1)
post = PostFactory.create(topic=topic, poster=u1, approved=False)
profile = ForumProfile.objects.get(user=u1)
initial_posts_count = profile.posts_count
# Run
post.delete()
# Check
profile.refresh_from_db()
assert profile.posts_count == initial_posts_count
@pytest.mark.django_db
class TestAutoSubscribeTopics(object):
def test_topic_is_not_auto_subscribed_when_setting_is_disabled(self):
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
# Run
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
# Check
assert u1.topic_subscriptions.count() == 0
def test_topic_is_auto_subscribed_when_setting_is_enabled(self):
# Setup
u1 = UserFactory.create()
top_level_forum = create_forum()
# Create a topic to auto create a forum profile
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
profile = ForumProfile.objects.get(user=u1)
profile.auto_subscribe_topics = True
profile.save()
# Run
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
# Check
assert topic in u1.topic_subscriptions.all()
@pytest.mark.django_db
class TestAutoSubscribePosts(object):
def test_topic_is_not_auto_subscribed_when_setting_is_disabled(self):
# Setup
u1 = UserFactory.create()
u2 = UserFactory.create()
top_level_forum = create_forum()
# Run
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
PostFactory.create(topic=topic, poster=u2)
PostFactory.create(topic=topic, poster=u1)
# Check
assert u1.topic_subscriptions.count() == 0
assert u2.topic_subscriptions.count() == 0
def test_topic_is_auto_subscribed_when_setting_is_enabled(self):
# Setup
u1 = UserFactory.create()
u2 = UserFactory.create()
top_level_forum = create_forum()
# Create topics to auto create a forum profile
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
PostFactory.create(topic=topic, poster=u2)
profile = ForumProfile.objects.get(user=u2)
profile.auto_subscribe_posts = True
profile.save()
# Run
topic = create_topic(forum=top_level_forum, poster=u1)
PostFactory.create(topic=topic, poster=u1)
PostFactory.create(topic=topic, poster=u2)
PostFactory.create(topic=topic, poster=u1)
# Check
assert topic in u2.topic_subscriptions.all()
assert topic not in u1.topic_subscriptions.all()
| 37.793269
| 99
| 0.680066
| 957
| 7,861
| 5.297806
| 0.095089
| 0.095464
| 0.071795
| 0.149112
| 0.891716
| 0.840039
| 0.839448
| 0.808876
| 0.776134
| 0.729191
| 0
| 0.01228
| 0.233431
| 7,861
| 207
| 100
| 37.975845
| 0.829074
| 0.036637
| 0
| 0.77931
| 0
| 0
| 0.004248
| 0
| 0
| 0
| 0
| 0
| 0.103448
| 1
| 0.089655
| false
| 0
| 0.02069
| 0
| 0.144828
| 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
|
870f1f15b94799af9cb23688a7222482e32a4c9a
| 71
|
py
|
Python
|
tests/test_logic.py
|
gaborbernat/pugs
|
7585a2c6775998d9d3946db08629c5d08096088d
|
[
"MIT"
] | 14
|
2019-02-13T08:41:48.000Z
|
2021-09-15T06:59:26.000Z
|
tests/test_logic.py
|
gaborbernat/pugs
|
7585a2c6775998d9d3946db08629c5d08096088d
|
[
"MIT"
] | null | null | null |
tests/test_logic.py
|
gaborbernat/pugs
|
7585a2c6775998d9d3946db08629c5d08096088d
|
[
"MIT"
] | 3
|
2019-02-14T05:12:09.000Z
|
2020-11-09T13:21:31.000Z
|
from pugs.logic import do_tell
def test_init():
assert do_tell()
| 11.833333
| 30
| 0.71831
| 12
| 71
| 4
| 0.833333
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197183
| 71
| 5
| 31
| 14.2
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
876faf72b14c1d70355b0ac166d329525741a492
| 160
|
py
|
Python
|
botmaker/helpers.py
|
cuenca-mx/botmaker-python
|
ac5d99f99b1cb463359941e19e9188f05649f084
|
[
"MIT"
] | 2
|
2019-02-06T19:02:32.000Z
|
2020-04-15T16:44:43.000Z
|
botmaker/helpers.py
|
cuenca-mx/botmaker-python
|
ac5d99f99b1cb463359941e19e9188f05649f084
|
[
"MIT"
] | 13
|
2019-02-07T20:43:03.000Z
|
2022-03-23T17:52:03.000Z
|
botmaker/helpers.py
|
cuenca-mx/botmaker-python
|
ac5d99f99b1cb463359941e19e9188f05649f084
|
[
"MIT"
] | 1
|
2020-01-29T21:04:32.000Z
|
2020-01-29T21:04:32.000Z
|
import re
SANITIZE_PHONE_NUMBER = re.compile(r'[+.()\-\s]')
def sanitize_phone_number(phone_number):
return SANITIZE_PHONE_NUMBER.sub(r'', phone_number)
| 20
| 55
| 0.74375
| 23
| 160
| 4.826087
| 0.478261
| 0.495496
| 0.513514
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10625
| 160
| 7
| 56
| 22.857143
| 0.776224
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.75
| 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
|
5e4fb26bf46acf1640d433ab4c822d6e03631faf
| 2,337
|
py
|
Python
|
bitbar/battery.5s.py
|
fenhl/syncbin
|
1dd83837721e6c74ed7e564cabe592dfe3245acf
|
[
"MIT"
] | 3
|
2020-01-21T10:12:29.000Z
|
2020-10-22T05:00:18.000Z
|
bitbar/battery.5s.py
|
fenhl/syncbin
|
1dd83837721e6c74ed7e564cabe592dfe3245acf
|
[
"MIT"
] | 3
|
2017-09-30T05:29:11.000Z
|
2021-07-16T13:39:18.000Z
|
bitbar/battery.5s.py
|
fenhl/syncbin
|
1dd83837721e6c74ed7e564cabe592dfe3245acf
|
[
"MIT"
] | null | null | null |
#!/usr/local/bin/python3
import sys
sys.path.append('/opt/git/fenhl.net/syncbin-private/master/python')
import batcharge_macbook
BATTERY_IMAGE = 'iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABYlAAAWJQFJUiTwAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAAAmklEQVRYCe2S4QqAMAiEV/T+r1xsIRxM3RZJBtefxen0/GYp/EiABEiABHIT2Ax7p6FHys3LHtnhSW0aGlFbJVTf2dq7Ua+p+AFZXywytL9/Vwl1Bd4WkJBVW3si1DyymKfV7+6mI4QTdG6VkSR/Jle57kqtdjpCuEMyfR0jgoCLR4JoSDTvDDea7sloyNsHxkiABEiABP5A4AINSwgoISSBEQAAAABJRU5ErkJggg=='
BATTERY_IMAGE_CHARGING = 'iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABYlAAAWJQFJUiTwAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAAArklEQVRYCe2S2w6AIAxD0fj/v6zOB9JwGQMEMSlPBLquHOYcFwmQAAmQwNoEtky8M3M+8jiX5ek5O5Dvt498cov37wMJWo+3hUCp5gDB0EbQR91iIBGqk646vXQZBkrZpsjhmfYI1KW8o9rlhhpTl14jWtFYdOhr2XvP8Mv8xe0S4bQ492owEAbAYL09quoxkKUQQ1v01Zrlhnq5QNqXfTZH1f/MAhIgARIggYkELqLnECFMtglNAAAAAElFTkSuQmCC'
if batcharge_macbook.charging:
if batcharge_macbook.charge < 0.3:
print('{}%|templateImage={}'.format(int(batcharge_macbook.charge * 100), BATTERY_IMAGE_CHARGING))
print('---')
print('charging')
elif batcharge_macbook.charge < 0.7:
print('{}%|templateImage={}'.format(int(batcharge_macbook.charge * 100), BATTERY_IMAGE))
print('---')
print('not charging')
| 111.285714
| 919
| 0.914848
| 92
| 2,337
| 23.108696
| 0.565217
| 0.045155
| 0.041392
| 0.56444
| 0.060207
| 0.060207
| 0.060207
| 0.060207
| 0.060207
| 0.060207
| 0
| 0.096145
| 0.034232
| 2,337
| 20
| 920
| 116.85
| 0.845813
| 0.009842
| 0
| 0.142857
| 0
| 0.071429
| 0.810203
| 0.781669
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.428571
| 0
| 0
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
5e7d249fd8385cd6f8b41a540fad65489cdaab3e
| 139
|
py
|
Python
|
api/movie_database/movies/admin.py
|
cocorocho/movie_database
|
a1fbcb432612c00cf8bd43952442714b5f2bdb35
|
[
"MIT"
] | null | null | null |
api/movie_database/movies/admin.py
|
cocorocho/movie_database
|
a1fbcb432612c00cf8bd43952442714b5f2bdb35
|
[
"MIT"
] | null | null | null |
api/movie_database/movies/admin.py
|
cocorocho/movie_database
|
a1fbcb432612c00cf8bd43952442714b5f2bdb35
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Genre, Director, Movie, Poster
admin.site.register([Genre, Director, Movie, Poster])
| 27.8
| 53
| 0.784173
| 19
| 139
| 5.736842
| 0.631579
| 0.238532
| 0.330275
| 0.440367
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115108
| 139
| 5
| 53
| 27.8
| 0.886179
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 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
|
5eb79a15273693040686b8985bc9cf6a76a413ed
| 1,313
|
py
|
Python
|
examples/domain_relevant.py
|
jinji-hanbin/python-sdk
|
db11d919e0db433d6f12507a58a149191d7ccd35
|
[
"MIT"
] | 494
|
2015-01-08T09:56:30.000Z
|
2022-03-28T03:15:22.000Z
|
examples/domain_relevant.py
|
jinji-hanbin/python-sdk
|
db11d919e0db433d6f12507a58a149191d7ccd35
|
[
"MIT"
] | 189
|
2015-01-26T06:46:19.000Z
|
2022-03-28T04:06:16.000Z
|
examples/domain_relevant.py
|
jinji-hanbin/python-sdk
|
db11d919e0db433d6f12507a58a149191d7ccd35
|
[
"MIT"
] | 306
|
2015-01-24T05:56:05.000Z
|
2021-12-21T12:15:57.000Z
|
# -*- coding: utf-8 -*-
from qiniu import QiniuMacAuth, DomainManager
import json
"""域名上线"""
# 七牛账号的 公钥和私钥
access_key = "<access_key>"
secret_key = "<secret_key>"
auth = QiniuMacAuth(access_key, secret_key)
manager = DomainManager(auth)
# 域名
name = "zhuchangzhao2.peterpy.cn"
ret, res = manager.domain_online(name)
headers = {"code": res.status_code, "reqid": res.req_id, "xlog": res.x_log}
print(json.dumps(headers, indent=4, ensure_ascii=False))
print(json.dumps(ret, indent=4, ensure_ascii=False))
"""域名下线"""
# 七牛账号的 公钥和私钥
access_key = "<access_key>"
secret_key = "<secret_key>"
auth = QiniuMacAuth(access_key, secret_key)
manager = DomainManager(auth)
# 域名
name = ""
ret, res = manager.domain_offline(name)
headers = {"code": res.status_code, "reqid": res.req_id, "xlog": res.x_log}
print(json.dumps(headers, indent=4, ensure_ascii=False))
print(json.dumps(ret, indent=4, ensure_ascii=False))
"""删除域名"""
# 七牛账号的 公钥和私钥
access_key = "<access_key>"
secret_key = "<secret_key>"
auth = QiniuMacAuth(access_key, secret_key)
manager = DomainManager(auth)
# 域名
name = ""
ret, res = manager.delete_domain(name)
headers = {"code": res.status_code, "reqid": res.req_id, "xlog": res.x_log}
print(json.dumps(headers, indent=4, ensure_ascii=False))
print(json.dumps(ret, indent=4, ensure_ascii=False))
| 21.52459
| 75
| 0.718964
| 190
| 1,313
| 4.778947
| 0.242105
| 0.089207
| 0.118943
| 0.118943
| 0.84141
| 0.84141
| 0.84141
| 0.84141
| 0.84141
| 0.84141
| 0
| 0.006897
| 0.116527
| 1,313
| 60
| 76
| 21.883333
| 0.775862
| 0.050267
| 0
| 0.793103
| 0
| 0
| 0.111663
| 0.019851
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.068966
| 0
| 0.068966
| 0.206897
| 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
|
0d7c7a3671bbdb3ef2873101ad3358379800ea73
| 3,831
|
py
|
Python
|
backend/django/campsignup/backend/tests/test_groups_owners.py
|
Ring-deutscher-PfadfinderInnenverbande/campsignup
|
1e182322d31dc41083fa06138d709eddc4f448be
|
[
"MIT"
] | null | null | null |
backend/django/campsignup/backend/tests/test_groups_owners.py
|
Ring-deutscher-PfadfinderInnenverbande/campsignup
|
1e182322d31dc41083fa06138d709eddc4f448be
|
[
"MIT"
] | null | null | null |
backend/django/campsignup/backend/tests/test_groups_owners.py
|
Ring-deutscher-PfadfinderInnenverbande/campsignup
|
1e182322d31dc41083fa06138d709eddc4f448be
|
[
"MIT"
] | null | null | null |
import json
from django.test import TestCase
from django.core import management
from pprint import pprint
from rest_framework.test import APIClient
from backend.models import Participant, Group
from .common import common
class GroupOwnerTestCase(TestCase):
def setUp(self):
management.call_command("createDummyUser")
def test_permissions_checkList_users(self):
""" Test creation permission rules as anonymous user"""
client = APIClient()
client.login(username='user1@localhost.local', password='user1')
response = client.post('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 201)
client.logout()
client.login(username='user2@localhost.local', password='user2')
response = client.post('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 201)
client.logout()
client.login(username='user3@localhost.local', password='user3')
response = client.post('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 201)
client.logout()
client.login(username='user1@localhost.local', password='user1')
response = client.get('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 200)
client.logout()
content = response.content.decode("utf-8")
data = json.loads(content)
self.assertEqual(len(data), 1)
client.login(username='user2@localhost.local', password='user2')
response = client.get('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 200)
client.logout()
content = response.content.decode("utf-8")
data = json.loads(content)
self.assertEqual(len(data), 1)
client.login(username='user3@localhost.local', password='user3')
response = client.get('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 200)
client.logout()
content = response.content.decode("utf-8")
data = json.loads(content)
self.assertEqual(len(data), 1)
client.login(username='admin@localhost.local', password='admin')
response = client.get('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 200)
client.logout()
content = response.content.decode("utf-8")
data = json.loads(content)
self.assertEqual(len(data), 3)
# Now add user 2 to user 1 first group
self.assertEqual(data[0]["owner"], 2) # Check our basic assumption
gid = data[0]["id"]
group = dict(data[0])
group["more_owners"] = [
"user2@localhost.local"
]
client.login(username='user1@localhost.local', password='user1')
response = client.put(f'/api/v1/groups/{gid}', group, format='json')
self.assertEqual(response.status_code, 200)
client.logout()
client.login(username='user1@localhost.local', password='user1')
response = client.get('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 200)
client.logout()
content = response.content.decode("utf-8")
data = json.loads(content)
self.assertEqual(len(data), 1)
client.login(username='user2@localhost.local', password='user2')
response = client.get('/api/v1/groups/', common.valid_group, format='json')
self.assertEqual(response.status_code, 200)
client.logout()
content = response.content.decode("utf-8")
data = json.loads(content)
self.assertEqual(len(data), 2)
| 37.558824
| 84
| 0.651266
| 450
| 3,831
| 5.488889
| 0.188889
| 0.103239
| 0.076923
| 0.076923
| 0.778947
| 0.778947
| 0.778947
| 0.778947
| 0.778947
| 0.778947
| 0
| 0.025429
| 0.209606
| 3,831
| 102
| 85
| 37.558824
| 0.790291
| 0.029496
| 0
| 0.710526
| 0
| 0
| 0.145244
| 0.062247
| 0
| 0
| 0
| 0
| 0.223684
| 1
| 0.026316
| false
| 0.131579
| 0.092105
| 0
| 0.131579
| 0.013158
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
0da0677bca9b21c67265e3764d6a8204de84507e
| 36,236
|
py
|
Python
|
nitorch/core/fft.py
|
balbasty/nitorch
|
d30c3125a8a66ea1434f2b39ed03338afd9724b4
|
[
"MIT"
] | 46
|
2020-07-31T10:14:05.000Z
|
2022-03-24T12:51:46.000Z
|
nitorch/core/fft.py
|
balbasty/nitorch
|
d30c3125a8a66ea1434f2b39ed03338afd9724b4
|
[
"MIT"
] | 36
|
2020-10-06T19:01:38.000Z
|
2022-02-03T18:07:35.000Z
|
nitorch/core/fft.py
|
balbasty/nitorch
|
d30c3125a8a66ea1434f2b39ed03338afd9724b4
|
[
"MIT"
] | 6
|
2021-01-05T14:59:05.000Z
|
2021-11-18T18:26:45.000Z
|
"""Fourier transform module with backward compatibility
PyTorch introduced support for complex data types in version 1.6.
Before that, complex tensor were stored in real data types with an
additional dimension encoding the real and imaginary components.
Specifically, this convention was used in the fft/rfft/ifft functions.
In PyTorch 1.6 and 1.7, the old convention was still used in the fft-like
functions, which did not work with proper complex tensors. In PyTorch 1.7,
a new fft module was introduced. It implements functions that understand
complex tensors, but the old non-complex fft functions were kept as well
for backward compatibility. In PyTorch 1.8, the old functions were dropped
and additional helpers (fftshift, fftfreq) were implemented in the new
fft module.
This module mimics the PyTorch 1.8 fft module and calls the torch
functions when they are available. In PyTorch <= 1.5, the old convention
is used to represent complex tensors.
"""
import torch
from . import py, utils
_torch_has_old_fft = callable(getattr(torch, 'fft', None))
_torch_has_complex = hasattr(torch, 'complex32')
try:
_fft = torch.fft
import torch.fft as fft_mod
_torch_has_fft_module = True
except ImportError:
_fft = torch.fft
fft_mod = None
_torch_has_fft_module = False
_torch_has_fftshift = hasattr(fft_mod, 'fftshift')
def complex(real, imag):
"""Return a 'complex' tensor
- If `fft` module is present, returns a propert complex tensor
- Otherwise, stack the real and imaginary compoenents along the last
dimension.
Parameters
----------
real : tensor
imag : tensor
Returns
-------
complex : tensor
"""
if _torch_has_complex:
return torch.complex(real, imag)
else:
return torch.stack([real, imag], -1)
def real(x):
"""Return the real part of a 'complex' tensor
Parameters
----------
x : tensor
Returns
-------
real : tensor
"""
if _torch_has_complex:
x = x.real
if callable(x):
x = x()
return x
else:
return x[..., 0]
def imag(x):
"""Return the imaginary part of a 'complex' tensor
Parameters
----------
x : tensor
Returns
-------
real : tensor
"""
if _torch_has_complex:
x = x.imag
if callable(x):
x = x()
else:
return x[..., 1]
def abs(x):
"""Return the magnitude/absolute value of a 'complex' tensor
Parameters
----------
x : tensor
Returns
-------
real : tensor
"""
if _torch_has_complex:
return x.abs()
else:
return x.square().sum(-1).sqrt()
def angle(x):
"""Return the angle/phase of a 'complex' tensor
Parameters
----------
x : tensor
Returns
-------
real : tensor
"""
if _torch_has_complex:
return x.angle()
else:
return torch.atan2(imag(x), real(x))
# avoid shadowing
_real = real
def mul(x, y, real=False):
if _torch_has_complex:
xreal = not x.is_complex()
yreal = not y.is_complex()
if (xreal and yreal) or (not xreal and not yreal):
return torch.matmul(x, y)
elif xreal:
return torch.complex(x * _real(y), x * imag(y))
else:
return torch.complex(y * _real(x), y * imag(x))
xreal, yreal = py.make_list(real, 2)
if xreal and yreal:
return torch.mul(x, y)
elif xreal:
return x.unsqueeze(-1) * y
elif yreal:
return x * y.unsqueeze(-1)
else:
return complex(_real(x) * _real(y) - imag(x) * imag(y),
_real(x) * imag(y) + imag(x) * _real(y))
def fftshift(x, dim=None, real=False):
"""Move the first value to the center of the tensor.
Notes
-----
.. If the dimension has an even shape, the center is the first
position *after* the middle of the tensor: `c = s//2`
.. This function triggers a copy of the data.
.. If the dimension has an even shape, `fftshift` and `ifftshift`
are equivalent.
Parameters
----------
x : tensor
Input tensor
dim : [sequence of] int, optional
Dimensions to shift.
The "complex" dimension does not count
Returns
-------
x : tensor
Shifted tensor
"""
x = torch.as_tensor(x)
if _torch_has_fftshift:
return fft_mod.fftshift(x, dim)
if dim is None:
dim = list(range(x.dim()))
dim = py.make_list(dim)
if not _torch_has_complex and not real:
dim = [d-(not real) if d < 0 else d for d in dim]
if len(dim) > 1:
x = x.clone() # clone to get an additional buffer
y = torch.empty_like(x)
slicer = [slice(None)] * x.dim()
for d in dim:
# move front to back
pre = list(slicer)
pre[d] = slice(None, (x.shape[d]+1)//2)
post = list(slicer)
post[d] = slice(x.shape[d]//2, None)
y[tuple(post)] = x[tuple(pre)]
# move back to front
pre = list(slicer)
pre[d] = slice(None, x.shape[d]//2)
post = list(slicer)
post[d] = slice((x.shape[d]+1)//2, None)
y[tuple(pre)] = x[tuple(post)]
# exchange buffers
x, y = y, x
return x
def ifftshift(x, dim=None):
"""Move the center value to the front of the tensor.
Notes
-----
.. If the dimension has an even shape, the center is the first
position *after* the middle of the tensor: `c = s//2`
.. This function triggers a copy of the data.
.. If the dimension has an even shape, `fftshift` and `ifftshift`
are equivalent.
Parameters
----------
x : tensor
Input tensor
dim : [sequence of] int, default=all
Dimensions to shift
Returns
-------
x : tensor
Shifted tensor
"""
x = torch.as_tensor(x)
if _torch_has_fftshift:
if isinstance(dim, range):
dim = tuple(dim)
return fft_mod.ifftshift(x, dim)
if dim is None:
dim = list(range(x.dim()))
dim = py.make_list(dim)
if not _torch_has_complex and not real:
dim = [d-(not real) if d < 0 else d for d in dim]
if len(dim) > 1:
x = x.clone() # clone to get an additional buffer
y = torch.empty_like(x)
slicer = [slice(None)] * x.dim()
for d in dim:
# move back to front
pre = list(slicer)
pre[d] = slice(None, (x.shape[d]+1)//2)
post = list(slicer)
post[d] = slice(x.shape[d]//2, None)
y[tuple(pre)] = x[tuple(post)]
# move front to back
pre = list(slicer)
pre[d] = slice(None, x.shape[d]//2)
post = list(slicer)
post[d] = slice((x.shape[d]+1)//2, None)
y[tuple(post)] = x[tuple(pre)]
# exchange buffers
x, y = y, x
return x
def fftfreq(n, d=1.0, *,
dtype=None, layout=torch.strided, device=None, requires_grad=False):
"""Computes the discrete Fourier Transform sample frequencies.
Parameters
----------
n : int
Signal length
d : float
Voxel size
Other Parameters
----------------
dtype : torch.dtype, optional
layout : torch.layout, optional
device : torch.device, optional
requires_grad : bool, default=False
Returns
-------
freq : (n,) tensor
[0, 1, ..., (n - 1) // 2, -(n // 2), ..., -1] / (d * n)
"""
dtype = dtype or torch.get_default_dtype()
backend = dict(dtype=dtype, layout=layout,
device=device, requires_grad=requires_grad)
if _torch_has_fftshift:
return fft_mod.fftfreq(n, d, **backend)
f = torch.empty(n, **backend)
mid = (n - 1) // 2 + 1
f[:mid] = torch.arange(mid, out=f[:mid], **backend)
f[mid:] = torch.arange(-(n // 2), 0, out=f[mid:], **backend)
f /= (d*n)
return f
def rfftfreq(n, d=1.0, *,
dtype=None, layout=torch.strided, device=None, requires_grad=False):
"""Computes the discrete real Fourier Transform sample frequencies.
Parameters
----------
n : int
Signal length
d : float
Voxel size
Other Parameters
----------------
dtype : torch.dtype, optional
layout : torch.layout, optional
device : torch.device, optional
requires_grad : bool, default=False
Returns
-------
freq : (n // 2 + 1,) tensor
[0, 1, ..., n // 2 + 1] / (d * n)
"""
dtype = dtype or torch.get_default_dtype()
backend = dict(dtype=dtype, layout=layout,
device=device, requires_grad=requires_grad)
if _torch_has_fftshift:
return fft_mod.rfftfreq(n, d, **backend)
f = torch.arange(n // 2 + 1, **backend)
f /= (d*n)
return f
def fft(input, n=None, dim=-1, norm='backward', real=None):
"""One dimensional discrete Fourier transform.
Parameters
----------
input : tensor
Input signal.
If torch <= 1.5, the last dimension must be of length 2 and
contain the real and imaginary parts of the signal, unless
`real is True`.
n : int, optional
Signal length. If given, the input will either be zero-padded
or trimmed to this length before computing the FFT.
dim : int, default=-1
Dimension along which to take the Fourier transform.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : normalize by 1/n
backward : no normalization
ortho : normalize by 1/sqrt(n) (making the FFT orthonormal)
real : bool, default=False
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
output : tensor
Fourier transform of the input signal. Complex tensor.
If torch <= 1.5, the last dimension is of length 2 and
contain the real and imaginary parts of the signal.
"""
if _torch_has_fft_module:
return fft_mod.fft(input, n, dim, norm=norm)
# Make real and move processed dimension to the right
if _torch_has_complex:
input = utils.movedim(input, dim, -1)
if input.is_complex():
input = torch.view_as_real(input)
real = False
else:
real = True
elif real:
input = utils.movedim(input, dim, -1)
else:
input = utils.movedim(input, dim if dim >= 0 else dim - 1, -2)
# Crop/pad
dim1 = -1 - (not real)
if n:
if input.shape[dim1] > n:
input = utils.slice_tensor(input, slice(n), dim1)
elif input.shape[dim1] < n:
pad = [0] * (dim1-1) + [n - input.shape[dim1]]
input = utils.pad(input, pad, side='post')
else:
n = input.shape[dim1]
# Do fft
print(input.shape, n)
if real:
output = torch.rfft(input, 1, normalized=(norm == 'ortho'),
onesided=False)
else:
output = _fft(input, 1, normalized=(norm == 'ortho'))
if norm == 'forward':
output /= float(n)
# Make complex and move back dimension to its original position
if _torch_has_complex:
output = output.view_as_complex()
output = utils.movedim(output, -1, dim)
else:
output = utils.movedim(output, -2, dim if dim >= 0 else dim - 1)
return output
def fftn(input, s=None, dim=None, norm='backward', real=None):
"""N-dimensional discrete Fourier transform.
Parameters
----------
input : tensor
Input signal.
If torch <= 1.5, the last dimension must be of length 2 and
contain the real and imaginary parts of the signal, unless
`real is True`.
s : sequence[int], optional
Signal size in the transformed dimensions.
If given, each dimension dim[i] will either be zero-padded or
trimmed to the length s[i] before computing the FFT.
If a length -1 is specified, no padding is done in that dimension.
Default: s = [input.size(d) for d in input.dim()]
dim : sequence[int], optional
Dimensions to be transformed.
Default: all dimensions, or the last len(s) dimensions if s is given.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : normalize by 1/n
backward : no normalization
ortho : normalize by 1/sqrt(n) (making the FFT orthonormal)
real : bool, default=False
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
output : tensor
Fourier transform of the input signal. Complex tensor.
If torch <= 1.5, the last dimension is of length 2 and
contain the real and imaginary parts of the signal.
"""
if _torch_has_fft_module:
return fft_mod.fftn(input, s, dim, norm=norm)
# Output shape
oldcomplex = not (real or _torch_has_complex)
if dim:
ndim = len(dim)
elif s:
ndim = len(s)
else:
ndim = input.dim() - oldcomplex
s = s or [-1] * ndim
dim = dim or list(range(input.dim()-oldcomplex-len(s), input.dim()-oldcomplex))
dim = [input.dim()-oldcomplex+d if d < 0 else d for d in dim]
ndim = len(dim)
input = utils.movedim(input, dim, -1-oldcomplex)
# Make real and move processed dimension to the right
if _torch_has_complex:
if input.is_complex():
input = torch.view_as_real(input)
real = False
else:
real = True
# Crop/pad
newdim = list(range(-ndim-(not real), -(not real)))
for j, (s1, d1) in enumerate(zip(s, newdim)):
if s1 is None or s1 < 0:
s[j] = input.shape[d1]
else:
if input.shape[d1] > s1:
input = utils.slice_tensor(input, slice(s1), d1)
elif input.shape[d1] < s1:
pad = [0] * (d1-1) + [s1 - input.shape[d1]]
input = utils.pad(input, pad, side='post')
# Do fft
if real:
fft_fn = lambda x, d: torch.rfft(x, d,
normalized=(norm == 'ortho'),
onesided=False)
output = fft_fn(input, min(ndim, 3))
else:
fft_fn = lambda x, d: _fft(x, d, normalized=(norm == 'ortho'))
output = fft_fn(input, min(ndim, 3))
fft_fn = lambda x, d: _fft(x, d, normalized=(norm == 'ortho'))
for j in range(max(0, ndim-3)):
output = utils.movedim(output, -j-ndim-1, -2)
output = fft_fn(output, 1)
output = utils.movedim(output, -2, -j-ndim-1)
if norm == 'forward':
output /= py.prod(s)
# Make complex and move back dimension to its original position
newdim = list(range(-ndim-1, -1))
output = utils.movedim(output, newdim, dim)
if _torch_has_complex:
output = output.view_as_complex()
return output
def ifft(input, n=None, dim=-1, norm='backward', real=None):
"""One dimensional discrete inverse Fourier transform.
Parameters
----------
input : tensor
Input signal.
If torch <= 1.5, the last dimension must be of length 2 and
contain the real and imaginary parts of the signal, unless
`real is True`.
n : int, optional
Signal length. If given, the input will either be zero-padded
or trimmed to this length before computing the FFT.
dim : int, default=-1
Dimension along which to take the Fourier transform.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : no normalization
backward : normalize by 1/n
ortho : normalize by 1/sqrt(n) (making the IFFT orthonormal)
real : bool, default=False
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
output : tensor
Inverse Fourier transform of the input signal. Complex tensor.
If torch <= 1.5, the last dimension is of length 2 and
contain the real and imaginary parts of the signal.
"""
if _torch_has_fft_module:
return fft_mod.ifft(input, n, dim, norm=norm)
# Make real and move processed dimension to the right
if _torch_has_complex:
input = utils.movedim(input, dim, -1)
if input.is_complex():
input = torch.view_as_real(input)
real = False
else:
real = True
elif real:
input = utils.movedim(input, dim, -1)
else:
input = utils.movedim(input, dim if dim >= 0 else dim - 1, -2)
input = utils.movedim(input, dim if dim >= 0 else dim - 1, -2)
# Crop/pad
dim1 = -1 - (not real)
if n:
if input.shape[dim1] > n:
input = utils.slice_tensor(input, slice(n), dim1)
elif input.shape[dim1] < n:
pad = [0] * (dim1-1) + [n - input.shape[dim1]]
input = utils.pad(input, pad, side='post')
else:
n = input.shape[dim1]
# Do ifft
if real:
output = torch.rfft(input, 1, normalized=(norm == 'ortho'),
onesided=False)
output[..., -1].neg_() # conjugate
if norm == 'backward':
output /= float(n)
else:
output = torch.ifft(input, 1, normalized=(norm == 'ortho'))
if norm == 'forward':
output *= float(n)
# Make complex and move back dimension to its original position
if _torch_has_complex:
output = output.view_as_complex()
output = utils.movedim(output, -1, dim)
else:
output = utils.movedim(output, -2, dim if dim >= 0 else dim - 1)
return output
def ifftn(input, s=None, dim=-1, norm='backward', real=None):
"""N-dimensional discrete inverse Fourier transform.
Parameters
----------
input : tensor
Input signal.
If torch <= 1.5, the last dimension must be of length 2 and
contain the real and imaginary parts of the signal, unless
`real is True`.
s : sequence[int], optional
Signal size in the transformed dimensions.
If given, each dimension dim[i] will either be zero-padded or
trimmed to the length s[i] before computing the IFFT.
If a length -1 is specified, no padding is done in that dimension.
Default: s = [input.size(d) for d in input.dim()]
dim : sequence[int], optional
Dimensions to be transformed. Default: all dimensions, or the
last len(s) dimensions if s is given.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : no normalization
backward : normalize by 1/n
ortho : normalize by 1/sqrt(n) (making the IFFT orthonormal)
real : bool, default=False
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
output : tensor
Inverse Fourier transform of the input signal. Complex tensor.
If torch <= 1.5, the last dimension is of length 2 and
contain the real and imaginary parts of the signal.
"""
if _torch_has_fft_module:
return fft_mod.ifftn(input, s, dim, norm=norm)
# Output shape
oldcomplex = not (real or _torch_has_complex)
if dim:
ndim = len(dim)
elif s:
ndim = len(s)
else:
ndim = input.dim() - oldcomplex
s = s or [-1] * ndim
dim = dim or list(range(input.dim()-oldcomplex-len(s), input.dim()-oldcomplex))
dim = [input.dim()-oldcomplex+d if d < 0 else d for d in dim]
ndim = len(dim)
input = utils.movedim(input, dim, -1-oldcomplex)
# Make real and move processed dimension to the right
if _torch_has_complex:
if input.is_complex():
input = torch.view_as_real(input)
real = False
else:
real = True
# Crop/pad
newdim = list(range(-ndim-(not real), -(not real)))
for j, (s1, d1) in enumerate(zip(s, newdim)):
if s1 is None or s1 < 0:
s[j] = input.shape[d1]
else:
if input.shape[d1] > s1:
input = utils.slice_tensor(input, slice(s1), d1)
elif input.shape[d1] < s1:
pad = [0] * (d1-1) + [s1 - input.shape[d1]]
input = utils.pad(input, pad, side='post')
# do fft
if real:
fft_fn = lambda x, d: torch.rfft(x, d,
normalized=(norm == 'ortho'),
onesided=False)
output = fft_fn(input, min(ndim, 3))
output[..., -1].neg_() # conjugate
if norm == 'backward':
output /= py.prod(s[-3:])
else:
fft_fn = lambda x, d: torch.ifft(x, d, normalized=(norm == 'ortho'))
output = fft_fn(input, min(ndim, 3))
if norm == 'forward':
output *= py.prod(s[-3:])
# remaining dimensions
fft_fn = lambda x, d: torch.ifft(x, d, normalized=(norm == 'ortho'))
for j in range(max(0, ndim-3)):
output = utils.movedim(output, -j-ndim-1, -2)
output = fft_fn(output, 1)
output = utils.movedim(output, -2, -j-ndim-1)
if norm == 'forward' and ndim > 3:
output *= py.prod(s[:-3])
# Make complex and move back dimension to its original position
newdim = list(range(-ndim-1, -1))
output = utils.movedim(output, newdim, dim)
if _torch_has_complex:
output = output.view_as_complex()
return output
def rfft(input, n=None, dim=-1, norm='backward'):
"""One dimensional real-to-complex inverse Fourier transform.
The FFT of a real signal is Hermitian-symmetric, X[i] = conj(X[-i])
so the output contains only the positive frequencies below the
Nyquist frequency. To compute the full output, use fft()
(or fft(real=True) in torch <= 1.5).
Parameters
----------
input : tensor
Input real signal.
n : int, optional
Signal length. If given, the input will either be zero-padded
or trimmed to this length before computing the FFT.
dim : int, default=-1
Dimension along which to take the Fourier transform.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : normalize by 1/n
backward : no normalization
ortho : normalize by 1/sqrt(n) (making the FFT orthonormal)
Returns
-------
output : tensor
Fourier transform of the input signal. Complex tensor.
Only positive frequencies are returned.
If torch <= 1.5, the last dimension is of length 2 and
contain the real and imaginary parts of the signal.
"""
if _torch_has_fft_module:
return fft_mod.rfft(input, n, dim, norm=norm)
# Move processed dimension to the right
input = utils.movedim(input, dim, -1)
# Crop/pad
dim1 = dim
if dim1 < 0:
dim1 += input.dim()
if n:
if input.shape[dim1] > n:
input = utils.slice_tensor(input, slice(n), dim1)
elif input.shape[dim1] < n:
pad = [0] * (dim1-1) + [n - input.shape[dim1]]
input = utils.pad(input, pad, side='post')
else:
n = input.shape[dim1]
# Do fft
output = torch.rfft(input, 1, normalized=(norm == 'ortho'),
onesided=True)
if norm == 'forward':
output /= float(n)
# Make complex and move back dimension to its original position
if _torch_has_complex:
output = torch.view_as_complex()
output = utils.movedim(output, -1, dim)
else:
output = utils.movedim(output, -2, dim if dim > 0 else dim - 1)
return output
def irfft(input, n=None, dim=-1, norm='backward', real=None):
"""One dimensional complex-to-real inverse Fourier transform.
The input is interpreted as a one-sided Hermitian signal in the
Fourier domain, as produced by rfft(). By the Hermitian property,
the output will be real-valued.
Notes
-----
.. The correct interpretation of the Hermitian input depends on the
length of the original data, as given by `n`. This is because each
input shape could correspond to either an odd or even length signal.
By default, the signal is assumed to be even length and odd signals
will not round-trip properly. So, it is recommended to always pass
the signal length `n`.
Parameters
----------
input : tensor
Input signal, containing only positive frequencies.
n : int, optional
Output signal length. If given, the input will either be
zero-padded or trimmed to this length before computing the real
IFFT. Defaults to even output: n=2*(input.size(dim) - 1).
dim : int, default=-1
Dimension along which to take the Fourier transform.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : normalize by 1/n
backward : no normalization
ortho : normalize by 1/sqrt(n) (making the FFT orthonormal)
real : bool, default=False
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
output : tensor
Fourier transform of the input signal. Real tensor.
"""
if _torch_has_fft_module:
return fft_mod.irfft(input, n, dim, norm=norm)
# Make real and move processed dimension to the right
if _torch_has_complex:
input = utils.movedim(input, dim, -1)
if input.is_complex():
input = torch.view_as_real(input)
else:
real = True
elif real:
input = utils.movedim(input, dim, -1)
else:
input = utils.movedim(input, dim if dim > 0 else dim - 1, -2)
if real:
# The output should be real *and* symmetric.
# I can either allocate an empty imaginary component and
# call irfft or build the full signal and call rfft + normalize
zero = input.new_zeros([]).expand(input.shape)
input = torch.stack([input, zero])
# Do fft
output = torch.irfft(input, 1, normalized=(norm == 'ortho'),
onesided=True, signal_sizes=[n])
n = output.shape[-1]
if norm == 'backward':
output /= float(n)
# Move back dimension to its original position
output = utils.movedim(output, -1, dim)
return output
def hfft(input, n=None, dim=-1, norm='backward', real=None):
"""One dimensional complex-to-real Fourier transform.
Computes the one dimensional discrete Fourier transform of a
Hermitian symmetric input signal.
hfft('backward') is equivalent to irfft('forward').
Notes
-----
.. The correct interpretation of the Hermitian input depends on the
length of the original data, as given by `n`. This is because each
input shape could correspond to either an odd or even length signal.
By default, the signal is assumed to be even length and odd signals
will not round-trip properly. So, it is recommended to always pass
the signal length `n`.
Parameters
----------
input : tensor
Input signal, containing only positive frequencies.
n : int, optional
Output signal length. If given, the input will either be
zero-padded or trimmed to this length before computing the real
IFFT. Defaults to even output: n=2*(input.size(dim) - 1).
dim : int, default=-1
Dimension along which to take the Fourier transform.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : normalize by 1/n
backward : no normalization (equivalent to irfft('forward'))
ortho : normalize by 1/sqrt(n) (making the FFT orthonormal)
real : bool, default=False
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
output : tensor
Fourier transform of the input signal. Real tensor.
"""
if _torch_has_fft_module:
return fft_mod.hfft(input, n, dim, norm=norm)
norm = ('forward' if norm == 'backward' else
'backward' if norm == 'forward' else
'ortho')
return irfft(input, n, dim, norm=norm, real=real)
def ihfft(input, n=None, dim=-1, norm='backward'):
"""One dimensional real-to-complex inverse Fourier transform.
The input must be a real-valued signal, interpreted in the Fourier
domain. The IFFT of a real signal is Hermitian-symmetric,
X[i] = conj(X[-i]). ihfft() represents this in the one-sided form
where only the positive frequencies below the Nyquist frequency are
included. To compute the full output, use ifft().
ihfft('backward') is equivalent to rfft('forward').
Parameters
----------
input : tensor
Input real signal.
n : int, optional
Signal length. If given, the input will either be zero-padded
or trimmed to this length before computing the FFT.
dim : int, default=-1
Dimension along which to take the Fourier transform.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
norm : {'forward', 'backward', 'ortho'}, default='backward'
forward : normalize by 1/n
backward : no normalization
ortho : normalize by 1/sqrt(n) (making the FFT orthonormal)
Returns
-------
output : tensor
Fourier transform of the input signal. Complex tensor.
Only positive frequencies are returned.
If torch <= 1.5, the last dimension is of length 2 and
contain the real and imaginary parts of the signal.
"""
if _torch_has_fft_module:
return fft_mod.ihfft(input, n, dim, norm=norm)
norm = ('forward' if norm == 'backward' else
'backward' if norm == 'forward' else
'ortho')
return rfft(input, n, dim, norm=norm)
def hpart(x, dim=-1, shift=False, real=None):
"""Extract only non-redundant information from Hermitian symmetric signal.
Notes
-----
.. By default, the upper half of the signal is returned (i.e.,
the first (zero) frequency is assumed to be in the first (zero) voxel).
.. If shift is True, the lower half of the signal is returned (i.e.,
the first (zero) frequency is assumed to be in the central voxel).
`hpart(x, shift=True)` is equivalent to `hpart(ifftshift(x))`.
.. The Nyquist frequency (at n//2) is returned as well, although it is
considered negative by convention. The output length is therefore
n//2 + 1.
Parameters
----------
x : tensor
Input signal.
dim : int, default=-1
Dimension to process.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
shift : bool, default=False
If True, the (zero) frequency is assumed to be in the center voxel.
Else, it is assumed to be in the first (zero) voxel.
real : bool, optional
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
h : tensor
If shift is False, this is a view in the input Tensor.
Else, a copy is triggered.
"""
x = torch.as_tensor(x)
if not _torch_has_complex and not real and dim < 0:
dim = dim - 1
slicer = [slice(None)] * x.dim()
if not shift:
slicer[dim] = slice((x.shape[dim])//2+1)
return x[tuple(slicer)]
# the Nyquist frequency is in the first voxel, so we need to
# combine two parts to create the half we want
new_shape = list(x.shape)
new_shape[dim] = x.shape[dim]//2 + 1
new_x = x.new_empty(new_shape)
# main part
in_slicer = list(slicer)
in_slicer[dim] = slice(x.shape[dim]//2, None)
out_slicer = list(slicer)
out_slicer[dim] = slice(-1)
new_x[tuple(out_slicer)] = x[tuple(in_slicer)]
# Nyquist frequency
in_slicer = list(slicer)
in_slicer[dim] = 0
out_slicer = list(slicer)
out_slicer[dim] = -1
new_x[tuple(out_slicer)] = x[tuple(in_slicer)]
return new_x
def ihpart(x, n=None, dim=-1, shift=False, real=None):
"""Reconstruct a full signal from a half signal by complex conjugacy.
Notes
-----
.. By default, the input signal ends up in the upper half of the
output signal
.. If shift is True, he input signal ends up in the lower half of the
output signal.
`ihpart(x, shift=True)` is equivalent to `fftshift(ihpart(x))`.
Parameters
----------
x : tensor
Input signal.
n : [sequence of] int, default=2*(m - 1)
The length of the output signal.
dim : [sequence of] int, default=all
Dimensions to process.
If torch <= 1.5, the dimension encoding the real and imaginary
parts are not taken into account in dimension indexing.
shift : bool, default=False
If True, the (zero) frequency is assumed to be in the center voxel.
Else, it is assumed to be in the first (zero) voxel.
real : bool, default=False
Only used if torch <= 1.5.
If True, the input signal has no imaginary component and the
dimension encoding the real and imaginary parts does not exist.
Returns
-------
h : tensor
View into the input tensor, with half the input shape along `dim`.
"""
x = torch.as_tensor(x)
y = None
if not _torch_has_complex:
if not real:
x, y = x.unbind(-1)
# allocate output
n = n or 2*(x.shape[dim]-1)
new_shape = list(x.shape)
new_shape[dim] = n
if y is not None:
new_x0 = x.new_empty([*new_shape, 2])
new_x = new_x0[..., 0]
new_y = new_x0[..., 1]
else:
new_x = x.new_empty(new_shape)
# positive side
in_slicer = [slice(None)] * x.dim()
out_slicer = list(in_slicer)
if shift:
in_slicer[dim] = slice(-1)
out_slicer[dim] = slice(n//2, None)
else:
out_slicer[dim] = slice(x.shape[dim])
new_x[out_slicer] = x[in_slicer]
if y is not None:
new_y[out_slicer] = y[in_slicer]
# negative side
x = torch.flip(x, [dim])
if y is not None:
y = torch.flip(y, [dim]).neg_()
if _torch_has_complex and x.is_complex():
x = x.conj_()
in_slicer[dim] = slice((not shift and not n % 2), -1)
if shift:
out_slicer[dim] = slice(n//2)
else:
out_slicer[dim] = slice(x.shape[dim], None)
print(out_slicer, in_slicer)
new_x[out_slicer] = x[in_slicer]
if y is not None:
new_y[out_slicer] = y[in_slicer]
if y is not None:
return new_x0
else:
return new_x
| 32.152618
| 83
| 0.599956
| 5,065
| 36,236
| 4.235538
| 0.071668
| 0.018599
| 0.013984
| 0.02657
| 0.810143
| 0.788281
| 0.764695
| 0.744092
| 0.723768
| 0.718175
| 0
| 0.013265
| 0.292665
| 36,236
| 1,126
| 84
| 32.181172
| 0.823729
| 0.495805
| 0
| 0.710177
| 0
| 0
| 0.018297
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.044248
| false
| 0
| 0.00885
| 0
| 0.150442
| 0.004425
| 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
|
0dba8f98a1e2e6c36375e44e91609ed0b3a5e5d2
| 32,777
|
py
|
Python
|
sdk/python/pulumi_azure/devtest/schedule.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 109
|
2018-06-18T00:19:44.000Z
|
2022-02-20T05:32:57.000Z
|
sdk/python/pulumi_azure/devtest/schedule.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 663
|
2018-06-18T21:08:46.000Z
|
2022-03-31T20:10:11.000Z
|
sdk/python/pulumi_azure/devtest/schedule.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 41
|
2018-07-19T22:37:38.000Z
|
2022-03-14T10:56:26.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__ = ['ScheduleArgs', 'Schedule']
@pulumi.input_type
class ScheduleArgs:
def __init__(__self__, *,
lab_name: pulumi.Input[str],
notification_settings: pulumi.Input['ScheduleNotificationSettingsArgs'],
resource_group_name: pulumi.Input[str],
task_type: pulumi.Input[str],
time_zone_id: pulumi.Input[str],
daily_recurrence: Optional[pulumi.Input['ScheduleDailyRecurrenceArgs']] = None,
hourly_recurrence: Optional[pulumi.Input['ScheduleHourlyRecurrenceArgs']] = None,
location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
weekly_recurrence: Optional[pulumi.Input['ScheduleWeeklyRecurrenceArgs']] = None):
"""
The set of arguments for constructing a Schedule resource.
:param pulumi.Input[str] lab_name: The name of the dev test lab. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
:param pulumi.Input[str] task_type: The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
:param pulumi.Input[str] time_zone_id: The time zone ID (e.g. Pacific Standard time).
:param pulumi.Input[str] location: The location where the schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] name: The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`.
:param pulumi.Input[str] status: The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
"""
pulumi.set(__self__, "lab_name", lab_name)
pulumi.set(__self__, "notification_settings", notification_settings)
pulumi.set(__self__, "resource_group_name", resource_group_name)
pulumi.set(__self__, "task_type", task_type)
pulumi.set(__self__, "time_zone_id", time_zone_id)
if daily_recurrence is not None:
pulumi.set(__self__, "daily_recurrence", daily_recurrence)
if hourly_recurrence is not None:
pulumi.set(__self__, "hourly_recurrence", hourly_recurrence)
if location is not None:
pulumi.set(__self__, "location", location)
if name is not None:
pulumi.set(__self__, "name", name)
if status is not None:
pulumi.set(__self__, "status", status)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if weekly_recurrence is not None:
pulumi.set(__self__, "weekly_recurrence", weekly_recurrence)
@property
@pulumi.getter(name="labName")
def lab_name(self) -> pulumi.Input[str]:
"""
The name of the dev test lab. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "lab_name")
@lab_name.setter
def lab_name(self, value: pulumi.Input[str]):
pulumi.set(self, "lab_name", value)
@property
@pulumi.getter(name="notificationSettings")
def notification_settings(self) -> pulumi.Input['ScheduleNotificationSettingsArgs']:
return pulumi.get(self, "notification_settings")
@notification_settings.setter
def notification_settings(self, value: pulumi.Input['ScheduleNotificationSettingsArgs']):
pulumi.set(self, "notification_settings", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Input[str]:
"""
The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_group_name", value)
@property
@pulumi.getter(name="taskType")
def task_type(self) -> pulumi.Input[str]:
"""
The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
"""
return pulumi.get(self, "task_type")
@task_type.setter
def task_type(self, value: pulumi.Input[str]):
pulumi.set(self, "task_type", value)
@property
@pulumi.getter(name="timeZoneId")
def time_zone_id(self) -> pulumi.Input[str]:
"""
The time zone ID (e.g. Pacific Standard time).
"""
return pulumi.get(self, "time_zone_id")
@time_zone_id.setter
def time_zone_id(self, value: pulumi.Input[str]):
pulumi.set(self, "time_zone_id", value)
@property
@pulumi.getter(name="dailyRecurrence")
def daily_recurrence(self) -> Optional[pulumi.Input['ScheduleDailyRecurrenceArgs']]:
return pulumi.get(self, "daily_recurrence")
@daily_recurrence.setter
def daily_recurrence(self, value: Optional[pulumi.Input['ScheduleDailyRecurrenceArgs']]):
pulumi.set(self, "daily_recurrence", value)
@property
@pulumi.getter(name="hourlyRecurrence")
def hourly_recurrence(self) -> Optional[pulumi.Input['ScheduleHourlyRecurrenceArgs']]:
return pulumi.get(self, "hourly_recurrence")
@hourly_recurrence.setter
def hourly_recurrence(self, value: Optional[pulumi.Input['ScheduleHourlyRecurrenceArgs']]):
pulumi.set(self, "hourly_recurrence", value)
@property
@pulumi.getter
def location(self) -> Optional[pulumi.Input[str]]:
"""
The location where the schedule is created. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "location")
@location.setter
def location(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "location", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def status(self) -> Optional[pulumi.Input[str]]:
"""
The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
"""
return pulumi.get(self, "status")
@status.setter
def status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A mapping of tags to assign to the resource.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@property
@pulumi.getter(name="weeklyRecurrence")
def weekly_recurrence(self) -> Optional[pulumi.Input['ScheduleWeeklyRecurrenceArgs']]:
return pulumi.get(self, "weekly_recurrence")
@weekly_recurrence.setter
def weekly_recurrence(self, value: Optional[pulumi.Input['ScheduleWeeklyRecurrenceArgs']]):
pulumi.set(self, "weekly_recurrence", value)
@pulumi.input_type
class _ScheduleState:
def __init__(__self__, *,
daily_recurrence: Optional[pulumi.Input['ScheduleDailyRecurrenceArgs']] = None,
hourly_recurrence: Optional[pulumi.Input['ScheduleHourlyRecurrenceArgs']] = None,
lab_name: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_settings: Optional[pulumi.Input['ScheduleNotificationSettingsArgs']] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_type: Optional[pulumi.Input[str]] = None,
time_zone_id: Optional[pulumi.Input[str]] = None,
weekly_recurrence: Optional[pulumi.Input['ScheduleWeeklyRecurrenceArgs']] = None):
"""
Input properties used for looking up and filtering Schedule resources.
:param pulumi.Input[str] lab_name: The name of the dev test lab. Changing this forces a new resource to be created.
:param pulumi.Input[str] location: The location where the schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] name: The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
:param pulumi.Input[str] status: The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
:param pulumi.Input[str] task_type: The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
:param pulumi.Input[str] time_zone_id: The time zone ID (e.g. Pacific Standard time).
"""
if daily_recurrence is not None:
pulumi.set(__self__, "daily_recurrence", daily_recurrence)
if hourly_recurrence is not None:
pulumi.set(__self__, "hourly_recurrence", hourly_recurrence)
if lab_name is not None:
pulumi.set(__self__, "lab_name", lab_name)
if location is not None:
pulumi.set(__self__, "location", location)
if name is not None:
pulumi.set(__self__, "name", name)
if notification_settings is not None:
pulumi.set(__self__, "notification_settings", notification_settings)
if resource_group_name is not None:
pulumi.set(__self__, "resource_group_name", resource_group_name)
if status is not None:
pulumi.set(__self__, "status", status)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if task_type is not None:
pulumi.set(__self__, "task_type", task_type)
if time_zone_id is not None:
pulumi.set(__self__, "time_zone_id", time_zone_id)
if weekly_recurrence is not None:
pulumi.set(__self__, "weekly_recurrence", weekly_recurrence)
@property
@pulumi.getter(name="dailyRecurrence")
def daily_recurrence(self) -> Optional[pulumi.Input['ScheduleDailyRecurrenceArgs']]:
return pulumi.get(self, "daily_recurrence")
@daily_recurrence.setter
def daily_recurrence(self, value: Optional[pulumi.Input['ScheduleDailyRecurrenceArgs']]):
pulumi.set(self, "daily_recurrence", value)
@property
@pulumi.getter(name="hourlyRecurrence")
def hourly_recurrence(self) -> Optional[pulumi.Input['ScheduleHourlyRecurrenceArgs']]:
return pulumi.get(self, "hourly_recurrence")
@hourly_recurrence.setter
def hourly_recurrence(self, value: Optional[pulumi.Input['ScheduleHourlyRecurrenceArgs']]):
pulumi.set(self, "hourly_recurrence", value)
@property
@pulumi.getter(name="labName")
def lab_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the dev test lab. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "lab_name")
@lab_name.setter
def lab_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "lab_name", value)
@property
@pulumi.getter
def location(self) -> Optional[pulumi.Input[str]]:
"""
The location where the schedule is created. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "location")
@location.setter
def location(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "location", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="notificationSettings")
def notification_settings(self) -> Optional[pulumi.Input['ScheduleNotificationSettingsArgs']]:
return pulumi.get(self, "notification_settings")
@notification_settings.setter
def notification_settings(self, value: Optional[pulumi.Input['ScheduleNotificationSettingsArgs']]):
pulumi.set(self, "notification_settings", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_group_name", value)
@property
@pulumi.getter
def status(self) -> Optional[pulumi.Input[str]]:
"""
The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
"""
return pulumi.get(self, "status")
@status.setter
def status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A mapping of tags to assign to the resource.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@property
@pulumi.getter(name="taskType")
def task_type(self) -> Optional[pulumi.Input[str]]:
"""
The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
"""
return pulumi.get(self, "task_type")
@task_type.setter
def task_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "task_type", value)
@property
@pulumi.getter(name="timeZoneId")
def time_zone_id(self) -> Optional[pulumi.Input[str]]:
"""
The time zone ID (e.g. Pacific Standard time).
"""
return pulumi.get(self, "time_zone_id")
@time_zone_id.setter
def time_zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "time_zone_id", value)
@property
@pulumi.getter(name="weeklyRecurrence")
def weekly_recurrence(self) -> Optional[pulumi.Input['ScheduleWeeklyRecurrenceArgs']]:
return pulumi.get(self, "weekly_recurrence")
@weekly_recurrence.setter
def weekly_recurrence(self, value: Optional[pulumi.Input['ScheduleWeeklyRecurrenceArgs']]):
pulumi.set(self, "weekly_recurrence", value)
class Schedule(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
daily_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleDailyRecurrenceArgs']]] = None,
hourly_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleHourlyRecurrenceArgs']]] = None,
lab_name: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_settings: Optional[pulumi.Input[pulumi.InputType['ScheduleNotificationSettingsArgs']]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_type: Optional[pulumi.Input[str]] = None,
time_zone_id: Optional[pulumi.Input[str]] = None,
weekly_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleWeeklyRecurrenceArgs']]] = None,
__props__=None):
"""
Manages automated startup and shutdown schedules for Azure Dev Test Lab.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_lab = azure.devtest.Lab("exampleLab",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_schedule = azure.devtest.Schedule("exampleSchedule",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
lab_name=example_lab.name,
weekly_recurrence=azure.devtest.ScheduleWeeklyRecurrenceArgs(
time="1100",
week_days=[
"Monday",
"Tuesday",
],
),
time_zone_id="Pacific Standard Time",
task_type="LabVmsStartupTask",
notification_settings=azure.devtest.ScheduleNotificationSettingsArgs(),
tags={
"environment": "Production",
})
```
## Import
DevTest Schedule's can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:devtest/schedule:Schedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DevTestLab/labs/myDevTestLab/schedules/labvmautostart
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] lab_name: The name of the dev test lab. Changing this forces a new resource to be created.
:param pulumi.Input[str] location: The location where the schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] name: The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
:param pulumi.Input[str] status: The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
:param pulumi.Input[str] task_type: The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
:param pulumi.Input[str] time_zone_id: The time zone ID (e.g. Pacific Standard time).
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: ScheduleArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages automated startup and shutdown schedules for Azure Dev Test Lab.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_lab = azure.devtest.Lab("exampleLab",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_schedule = azure.devtest.Schedule("exampleSchedule",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
lab_name=example_lab.name,
weekly_recurrence=azure.devtest.ScheduleWeeklyRecurrenceArgs(
time="1100",
week_days=[
"Monday",
"Tuesday",
],
),
time_zone_id="Pacific Standard Time",
task_type="LabVmsStartupTask",
notification_settings=azure.devtest.ScheduleNotificationSettingsArgs(),
tags={
"environment": "Production",
})
```
## Import
DevTest Schedule's can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:devtest/schedule:Schedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DevTestLab/labs/myDevTestLab/schedules/labvmautostart
```
:param str resource_name: The name of the resource.
:param ScheduleArgs 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(ScheduleArgs, 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,
daily_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleDailyRecurrenceArgs']]] = None,
hourly_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleHourlyRecurrenceArgs']]] = None,
lab_name: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_settings: Optional[pulumi.Input[pulumi.InputType['ScheduleNotificationSettingsArgs']]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_type: Optional[pulumi.Input[str]] = None,
time_zone_id: Optional[pulumi.Input[str]] = None,
weekly_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleWeeklyRecurrenceArgs']]] = 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__ = ScheduleArgs.__new__(ScheduleArgs)
__props__.__dict__["daily_recurrence"] = daily_recurrence
__props__.__dict__["hourly_recurrence"] = hourly_recurrence
if lab_name is None and not opts.urn:
raise TypeError("Missing required property 'lab_name'")
__props__.__dict__["lab_name"] = lab_name
__props__.__dict__["location"] = location
__props__.__dict__["name"] = name
if notification_settings is None and not opts.urn:
raise TypeError("Missing required property 'notification_settings'")
__props__.__dict__["notification_settings"] = notification_settings
if resource_group_name is None and not opts.urn:
raise TypeError("Missing required property 'resource_group_name'")
__props__.__dict__["resource_group_name"] = resource_group_name
__props__.__dict__["status"] = status
__props__.__dict__["tags"] = tags
if task_type is None and not opts.urn:
raise TypeError("Missing required property 'task_type'")
__props__.__dict__["task_type"] = task_type
if time_zone_id is None and not opts.urn:
raise TypeError("Missing required property 'time_zone_id'")
__props__.__dict__["time_zone_id"] = time_zone_id
__props__.__dict__["weekly_recurrence"] = weekly_recurrence
super(Schedule, __self__).__init__(
'azure:devtest/schedule:Schedule',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
daily_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleDailyRecurrenceArgs']]] = None,
hourly_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleHourlyRecurrenceArgs']]] = None,
lab_name: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_settings: Optional[pulumi.Input[pulumi.InputType['ScheduleNotificationSettingsArgs']]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
task_type: Optional[pulumi.Input[str]] = None,
time_zone_id: Optional[pulumi.Input[str]] = None,
weekly_recurrence: Optional[pulumi.Input[pulumi.InputType['ScheduleWeeklyRecurrenceArgs']]] = None) -> 'Schedule':
"""
Get an existing Schedule resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] lab_name: The name of the dev test lab. Changing this forces a new resource to be created.
:param pulumi.Input[str] location: The location where the schedule is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] name: The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
:param pulumi.Input[str] status: The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
:param pulumi.Input[str] task_type: The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
:param pulumi.Input[str] time_zone_id: The time zone ID (e.g. Pacific Standard time).
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ScheduleState.__new__(_ScheduleState)
__props__.__dict__["daily_recurrence"] = daily_recurrence
__props__.__dict__["hourly_recurrence"] = hourly_recurrence
__props__.__dict__["lab_name"] = lab_name
__props__.__dict__["location"] = location
__props__.__dict__["name"] = name
__props__.__dict__["notification_settings"] = notification_settings
__props__.__dict__["resource_group_name"] = resource_group_name
__props__.__dict__["status"] = status
__props__.__dict__["tags"] = tags
__props__.__dict__["task_type"] = task_type
__props__.__dict__["time_zone_id"] = time_zone_id
__props__.__dict__["weekly_recurrence"] = weekly_recurrence
return Schedule(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="dailyRecurrence")
def daily_recurrence(self) -> pulumi.Output[Optional['outputs.ScheduleDailyRecurrence']]:
return pulumi.get(self, "daily_recurrence")
@property
@pulumi.getter(name="hourlyRecurrence")
def hourly_recurrence(self) -> pulumi.Output[Optional['outputs.ScheduleHourlyRecurrence']]:
return pulumi.get(self, "hourly_recurrence")
@property
@pulumi.getter(name="labName")
def lab_name(self) -> pulumi.Output[str]:
"""
The name of the dev test lab. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "lab_name")
@property
@pulumi.getter
def location(self) -> pulumi.Output[str]:
"""
The location where the schedule is created. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "location")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="notificationSettings")
def notification_settings(self) -> pulumi.Output['outputs.ScheduleNotificationSettings']:
return pulumi.get(self, "notification_settings")
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Output[str]:
"""
The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@property
@pulumi.getter
def status(self) -> pulumi.Output[Optional[str]]:
"""
The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
"""
return pulumi.get(self, "status")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
"""
A mapping of tags to assign to the resource.
"""
return pulumi.get(self, "tags")
@property
@pulumi.getter(name="taskType")
def task_type(self) -> pulumi.Output[str]:
"""
The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
"""
return pulumi.get(self, "task_type")
@property
@pulumi.getter(name="timeZoneId")
def time_zone_id(self) -> pulumi.Output[str]:
"""
The time zone ID (e.g. Pacific Standard time).
"""
return pulumi.get(self, "time_zone_id")
@property
@pulumi.getter(name="weeklyRecurrence")
def weekly_recurrence(self) -> pulumi.Output[Optional['outputs.ScheduleWeeklyRecurrence']]:
return pulumi.get(self, "weekly_recurrence")
| 47.229107
| 214
| 0.661348
| 3,780
| 32,777
| 5.52328
| 0.058201
| 0.082719
| 0.07108
| 0.053741
| 0.91115
| 0.900613
| 0.874126
| 0.861912
| 0.858799
| 0.835329
| 0
| 0.002994
| 0.235714
| 32,777
| 693
| 215
| 47.297258
| 0.830426
| 0.308143
| 0
| 0.769417
| 1
| 0
| 0.150458
| 0.06751
| 0
| 0
| 0
| 0
| 0
| 1
| 0.162621
| false
| 0.002427
| 0.01699
| 0.029126
| 0.276699
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2195fbd37ec78f0c6c799da7c276cff1a2fd1e6c
| 2,384
|
py
|
Python
|
coh-metrix_3/lsa_cos3.py
|
Lee-guccii/ExtensiveReading_YL_Estimation
|
89e3d4aacdc6e7d812b8cedc24f37e1f173087bc
|
[
"MIT"
] | null | null | null |
coh-metrix_3/lsa_cos3.py
|
Lee-guccii/ExtensiveReading_YL_Estimation
|
89e3d4aacdc6e7d812b8cedc24f37e1f173087bc
|
[
"MIT"
] | null | null | null |
coh-metrix_3/lsa_cos3.py
|
Lee-guccii/ExtensiveReading_YL_Estimation
|
89e3d4aacdc6e7d812b8cedc24f37e1f173087bc
|
[
"MIT"
] | null | null | null |
from numpy import *
from scipy import linalg
#lsa.pyで出てきた配列をAに代入する
A = matrix([ [0.0, 0.040156145945947554, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02998017555240157, 0.0, 0.05996035110480314, 0.02998017555240157, 0.02998017555240157, 0.02998017555240157, 0.0, 0.02998017555240157, 0.0, 0.0, 0.02998017555240157, 0.0, 0.0, 0.02998017555240157, 0.0, 0.0, 0.02998017555240157, 0.0, 0.0, 0.0, 0.0, 0.020078072972973777, 0.0, 0.0, 0.0],
[0.0, 0.029903512938471582, 0.0, 0.0, 0.0, 0.0, 0.022325662645405427, 0.022325662645405427, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.022325662645405427, 0.022325662645405427, 0.0, 0.04465132529081085, 0.022325662645405427, 0.0, 0.0, 0.022325662645405427, 0.0, 0.022325662645405427, 0.0, 0.022325662645405427, 0.0, 0.0, 0.022325662645405427, 0.022325662645405427, 0.022325662645405427],
[0.03132257147265836, 0.0, 0.03132257147265836, 0.03132257147265836, 0.03132257147265836, 0.03132257147265836, 0.0, 0.0, 0.03132257147265836, 0.0, 0.03132257147265836, 0.0, 0.0, 0.0, 0.0, 0.03132257147265836, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03132257147265836, 0.0, 0.0, 0.0, 0.03132257147265836, 0.0, 0.03132257147265836, 0.020977091165793497, 0.0, 0.0, 0.0]])
A = matrix([ [0.0, 0.0, 0.052465307216702756, 0.0, 0.05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.052465307216702756, 0.0, 0.052465307216702756, 0.0, 0.052465307216702756, 0.052465307216702756, 0.0, 0.0, 0.0, 0.0, 0.052465307216702756, 0.052465307216702756, 0.0, 0.0, 0.0, 0.052465307216702756, 0.0],
[0.03279081701043922, 0.03279081701043922, 0.0, 0.0, 0.109375, 0.03279081701043922, 0.03279081701043922, 0.0, 0.03279081701043922, 0.0, 0.03279081701043922, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03279081701043922, 0.03279081701043922, 0.03279081701043922, 0.0, 0.0, 0.02196039231419007, 0.03279081701043922, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.04663582863706911, 0.06666666666666667, 0.0, 0.0, 0.04663582863706911, 0.0, 0.04663582863706911, 0.0, 0.0, 0.04663582863706911, 0.0, 0.04663582863706911, 0.0, 0.0, 0.04663582863706911, 0.0, 0.0, 0.0, 0.0, 0.0, 0.06246511591591842, 0.0, 0.04663582863706911, 0.0, 0.04663582863706911]])
u, sigma, v = linalg.svd(A) # 特異値分解
rank = shape(A)[0] # 階数
u = matrix(u)
s = matrix(linalg.diagsvd(sigma, rank, rank))
v = matrix(v[:rank, :])
#print (u*s*v)
z = 2
u3 = u[:, :z]
s3 = matrix(linalg.diagsvd(sigma[:z], z, z))
v3 = v[:z, :]
print (sum(sigma[:z])/sum(sigma))
| 88.296296
| 391
| 0.699245
| 437
| 2,384
| 3.814645
| 0.100687
| 0.284343
| 0.343731
| 0.34793
| 0.773845
| 0.720456
| 0.716857
| 0.629874
| 0.605879
| 0.45051
| 0
| 0.677918
| 0.105285
| 2,384
| 26
| 392
| 91.692308
| 0.10361
| 0.017617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 0.055556
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
21a11cec17006998db2cd69cfb41b493e49eb088
| 203
|
py
|
Python
|
savageml/models/__init__.py
|
savagewil/SavageML
|
d5aa9a5305b5de088e3bf32778252c877faec41d
|
[
"MIT"
] | null | null | null |
savageml/models/__init__.py
|
savagewil/SavageML
|
d5aa9a5305b5de088e3bf32778252c877faec41d
|
[
"MIT"
] | null | null | null |
savageml/models/__init__.py
|
savagewil/SavageML
|
d5aa9a5305b5de088e3bf32778252c877faec41d
|
[
"MIT"
] | null | null | null |
from .base_model import BaseModel
from .matix_net_model import MatrixNetModel
from .layerless_dense_net_model import LayerlessDenseNetModel
from .layerless_sparse_net_model import LayerlessSparseNetModel
| 50.75
| 63
| 0.906404
| 25
| 203
| 7
| 0.52
| 0.251429
| 0.24
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073892
| 203
| 4
| 63
| 50.75
| 0.930851
| 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
|
21f281f83ae8638074a29bcdd23a8c16debf1ad5
| 175
|
py
|
Python
|
qutip/quantum_info/__init__.py
|
trxw/qutip
|
b923c973edd9a071d86eb849650661549f73585f
|
[
"BSD-3-Clause"
] | 1
|
2015-11-06T06:35:06.000Z
|
2015-11-06T06:35:06.000Z
|
qutip/quantum_info/__init__.py
|
trxw/qutip
|
b923c973edd9a071d86eb849650661549f73585f
|
[
"BSD-3-Clause"
] | null | null | null |
qutip/quantum_info/__init__.py
|
trxw/qutip
|
b923c973edd9a071d86eb849650661549f73585f
|
[
"BSD-3-Clause"
] | null | null | null |
from qutip.quantum_info.register import Register
from qutip.quantum_info.circuit import Circuit
from qutip.quantum_info.states import *
from qutip.quantum_info.gates import *
| 35
| 48
| 0.851429
| 26
| 175
| 5.576923
| 0.346154
| 0.248276
| 0.441379
| 0.551724
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091429
| 175
| 4
| 49
| 43.75
| 0.91195
| 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
|
21fb5f77cdb7e3926bc65f97979729bea5a142c3
| 42,526
|
py
|
Python
|
tests/github-triggers.py
|
fossabot/kraken-3
|
7ac472de8ff6f44aac4dbd231f896f00e6f3b278
|
[
"Apache-2.0"
] | 66
|
2020-08-14T12:52:39.000Z
|
2022-03-31T13:56:25.000Z
|
tests/github-triggers.py
|
kinsanras/kraken
|
3938ee4e65ba8f67ec5ee0e912b43fad84548f2c
|
[
"Apache-2.0"
] | 110
|
2020-07-23T07:12:09.000Z
|
2022-03-26T05:54:18.000Z
|
tests/github-triggers.py
|
kinsanras/kraken
|
3938ee4e65ba8f67ec5ee0e912b43fad84548f2c
|
[
"Apache-2.0"
] | 4
|
2021-03-10T05:25:03.000Z
|
2022-01-24T10:12:33.000Z
|
#!/usr/bin/env python3
import json
import urllib.request
def do_push():
payload = {
"ref": "refs/heads/master",
"before": "c172e165cd0982046b3578afe2b01efa901f5b4f",
"after": "6ce92756d435d9a73171ea935572b71b82d0c141",
"repository": {
"id": 280832057,
"node_id": "MDEwOlJlcG9zaXRvcnkyODA4MzIwNTc=",
"name": "kraken",
"full_name": "Kraken-CI/kraken",
"private": False,
"owner": {
"name": "Kraken-CI",
"email": None,
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kraken-CI",
"html_url": "https://github.com/Kraken-CI",
"followers_url": "https://api.github.com/users/Kraken-CI/followers",
"following_url": "https://api.github.com/users/Kraken-CI/following{/other_user}",
"gists_url": "https://api.github.com/users/Kraken-CI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kraken-CI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kraken-CI/subscriptions",
"organizations_url": "https://api.github.com/users/Kraken-CI/orgs",
"repos_url": "https://api.github.com/users/Kraken-CI/repos",
"events_url": "https://api.github.com/users/Kraken-CI/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kraken-CI/received_events",
"type": "Organization",
"site_admin": False
},
"html_url": "https://github.com/Kraken-CI/kraken",
"description": "Kraken CI is a continuous integration and testing system.",
"fork": False,
"url": "https://github.com/Kraken-CI/kraken",
"forks_url": "https://api.github.com/repos/Kraken-CI/kraken/forks",
"keys_url": "https://api.github.com/repos/Kraken-CI/kraken/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Kraken-CI/kraken/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Kraken-CI/kraken/teams",
"hooks_url": "https://api.github.com/repos/Kraken-CI/kraken/hooks",
"issue_events_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/events{/number}",
"events_url": "https://api.github.com/repos/Kraken-CI/kraken/events",
"assignees_url": "https://api.github.com/repos/Kraken-CI/kraken/assignees{/user}",
"branches_url": "https://api.github.com/repos/Kraken-CI/kraken/branches{/branch}",
"tags_url": "https://api.github.com/repos/Kraken-CI/kraken/tags",
"blobs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Kraken-CI/kraken/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Kraken-CI/kraken/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Kraken-CI/kraken/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Kraken-CI/kraken/languages",
"stargazers_url": "https://api.github.com/repos/Kraken-CI/kraken/stargazers",
"contributors_url": "https://api.github.com/repos/Kraken-CI/kraken/contributors",
"subscribers_url": "https://api.github.com/repos/Kraken-CI/kraken/subscribers",
"subscription_url": "https://api.github.com/repos/Kraken-CI/kraken/subscription",
"commits_url": "https://api.github.com/repos/Kraken-CI/kraken/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Kraken-CI/kraken/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Kraken-CI/kraken/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Kraken-CI/kraken/contents/{+path}",
"compare_url": "https://api.github.com/repos/Kraken-CI/kraken/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Kraken-CI/kraken/merges",
"archive_url": "https://api.github.com/repos/Kraken-CI/kraken/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Kraken-CI/kraken/downloads",
"issues_url": "https://api.github.com/repos/Kraken-CI/kraken/issues{/number}",
"pulls_url": "https://api.github.com/repos/Kraken-CI/kraken/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Kraken-CI/kraken/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Kraken-CI/kraken/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Kraken-CI/kraken/labels{/name}",
"releases_url": "https://api.github.com/repos/Kraken-CI/kraken/releases{/id}",
"deployments_url": "https://api.github.com/repos/Kraken-CI/kraken/deployments",
"created_at": 1595150557,
"updated_at": "2020-12-11T05:56:50Z",
"pushed_at": 1607691099,
"git_url": "git://github.com/Kraken-CI/kraken.git",
"ssh_url": "git@github.com:Kraken-CI/kraken.git",
"clone_url": "https://github.com/Kraken-CI/kraken.git",
"svn_url": "https://github.com/Kraken-CI/kraken",
"homepage": "https://kraken.ci/",
"size": 1189,
"stargazers_count": 3,
"watchers_count": 3,
"language": "Python",
"has_issues": True,
"has_projects": True,
"has_downloads": True,
"has_wiki": True,
"has_pages": False,
"forks_count": 0,
"mirror_url": None,
"archived": False,
"disabled": False,
"open_issues_count": 32,
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0",
"node_id": "MDc6TGljZW5zZTI="
},
"forks": 0,
"open_issues": 32,
"watchers": 3,
"default_branch": "master",
"stargazers": 3,
"master_branch": "master",
"organization": "Kraken-CI"
},
"pusher": {
"name": "godfryd",
"email": "godfryd@gmail.com"
},
"organization": {
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"url": "https://api.github.com/orgs/Kraken-CI",
"repos_url": "https://api.github.com/orgs/Kraken-CI/repos",
"events_url": "https://api.github.com/orgs/Kraken-CI/events",
"hooks_url": "https://api.github.com/orgs/Kraken-CI/hooks",
"issues_url": "https://api.github.com/orgs/Kraken-CI/issues",
"members_url": "https://api.github.com/orgs/Kraken-CI/members{/member}",
"public_members_url": "https://api.github.com/orgs/Kraken-CI/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"description": None
},
"sender": {
"login": "godfryd",
"id": 176567,
"node_id": "MDQ6VXNlcjE3NjU2Nw==",
"avatar_url": "https://avatars1.githubusercontent.com/u/176567?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/godfryd",
"html_url": "https://github.com/godfryd",
"followers_url": "https://api.github.com/users/godfryd/followers",
"following_url": "https://api.github.com/users/godfryd/following{/other_user}",
"gists_url": "https://api.github.com/users/godfryd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/godfryd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/godfryd/subscriptions",
"organizations_url": "https://api.github.com/users/godfryd/orgs",
"repos_url": "https://api.github.com/users/godfryd/repos",
"events_url": "https://api.github.com/users/godfryd/events{/privacy}",
"received_events_url": "https://api.github.com/users/godfryd/received_events",
"type": "User",
"site_admin": False
},
"created": False,
"deleted": False,
"forced": False,
"base_ref": None,
"compare": "https://github.com/Kraken-CI/kraken/compare/c172e165cd09...6ce92756d435",
"commits": [
{
"id": "4b264a8beb10d8086c4c8540b614e633d9957d75",
"tree_id": "74ba51832f9e203bbaf19292ac8479f4db9e5222",
"distinct": True,
"message": "added line numbering in job log on run-results page",
"timestamp": "2020-12-11T13:51:37+01:00",
"url": "https://github.com/Kraken-CI/kraken/commit/4b264a8beb10d8086c4c8540b614e633d9957d75",
"author": {
"name": "Michal Nowikowski",
"email": "godfryd@gmail.com",
"username": "godfryd"
},
"committer": {
"name": "Michal Nowikowski",
"email": "godfryd@gmail.com",
"username": "godfryd"
},
"added": [
],
"removed": [
],
"modified": [
"ui/src/app/log-box/log-box.component.html",
"ui/src/app/log-box/log-box.component.ts"
]
},
{
"id": "6ce92756d435d9a73171ea935572b71b82d0c141",
"tree_id": "c76a9f82e471d7234868ff62105cbdec4a6894c5",
"distinct": True,
"message": "added paging logs backward and forward",
"timestamp": "2020-12-11T13:51:37+01:00",
"url": "https://github.com/Kraken-CI/kraken/commit/6ce92756d435d9a73171ea935572b71b82d0c141",
"author": {
"name": "Michal Nowikowski",
"email": "godfryd@gmail.com",
"username": "godfryd"
},
"committer": {
"name": "Michal Nowikowski",
"email": "godfryd@gmail.com",
"username": "godfryd"
},
"added": [
],
"removed": [
],
"modified": [
"server/kraken/server/execution.py",
"ui/src/app/log-box/log-box.component.html",
"ui/src/app/log-box/log-box.component.ts"
]
}
],
"head_commit": {
"id": "6ce92756d435d9a73171ea935572b71b82d0c141",
"tree_id": "c76a9f82e471d7234868ff62105cbdec4a6894c5",
"distinct": True,
"message": "added paging logs backward and forward",
"timestamp": "2020-12-11T13:51:37+01:00",
"url": "https://github.com/Kraken-CI/kraken/commit/6ce92756d435d9a73171ea935572b71b82d0c141",
"author": {
"name": "Michal Nowikowski",
"email": "godfryd@gmail.com",
"username": "godfryd"
},
"committer": {
"name": "Michal Nowikowski",
"email": "godfryd@gmail.com",
"username": "godfryd"
},
"added": [
],
"removed": [
],
"modified": [
"server/kraken/server/execution.py",
"ui/src/app/log-box/log-box.component.html",
"ui/src/app/log-box/log-box.component.ts"
]
}
}
data = json.dumps(payload)
req = urllib.request.Request("http://localhost:8080/webhooks/2/github", data.encode('utf-8'))
req.add_header('X-GitHub-Event', 'push')
req.add_header('X-Hub-Signature', 'sha1=a8074cb2a006aefd9363396c0391b068b0e5f320')
with urllib.request.urlopen(req) as f:
print(f.read())
def do_pull_request():
payload = {
"action": "synchronize",
"number": 59,
"pull_request": {
"url": "https://api.github.com/repos/Kraken-CI/kraken/pulls/59",
"id": 535420203,
"node_id": "MDExOlB1bGxSZXF1ZXN0NTM1NDIwMjAz",
"html_url": "https://github.com/Kraken-CI/kraken/pull/59",
"diff_url": "https://github.com/Kraken-CI/kraken/pull/59.diff",
"patch_url": "https://github.com/Kraken-CI/kraken/pull/59.patch",
"issue_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/59",
"number": 59,
"state": "open",
"locked": False,
"title": "[#42] initial commit to branch",
"user": {
"login": "godfryd",
"id": 176567,
"node_id": "MDQ6VXNlcjE3NjU2Nw==",
"avatar_url": "https://avatars1.githubusercontent.com/u/176567?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/godfryd",
"html_url": "https://github.com/godfryd",
"followers_url": "https://api.github.com/users/godfryd/followers",
"following_url": "https://api.github.com/users/godfryd/following{/other_user}",
"gists_url": "https://api.github.com/users/godfryd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/godfryd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/godfryd/subscriptions",
"organizations_url": "https://api.github.com/users/godfryd/orgs",
"repos_url": "https://api.github.com/users/godfryd/repos",
"events_url": "https://api.github.com/users/godfryd/events{/privacy}",
"received_events_url": "https://api.github.com/users/godfryd/received_events",
"type": "User",
"site_admin": False
},
"body": "",
"created_at": "2020-12-09T19:42:17Z",
"updated_at": "2020-12-09T19:47:00Z",
"closed_at": None,
"merged_at": None,
"merge_commit_sha": "fd1399eb61bbf4629f4d251504f0db1d3bc5619a",
"assignee": None,
"assignees": [
],
"requested_reviewers": [
],
"requested_teams": [
],
"labels": [
],
"milestone": None,
"draft": False,
"commits_url": "https://api.github.com/repos/Kraken-CI/kraken/pulls/59/commits",
"review_comments_url": "https://api.github.com/repos/Kraken-CI/kraken/pulls/59/comments",
"review_comment_url": "https://api.github.com/repos/Kraken-CI/kraken/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/59/comments",
"statuses_url": "https://api.github.com/repos/Kraken-CI/kraken/statuses/fae03cba55c93f6da39ad66401ee1241d54b2c6c",
"head": {
"label": "Kraken-CI:gh-pr-support",
"ref": "gh-pr-support",
"sha": "fae03cba55c93f6da39ad66401ee1241d54b2c6c",
"user": {
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kraken-CI",
"html_url": "https://github.com/Kraken-CI",
"followers_url": "https://api.github.com/users/Kraken-CI/followers",
"following_url": "https://api.github.com/users/Kraken-CI/following{/other_user}",
"gists_url": "https://api.github.com/users/Kraken-CI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kraken-CI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kraken-CI/subscriptions",
"organizations_url": "https://api.github.com/users/Kraken-CI/orgs",
"repos_url": "https://api.github.com/users/Kraken-CI/repos",
"events_url": "https://api.github.com/users/Kraken-CI/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kraken-CI/received_events",
"type": "Organization",
"site_admin": False
},
"repo": {
"id": 280832057,
"node_id": "MDEwOlJlcG9zaXRvcnkyODA4MzIwNTc=",
"name": "kraken",
"full_name": "Kraken-CI/kraken",
"private": False,
"owner": {
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kraken-CI",
"html_url": "https://github.com/Kraken-CI",
"followers_url": "https://api.github.com/users/Kraken-CI/followers",
"following_url": "https://api.github.com/users/Kraken-CI/following{/other_user}",
"gists_url": "https://api.github.com/users/Kraken-CI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kraken-CI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kraken-CI/subscriptions",
"organizations_url": "https://api.github.com/users/Kraken-CI/orgs",
"repos_url": "https://api.github.com/users/Kraken-CI/repos",
"events_url": "https://api.github.com/users/Kraken-CI/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kraken-CI/received_events",
"type": "Organization",
"site_admin": False
},
"html_url": "https://github.com/Kraken-CI/kraken",
"description": "Kraken CI is a continuous integration and testing system.",
"fork": False,
"url": "https://api.github.com/repos/Kraken-CI/kraken",
"forks_url": "https://api.github.com/repos/Kraken-CI/kraken/forks",
"keys_url": "https://api.github.com/repos/Kraken-CI/kraken/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Kraken-CI/kraken/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Kraken-CI/kraken/teams",
"hooks_url": "https://api.github.com/repos/Kraken-CI/kraken/hooks",
"issue_events_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/events{/number}",
"events_url": "https://api.github.com/repos/Kraken-CI/kraken/events",
"assignees_url": "https://api.github.com/repos/Kraken-CI/kraken/assignees{/user}",
"branches_url": "https://api.github.com/repos/Kraken-CI/kraken/branches{/branch}",
"tags_url": "https://api.github.com/repos/Kraken-CI/kraken/tags",
"blobs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Kraken-CI/kraken/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Kraken-CI/kraken/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Kraken-CI/kraken/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Kraken-CI/kraken/languages",
"stargazers_url": "https://api.github.com/repos/Kraken-CI/kraken/stargazers",
"contributors_url": "https://api.github.com/repos/Kraken-CI/kraken/contributors",
"subscribers_url": "https://api.github.com/repos/Kraken-CI/kraken/subscribers",
"subscription_url": "https://api.github.com/repos/Kraken-CI/kraken/subscription",
"commits_url": "https://api.github.com/repos/Kraken-CI/kraken/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Kraken-CI/kraken/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Kraken-CI/kraken/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Kraken-CI/kraken/contents/{+path}",
"compare_url": "https://api.github.com/repos/Kraken-CI/kraken/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Kraken-CI/kraken/merges",
"archive_url": "https://api.github.com/repos/Kraken-CI/kraken/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Kraken-CI/kraken/downloads",
"issues_url": "https://api.github.com/repos/Kraken-CI/kraken/issues{/number}",
"pulls_url": "https://api.github.com/repos/Kraken-CI/kraken/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Kraken-CI/kraken/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Kraken-CI/kraken/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Kraken-CI/kraken/labels{/name}",
"releases_url": "https://api.github.com/repos/Kraken-CI/kraken/releases{/id}",
"deployments_url": "https://api.github.com/repos/Kraken-CI/kraken/deployments",
"created_at": "2020-07-19T09:22:37Z",
"updated_at": "2020-12-09T18:54:32Z",
"pushed_at": "2020-12-09T19:47:00Z",
"git_url": "git://github.com/Kraken-CI/kraken.git",
"ssh_url": "git@github.com:Kraken-CI/kraken.git",
"clone_url": "https://github.com/Kraken-CI/kraken.git",
"svn_url": "https://github.com/Kraken-CI/kraken",
"homepage": "https://kraken.ci/",
"size": 1134,
"stargazers_count": 3,
"watchers_count": 3,
"language": "Python",
"has_issues": True,
"has_projects": True,
"has_downloads": True,
"has_wiki": True,
"has_pages": False,
"forks_count": 0,
"mirror_url": None,
"archived": False,
"disabled": False,
"open_issues_count": 30,
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0",
"node_id": "MDc6TGljZW5zZTI="
},
"forks": 0,
"open_issues": 30,
"watchers": 3,
"default_branch": "master",
"allow_squash_merge": True,
"allow_merge_commit": False,
"allow_rebase_merge": True,
"delete_branch_on_merge": False
}
},
"base": {
"label": "Kraken-CI:master",
"ref": "master",
"sha": "c5b2254bea37f512b62e0914cd1a9e8e9aa7dfcc",
"user": {
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kraken-CI",
"html_url": "https://github.com/Kraken-CI",
"followers_url": "https://api.github.com/users/Kraken-CI/followers",
"following_url": "https://api.github.com/users/Kraken-CI/following{/other_user}",
"gists_url": "https://api.github.com/users/Kraken-CI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kraken-CI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kraken-CI/subscriptions",
"organizations_url": "https://api.github.com/users/Kraken-CI/orgs",
"repos_url": "https://api.github.com/users/Kraken-CI/repos",
"events_url": "https://api.github.com/users/Kraken-CI/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kraken-CI/received_events",
"type": "Organization",
"site_admin": False
},
"repo": {
"id": 280832057,
"node_id": "MDEwOlJlcG9zaXRvcnkyODA4MzIwNTc=",
"name": "kraken",
"full_name": "Kraken-CI/kraken",
"private": False,
"owner": {
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kraken-CI",
"html_url": "https://github.com/Kraken-CI",
"followers_url": "https://api.github.com/users/Kraken-CI/followers",
"following_url": "https://api.github.com/users/Kraken-CI/following{/other_user}",
"gists_url": "https://api.github.com/users/Kraken-CI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kraken-CI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kraken-CI/subscriptions",
"organizations_url": "https://api.github.com/users/Kraken-CI/orgs",
"repos_url": "https://api.github.com/users/Kraken-CI/repos",
"events_url": "https://api.github.com/users/Kraken-CI/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kraken-CI/received_events",
"type": "Organization",
"site_admin": False
},
"html_url": "https://github.com/Kraken-CI/kraken",
"description": "Kraken CI is a continuous integration and testing system.",
"fork": False,
"url": "https://api.github.com/repos/Kraken-CI/kraken",
"forks_url": "https://api.github.com/repos/Kraken-CI/kraken/forks",
"keys_url": "https://api.github.com/repos/Kraken-CI/kraken/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Kraken-CI/kraken/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Kraken-CI/kraken/teams",
"hooks_url": "https://api.github.com/repos/Kraken-CI/kraken/hooks",
"issue_events_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/events{/number}",
"events_url": "https://api.github.com/repos/Kraken-CI/kraken/events",
"assignees_url": "https://api.github.com/repos/Kraken-CI/kraken/assignees{/user}",
"branches_url": "https://api.github.com/repos/Kraken-CI/kraken/branches{/branch}",
"tags_url": "https://api.github.com/repos/Kraken-CI/kraken/tags",
"blobs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Kraken-CI/kraken/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Kraken-CI/kraken/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Kraken-CI/kraken/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Kraken-CI/kraken/languages",
"stargazers_url": "https://api.github.com/repos/Kraken-CI/kraken/stargazers",
"contributors_url": "https://api.github.com/repos/Kraken-CI/kraken/contributors",
"subscribers_url": "https://api.github.com/repos/Kraken-CI/kraken/subscribers",
"subscription_url": "https://api.github.com/repos/Kraken-CI/kraken/subscription",
"commits_url": "https://api.github.com/repos/Kraken-CI/kraken/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Kraken-CI/kraken/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Kraken-CI/kraken/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Kraken-CI/kraken/contents/{+path}",
"compare_url": "https://api.github.com/repos/Kraken-CI/kraken/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Kraken-CI/kraken/merges",
"archive_url": "https://api.github.com/repos/Kraken-CI/kraken/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Kraken-CI/kraken/downloads",
"issues_url": "https://api.github.com/repos/Kraken-CI/kraken/issues{/number}",
"pulls_url": "https://api.github.com/repos/Kraken-CI/kraken/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Kraken-CI/kraken/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Kraken-CI/kraken/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Kraken-CI/kraken/labels{/name}",
"releases_url": "https://api.github.com/repos/Kraken-CI/kraken/releases{/id}",
"deployments_url": "https://api.github.com/repos/Kraken-CI/kraken/deployments",
"created_at": "2020-07-19T09:22:37Z",
"updated_at": "2020-12-09T18:54:32Z",
"pushed_at": "2020-12-09T19:47:00Z",
"git_url": "git://github.com/Kraken-CI/kraken.git",
"ssh_url": "git@github.com:Kraken-CI/kraken.git",
"clone_url": "https://github.com/Kraken-CI/kraken.git",
"svn_url": "https://github.com/Kraken-CI/kraken",
"homepage": "https://kraken.ci/",
"size": 1134,
"stargazers_count": 3,
"watchers_count": 3,
"language": "Python",
"has_issues": True,
"has_projects": True,
"has_downloads": True,
"has_wiki": True,
"has_pages": False,
"forks_count": 0,
"mirror_url": None,
"archived": False,
"disabled": False,
"open_issues_count": 30,
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0",
"node_id": "MDc6TGljZW5zZTI="
},
"forks": 0,
"open_issues": 30,
"watchers": 3,
"default_branch": "master",
"allow_squash_merge": True,
"allow_merge_commit": False,
"allow_rebase_merge": True,
"delete_branch_on_merge": False
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/Kraken-CI/kraken/pulls/59"
},
"html": {
"href": "https://github.com/Kraken-CI/kraken/pull/59"
},
"issue": {
"href": "https://api.github.com/repos/Kraken-CI/kraken/issues/59"
},
"comments": {
"href": "https://api.github.com/repos/Kraken-CI/kraken/issues/59/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/Kraken-CI/kraken/pulls/59/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/Kraken-CI/kraken/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/Kraken-CI/kraken/pulls/59/commits"
},
"statuses": {
"href": "https://api.github.com/repos/Kraken-CI/kraken/statuses/fae03cba55c93f6da39ad66401ee1241d54b2c6c"
}
},
"author_association": "CONTRIBUTOR",
"active_lock_reason": None,
"merged": False,
"mergeable": None,
"rebaseable": None,
"mergeable_state": "unknown",
"merged_by": None,
"comments": 0,
"review_comments": 0,
"maintainer_can_modify": False,
"commits": 3,
"additions": 1,
"deletions": 0,
"changed_files": 1
},
"before": "a71b2d6bcb5be8a96bbdecd09438385080f18a1c",
"after": "fae03cba55c93f6da39ad66401ee1241d54b2c6c",
"repository": {
"id": 280832057,
"node_id": "MDEwOlJlcG9zaXRvcnkyODA4MzIwNTc=",
"name": "kraken",
"full_name": "Kraken-CI/kraken",
"private": False,
"owner": {
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kraken-CI",
"html_url": "https://github.com/Kraken-CI",
"followers_url": "https://api.github.com/users/Kraken-CI/followers",
"following_url": "https://api.github.com/users/Kraken-CI/following{/other_user}",
"gists_url": "https://api.github.com/users/Kraken-CI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kraken-CI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kraken-CI/subscriptions",
"organizations_url": "https://api.github.com/users/Kraken-CI/orgs",
"repos_url": "https://api.github.com/users/Kraken-CI/repos",
"events_url": "https://api.github.com/users/Kraken-CI/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kraken-CI/received_events",
"type": "Organization",
"site_admin": False
},
"html_url": "https://github.com/Kraken-CI/kraken",
"description": "Kraken CI is a continuous integration and testing system.",
"fork": False,
"url": "https://api.github.com/repos/Kraken-CI/kraken",
"forks_url": "https://api.github.com/repos/Kraken-CI/kraken/forks",
"keys_url": "https://api.github.com/repos/Kraken-CI/kraken/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Kraken-CI/kraken/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Kraken-CI/kraken/teams",
"hooks_url": "https://api.github.com/repos/Kraken-CI/kraken/hooks",
"issue_events_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/events{/number}",
"events_url": "https://api.github.com/repos/Kraken-CI/kraken/events",
"assignees_url": "https://api.github.com/repos/Kraken-CI/kraken/assignees{/user}",
"branches_url": "https://api.github.com/repos/Kraken-CI/kraken/branches{/branch}",
"tags_url": "https://api.github.com/repos/Kraken-CI/kraken/tags",
"blobs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Kraken-CI/kraken/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Kraken-CI/kraken/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Kraken-CI/kraken/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Kraken-CI/kraken/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Kraken-CI/kraken/languages",
"stargazers_url": "https://api.github.com/repos/Kraken-CI/kraken/stargazers",
"contributors_url": "https://api.github.com/repos/Kraken-CI/kraken/contributors",
"subscribers_url": "https://api.github.com/repos/Kraken-CI/kraken/subscribers",
"subscription_url": "https://api.github.com/repos/Kraken-CI/kraken/subscription",
"commits_url": "https://api.github.com/repos/Kraken-CI/kraken/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Kraken-CI/kraken/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Kraken-CI/kraken/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Kraken-CI/kraken/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Kraken-CI/kraken/contents/{+path}",
"compare_url": "https://api.github.com/repos/Kraken-CI/kraken/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Kraken-CI/kraken/merges",
"archive_url": "https://api.github.com/repos/Kraken-CI/kraken/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Kraken-CI/kraken/downloads",
"issues_url": "https://api.github.com/repos/Kraken-CI/kraken/issues{/number}",
"pulls_url": "https://api.github.com/repos/Kraken-CI/kraken/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Kraken-CI/kraken/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Kraken-CI/kraken/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Kraken-CI/kraken/labels{/name}",
"releases_url": "https://api.github.com/repos/Kraken-CI/kraken/releases{/id}",
"deployments_url": "https://api.github.com/repos/Kraken-CI/kraken/deployments",
"created_at": "2020-07-19T09:22:37Z",
"updated_at": "2020-12-09T18:54:32Z",
"pushed_at": "2020-12-09T19:47:00Z",
"git_url": "git://github.com/Kraken-CI/kraken.git",
"ssh_url": "git@github.com:Kraken-CI/kraken.git",
"clone_url": "https://github.com/Kraken-CI/kraken.git",
"svn_url": "https://github.com/Kraken-CI/kraken",
"homepage": "https://kraken.ci/",
"size": 1134,
"stargazers_count": 3,
"watchers_count": 3,
"language": "Python",
"has_issues": True,
"has_projects": True,
"has_downloads": True,
"has_wiki": True,
"has_pages": False,
"forks_count": 0,
"mirror_url": None,
"archived": False,
"disabled": False,
"open_issues_count": 30,
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0",
"node_id": "MDc6TGljZW5zZTI="
},
"forks": 0,
"open_issues": 30,
"watchers": 3,
"default_branch": "master"
},
"organization": {
"login": "Kraken-CI",
"id": 68497961,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NDk3OTYx",
"url": "https://api.github.com/orgs/Kraken-CI",
"repos_url": "https://api.github.com/orgs/Kraken-CI/repos",
"events_url": "https://api.github.com/orgs/Kraken-CI/events",
"hooks_url": "https://api.github.com/orgs/Kraken-CI/hooks",
"issues_url": "https://api.github.com/orgs/Kraken-CI/issues",
"members_url": "https://api.github.com/orgs/Kraken-CI/members{/member}",
"public_members_url": "https://api.github.com/orgs/Kraken-CI/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/68497961?v=4",
"description": None
},
"sender": {
"login": "godfryd",
"id": 176567,
"node_id": "MDQ6VXNlcjE3NjU2Nw==",
"avatar_url": "https://avatars1.githubusercontent.com/u/176567?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/godfryd",
"html_url": "https://github.com/godfryd",
"followers_url": "https://api.github.com/users/godfryd/followers",
"following_url": "https://api.github.com/users/godfryd/following{/other_user}",
"gists_url": "https://api.github.com/users/godfryd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/godfryd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/godfryd/subscriptions",
"organizations_url": "https://api.github.com/users/godfryd/orgs",
"repos_url": "https://api.github.com/users/godfryd/repos",
"events_url": "https://api.github.com/users/godfryd/events{/privacy}",
"received_events_url": "https://api.github.com/users/godfryd/received_events",
"type": "User",
"site_admin": False
}
}
data = json.dumps(payload)
req = urllib.request.Request("http://localhost:8080/webhooks/2/github", data.encode('utf-8'))
# Request URL: http://lab.kraken.ci:
# Request method: POST
# Accept: */*
# content-type: application/json
# User-Agent: GitHub-Hookshot/a9cf1f2
# X-GitHub-Delivery: 4e010eb0-3a57-11eb-83b5-8eaf736bdba8
req.add_header('X-GitHub-Event', 'pull_request')
# X-GitHub-Hook-ID: 243263944
# X-GitHub-Hook-Installation-Target-ID: 280832057
# X-GitHub-Hook-Installation-Target-Type: repository
req.add_header('X-Hub-Signature', 'sha1=c7bb693914eba83116d10e1c158660ce577ba729')
# X-Hub-Signature-256: sha256=d688709b3cc5766144d0949baf0e5c13338bfb7216b02d1d89ffc3c246e4e073
with urllib.request.urlopen(req) as f:
print(f.read())
def main():
#do_pull_request()
do_push()
if __name__ == '__main__':
main()
| 53.967005
| 126
| 0.568852
| 4,691
| 42,526
| 5.043914
| 0.072266
| 0.116774
| 0.159165
| 0.193272
| 0.918516
| 0.914881
| 0.910908
| 0.908077
| 0.906471
| 0.904738
| 0
| 0.040709
| 0.254268
| 42,526
| 787
| 127
| 54.035578
| 0.705389
| 0.010558
| 0
| 0.784759
| 0
| 0.058824
| 0.633971
| 0.042387
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004011
| false
| 0
| 0.002674
| 0
| 0.006684
| 0.002674
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
df23a8a0f8f41fe5e1b7ecc7609a47a2d61a6bdf
| 50,847
|
py
|
Python
|
src/business/migrations/0001_initial.py
|
559Labs/printaura-api-sync
|
d126d750b1f2915987c0b3b10b5ff395516c371d
|
[
"Apache-2.0"
] | 7
|
2016-12-16T12:02:56.000Z
|
2021-03-14T03:13:20.000Z
|
src/business/migrations/0001_initial.py
|
559Labs/printaura-api-sync
|
d126d750b1f2915987c0b3b10b5ff395516c371d
|
[
"Apache-2.0"
] | 95
|
2016-12-07T19:13:51.000Z
|
2017-03-10T16:16:16.000Z
|
src/business/migrations/0001_initial.py
|
559Labs/printaura-api-sync
|
d126d750b1f2915987c0b3b10b5ff395516c371d
|
[
"Apache-2.0"
] | 3
|
2021-02-19T10:16:01.000Z
|
2021-03-14T03:13:21.000Z
|
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-08 23:38
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
import django.db.models.deletion
import timezone_field.fields
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='bzBrand',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(max_length=2, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
],
options={
'ordering': ('code',),
'verbose_name': 'Brand',
'verbose_name_plural': 'Brands',
},
),
migrations.CreateModel(
name='bzCreativeCollection',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(max_length=3, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('bzbrand', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.bzBrand', verbose_name='Brand')),
],
options={
'ordering': ('code',),
'verbose_name': 'Creative Collection',
'verbose_name_plural': 'Creative Collections',
},
),
migrations.CreateModel(
name='bzCreativeDesign',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(max_length=2, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('bzcreativecollection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.bzCreativeCollection', verbose_name='Collection')),
],
options={
'ordering': ('bzcreativecollection__code', 'code'),
'verbose_name': 'Creative Design',
'verbose_name_plural': 'Creative Designs',
},
),
migrations.CreateModel(
name='bzCreativeLayout',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(max_length=2, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('bzcreativecollection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.bzCreativeCollection', verbose_name='Collection')),
],
options={
'ordering': ('bzcreativecollection__code', 'code'),
'verbose_name': 'Creative Layout',
'verbose_name_plural': 'Creative Layouts',
},
),
migrations.CreateModel(
name='bzCreativeRendering',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('bzcreativedesign', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.bzCreativeDesign', verbose_name='Design')),
('bzcreativelayout', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.bzCreativeLayout', verbose_name='Layout')),
],
options={
'ordering': ('bzcreativedesign__code', 'bzcreativelayout__code'),
'verbose_name': 'Creative Rendering',
'verbose_name_plural': 'Creative Renderings',
},
),
migrations.CreateModel(
name='bzProduct',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('status', models.CharField(choices=[('draft', 'Draft'), ('public', 'Public')], default='draft', max_length=32, verbose_name='Status')),
('bzDesign', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.bzCreativeDesign', verbose_name='Design')),
('bzLayout', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.bzCreativeLayout', verbose_name='Layout')),
],
options={
'ordering': ('code',),
'verbose_name': 'Product',
'verbose_name_plural': 'Products',
},
),
migrations.CreateModel(
name='bzProductVariant',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='Code')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active')),
('price', models.DecimalField(decimal_places=2, default=Decimal('0'), max_digits=5, verbose_name='Price')),
('bzproduct', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.bzProduct', verbose_name='Product')),
],
options={
'ordering': ('bzproduct', 'pfsize', 'pfcolor'),
'verbose_name': 'Variant',
'verbose_name_plural': 'Variants',
},
),
migrations.CreateModel(
name='pfAddress',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('company', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Company')),
('address1', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Address 1')),
('address2', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Address 2')),
('city', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='City')),
('zip', models.CharField(blank=True, default='', max_length=24, null=True, verbose_name='Postal Code')),
('phone', models.CharField(blank=True, default='', max_length=24, null=True, verbose_name='Phone')),
('email', models.EmailField(blank=True, default='', max_length=254, null=True, verbose_name='Email')),
],
options={
'ordering': ('name',),
'verbose_name': 'Address',
'verbose_name_plural': 'Addresses',
},
),
migrations.CreateModel(
name='pfCatalogColor',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', max_length=3, null=True, verbose_name='Code')),
('label', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Color')),
('label_clean', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Clean Label')),
('hex_code', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Color Hex Code')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Printful Color',
'verbose_name_plural': 'Printful Colors',
},
),
migrations.CreateModel(
name='pfCatalogFileSpec',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('name', models.CharField(blank=True, default='', max_length=5, null=True, verbose_name='Name')),
('note', models.TextField(blank=True, default='', null=True, verbose_name='Note')),
('width', models.IntegerField(default=0, verbose_name='Width')),
('height', models.IntegerField(default=0, verbose_name='Height')),
('width_in', models.DecimalField(decimal_places=2, default=0, max_digits=4, verbose_name='Width (in)')),
('height_in', models.DecimalField(decimal_places=2, default=0, max_digits=4, verbose_name='Height (in)')),
('ratio', models.CharField(blank=True, default='', max_length=32, null=True, verbose_name='Ratio')),
('colorsystem', models.CharField(choices=[('R', 'RGB'), ('Y', 'CMYK')], default='R', max_length=1, verbose_name='Color System')),
],
options={
'ordering': ('name',),
'verbose_name': 'Printful File Spec',
'verbose_name_plural': 'Printful File Specs',
},
),
migrations.CreateModel(
name='pfCatalogFileType',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('pid', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Printful ID')),
('title', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Title')),
('additional_price', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='Additional Price')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Printful File Type',
'verbose_name_plural': 'Printful File Types',
},
),
migrations.CreateModel(
name='pfCatalogOptionType',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('pid', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Printful ID')),
('title', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Title')),
('type', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Type')),
('additional_price', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='Additional Price')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Printful Option Type',
'verbose_name_plural': 'Printful Option Types',
},
),
migrations.CreateModel(
name='pfCatalogProduct',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('pid', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Printful ID')),
('type', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Type')),
('brand', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Brand')),
('model', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Model')),
('image', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Image')),
('variant_count', models.IntegerField(default=0, verbose_name='Variants')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Printful Product',
'verbose_name_plural': 'Printful Products',
},
),
migrations.CreateModel(
name='pfCatalogSize',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', max_length=3, null=True, verbose_name='Code')),
('label', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Size')),
('label_clean', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Clean Label')),
('sort_group', models.CharField(blank=True, default='', max_length=2, null=True, verbose_name='Sort Group')),
('sort_order', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='Sort Order')),
],
options={
'ordering': ('sort_group', 'sort_order'),
'verbose_name': 'Printful Size',
'verbose_name_plural': 'Printful Sizes',
},
),
migrations.CreateModel(
name='pfCatalogVariant',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active')),
('pid', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='Printful ID')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('image', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Image')),
('price', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Price')),
('in_stock', models.BooleanField(default=False, verbose_name='In Stock')),
('weight', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=5, null=True, verbose_name='Weight (oz)')),
('pfsize', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfCatalogSize', verbose_name='Size')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Printful Variant',
'verbose_name_plural': 'Printful Variants',
},
),
migrations.CreateModel(
name='pfCountry',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
],
options={
'ordering': ('code',),
'verbose_name': 'Country',
'verbose_name_plural': 'Countries',
},
),
migrations.CreateModel(
name='pfPrintFile',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('pid', models.IntegerField(default=0, verbose_name='Printful ID')),
('type', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Type')),
('hash', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Hash')),
('url', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='URL')),
('filename', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Filename')),
('mime_type', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='MIME Type')),
('size', models.IntegerField(default=0, verbose_name='Size')),
('width', models.IntegerField(default=0, verbose_name='Width')),
('height', models.IntegerField(default=0, verbose_name='Height')),
('dpi', models.IntegerField(default=0, verbose_name='DPI')),
('status', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Status')),
('created', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Created')),
('thumbnail_url', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Thumbnail URL')),
('visible', models.BooleanField(default=False, verbose_name='Visible')),
],
options={
'ordering': ('-created',),
'verbose_name': 'Printful File',
'verbose_name_plural': 'Printful Files',
},
),
migrations.CreateModel(
name='pfState',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('pfcountry', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfCountry', verbose_name='Country')),
],
options={
'ordering': ('pfcountry__code', 'code'),
'verbose_name': 'State',
'verbose_name_plural': 'States',
},
),
migrations.CreateModel(
name='pfStore',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='Code')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('pid', models.IntegerField(default=0, verbose_name='Printful ID')),
('website', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Website')),
('created', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Created')),
('key', models.CharField(blank=True, default='', max_length=64, verbose_name='API Key')),
('payment_type', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='Payment Card Type')),
('payment_number_mask', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='Payment Card Type')),
('payment_expires', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='Payment Card Type')),
('packingslip_email', models.EmailField(blank=True, default='', max_length=254, null=True, verbose_name='Packing Slip Email')),
('packingslip_phone', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='Packing Slip Phone')),
('packingslip_message', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Packing Slip Message')),
('billing_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='billingaddress', to='business.pfAddress', verbose_name='Billing Address')),
('return_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='returnaddress', to='business.pfAddress', verbose_name='Return Address')),
],
options={
'ordering': ('-created',),
'verbose_name': 'Printful Store',
'verbose_name_plural': 'Printful Stores',
},
),
migrations.CreateModel(
name='pfSyncItemOption',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('pid', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='Printful ID')),
('value', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Value')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Sync Item Option',
'verbose_name_plural': 'Sync Item Options',
},
),
migrations.CreateModel(
name='pfSyncProduct',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('pid', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='Printful ID')),
('external_id', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='External ID')),
('variants', models.IntegerField(default=0, verbose_name='Variant Count')),
('synced', models.IntegerField(default=0, verbose_name='Synced')),
('pfstore', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfStore', verbose_name='Store')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Sync Product',
'verbose_name_plural': 'Sync Products',
},
),
migrations.CreateModel(
name='pfSyncVariant',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('pid', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='Printful ID')),
('external_id', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='External ID')),
('synced', models.BooleanField(default=False, verbose_name='Synced')),
('files', models.ManyToManyField(blank=True, to='business.pfPrintFile')),
('pfsyncproduct', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfSyncProduct', verbose_name='Sync Product')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'Sync Variant',
'verbose_name_plural': 'Sync Variants',
},
),
migrations.CreateModel(
name='wooAttribute',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('wid', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='WP ID')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('slug', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Slug')),
('type', models.CharField(blank=True, choices=[('text', 'Basic Text'), ('color picker', 'Color Picker'), ('image select', 'Image Select'), ('text label', 'Text Label')], default='', max_length=255, null=True, verbose_name='Type')),
('has_archives', models.BooleanField(default=False, verbose_name='Has Archives?')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Attribute',
'verbose_name_plural': 'WP Attributes',
},
),
migrations.CreateModel(
name='wooCategory',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('wid', models.IntegerField(blank=True, default=0, null=True, verbose_name='WP ID')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('slug', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Slug')),
('parent', models.IntegerField(default=0, verbose_name='Parent ID')),
('description', models.TextField(blank=True, default='', null=True, verbose_name='Description')),
('display', models.CharField(choices=[('default', 'Default'), ('products', 'Products'), ('subcategories', 'Subcategories'), ('both', 'Display Both')], default='default', max_length=255, verbose_name='Display')),
('count', models.IntegerField(default=0, verbose_name='Count')),
('image_id', models.IntegerField(default=0, verbose_name='Image ID')),
('image_date_created', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Image Created')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Category',
'verbose_name_plural': 'WP Categories',
},
),
migrations.CreateModel(
name='wooImage',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('wid', models.CharField(blank=True, default='', help_text='Image ID (attachment ID). In write-mode used to attach pre-existing images.', max_length=16, null=True, verbose_name='WP ID')),
('date_created', models.DateField(blank=True, help_text='READONLY. The date the product was created, in the site\x19s timezone.', null=True, verbose_name='Date Created')),
('alt', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Alt')),
('position', models.IntegerField(default=0, help_text='Image position. 0 means that the image is featured.', verbose_name='Position')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Image',
'verbose_name_plural': 'WP Images',
},
),
migrations.CreateModel(
name='wooProduct',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('wid', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='WP ID')),
('slug', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Slug')),
('permalink', models.URLField(blank=True, verbose_name='Permalink')),
('date_created', models.DateField(blank=True, help_text='READONLY. The date the product was created, in the site\x19s timezone.', null=True, verbose_name='Date Created')),
('dimension_length', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='Length')),
('dimension_width', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='Width')),
('dimension_height', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='Height')),
('weight', models.DecimalField(decimal_places=2, default=0, help_text='Product weight in decimal format.', max_digits=10, verbose_name='Weight')),
('reviews_allowed', models.BooleanField(default=True, help_text='Allow reviews. Default is true.', verbose_name='Reviewed Allowed?')),
('images', models.ManyToManyField(blank=True, to='business.wooImage', verbose_name='Images')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Product',
'verbose_name_plural': 'WP Products',
},
),
migrations.CreateModel(
name='wooShippingClass',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('wid', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='WP ID')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('slug', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Slug')),
('description', models.TextField(blank=True, default='', null=True, verbose_name='Description')),
('count', models.IntegerField(default=0, verbose_name='Count')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Shipping Class',
'verbose_name_plural': 'WP Shipping Classes',
},
),
migrations.CreateModel(
name='wooStore',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('code', models.CharField(blank=True, default='', help_text='Generally, a two-character uppercase code. Used in SKUs.', max_length=16, null=True, verbose_name='Code')),
('base_url', models.URLField(blank=True, default='', help_text="Include the schema and FQDN only (e.g., 'https://example.com'). No trailing slash.", null=True, verbose_name='Base URL')),
('consumer_secret', models.CharField(blank=True, max_length=43, null=True, verbose_name='Consumer Secret')),
('timezone', timezone_field.fields.TimeZoneField(default='America/New_York')),
('verify_ssl', models.BooleanField(default=True, help_text='Uncheck this if you are using a self-signed SSL certificate to disable ssl verification.', verbose_name='Verify SSL?')),
],
options={
'ordering': ('code',),
'verbose_name': 'WP Store',
'verbose_name_plural': 'WP Stores',
},
),
migrations.CreateModel(
name='wooTag',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('wid', models.IntegerField(default=0, verbose_name='WP ID')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('slug', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Slug')),
('description', models.TextField(blank=True, default='', null=True, verbose_name='Description')),
('count', models.IntegerField(default=0, verbose_name='Count')),
('store', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooStore')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Tag',
'verbose_name_plural': 'WP Tags',
},
),
migrations.CreateModel(
name='wooTerm',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('wid', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='WP ID')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('slug', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Slug')),
('menu_order', models.IntegerField(default=0, verbose_name='Menu Order')),
('count', models.IntegerField(default=0, verbose_name='Count')),
('wr_tooltip', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='WR Tooltip')),
('wr_label', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='WR Label')),
('productattribute', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooAttribute', verbose_name='Product Attribute')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Term',
'verbose_name_plural': 'WP Terms',
},
),
migrations.CreateModel(
name='wooVariant',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('wid', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='WP ID')),
('date_created', models.DateField(blank=True, help_text='READONLY. The date the product was created, in the site\x19s timezone.', null=True, verbose_name='Date Created')),
('permalink', models.URLField(blank=True, verbose_name='Permalink')),
('sku', models.CharField(blank=True, default='', help_text='Unique identifier.', max_length=255, null=True, verbose_name='SKU')),
('price', models.CharField(blank=True, default='', help_text='READONLY. Current product price. This is set from regular_price and sale_price.', max_length=255, null=True, verbose_name='Price')),
('dimension_length', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='Length')),
('dimension_width', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='Width')),
('dimension_height', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='Height')),
('weight', models.DecimalField(decimal_places=2, default=0, help_text='Product weight in decimal format.', max_digits=10, verbose_name='Weight')),
('images', models.ManyToManyField(blank=True, to='business.wooImage', verbose_name='Images')),
('shipping_class', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooShippingClass')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Variant',
'verbose_name_plural': 'WP Variants',
},
),
migrations.CreateModel(
name='wpMedia',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('alt_text', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Alternate Text')),
('width', models.IntegerField(default=0, verbose_name='Width')),
('height', models.IntegerField(default=0, verbose_name='Height')),
('file', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='File')),
('author', models.IntegerField(default=0, verbose_name='Author')),
('mime_type', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='MIME Type')),
('comment_status', models.CharField(choices=[('open', 'Open'), ('closed', 'Closed')], default='open', max_length=255, verbose_name='Comment Status')),
('wid', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='ID')),
('source_url', models.URLField(blank=True, null=True, verbose_name='Source URL')),
('template', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Template')),
('ping_status', models.CharField(choices=[('open', 'Open'), ('closed', 'Closed')], default='open', max_length=255, verbose_name='Ping Status')),
('caption', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Caption')),
('link', models.URLField(blank=True, default='', null=True, verbose_name='Link')),
('slug', models.CharField(blank=True, max_length=255, null=True, verbose_name='Slug')),
('modified', models.DateTimeField(blank=True, null=True, verbose_name='Modified')),
('guid', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='GUID')),
('description', models.TextField(blank=True, default='', null=True, verbose_name='Description')),
('modified_gmt', models.DateTimeField(blank=True, null=True, verbose_name='Modified GMT')),
('title', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Title')),
('date_gmt', models.DateTimeField(blank=True, null=True, verbose_name='Date GMT')),
('type', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='Type')),
('woostore', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooStore')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Media',
'verbose_name_plural': 'WP Media',
},
),
migrations.CreateModel(
name='wpMediaSize',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('date_added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
('is_active', models.BooleanField(default=True, verbose_name='Is Active?')),
('name', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='Name')),
('file', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='File')),
('mime_type', models.CharField(blank=True, default='', max_length=255, null=True, verbose_name='MIME Type')),
('width', models.IntegerField(default=0, verbose_name='Width')),
('height', models.IntegerField(default=0, verbose_name='Height')),
('source_url', models.URLField(blank=True, default='', null=True, verbose_name='Source URL')),
('wpmedia', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.wpMedia', verbose_name='Media')),
],
options={
'ordering': ('-pk',),
'verbose_name': 'WP Media Size',
'verbose_name_plural': 'WP Media Sizes',
},
),
migrations.AddField(
model_name='wooproduct',
name='shipping_class',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooShippingClass'),
),
migrations.AddField(
model_name='wooproduct',
name='tags',
field=models.ManyToManyField(blank=True, to='business.wooTag', verbose_name='Tags'),
),
migrations.AddField(
model_name='wooproduct',
name='woostore',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooStore', verbose_name='Store'),
),
migrations.AddField(
model_name='woocategory',
name='store',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooStore'),
),
migrations.AddField(
model_name='wooattribute',
name='store',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooStore'),
),
migrations.AddField(
model_name='pfsyncitemoption',
name='pfsyncvariant',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfSyncVariant'),
),
migrations.AddField(
model_name='pfprintfile',
name='pfstore',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfStore'),
),
migrations.AddField(
model_name='pfcatalogoptiontype',
name='pfcatalogvariant',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfCatalogVariant'),
),
migrations.AddField(
model_name='pfcatalogfiletype',
name='pfcatalogvariant',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfCatalogVariant', verbose_name='Variant'),
),
migrations.AddField(
model_name='pfaddress',
name='country',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfCountry', verbose_name='Country'),
),
migrations.AddField(
model_name='pfaddress',
name='state',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfState', verbose_name='State'),
),
migrations.AddField(
model_name='bzproductvariant',
name='pfcatalogvariant',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.pfCatalogVariant', verbose_name='Vendor Variant'),
),
migrations.AddField(
model_name='bzproductvariant',
name='pfcolor',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfCatalogColor', verbose_name='Color'),
),
migrations.AddField(
model_name='bzproductvariant',
name='pfsize',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfCatalogSize', verbose_name='Size'),
),
migrations.AddField(
model_name='bzproduct',
name='pfProduct',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfCatalogProduct', verbose_name='Vendor Product'),
),
migrations.AddField(
model_name='bzproduct',
name='pfSyncProduct',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfSyncProduct', verbose_name='Sync Product'),
),
migrations.AddField(
model_name='bzproduct',
name='wooProduct',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooProduct', verbose_name='Outlet Product'),
),
migrations.AddField(
model_name='bzbrand',
name='outlet',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.wooStore'),
),
migrations.AddField(
model_name='bzbrand',
name='vendor',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.pfStore'),
),
]
| 66.992095
| 247
| 0.599957
| 5,257
| 50,847
| 5.634582
| 0.067339
| 0.130718
| 0.104318
| 0.080821
| 0.815604
| 0.79869
| 0.737922
| 0.723237
| 0.711927
| 0.697647
| 0
| 0.011573
| 0.245482
| 50,847
| 758
| 248
| 67.080475
| 0.760511
| 0.001337
| 0
| 0.62
| 1
| 0.001333
| 0.187057
| 0.010989
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.008
| 0
| 0.013333
| 0.001333
| 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
|
df2d09f6e50834c8a101d86b240f75873567ab0d
| 83
|
py
|
Python
|
todo/todos/models/__init__.py
|
hadipirhadi/scalors-assignment-backend
|
93d28b9be23375eeb27eaa17663bd86e06318000
|
[
"MIT"
] | null | null | null |
todo/todos/models/__init__.py
|
hadipirhadi/scalors-assignment-backend
|
93d28b9be23375eeb27eaa17663bd86e06318000
|
[
"MIT"
] | null | null | null |
todo/todos/models/__init__.py
|
hadipirhadi/scalors-assignment-backend
|
93d28b9be23375eeb27eaa17663bd86e06318000
|
[
"MIT"
] | null | null | null |
from .board_model import *
from .todo_model import *
from .reminder_model import *
| 20.75
| 29
| 0.783133
| 12
| 83
| 5.166667
| 0.5
| 0.532258
| 0.483871
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144578
| 83
| 3
| 30
| 27.666667
| 0.873239
| 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
|
10d57ca4c602b6d7d61fb7f16776e481a3867f0d
| 730
|
py
|
Python
|
Codewars/8kyu/a-wolf-in-sheeps-clothing/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | 7
|
2017-09-20T16:40:39.000Z
|
2021-08-31T18:15:08.000Z
|
Codewars/8kyu/a-wolf-in-sheeps-clothing/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
Codewars/8kyu/a-wolf-in-sheeps-clothing/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
# Python - 3.6.0
test.assert_equals(warn_the_sheep(['sheep', 'sheep', 'sheep', 'sheep', 'sheep', 'wolf', 'sheep', 'sheep']), 'Oi! Sheep number 2! You are about to be eaten by a wolf!')
test.assert_equals(warn_the_sheep(['sheep', 'wolf', 'sheep', 'sheep', 'sheep', 'sheep', 'sheep']), 'Oi! Sheep number 5! You are about to be eaten by a wolf!')
test.assert_equals(warn_the_sheep(['wolf', 'sheep', 'sheep', 'sheep', 'sheep', 'sheep', 'sheep']), 'Oi! Sheep number 6! You are about to be eaten by a wolf!')
test.assert_equals(warn_the_sheep(['sheep', 'wolf', 'sheep']), 'Oi! Sheep number 1! You are about to be eaten by a wolf!')
test.assert_equals(warn_the_sheep(['sheep', 'sheep', 'wolf']), 'Pls go away and stop eating my sheep')
| 91.25
| 167
| 0.673973
| 122
| 730
| 3.909836
| 0.254098
| 0.398323
| 0.377358
| 0.33543
| 0.87631
| 0.819707
| 0.78826
| 0.769392
| 0.530398
| 0.530398
| 0
| 0.010989
| 0.127397
| 730
| 7
| 168
| 104.285714
| 0.737834
| 0.019178
| 0
| 0
| 0
| 0
| 0.553221
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
803c0ba19b6c3ef6580f2e474ea806f5cfc1086b
| 124
|
py
|
Python
|
tssearch/__init__.py
|
mluacnunes/tssearch
|
e8e2cd9f07d66eeec8a839fe72c259232f968da9
|
[
"BSD-3-Clause"
] | 11
|
2021-11-11T15:21:14.000Z
|
2022-03-31T23:28:34.000Z
|
tssearch/__init__.py
|
MargaridaAntunes/tssearch
|
d29c47c6176ebbb25c8785da843946bf3eb27721
|
[
"BSD-3-Clause"
] | 1
|
2022-01-23T02:36:02.000Z
|
2022-01-24T17:13:32.000Z
|
tssearch/__init__.py
|
MargaridaAntunes/tssearch
|
d29c47c6176ebbb25c8785da843946bf3eb27721
|
[
"BSD-3-Clause"
] | 5
|
2021-12-13T21:46:36.000Z
|
2022-03-31T23:29:36.000Z
|
from tssearch.utils import *
from tssearch.search import *
from tssearch.distances import *
from tssearch.examples import *
| 24.8
| 32
| 0.806452
| 16
| 124
| 6.25
| 0.4375
| 0.48
| 0.54
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 124
| 4
| 33
| 31
| 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
| 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
|
33872c09f0ad4442e9ccc284b58573e9e2e475dc
| 43,340
|
py
|
Python
|
KAFIU 2021-1.0-^.py
|
ArdaKC/KCS-Auto-Firefox-Installer-Uninstaller
|
884d866670afaa69593d8c9c43237f53958e1cd1
|
[
"MIT"
] | 2
|
2021-08-25T11:01:12.000Z
|
2021-08-31T22:19:51.000Z
|
KAFIU 2021-1.0-^.py
|
ArdaKC/KCS-Auto-Firefox-Installer-Uninstaller
|
884d866670afaa69593d8c9c43237f53958e1cd1
|
[
"MIT"
] | null | null | null |
KAFIU 2021-1.0-^.py
|
ArdaKC/KCS-Auto-Firefox-Installer-Uninstaller
|
884d866670afaa69593d8c9c43237f53958e1cd1
|
[
"MIT"
] | null | null | null |
import os
import requests
import tarfile
import shutil
import base64
language = "1"
if language == "1":
print("KCS Auto Firefox Installer & Uninstaller 2021.1.0-^")
print("Hangi Firefox Sürümünü Kurmak İstiyorsunuz?")
print("Firefox Release : 1")
print("Firefox Beta : 2")
print("Manuel URL ile İndir & Kur : 3")
print("Gerekli Paketleri Kur : 4")
print("İndirilmiş TAR Dosyalarını Temizle : 5")
print("Firefox ESR'yi kaldır : 6")
print("Firefox'u kaldır. : R")
print("Çıkış yap : X")
secenek = input("")
if secenek == "6":
print("firefox-esr'nin kapalı olduğun'dan emin misiniz? evet\hayır")
eminim = input("")
if eminim == "evet":
print("Firefox ESR Kaldırılıyor...")
firefoxdesktop = "/usr/share/applications/firefox-esr.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox-esr.desktop")
firefoxkonum = "/usr/lib/firefox/firefox"
firefoxkonum2 = "/usr/share/firefox-esr"
if os.path.isfile(firefoxkonum2) and os.access(firefoxkonum2, os.R_OK):
shutil.rmtree('usr/share/firefox-esr')
if os.path.isfile(firefoxkonum) and os.access(firefoxkonum, os.R_OK):
shutil.rmtree('/usr/lib/firefox-esr')
print("Firefox ESR Oturum'u kaldırılsın mı? evet/hayır")
kaldırkaldırma = input("")
if kaldırkaldırma == "evet":
print("kullanıcı klasörünün adını yazın.")
kullanıcıklasörü = input("")
shutil.rmtree("/home/" + kullanıcıklasörü + "/.cache/mozilla")
shutil.rmtree("/home/" + kullanıcıklasörü + "/.mozilla")
print("Oturum dosyaları başarıyla kaldırıldı.")
os.system("apt remove --purge firefox-esr")
print("Kaldırma işlemi başarıyla tamamlandı.")
if secenek == "R":
print("firefox'un kapalı olduğun'dan emin misiniz? evet\hayır")
eminim = input("")
if eminim == "evet":
print("Firefox Kaldırılıyor...")
firefoxdesktop = "/usr/share/applications/firefox.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox.desktop")
firefoxkonum = "/usr/lib/firefox/firefox"
if os.path.isfile(firefoxkonum) and os.access(firefoxkonum, os.R_OK):
shutil.rmtree('/usr/lib/firefox')
print("Firefox Oturum'u kaldırılsın mı? evet/hayır")
kaldırkaldırma = input("")
if kaldırkaldırma == "evet":
print("kullanıcı klasörünün adını yazın.")
kullanıcıklasörü = input("")
shutil.rmtree("/home/" + kullanıcıklasörü + "/.cache/mozilla")
shutil.rmtree("/home/" + kullanıcıklasörü + "/.mozilla")
print("Oturum dosyaları başarıyla kaldırıldı.")
os.system("apt remove --purge firefox")
print("Kaldırma işlemi başarıyla tamamlandı.")
if secenek == "X" or "x":
os.system("exit")
if secenek == "5":
tar = './firefox.tar.bz2'
if os.path.isfile(tar) and os.access(tar, os.R_OK):
os.remove("firefox.tar.bz2")
tar2 = './firefoxbeta.tar.bz2'
if os.path.isfile(tar2) and os.access(tar2, os.R_OK):
os.remove("firefoxbeta.tar.bz2")
tar3 = './firefoxrelease.tar.bz2'
if os.path.isfile(tar3) and os.access(tar3, os.R_OK):
tar3 = './firefoxrelease.tar.bz2'
print("işlem tamamlandı.")
if secenek == "3":
print("Kurulum için URL'yi yazın.")
print("Firefox URL'sini buradan alabilirsiniz.")
print("URL : https://download-installer.cdn.mozilla.net/pub/firefox/")
URL = input("")
tar = './firefox.tar.bz2'
if os.path.isfile(tar) and os.access(tar, os.R_OK):
print("Firefox Zaten İndirildi. Kurulum Başlatılıyor...")
print("Eğer güncelleme olarak bu işlemi yapıyorsanız firefox'un kapalı olduğun'dan emin ol : tamam")
eminmisin = input("")
if eminmisin == "tamam":
firefoxkonum = os.path.isdir('/usr/lib/firefox')
if firefoxkonum == True:
shutil.rmtree('/usr/lib/firefox')
print("Kurulum yapılıyor...")
tf = tarfile.open("firefox.tar.bz2")
tf.extractall()
klasör1 = "firefox"
klasör2 = "/usr/lib/"
shutil.move(klasör1, klasör2)
firefoxdesktop = "/usr/share/applications/firefox.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox.desktop")
base64_bac = "W0Rlc2t0b3AgRW50cnldCk5hbWU9RmlyZWZveApOYW1lW2JnXT1GaXJlZm94Ck5hbWVbY2FdPUZpcmVmb3gKTmFtZVtjc109RmlyZWZveApOYW1lW2VsXT1GaXJlZm94Ck5hbWVbZXNdPUZpcmVmb3gKTmFtZVtmYV09RmlyZWZveApOYW1lW2ZpXT1GaXJlZm94Ck5hbWVbZnJdPUZpcmVmb3gKTmFtZVtodV09RmlyZWZveApOYW1lW2l0XT1GaXJlZm94Ck5hbWVbamFdPUZpcmVmb3gKTmFtZVtrb109RmlyZWZveApOYW1lW25iXT1GaXJlZm94Ck5hbWVbbmxdPUZpcmVmb3gKTmFtZVtubl09RmlyZWZveApOYW1lW25vXT1GaXJlZm94Ck5hbWVbcGxdPUZpcmVmb3gKTmFtZVtwdF09RmlyZWZveApOYW1lW3B0X0JSXT1GaXJlZm94Ck5hbWVbcnVdPUZpcmVmb3gKTmFtZVtza109RmlyZWZveApOYW1lW3N2XT1GaXJlZm94CkNvbW1lbnQ9QnJvd3NlIHRoZSBXb3JsZCBXaWRlIFdlYgpDb21tZW50W2JnXT3QodGK0YDRhNC40YDQsNC90LUg0LIg0JzRgNC10LbQsNGC0LAKQ29tbWVudFtjYV09TmF2ZWd1ZXUgcGVyIGVsIHdlYgpDb21tZW50W2NzXT1Qcm9obMOtxb5lbsOtIHN0csOhbmVrIFdvcmxkIFdpZGUgV2VidQpDb21tZW50W2RlXT1JbSBJbnRlcm5ldCBzdXJmZW4KQ29tbWVudFtlbF09zqDOtc+BzrnOt86zzrfOuM61zq/PhM61IM+Dz4TOv869IM+AzrHOs866z4zPg868zrnOvyDOuc+Dz4TPjApDb21tZW50W2VzXT1OYXZlZ3VlIHBvciBsYSB3ZWIKQ29tbWVudFtmYV092LXZgdit2KfYqiDYtNio2qnZhyDYrNmH2KfZhtuMINin24zZhtiq2LHZhtiqINix2Kcg2YXYsdmI2LEg2YbZhdin24zbjNivCkNvbW1lbnRbZmldPVNlbGFhIEludGVybmV0aW4gV1dXLXNpdnVqYQpDb21tZW50W2ZyXT1OYXZpZ3VlIHN1ciBJbnRlcm5ldApDb21tZW50W2h1XT1BIHZpbMOhZ2jDoWzDsyBiw7ZuZ8Opc3rDqXNlCkNvbW1lbnRbaXRdPUVzcGxvcmEgaWwgd2ViCkNvbW1lbnRbamFdPeOCpuOCp+ODluOCkumWsuimp+OBl+OBvuOBmQpDb21tZW50W2tvXT3sm7nsnYQg64+M7JWEIOuLpOuLmeuLiOuLpApDb21tZW50W25iXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtubF09VmVya2VuIGhldCBpbnRlcm5ldApDb21tZW50W25uXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtub109U3VyZiBww6UgbmV0dGV0CkNvbW1lbnRbcGxdPVByemVnbMSFZGFuaWUgc3Ryb24gV1dXIApDb21tZW50W3B0XT1OYXZlZ3VlIG5hIEludGVybmV0CkNvbW1lbnRbcHRfQlJdPU5hdmVndWUgbmEgSW50ZXJuZXQKQ29tbWVudFtydV090J7QsdC+0LfRgNC10LLQsNGC0LXQu9GMINCS0YHQtdC80LjRgNC90L7QuSDQn9Cw0YPRgtC40L3RiwpDb21tZW50W3NrXT1QcmVobGlhZGFuaWUgaW50ZXJuZXR1CkNvbW1lbnRbc3ZdPVN1cmZhIHDDpSB3ZWJiZW4KR2VuZXJpY05hbWU9V2ViIEJyb3dzZXIKR2VuZXJpY05hbWVbYmddPdCY0L3RgtC10YDQvdC10YIg0LHRgNCw0YPQt9GK0YAKR2VuZXJpY05hbWVbY2FdPU5hdmVnYWRvciB3ZWIKR2VuZXJpY05hbWVbY3NdPVdlYm92w70gcHJvaGzDrcW+ZcSNCkdlbmVyaWNOYW1lW2RlXT1XZWJicm93c2VyCkdlbmVyaWNOYW1lW2VsXT3OoM61z4HOuc63zrPOt8+Ezq7PgiDOuc+Dz4TOv8+NCkdlbmVyaWNOYW1lW2VzXT1OYXZlZ2Fkb3Igd2ViCkdlbmVyaWNOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjApHZW5lcmljTmFtZVtmaV09V1dXLXNlbGFpbgpHZW5lcmljTmFtZVtmcl09TmF2aWdhdGV1ciBXZWIKR2VuZXJpY05hbWVbaHVdPVdlYmLDtm5nw6lzesWRCkdlbmVyaWNOYW1lW2l0XT1Ccm93c2VyIFdlYgpHZW5lcmljTmFtZVtqYV0944Km44Kn44OW44O744OW44Op44Km44K2CkdlbmVyaWNOYW1lW2tvXT3sm7kg67iM65287Jqw7KCACkdlbmVyaWNOYW1lW25iXT1OZXR0bGVzZXIKR2VuZXJpY05hbWVbbmxdPVdlYmJyb3dzZXIKR2VuZXJpY05hbWVbbm5dPU5ldHRsZXNhcgpHZW5lcmljTmFtZVtub109TmV0dGxlc2VyCkdlbmVyaWNOYW1lW3BsXT1QcnplZ2zEhWRhcmthIFdXVwpHZW5lcmljTmFtZVtwdF09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtydV090JjQvdGC0LXRgNC90LXRgi3QsdGA0LDRg9C30LXRgApHZW5lcmljTmFtZVtza109SW50ZXJuZXRvdsO9IHByZWhsaWFkYcSNCkdlbmVyaWNOYW1lW3N2XT1XZWJibMOkc2FyZQpYLUdOT01FLUZ1bGxOYW1lPUZpcmVmb3ggV2ViIEJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtiZ1090JjQvdGC0LXRgNC90LXRgiDQsdGA0LDRg9C30YrRgCAoRmlyZWZveCkKWC1HTk9NRS1GdWxsTmFtZVtjYV09TmF2ZWdhZG9yIHdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbY3NdPUZpcmVmb3ggV2Vib3bDvSBwcm9obMOtxb5lxI0KWC1HTk9NRS1GdWxsTmFtZVtlbF09zqDOtc+BzrnOt86zzq7PhM63z4IgzpnPg8+Ezr/PjSBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZXNdPU5hdmVnYWRvciB3ZWIgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjCBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZmldPUZpcmVmb3gtc2VsYWluClgtR05PTUUtRnVsbE5hbWVbZnJdPU5hdmlnYXRldXIgV2ViIEZpcmVmb3gKWC1HTk9NRS1GdWxsTmFtZVtodV09RmlyZWZveCB3ZWJiw7ZuZ8Opc3rFkQpYLUdOT01FLUZ1bGxOYW1lW2l0XT1GaXJlZm94IEJyb3dzZXIgV2ViClgtR05PTUUtRnVsbE5hbWVbamFdPUZpcmVmb3gg44Km44Kn44OW44O744OW44Op44Km44K2ClgtR05PTUUtRnVsbE5hbWVba29dPUZpcmVmb3gg7Ju5IOu4jOudvOyasOyggApYLUdOT01FLUZ1bGxOYW1lW25iXT1GaXJlZm94IE5ldHRsZXNlcgpYLUdOT01FLUZ1bGxOYW1lW25sXT1GaXJlZm94IHdlYmJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtubl09RmlyZWZveCBOZXR0bGVzYXIKWC1HTk9NRS1GdWxsTmFtZVtub109RmlyZWZveCBOZXR0bGVzZXIKWC1HTk9NRS1GdWxsTmFtZVtwbF09UHJ6ZWdsxIVkYXJrYSBXV1cgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3B0XT1GaXJlZm94IE5hdmVnYWRvciBXZWIKWC1HTk9NRS1GdWxsTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbcnVdPdCY0L3RgtC10YDQvdC10YIt0LHRgNCw0YPQt9C10YAgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3NrXT1JbnRlcm5ldG92w70gcHJlaGxpYWRhxI0gRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3N2XT1XZWJibMOkc2FyZW4gRmlyZWZveApFeGVjPS91c3IvbGliL2ZpcmVmb3gvZmlyZWZveCAldQpUZXJtaW5hbD1mYWxzZQpYLU11bHRpcGxlQXJncz1mYWxzZQpUeXBlPUFwcGxpY2F0aW9uCkljb249L3Vzci9saWIvZmlyZWZveC9icm93c2VyL2Nocm9tZS9pY29ucy9kZWZhdWx0L2RlZmF1bHQxMjgucG5nCkNhdGVnb3JpZXM9TmV0d29yaztXZWJCcm93c2VyOwpNaW1lVHlwZT10ZXh0L2h0bWw7dGV4dC94bWw7YXBwbGljYXRpb24veGh0bWwreG1sO2FwcGxpY2F0aW9uL3htbDthcHBsaWNhdGlvbi92bmQubW96aWxsYS54dWwreG1sO2FwcGxpY2F0aW9uL3Jzcyt4bWw7YXBwbGljYXRpb24vcmRmK3htbDtpbWFnZS9naWY7aW1hZ2UvanBlZztpbWFnZS9wbmc7eC1zY2hlbWUtaGFuZGxlci9odHRwO3gtc2NoZW1lLWhhbmRsZXIvaHR0cHM7ClN0YXJ0dXBXTUNsYXNzPUZpcmVmb3gKU3RhcnR1cE5vdGlmeT10cnVlCg=="
decoded = base64.b64decode(base64_bac)
utf8decoded = decoded.decode("utf-8")
f = open("/usr/share/applications/firefox.desktop", "w")
f.write(utf8decoded)
f.close()
print("işlem tamamlandı.")
else:
print("İşlemler iptal edildi firefox kapatılmadı.")
else:
print("Kurulum için URL'yi yazın.")
print("Firefox URL'sini buradan alabilirsiniz.")
print("URL : https://download-installer.cdn.mozilla.net/pub/firefox/")
print("Firefox İndiriliyor Lütfen Bekleyin...")
r = requests.get(URL, allow_redirects=True)
open('firefox.tar.bz2', "wb").write(r.content)
print("Firefox Başarıyla İndirildi. Kurulum Başlatılıyor...")
print("Eğer güncelleme olarak bu işlemi yapıyorsanız firefox'un kapalı olduğun'dan emin ol : tamam")
eminmisin = input("")
if eminmisin == "tamam":
firefoxkonum = os.path.isdir('/usr/lib/firefox')
if firefoxkonum == True:
shutil.rmtree('/usr/lib/firefox')
ayarlar = ""
print("Kurulum yapılıyor...")
tf = tarfile.open("firefox.tar.bz2")
tf.extractall()
klasör1 = "firefox"
klasör2 = "/usr/lib/"
shutil.move(klasör1, klasör2)
firefoxdesktop = "/usr/share/applications/firefox.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox.desktop")
base64_bac = "W0Rlc2t0b3AgRW50cnldCk5hbWU9RmlyZWZveApOYW1lW2JnXT1GaXJlZm94Ck5hbWVbY2FdPUZpcmVmb3gKTmFtZVtjc109RmlyZWZveApOYW1lW2VsXT1GaXJlZm94Ck5hbWVbZXNdPUZpcmVmb3gKTmFtZVtmYV09RmlyZWZveApOYW1lW2ZpXT1GaXJlZm94Ck5hbWVbZnJdPUZpcmVmb3gKTmFtZVtodV09RmlyZWZveApOYW1lW2l0XT1GaXJlZm94Ck5hbWVbamFdPUZpcmVmb3gKTmFtZVtrb109RmlyZWZveApOYW1lW25iXT1GaXJlZm94Ck5hbWVbbmxdPUZpcmVmb3gKTmFtZVtubl09RmlyZWZveApOYW1lW25vXT1GaXJlZm94Ck5hbWVbcGxdPUZpcmVmb3gKTmFtZVtwdF09RmlyZWZveApOYW1lW3B0X0JSXT1GaXJlZm94Ck5hbWVbcnVdPUZpcmVmb3gKTmFtZVtza109RmlyZWZveApOYW1lW3N2XT1GaXJlZm94CkNvbW1lbnQ9QnJvd3NlIHRoZSBXb3JsZCBXaWRlIFdlYgpDb21tZW50W2JnXT3QodGK0YDRhNC40YDQsNC90LUg0LIg0JzRgNC10LbQsNGC0LAKQ29tbWVudFtjYV09TmF2ZWd1ZXUgcGVyIGVsIHdlYgpDb21tZW50W2NzXT1Qcm9obMOtxb5lbsOtIHN0csOhbmVrIFdvcmxkIFdpZGUgV2VidQpDb21tZW50W2RlXT1JbSBJbnRlcm5ldCBzdXJmZW4KQ29tbWVudFtlbF09zqDOtc+BzrnOt86zzrfOuM61zq/PhM61IM+Dz4TOv869IM+AzrHOs866z4zPg868zrnOvyDOuc+Dz4TPjApDb21tZW50W2VzXT1OYXZlZ3VlIHBvciBsYSB3ZWIKQ29tbWVudFtmYV092LXZgdit2KfYqiDYtNio2qnZhyDYrNmH2KfZhtuMINin24zZhtiq2LHZhtiqINix2Kcg2YXYsdmI2LEg2YbZhdin24zbjNivCkNvbW1lbnRbZmldPVNlbGFhIEludGVybmV0aW4gV1dXLXNpdnVqYQpDb21tZW50W2ZyXT1OYXZpZ3VlIHN1ciBJbnRlcm5ldApDb21tZW50W2h1XT1BIHZpbMOhZ2jDoWzDsyBiw7ZuZ8Opc3rDqXNlCkNvbW1lbnRbaXRdPUVzcGxvcmEgaWwgd2ViCkNvbW1lbnRbamFdPeOCpuOCp+ODluOCkumWsuimp+OBl+OBvuOBmQpDb21tZW50W2tvXT3sm7nsnYQg64+M7JWEIOuLpOuLmeuLiOuLpApDb21tZW50W25iXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtubF09VmVya2VuIGhldCBpbnRlcm5ldApDb21tZW50W25uXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtub109U3VyZiBww6UgbmV0dGV0CkNvbW1lbnRbcGxdPVByemVnbMSFZGFuaWUgc3Ryb24gV1dXIApDb21tZW50W3B0XT1OYXZlZ3VlIG5hIEludGVybmV0CkNvbW1lbnRbcHRfQlJdPU5hdmVndWUgbmEgSW50ZXJuZXQKQ29tbWVudFtydV090J7QsdC+0LfRgNC10LLQsNGC0LXQu9GMINCS0YHQtdC80LjRgNC90L7QuSDQn9Cw0YPRgtC40L3RiwpDb21tZW50W3NrXT1QcmVobGlhZGFuaWUgaW50ZXJuZXR1CkNvbW1lbnRbc3ZdPVN1cmZhIHDDpSB3ZWJiZW4KR2VuZXJpY05hbWU9V2ViIEJyb3dzZXIKR2VuZXJpY05hbWVbYmddPdCY0L3RgtC10YDQvdC10YIg0LHRgNCw0YPQt9GK0YAKR2VuZXJpY05hbWVbY2FdPU5hdmVnYWRvciB3ZWIKR2VuZXJpY05hbWVbY3NdPVdlYm92w70gcHJvaGzDrcW+ZcSNCkdlbmVyaWNOYW1lW2RlXT1XZWJicm93c2VyCkdlbmVyaWNOYW1lW2VsXT3OoM61z4HOuc63zrPOt8+Ezq7PgiDOuc+Dz4TOv8+NCkdlbmVyaWNOYW1lW2VzXT1OYXZlZ2Fkb3Igd2ViCkdlbmVyaWNOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjApHZW5lcmljTmFtZVtmaV09V1dXLXNlbGFpbgpHZW5lcmljTmFtZVtmcl09TmF2aWdhdGV1ciBXZWIKR2VuZXJpY05hbWVbaHVdPVdlYmLDtm5nw6lzesWRCkdlbmVyaWNOYW1lW2l0XT1Ccm93c2VyIFdlYgpHZW5lcmljTmFtZVtqYV0944Km44Kn44OW44O744OW44Op44Km44K2CkdlbmVyaWNOYW1lW2tvXT3sm7kg67iM65287Jqw7KCACkdlbmVyaWNOYW1lW25iXT1OZXR0bGVzZXIKR2VuZXJpY05hbWVbbmxdPVdlYmJyb3dzZXIKR2VuZXJpY05hbWVbbm5dPU5ldHRsZXNhcgpHZW5lcmljTmFtZVtub109TmV0dGxlc2VyCkdlbmVyaWNOYW1lW3BsXT1QcnplZ2zEhWRhcmthIFdXVwpHZW5lcmljTmFtZVtwdF09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtydV090JjQvdGC0LXRgNC90LXRgi3QsdGA0LDRg9C30LXRgApHZW5lcmljTmFtZVtza109SW50ZXJuZXRvdsO9IHByZWhsaWFkYcSNCkdlbmVyaWNOYW1lW3N2XT1XZWJibMOkc2FyZQpYLUdOT01FLUZ1bGxOYW1lPUZpcmVmb3ggV2ViIEJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtiZ1090JjQvdGC0LXRgNC90LXRgiDQsdGA0LDRg9C30YrRgCAoRmlyZWZveCkKWC1HTk9NRS1GdWxsTmFtZVtjYV09TmF2ZWdhZG9yIHdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbY3NdPUZpcmVmb3ggV2Vib3bDvSBwcm9obMOtxb5lxI0KWC1HTk9NRS1GdWxsTmFtZVtlbF09zqDOtc+BzrnOt86zzq7PhM63z4IgzpnPg8+Ezr/PjSBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZXNdPU5hdmVnYWRvciB3ZWIgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjCBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZmldPUZpcmVmb3gtc2VsYWluClgtR05PTUUtRnVsbE5hbWVbZnJdPU5hdmlnYXRldXIgV2ViIEZpcmVmb3gKWC1HTk9NRS1GdWxsTmFtZVtodV09RmlyZWZveCB3ZWJiw7ZuZ8Opc3rFkQpYLUdOT01FLUZ1bGxOYW1lW2l0XT1GaXJlZm94IEJyb3dzZXIgV2ViClgtR05PTUUtRnVsbE5hbWVbamFdPUZpcmVmb3gg44Km44Kn44OW44O744OW44Op44Km44K2ClgtR05PTUUtRnVsbE5hbWVba29dPUZpcmVmb3gg7Ju5IOu4jOudvOyasOyggApYLUdOT01FLUZ1bGxOYW1lW25iXT1GaXJlZm94IE5ldHRsZXNlcgpYLUdOT01FLUZ1bGxOYW1lW25sXT1GaXJlZm94IHdlYmJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtubl09RmlyZWZveCBOZXR0bGVzYXIKWC1HTk9NRS1GdWxsTmFtZVtub109RmlyZWZveCBOZXR0bGVzZXIKWC1HTk9NRS1GdWxsTmFtZVtwbF09UHJ6ZWdsxIVkYXJrYSBXV1cgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3B0XT1GaXJlZm94IE5hdmVnYWRvciBXZWIKWC1HTk9NRS1GdWxsTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbcnVdPdCY0L3RgtC10YDQvdC10YIt0LHRgNCw0YPQt9C10YAgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3NrXT1JbnRlcm5ldG92w70gcHJlaGxpYWRhxI0gRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3N2XT1XZWJibMOkc2FyZW4gRmlyZWZveApFeGVjPS91c3IvbGliL2ZpcmVmb3gvZmlyZWZveCAldQpUZXJtaW5hbD1mYWxzZQpYLU11bHRpcGxlQXJncz1mYWxzZQpUeXBlPUFwcGxpY2F0aW9uCkljb249L3Vzci9saWIvZmlyZWZveC9icm93c2VyL2Nocm9tZS9pY29ucy9kZWZhdWx0L2RlZmF1bHQxMjgucG5nCkNhdGVnb3JpZXM9TmV0d29yaztXZWJCcm93c2VyOwpNaW1lVHlwZT10ZXh0L2h0bWw7dGV4dC94bWw7YXBwbGljYXRpb24veGh0bWwreG1sO2FwcGxpY2F0aW9uL3htbDthcHBsaWNhdGlvbi92bmQubW96aWxsYS54dWwreG1sO2FwcGxpY2F0aW9uL3Jzcyt4bWw7YXBwbGljYXRpb24vcmRmK3htbDtpbWFnZS9naWY7aW1hZ2UvanBlZztpbWFnZS9wbmc7eC1zY2hlbWUtaGFuZGxlci9odHRwO3gtc2NoZW1lLWhhbmRsZXIvaHR0cHM7ClN0YXJ0dXBXTUNsYXNzPUZpcmVmb3gKU3RhcnR1cE5vdGlmeT10cnVlCg=="
decoded = base64.b64decode(base64_bac)
utf8decoded = decoded.decode("utf-8")
f = open("/usr/share/applications/firefox.desktop", "w")
f.write(utf8decoded)
f.close()
print("işlem tamamlandı.")
else:
print("İşlemler iptal edildi firefox kapatılmadı.")
if secenek == "2":
tar = './firefoxbeta.tar.bz2'
if os.path.isfile(tar) and os.access(tar, os.R_OK):
print("Firefox Zaten İndirildi. Kurulum Başlatılıyor...")
print("Eğer güncelleme olarak bu işlemi yapıyorsanız firefox'un kapalı olduğun'dan emin ol : tamam")
eminmisin = input("")
if eminmisin == "tamam":
firefoxkonum = os.path.isdir('/usr/lib/firefox')
if firefoxkonum == True:
shutil.rmtree('/usr/lib/firefox')
print("Kurulum yapılıyor...")
tf = tarfile.open("firefoxbeta.tar.bz2")
tf.extractall()
klasör1 = "firefox"
klasör2 = "/usr/lib/"
shutil.move(klasör1, klasör2)
firefoxdesktop = "/usr/share/applications/firefox.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox.desktop")
base64_bac = "W0Rlc2t0b3AgRW50cnldCk5hbWU9RmlyZWZveApOYW1lW2JnXT1GaXJlZm94Ck5hbWVbY2FdPUZpcmVmb3gKTmFtZVtjc109RmlyZWZveApOYW1lW2VsXT1GaXJlZm94Ck5hbWVbZXNdPUZpcmVmb3gKTmFtZVtmYV09RmlyZWZveApOYW1lW2ZpXT1GaXJlZm94Ck5hbWVbZnJdPUZpcmVmb3gKTmFtZVtodV09RmlyZWZveApOYW1lW2l0XT1GaXJlZm94Ck5hbWVbamFdPUZpcmVmb3gKTmFtZVtrb109RmlyZWZveApOYW1lW25iXT1GaXJlZm94Ck5hbWVbbmxdPUZpcmVmb3gKTmFtZVtubl09RmlyZWZveApOYW1lW25vXT1GaXJlZm94Ck5hbWVbcGxdPUZpcmVmb3gKTmFtZVtwdF09RmlyZWZveApOYW1lW3B0X0JSXT1GaXJlZm94Ck5hbWVbcnVdPUZpcmVmb3gKTmFtZVtza109RmlyZWZveApOYW1lW3N2XT1GaXJlZm94CkNvbW1lbnQ9QnJvd3NlIHRoZSBXb3JsZCBXaWRlIFdlYgpDb21tZW50W2JnXT3QodGK0YDRhNC40YDQsNC90LUg0LIg0JzRgNC10LbQsNGC0LAKQ29tbWVudFtjYV09TmF2ZWd1ZXUgcGVyIGVsIHdlYgpDb21tZW50W2NzXT1Qcm9obMOtxb5lbsOtIHN0csOhbmVrIFdvcmxkIFdpZGUgV2VidQpDb21tZW50W2RlXT1JbSBJbnRlcm5ldCBzdXJmZW4KQ29tbWVudFtlbF09zqDOtc+BzrnOt86zzrfOuM61zq/PhM61IM+Dz4TOv869IM+AzrHOs866z4zPg868zrnOvyDOuc+Dz4TPjApDb21tZW50W2VzXT1OYXZlZ3VlIHBvciBsYSB3ZWIKQ29tbWVudFtmYV092LXZgdit2KfYqiDYtNio2qnZhyDYrNmH2KfZhtuMINin24zZhtiq2LHZhtiqINix2Kcg2YXYsdmI2LEg2YbZhdin24zbjNivCkNvbW1lbnRbZmldPVNlbGFhIEludGVybmV0aW4gV1dXLXNpdnVqYQpDb21tZW50W2ZyXT1OYXZpZ3VlIHN1ciBJbnRlcm5ldApDb21tZW50W2h1XT1BIHZpbMOhZ2jDoWzDsyBiw7ZuZ8Opc3rDqXNlCkNvbW1lbnRbaXRdPUVzcGxvcmEgaWwgd2ViCkNvbW1lbnRbamFdPeOCpuOCp+ODluOCkumWsuimp+OBl+OBvuOBmQpDb21tZW50W2tvXT3sm7nsnYQg64+M7JWEIOuLpOuLmeuLiOuLpApDb21tZW50W25iXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtubF09VmVya2VuIGhldCBpbnRlcm5ldApDb21tZW50W25uXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtub109U3VyZiBww6UgbmV0dGV0CkNvbW1lbnRbcGxdPVByemVnbMSFZGFuaWUgc3Ryb24gV1dXIApDb21tZW50W3B0XT1OYXZlZ3VlIG5hIEludGVybmV0CkNvbW1lbnRbcHRfQlJdPU5hdmVndWUgbmEgSW50ZXJuZXQKQ29tbWVudFtydV090J7QsdC+0LfRgNC10LLQsNGC0LXQu9GMINCS0YHQtdC80LjRgNC90L7QuSDQn9Cw0YPRgtC40L3RiwpDb21tZW50W3NrXT1QcmVobGlhZGFuaWUgaW50ZXJuZXR1CkNvbW1lbnRbc3ZdPVN1cmZhIHDDpSB3ZWJiZW4KR2VuZXJpY05hbWU9V2ViIEJyb3dzZXIKR2VuZXJpY05hbWVbYmddPdCY0L3RgtC10YDQvdC10YIg0LHRgNCw0YPQt9GK0YAKR2VuZXJpY05hbWVbY2FdPU5hdmVnYWRvciB3ZWIKR2VuZXJpY05hbWVbY3NdPVdlYm92w70gcHJvaGzDrcW+ZcSNCkdlbmVyaWNOYW1lW2RlXT1XZWJicm93c2VyCkdlbmVyaWNOYW1lW2VsXT3OoM61z4HOuc63zrPOt8+Ezq7PgiDOuc+Dz4TOv8+NCkdlbmVyaWNOYW1lW2VzXT1OYXZlZ2Fkb3Igd2ViCkdlbmVyaWNOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjApHZW5lcmljTmFtZVtmaV09V1dXLXNlbGFpbgpHZW5lcmljTmFtZVtmcl09TmF2aWdhdGV1ciBXZWIKR2VuZXJpY05hbWVbaHVdPVdlYmLDtm5nw6lzesWRCkdlbmVyaWNOYW1lW2l0XT1Ccm93c2VyIFdlYgpHZW5lcmljTmFtZVtqYV0944Km44Kn44OW44O744OW44Op44Km44K2CkdlbmVyaWNOYW1lW2tvXT3sm7kg67iM65287Jqw7KCACkdlbmVyaWNOYW1lW25iXT1OZXR0bGVzZXIKR2VuZXJpY05hbWVbbmxdPVdlYmJyb3dzZXIKR2VuZXJpY05hbWVbbm5dPU5ldHRsZXNhcgpHZW5lcmljTmFtZVtub109TmV0dGxlc2VyCkdlbmVyaWNOYW1lW3BsXT1QcnplZ2zEhWRhcmthIFdXVwpHZW5lcmljTmFtZVtwdF09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtydV090JjQvdGC0LXRgNC90LXRgi3QsdGA0LDRg9C30LXRgApHZW5lcmljTmFtZVtza109SW50ZXJuZXRvdsO9IHByZWhsaWFkYcSNCkdlbmVyaWNOYW1lW3N2XT1XZWJibMOkc2FyZQpYLUdOT01FLUZ1bGxOYW1lPUZpcmVmb3ggV2ViIEJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtiZ1090JjQvdGC0LXRgNC90LXRgiDQsdGA0LDRg9C30YrRgCAoRmlyZWZveCkKWC1HTk9NRS1GdWxsTmFtZVtjYV09TmF2ZWdhZG9yIHdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbY3NdPUZpcmVmb3ggV2Vib3bDvSBwcm9obMOtxb5lxI0KWC1HTk9NRS1GdWxsTmFtZVtlbF09zqDOtc+BzrnOt86zzq7PhM63z4IgzpnPg8+Ezr/PjSBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZXNdPU5hdmVnYWRvciB3ZWIgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjCBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZmldPUZpcmVmb3gtc2VsYWluClgtR05PTUUtRnVsbE5hbWVbZnJdPU5hdmlnYXRldXIgV2ViIEZpcmVmb3gKWC1HTk9NRS1GdWxsTmFtZVtodV09RmlyZWZveCB3ZWJiw7ZuZ8Opc3rFkQpYLUdOT01FLUZ1bGxOYW1lW2l0XT1GaXJlZm94IEJyb3dzZXIgV2ViClgtR05PTUUtRnVsbE5hbWVbamFdPUZpcmVmb3gg44Km44Kn44OW44O744OW44Op44Km44K2ClgtR05PTUUtRnVsbE5hbWVba29dPUZpcmVmb3gg7Ju5IOu4jOudvOyasOyggApYLUdOT01FLUZ1bGxOYW1lW25iXT1GaXJlZm94IE5ldHRsZXNlcgpYLUdOT01FLUZ1bGxOYW1lW25sXT1GaXJlZm94IHdlYmJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtubl09RmlyZWZveCBOZXR0bGVzYXIKWC1HTk9NRS1GdWxsTmFtZVtub109RmlyZWZveCBOZXR0bGVzZXIKWC1HTk9NRS1GdWxsTmFtZVtwbF09UHJ6ZWdsxIVkYXJrYSBXV1cgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3B0XT1GaXJlZm94IE5hdmVnYWRvciBXZWIKWC1HTk9NRS1GdWxsTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbcnVdPdCY0L3RgtC10YDQvdC10YIt0LHRgNCw0YPQt9C10YAgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3NrXT1JbnRlcm5ldG92w70gcHJlaGxpYWRhxI0gRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3N2XT1XZWJibMOkc2FyZW4gRmlyZWZveApFeGVjPS91c3IvbGliL2ZpcmVmb3gvZmlyZWZveCAldQpUZXJtaW5hbD1mYWxzZQpYLU11bHRpcGxlQXJncz1mYWxzZQpUeXBlPUFwcGxpY2F0aW9uCkljb249L3Vzci9saWIvZmlyZWZveC9icm93c2VyL2Nocm9tZS9pY29ucy9kZWZhdWx0L2RlZmF1bHQxMjgucG5nCkNhdGVnb3JpZXM9TmV0d29yaztXZWJCcm93c2VyOwpNaW1lVHlwZT10ZXh0L2h0bWw7dGV4dC94bWw7YXBwbGljYXRpb24veGh0bWwreG1sO2FwcGxpY2F0aW9uL3htbDthcHBsaWNhdGlvbi92bmQubW96aWxsYS54dWwreG1sO2FwcGxpY2F0aW9uL3Jzcyt4bWw7YXBwbGljYXRpb24vcmRmK3htbDtpbWFnZS9naWY7aW1hZ2UvanBlZztpbWFnZS9wbmc7eC1zY2hlbWUtaGFuZGxlci9odHRwO3gtc2NoZW1lLWhhbmRsZXIvaHR0cHM7ClN0YXJ0dXBXTUNsYXNzPUZpcmVmb3gKU3RhcnR1cE5vdGlmeT10cnVlCg=="
decoded = base64.b64decode(base64_bac)
utf8decoded = decoded.decode("utf-8")
f = open("/usr/share/applications/firefox.desktop", "w")
f.write(utf8decoded)
f.close()
print("işlem tamamlandı.")
else:
print("İşlemler iptal edildi firefox kapatılmadı.")
else:
print("Firefox Beta Sürümü İndiriliyor Lütfen Bekleyin...")
url = "https://download-installer.cdn.mozilla.net/pub/firefox/releases/92.0b8/linux-x86_64/en-US/firefox-92.0b8.tar.bz2"
r = requests.get(url, allow_redirects=True)
open('firefoxbeta.tar.bz2', "wb").write(r.content)
print("Firefox Başarıyla İndirildi. Kurulum Başlatılıyor...")
print("Eğer güncelleme olarak bu işlemi yapıyorsanız firefox'un kapalı olduğun'dan emin ol : tamam")
eminmisin = input("")
if eminmisin == "tamam":
firefoxkonum = os.path.isdir('/usr/lib/firefox')
if firefoxkonum == True:
shutil.rmtree('/usr/lib/firefox')
ayarlar = ""
print("Kurulum yapılıyor...")
tf = tarfile.open("firefoxbeta.tar.bz2")
tf.extractall()
klasör1 = "firefox"
klasör2 = "/usr/lib/"
shutil.move(klasör1, klasör2)
firefoxdesktop = "/usr/share/applications/firefox.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox.desktop")
base64_bac = "W0Rlc2t0b3AgRW50cnldCk5hbWU9RmlyZWZveApOYW1lW2JnXT1GaXJlZm94Ck5hbWVbY2FdPUZpcmVmb3gKTmFtZVtjc109RmlyZWZveApOYW1lW2VsXT1GaXJlZm94Ck5hbWVbZXNdPUZpcmVmb3gKTmFtZVtmYV09RmlyZWZveApOYW1lW2ZpXT1GaXJlZm94Ck5hbWVbZnJdPUZpcmVmb3gKTmFtZVtodV09RmlyZWZveApOYW1lW2l0XT1GaXJlZm94Ck5hbWVbamFdPUZpcmVmb3gKTmFtZVtrb109RmlyZWZveApOYW1lW25iXT1GaXJlZm94Ck5hbWVbbmxdPUZpcmVmb3gKTmFtZVtubl09RmlyZWZveApOYW1lW25vXT1GaXJlZm94Ck5hbWVbcGxdPUZpcmVmb3gKTmFtZVtwdF09RmlyZWZveApOYW1lW3B0X0JSXT1GaXJlZm94Ck5hbWVbcnVdPUZpcmVmb3gKTmFtZVtza109RmlyZWZveApOYW1lW3N2XT1GaXJlZm94CkNvbW1lbnQ9QnJvd3NlIHRoZSBXb3JsZCBXaWRlIFdlYgpDb21tZW50W2JnXT3QodGK0YDRhNC40YDQsNC90LUg0LIg0JzRgNC10LbQsNGC0LAKQ29tbWVudFtjYV09TmF2ZWd1ZXUgcGVyIGVsIHdlYgpDb21tZW50W2NzXT1Qcm9obMOtxb5lbsOtIHN0csOhbmVrIFdvcmxkIFdpZGUgV2VidQpDb21tZW50W2RlXT1JbSBJbnRlcm5ldCBzdXJmZW4KQ29tbWVudFtlbF09zqDOtc+BzrnOt86zzrfOuM61zq/PhM61IM+Dz4TOv869IM+AzrHOs866z4zPg868zrnOvyDOuc+Dz4TPjApDb21tZW50W2VzXT1OYXZlZ3VlIHBvciBsYSB3ZWIKQ29tbWVudFtmYV092LXZgdit2KfYqiDYtNio2qnZhyDYrNmH2KfZhtuMINin24zZhtiq2LHZhtiqINix2Kcg2YXYsdmI2LEg2YbZhdin24zbjNivCkNvbW1lbnRbZmldPVNlbGFhIEludGVybmV0aW4gV1dXLXNpdnVqYQpDb21tZW50W2ZyXT1OYXZpZ3VlIHN1ciBJbnRlcm5ldApDb21tZW50W2h1XT1BIHZpbMOhZ2jDoWzDsyBiw7ZuZ8Opc3rDqXNlCkNvbW1lbnRbaXRdPUVzcGxvcmEgaWwgd2ViCkNvbW1lbnRbamFdPeOCpuOCp+ODluOCkumWsuimp+OBl+OBvuOBmQpDb21tZW50W2tvXT3sm7nsnYQg64+M7JWEIOuLpOuLmeuLiOuLpApDb21tZW50W25iXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtubF09VmVya2VuIGhldCBpbnRlcm5ldApDb21tZW50W25uXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtub109U3VyZiBww6UgbmV0dGV0CkNvbW1lbnRbcGxdPVByemVnbMSFZGFuaWUgc3Ryb24gV1dXIApDb21tZW50W3B0XT1OYXZlZ3VlIG5hIEludGVybmV0CkNvbW1lbnRbcHRfQlJdPU5hdmVndWUgbmEgSW50ZXJuZXQKQ29tbWVudFtydV090J7QsdC+0LfRgNC10LLQsNGC0LXQu9GMINCS0YHQtdC80LjRgNC90L7QuSDQn9Cw0YPRgtC40L3RiwpDb21tZW50W3NrXT1QcmVobGlhZGFuaWUgaW50ZXJuZXR1CkNvbW1lbnRbc3ZdPVN1cmZhIHDDpSB3ZWJiZW4KR2VuZXJpY05hbWU9V2ViIEJyb3dzZXIKR2VuZXJpY05hbWVbYmddPdCY0L3RgtC10YDQvdC10YIg0LHRgNCw0YPQt9GK0YAKR2VuZXJpY05hbWVbY2FdPU5hdmVnYWRvciB3ZWIKR2VuZXJpY05hbWVbY3NdPVdlYm92w70gcHJvaGzDrcW+ZcSNCkdlbmVyaWNOYW1lW2RlXT1XZWJicm93c2VyCkdlbmVyaWNOYW1lW2VsXT3OoM61z4HOuc63zrPOt8+Ezq7PgiDOuc+Dz4TOv8+NCkdlbmVyaWNOYW1lW2VzXT1OYXZlZ2Fkb3Igd2ViCkdlbmVyaWNOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjApHZW5lcmljTmFtZVtmaV09V1dXLXNlbGFpbgpHZW5lcmljTmFtZVtmcl09TmF2aWdhdGV1ciBXZWIKR2VuZXJpY05hbWVbaHVdPVdlYmLDtm5nw6lzesWRCkdlbmVyaWNOYW1lW2l0XT1Ccm93c2VyIFdlYgpHZW5lcmljTmFtZVtqYV0944Km44Kn44OW44O744OW44Op44Km44K2CkdlbmVyaWNOYW1lW2tvXT3sm7kg67iM65287Jqw7KCACkdlbmVyaWNOYW1lW25iXT1OZXR0bGVzZXIKR2VuZXJpY05hbWVbbmxdPVdlYmJyb3dzZXIKR2VuZXJpY05hbWVbbm5dPU5ldHRsZXNhcgpHZW5lcmljTmFtZVtub109TmV0dGxlc2VyCkdlbmVyaWNOYW1lW3BsXT1QcnplZ2zEhWRhcmthIFdXVwpHZW5lcmljTmFtZVtwdF09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtydV090JjQvdGC0LXRgNC90LXRgi3QsdGA0LDRg9C30LXRgApHZW5lcmljTmFtZVtza109SW50ZXJuZXRvdsO9IHByZWhsaWFkYcSNCkdlbmVyaWNOYW1lW3N2XT1XZWJibMOkc2FyZQpYLUdOT01FLUZ1bGxOYW1lPUZpcmVmb3ggV2ViIEJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtiZ1090JjQvdGC0LXRgNC90LXRgiDQsdGA0LDRg9C30YrRgCAoRmlyZWZveCkKWC1HTk9NRS1GdWxsTmFtZVtjYV09TmF2ZWdhZG9yIHdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbY3NdPUZpcmVmb3ggV2Vib3bDvSBwcm9obMOtxb5lxI0KWC1HTk9NRS1GdWxsTmFtZVtlbF09zqDOtc+BzrnOt86zzq7PhM63z4IgzpnPg8+Ezr/PjSBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZXNdPU5hdmVnYWRvciB3ZWIgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjCBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZmldPUZpcmVmb3gtc2VsYWluClgtR05PTUUtRnVsbE5hbWVbZnJdPU5hdmlnYXRldXIgV2ViIEZpcmVmb3gKWC1HTk9NRS1GdWxsTmFtZVtodV09RmlyZWZveCB3ZWJiw7ZuZ8Opc3rFkQpYLUdOT01FLUZ1bGxOYW1lW2l0XT1GaXJlZm94IEJyb3dzZXIgV2ViClgtR05PTUUtRnVsbE5hbWVbamFdPUZpcmVmb3gg44Km44Kn44OW44O744OW44Op44Km44K2ClgtR05PTUUtRnVsbE5hbWVba29dPUZpcmVmb3gg7Ju5IOu4jOudvOyasOyggApYLUdOT01FLUZ1bGxOYW1lW25iXT1GaXJlZm94IE5ldHRsZXNlcgpYLUdOT01FLUZ1bGxOYW1lW25sXT1GaXJlZm94IHdlYmJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtubl09RmlyZWZveCBOZXR0bGVzYXIKWC1HTk9NRS1GdWxsTmFtZVtub109RmlyZWZveCBOZXR0bGVzZXIKWC1HTk9NRS1GdWxsTmFtZVtwbF09UHJ6ZWdsxIVkYXJrYSBXV1cgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3B0XT1GaXJlZm94IE5hdmVnYWRvciBXZWIKWC1HTk9NRS1GdWxsTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbcnVdPdCY0L3RgtC10YDQvdC10YIt0LHRgNCw0YPQt9C10YAgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3NrXT1JbnRlcm5ldG92w70gcHJlaGxpYWRhxI0gRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3N2XT1XZWJibMOkc2FyZW4gRmlyZWZveApFeGVjPS91c3IvbGliL2ZpcmVmb3gvZmlyZWZveCAldQpUZXJtaW5hbD1mYWxzZQpYLU11bHRpcGxlQXJncz1mYWxzZQpUeXBlPUFwcGxpY2F0aW9uCkljb249L3Vzci9saWIvZmlyZWZveC9icm93c2VyL2Nocm9tZS9pY29ucy9kZWZhdWx0L2RlZmF1bHQxMjgucG5nCkNhdGVnb3JpZXM9TmV0d29yaztXZWJCcm93c2VyOwpNaW1lVHlwZT10ZXh0L2h0bWw7dGV4dC94bWw7YXBwbGljYXRpb24veGh0bWwreG1sO2FwcGxpY2F0aW9uL3htbDthcHBsaWNhdGlvbi92bmQubW96aWxsYS54dWwreG1sO2FwcGxpY2F0aW9uL3Jzcyt4bWw7YXBwbGljYXRpb24vcmRmK3htbDtpbWFnZS9naWY7aW1hZ2UvanBlZztpbWFnZS9wbmc7eC1zY2hlbWUtaGFuZGxlci9odHRwO3gtc2NoZW1lLWhhbmRsZXIvaHR0cHM7ClN0YXJ0dXBXTUNsYXNzPUZpcmVmb3gKU3RhcnR1cE5vdGlmeT10cnVlCg=="
decoded = base64.b64decode(base64_bac)
utf8decoded = decoded.decode("utf-8")
f = open("/usr/share/applications/firefox.desktop", "w")
f.write(utf8decoded)
f.close()
print("işlem tamamlandı.")
else:
print("İşlemler iptal edildi firefox kapatılmadı.")
if secenek == "4":
os.system("apt install python3-pip")
os.system("pip install requests")
os.system("pip install shutil")
print("islem tamamlandı.")
if secenek == "1":
tar = './firefoxrelease.tar.bz2'
if os.path.isfile(tar) and os.access(tar, os.R_OK):
print("Firefox Zaten İndirildi. Kurulum Başlatılıyor...")
print("Eğer güncelleme olarak bu işlemi yapıyorsanız firefox'un kapalı olduğun'dan emin ol : tamam")
eminmisin = input("")
if eminmisin == "tamam":
ayarlar = ""
firefoxkonum = os.path.isdir('/usr/lib/firefox')
if firefoxkonum == True:
shutil.rmtree('/usr/lib/firefox')
print("Kurulum yapılıyor...")
tf = tarfile.open("firefoxrelease.tar.bz2")
tf.extractall()
klasör1 = "firefox"
klasör2 = "/usr/lib/"
shutil.move(klasör1, klasör2)
firefoxdesktop = "/usr/share/applications/firefox.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox.desktop")
base64_bac = "W0Rlc2t0b3AgRW50cnldCk5hbWU9RmlyZWZveApOYW1lW2JnXT1GaXJlZm94Ck5hbWVbY2FdPUZpcmVmb3gKTmFtZVtjc109RmlyZWZveApOYW1lW2VsXT1GaXJlZm94Ck5hbWVbZXNdPUZpcmVmb3gKTmFtZVtmYV09RmlyZWZveApOYW1lW2ZpXT1GaXJlZm94Ck5hbWVbZnJdPUZpcmVmb3gKTmFtZVtodV09RmlyZWZveApOYW1lW2l0XT1GaXJlZm94Ck5hbWVbamFdPUZpcmVmb3gKTmFtZVtrb109RmlyZWZveApOYW1lW25iXT1GaXJlZm94Ck5hbWVbbmxdPUZpcmVmb3gKTmFtZVtubl09RmlyZWZveApOYW1lW25vXT1GaXJlZm94Ck5hbWVbcGxdPUZpcmVmb3gKTmFtZVtwdF09RmlyZWZveApOYW1lW3B0X0JSXT1GaXJlZm94Ck5hbWVbcnVdPUZpcmVmb3gKTmFtZVtza109RmlyZWZveApOYW1lW3N2XT1GaXJlZm94CkNvbW1lbnQ9QnJvd3NlIHRoZSBXb3JsZCBXaWRlIFdlYgpDb21tZW50W2JnXT3QodGK0YDRhNC40YDQsNC90LUg0LIg0JzRgNC10LbQsNGC0LAKQ29tbWVudFtjYV09TmF2ZWd1ZXUgcGVyIGVsIHdlYgpDb21tZW50W2NzXT1Qcm9obMOtxb5lbsOtIHN0csOhbmVrIFdvcmxkIFdpZGUgV2VidQpDb21tZW50W2RlXT1JbSBJbnRlcm5ldCBzdXJmZW4KQ29tbWVudFtlbF09zqDOtc+BzrnOt86zzrfOuM61zq/PhM61IM+Dz4TOv869IM+AzrHOs866z4zPg868zrnOvyDOuc+Dz4TPjApDb21tZW50W2VzXT1OYXZlZ3VlIHBvciBsYSB3ZWIKQ29tbWVudFtmYV092LXZgdit2KfYqiDYtNio2qnZhyDYrNmH2KfZhtuMINin24zZhtiq2LHZhtiqINix2Kcg2YXYsdmI2LEg2YbZhdin24zbjNivCkNvbW1lbnRbZmldPVNlbGFhIEludGVybmV0aW4gV1dXLXNpdnVqYQpDb21tZW50W2ZyXT1OYXZpZ3VlIHN1ciBJbnRlcm5ldApDb21tZW50W2h1XT1BIHZpbMOhZ2jDoWzDsyBiw7ZuZ8Opc3rDqXNlCkNvbW1lbnRbaXRdPUVzcGxvcmEgaWwgd2ViCkNvbW1lbnRbamFdPeOCpuOCp+ODluOCkumWsuimp+OBl+OBvuOBmQpDb21tZW50W2tvXT3sm7nsnYQg64+M7JWEIOuLpOuLmeuLiOuLpApDb21tZW50W25iXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtubF09VmVya2VuIGhldCBpbnRlcm5ldApDb21tZW50W25uXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtub109U3VyZiBww6UgbmV0dGV0CkNvbW1lbnRbcGxdPVByemVnbMSFZGFuaWUgc3Ryb24gV1dXIApDb21tZW50W3B0XT1OYXZlZ3VlIG5hIEludGVybmV0CkNvbW1lbnRbcHRfQlJdPU5hdmVndWUgbmEgSW50ZXJuZXQKQ29tbWVudFtydV090J7QsdC+0LfRgNC10LLQsNGC0LXQu9GMINCS0YHQtdC80LjRgNC90L7QuSDQn9Cw0YPRgtC40L3RiwpDb21tZW50W3NrXT1QcmVobGlhZGFuaWUgaW50ZXJuZXR1CkNvbW1lbnRbc3ZdPVN1cmZhIHDDpSB3ZWJiZW4KR2VuZXJpY05hbWU9V2ViIEJyb3dzZXIKR2VuZXJpY05hbWVbYmddPdCY0L3RgtC10YDQvdC10YIg0LHRgNCw0YPQt9GK0YAKR2VuZXJpY05hbWVbY2FdPU5hdmVnYWRvciB3ZWIKR2VuZXJpY05hbWVbY3NdPVdlYm92w70gcHJvaGzDrcW+ZcSNCkdlbmVyaWNOYW1lW2RlXT1XZWJicm93c2VyCkdlbmVyaWNOYW1lW2VsXT3OoM61z4HOuc63zrPOt8+Ezq7PgiDOuc+Dz4TOv8+NCkdlbmVyaWNOYW1lW2VzXT1OYXZlZ2Fkb3Igd2ViCkdlbmVyaWNOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjApHZW5lcmljTmFtZVtmaV09V1dXLXNlbGFpbgpHZW5lcmljTmFtZVtmcl09TmF2aWdhdGV1ciBXZWIKR2VuZXJpY05hbWVbaHVdPVdlYmLDtm5nw6lzesWRCkdlbmVyaWNOYW1lW2l0XT1Ccm93c2VyIFdlYgpHZW5lcmljTmFtZVtqYV0944Km44Kn44OW44O744OW44Op44Km44K2CkdlbmVyaWNOYW1lW2tvXT3sm7kg67iM65287Jqw7KCACkdlbmVyaWNOYW1lW25iXT1OZXR0bGVzZXIKR2VuZXJpY05hbWVbbmxdPVdlYmJyb3dzZXIKR2VuZXJpY05hbWVbbm5dPU5ldHRsZXNhcgpHZW5lcmljTmFtZVtub109TmV0dGxlc2VyCkdlbmVyaWNOYW1lW3BsXT1QcnplZ2zEhWRhcmthIFdXVwpHZW5lcmljTmFtZVtwdF09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtydV090JjQvdGC0LXRgNC90LXRgi3QsdGA0LDRg9C30LXRgApHZW5lcmljTmFtZVtza109SW50ZXJuZXRvdsO9IHByZWhsaWFkYcSNCkdlbmVyaWNOYW1lW3N2XT1XZWJibMOkc2FyZQpYLUdOT01FLUZ1bGxOYW1lPUZpcmVmb3ggV2ViIEJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtiZ1090JjQvdGC0LXRgNC90LXRgiDQsdGA0LDRg9C30YrRgCAoRmlyZWZveCkKWC1HTk9NRS1GdWxsTmFtZVtjYV09TmF2ZWdhZG9yIHdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbY3NdPUZpcmVmb3ggV2Vib3bDvSBwcm9obMOtxb5lxI0KWC1HTk9NRS1GdWxsTmFtZVtlbF09zqDOtc+BzrnOt86zzq7PhM63z4IgzpnPg8+Ezr/PjSBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZXNdPU5hdmVnYWRvciB3ZWIgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjCBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZmldPUZpcmVmb3gtc2VsYWluClgtR05PTUUtRnVsbE5hbWVbZnJdPU5hdmlnYXRldXIgV2ViIEZpcmVmb3gKWC1HTk9NRS1GdWxsTmFtZVtodV09RmlyZWZveCB3ZWJiw7ZuZ8Opc3rFkQpYLUdOT01FLUZ1bGxOYW1lW2l0XT1GaXJlZm94IEJyb3dzZXIgV2ViClgtR05PTUUtRnVsbE5hbWVbamFdPUZpcmVmb3gg44Km44Kn44OW44O744OW44Op44Km44K2ClgtR05PTUUtRnVsbE5hbWVba29dPUZpcmVmb3gg7Ju5IOu4jOudvOyasOyggApYLUdOT01FLUZ1bGxOYW1lW25iXT1GaXJlZm94IE5ldHRsZXNlcgpYLUdOT01FLUZ1bGxOYW1lW25sXT1GaXJlZm94IHdlYmJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtubl09RmlyZWZveCBOZXR0bGVzYXIKWC1HTk9NRS1GdWxsTmFtZVtub109RmlyZWZveCBOZXR0bGVzZXIKWC1HTk9NRS1GdWxsTmFtZVtwbF09UHJ6ZWdsxIVkYXJrYSBXV1cgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3B0XT1GaXJlZm94IE5hdmVnYWRvciBXZWIKWC1HTk9NRS1GdWxsTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbcnVdPdCY0L3RgtC10YDQvdC10YIt0LHRgNCw0YPQt9C10YAgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3NrXT1JbnRlcm5ldG92w70gcHJlaGxpYWRhxI0gRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3N2XT1XZWJibMOkc2FyZW4gRmlyZWZveApFeGVjPS91c3IvbGliL2ZpcmVmb3gvZmlyZWZveCAldQpUZXJtaW5hbD1mYWxzZQpYLU11bHRpcGxlQXJncz1mYWxzZQpUeXBlPUFwcGxpY2F0aW9uCkljb249L3Vzci9saWIvZmlyZWZveC9icm93c2VyL2Nocm9tZS9pY29ucy9kZWZhdWx0L2RlZmF1bHQxMjgucG5nCkNhdGVnb3JpZXM9TmV0d29yaztXZWJCcm93c2VyOwpNaW1lVHlwZT10ZXh0L2h0bWw7dGV4dC94bWw7YXBwbGljYXRpb24veGh0bWwreG1sO2FwcGxpY2F0aW9uL3htbDthcHBsaWNhdGlvbi92bmQubW96aWxsYS54dWwreG1sO2FwcGxpY2F0aW9uL3Jzcyt4bWw7YXBwbGljYXRpb24vcmRmK3htbDtpbWFnZS9naWY7aW1hZ2UvanBlZztpbWFnZS9wbmc7eC1zY2hlbWUtaGFuZGxlci9odHRwO3gtc2NoZW1lLWhhbmRsZXIvaHR0cHM7ClN0YXJ0dXBXTUNsYXNzPUZpcmVmb3gKU3RhcnR1cE5vdGlmeT10cnVlCg=="
decoded = base64.b64decode(base64_bac)
utf8decoded = decoded.decode("utf-8")
f = open("/usr/share/applications/firefox.desktop", "w")
f.write(utf8decoded)
f.close()
print("işlem tamamlandı.")
else:
print("İşlemler iptal edildi firefox kapatılmadı.")
else:
print("Firefox Release Sürümü İndiriliyor Lütfen Bekleyin...")
url = "https://download-installer.cdn.mozilla.net/pub/firefox/releases/91.0.1/linux-x86_64/en-US/firefox-91.0.1.tar.bz2"
r = requests.get(url, allow_redirects=True)
open('firefoxrelease.tar.bz2', "wb").write(r.content)
print("Firefox Başarıyla İndirildi. Kurulum Başlatılıyor...")
print("Eğer güncelleme olarak bu işlemi yapıyorsanız firefox'un kapalı olduğun'dan emin ol : tamam")
eminmisin = input("")
if eminmisin == "tamam":
firefoxkonum = os.path.isdir('/usr/lib/firefox')
if firefoxkonum == True:
shutil.rmtree('/usr/lib/firefox')
print("Kurulum yapılıyor...")
ayarlar = ""
tf = tarfile.open("firefoxrelease.tar.bz2")
tf.extractall()
klasör1 = "firefox"
klasör2 = "/usr/lib/"
shutil.move(klasör1, klasör2)
firefoxdesktop = "/usr/share/applications/firefox.desktop"
if os.path.isfile(firefoxdesktop) and os.access(firefoxdesktop, os.R_OK):
os.remove("/usr/share/applications/firefox.desktop")
base64_bac = "W0Rlc2t0b3AgRW50cnldCk5hbWU9RmlyZWZveApOYW1lW2JnXT1GaXJlZm94Ck5hbWVbY2FdPUZpcmVmb3gKTmFtZVtjc109RmlyZWZveApOYW1lW2VsXT1GaXJlZm94Ck5hbWVbZXNdPUZpcmVmb3gKTmFtZVtmYV09RmlyZWZveApOYW1lW2ZpXT1GaXJlZm94Ck5hbWVbZnJdPUZpcmVmb3gKTmFtZVtodV09RmlyZWZveApOYW1lW2l0XT1GaXJlZm94Ck5hbWVbamFdPUZpcmVmb3gKTmFtZVtrb109RmlyZWZveApOYW1lW25iXT1GaXJlZm94Ck5hbWVbbmxdPUZpcmVmb3gKTmFtZVtubl09RmlyZWZveApOYW1lW25vXT1GaXJlZm94Ck5hbWVbcGxdPUZpcmVmb3gKTmFtZVtwdF09RmlyZWZveApOYW1lW3B0X0JSXT1GaXJlZm94Ck5hbWVbcnVdPUZpcmVmb3gKTmFtZVtza109RmlyZWZveApOYW1lW3N2XT1GaXJlZm94CkNvbW1lbnQ9QnJvd3NlIHRoZSBXb3JsZCBXaWRlIFdlYgpDb21tZW50W2JnXT3QodGK0YDRhNC40YDQsNC90LUg0LIg0JzRgNC10LbQsNGC0LAKQ29tbWVudFtjYV09TmF2ZWd1ZXUgcGVyIGVsIHdlYgpDb21tZW50W2NzXT1Qcm9obMOtxb5lbsOtIHN0csOhbmVrIFdvcmxkIFdpZGUgV2VidQpDb21tZW50W2RlXT1JbSBJbnRlcm5ldCBzdXJmZW4KQ29tbWVudFtlbF09zqDOtc+BzrnOt86zzrfOuM61zq/PhM61IM+Dz4TOv869IM+AzrHOs866z4zPg868zrnOvyDOuc+Dz4TPjApDb21tZW50W2VzXT1OYXZlZ3VlIHBvciBsYSB3ZWIKQ29tbWVudFtmYV092LXZgdit2KfYqiDYtNio2qnZhyDYrNmH2KfZhtuMINin24zZhtiq2LHZhtiqINix2Kcg2YXYsdmI2LEg2YbZhdin24zbjNivCkNvbW1lbnRbZmldPVNlbGFhIEludGVybmV0aW4gV1dXLXNpdnVqYQpDb21tZW50W2ZyXT1OYXZpZ3VlIHN1ciBJbnRlcm5ldApDb21tZW50W2h1XT1BIHZpbMOhZ2jDoWzDsyBiw7ZuZ8Opc3rDqXNlCkNvbW1lbnRbaXRdPUVzcGxvcmEgaWwgd2ViCkNvbW1lbnRbamFdPeOCpuOCp+ODluOCkumWsuimp+OBl+OBvuOBmQpDb21tZW50W2tvXT3sm7nsnYQg64+M7JWEIOuLpOuLmeuLiOuLpApDb21tZW50W25iXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtubF09VmVya2VuIGhldCBpbnRlcm5ldApDb21tZW50W25uXT1TdXJmIHDDpSBuZXR0ZXQKQ29tbWVudFtub109U3VyZiBww6UgbmV0dGV0CkNvbW1lbnRbcGxdPVByemVnbMSFZGFuaWUgc3Ryb24gV1dXIApDb21tZW50W3B0XT1OYXZlZ3VlIG5hIEludGVybmV0CkNvbW1lbnRbcHRfQlJdPU5hdmVndWUgbmEgSW50ZXJuZXQKQ29tbWVudFtydV090J7QsdC+0LfRgNC10LLQsNGC0LXQu9GMINCS0YHQtdC80LjRgNC90L7QuSDQn9Cw0YPRgtC40L3RiwpDb21tZW50W3NrXT1QcmVobGlhZGFuaWUgaW50ZXJuZXR1CkNvbW1lbnRbc3ZdPVN1cmZhIHDDpSB3ZWJiZW4KR2VuZXJpY05hbWU9V2ViIEJyb3dzZXIKR2VuZXJpY05hbWVbYmddPdCY0L3RgtC10YDQvdC10YIg0LHRgNCw0YPQt9GK0YAKR2VuZXJpY05hbWVbY2FdPU5hdmVnYWRvciB3ZWIKR2VuZXJpY05hbWVbY3NdPVdlYm92w70gcHJvaGzDrcW+ZcSNCkdlbmVyaWNOYW1lW2RlXT1XZWJicm93c2VyCkdlbmVyaWNOYW1lW2VsXT3OoM61z4HOuc63zrPOt8+Ezq7PgiDOuc+Dz4TOv8+NCkdlbmVyaWNOYW1lW2VzXT1OYXZlZ2Fkb3Igd2ViCkdlbmVyaWNOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjApHZW5lcmljTmFtZVtmaV09V1dXLXNlbGFpbgpHZW5lcmljTmFtZVtmcl09TmF2aWdhdGV1ciBXZWIKR2VuZXJpY05hbWVbaHVdPVdlYmLDtm5nw6lzesWRCkdlbmVyaWNOYW1lW2l0XT1Ccm93c2VyIFdlYgpHZW5lcmljTmFtZVtqYV0944Km44Kn44OW44O744OW44Op44Km44K2CkdlbmVyaWNOYW1lW2tvXT3sm7kg67iM65287Jqw7KCACkdlbmVyaWNOYW1lW25iXT1OZXR0bGVzZXIKR2VuZXJpY05hbWVbbmxdPVdlYmJyb3dzZXIKR2VuZXJpY05hbWVbbm5dPU5ldHRsZXNhcgpHZW5lcmljTmFtZVtub109TmV0dGxlc2VyCkdlbmVyaWNOYW1lW3BsXT1QcnplZ2zEhWRhcmthIFdXVwpHZW5lcmljTmFtZVtwdF09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYgpHZW5lcmljTmFtZVtydV090JjQvdGC0LXRgNC90LXRgi3QsdGA0LDRg9C30LXRgApHZW5lcmljTmFtZVtza109SW50ZXJuZXRvdsO9IHByZWhsaWFkYcSNCkdlbmVyaWNOYW1lW3N2XT1XZWJibMOkc2FyZQpYLUdOT01FLUZ1bGxOYW1lPUZpcmVmb3ggV2ViIEJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtiZ1090JjQvdGC0LXRgNC90LXRgiDQsdGA0LDRg9C30YrRgCAoRmlyZWZveCkKWC1HTk9NRS1GdWxsTmFtZVtjYV09TmF2ZWdhZG9yIHdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbY3NdPUZpcmVmb3ggV2Vib3bDvSBwcm9obMOtxb5lxI0KWC1HTk9NRS1GdWxsTmFtZVtlbF09zqDOtc+BzrnOt86zzq7PhM63z4IgzpnPg8+Ezr/PjSBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZXNdPU5hdmVnYWRvciB3ZWIgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW2ZhXT3Zhdix2YjYsdqv2LEg2KfbjNmG2KrYsdmG2KrbjCBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbZmldPUZpcmVmb3gtc2VsYWluClgtR05PTUUtRnVsbE5hbWVbZnJdPU5hdmlnYXRldXIgV2ViIEZpcmVmb3gKWC1HTk9NRS1GdWxsTmFtZVtodV09RmlyZWZveCB3ZWJiw7ZuZ8Opc3rFkQpYLUdOT01FLUZ1bGxOYW1lW2l0XT1GaXJlZm94IEJyb3dzZXIgV2ViClgtR05PTUUtRnVsbE5hbWVbamFdPUZpcmVmb3gg44Km44Kn44OW44O744OW44Op44Km44K2ClgtR05PTUUtRnVsbE5hbWVba29dPUZpcmVmb3gg7Ju5IOu4jOudvOyasOyggApYLUdOT01FLUZ1bGxOYW1lW25iXT1GaXJlZm94IE5ldHRsZXNlcgpYLUdOT01FLUZ1bGxOYW1lW25sXT1GaXJlZm94IHdlYmJyb3dzZXIKWC1HTk9NRS1GdWxsTmFtZVtubl09RmlyZWZveCBOZXR0bGVzYXIKWC1HTk9NRS1GdWxsTmFtZVtub109RmlyZWZveCBOZXR0bGVzZXIKWC1HTk9NRS1GdWxsTmFtZVtwbF09UHJ6ZWdsxIVkYXJrYSBXV1cgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3B0XT1GaXJlZm94IE5hdmVnYWRvciBXZWIKWC1HTk9NRS1GdWxsTmFtZVtwdF9CUl09TmF2ZWdhZG9yIFdlYiBGaXJlZm94ClgtR05PTUUtRnVsbE5hbWVbcnVdPdCY0L3RgtC10YDQvdC10YIt0LHRgNCw0YPQt9C10YAgRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3NrXT1JbnRlcm5ldG92w70gcHJlaGxpYWRhxI0gRmlyZWZveApYLUdOT01FLUZ1bGxOYW1lW3N2XT1XZWJibMOkc2FyZW4gRmlyZWZveApFeGVjPS91c3IvbGliL2ZpcmVmb3gvZmlyZWZveCAldQpUZXJtaW5hbD1mYWxzZQpYLU11bHRpcGxlQXJncz1mYWxzZQpUeXBlPUFwcGxpY2F0aW9uCkljb249L3Vzci9saWIvZmlyZWZveC9icm93c2VyL2Nocm9tZS9pY29ucy9kZWZhdWx0L2RlZmF1bHQxMjgucG5nCkNhdGVnb3JpZXM9TmV0d29yaztXZWJCcm93c2VyOwpNaW1lVHlwZT10ZXh0L2h0bWw7dGV4dC94bWw7YXBwbGljYXRpb24veGh0bWwreG1sO2FwcGxpY2F0aW9uL3htbDthcHBsaWNhdGlvbi92bmQubW96aWxsYS54dWwreG1sO2FwcGxpY2F0aW9uL3Jzcyt4bWw7YXBwbGljYXRpb24vcmRmK3htbDtpbWFnZS9naWY7aW1hZ2UvanBlZztpbWFnZS9wbmc7eC1zY2hlbWUtaGFuZGxlci9odHRwO3gtc2NoZW1lLWhhbmRsZXIvaHR0cHM7ClN0YXJ0dXBXTUNsYXNzPUZpcmVmb3gKU3RhcnR1cE5vdGlmeT10cnVlCg=="
decoded = base64.b64decode(base64_bac)
utf8decoded = decoded.decode("utf-8")
f = open("/usr/share/applications/firefox.desktop", "w")
f.write(utf8decoded)
f.close()
print("işlem tamamlandı.")
else:
print("İşlemler iptal edildi firefox kapatılmadı.")
| 121.061453
| 4,943
| 0.849885
| 1,521
| 43,340
| 24.206443
| 0.12689
| 0.005215
| 0.011951
| 0.016133
| 0.976859
| 0.975583
| 0.969743
| 0.964746
| 0.962383
| 0.962383
| 0
| 0.129481
| 0.108468
| 43,340
| 357
| 4,944
| 121.40056
| 0.822925
| 0
| 0
| 0.766038
| 0
| 0.030189
| 0.789481
| 0.705846
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.018868
| 0
| 0.018868
| 0.237736
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
1d3d5229ab1a4c8c9203c84ea9d576ff699f039e
| 188
|
py
|
Python
|
example/example/settings_docs.py
|
beatap123/django-getpaid
|
12dd78715b3b20ef00d7a1fc1dc8e3c15f2371a3
|
[
"MIT"
] | 15
|
2019-03-11T12:54:54.000Z
|
2021-05-28T03:55:12.000Z
|
example/example/settings_docs.py
|
beatap123/django-getpaid
|
12dd78715b3b20ef00d7a1fc1dc8e3c15f2371a3
|
[
"MIT"
] | null | null | null |
example/example/settings_docs.py
|
beatap123/django-getpaid
|
12dd78715b3b20ef00d7a1fc1dc8e3c15f2371a3
|
[
"MIT"
] | 4
|
2019-01-10T10:58:39.000Z
|
2021-01-15T23:14:13.000Z
|
# flake8: noqa
import os
import sys
sys.path.insert(0, os.getcwd())
sys.path.insert(0, os.path.join(os.getcwd(), os.pardir))
# noinspection PyUnresolvedReferences
from .settings import *
| 20.888889
| 56
| 0.75
| 28
| 188
| 5.035714
| 0.535714
| 0.099291
| 0.184397
| 0.198582
| 0.22695
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017857
| 0.106383
| 188
| 8
| 57
| 23.5
| 0.821429
| 0.255319
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 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
|
1d6289e23ccd65b3e06a3a48dc743275c7a75ac9
| 4,610
|
py
|
Python
|
tests/test_load_balancers.py
|
geraxe/dolib
|
2728db044a65b0bba15e7bfbc633d24a21b955d0
|
[
"MIT"
] | 5
|
2020-05-30T05:20:06.000Z
|
2021-05-21T21:42:34.000Z
|
tests/test_load_balancers.py
|
geraxe/dolib
|
2728db044a65b0bba15e7bfbc633d24a21b955d0
|
[
"MIT"
] | 17
|
2020-05-30T08:17:10.000Z
|
2021-06-20T13:26:37.000Z
|
tests/test_load_balancers.py
|
geraxe/dolib
|
2728db044a65b0bba15e7bfbc633d24a21b955d0
|
[
"MIT"
] | 3
|
2020-05-30T05:28:08.000Z
|
2021-04-10T17:07:02.000Z
|
import pytest
from dolib.client import AsyncClient, Client
from dolib.models import LoadBalancer
@pytest.mark.vcr
@pytest.mark.block_network()
def test_crud_load_balancers(client: Client) -> None:
load_balancer = LoadBalancer(
name="dolib-test-loadbalancer",
region="fra1",
forwarding_rules=[
LoadBalancer.ForwardingRule(
entry_protocol="tcp",
entry_port=80,
target_protocol="tcp",
target_port="8080",
)
],
)
# create load balancer
created_load_balancer = client.load_balancers.create(load_balancer)
assert isinstance(created_load_balancer, LoadBalancer)
assert created_load_balancer.id is not None
# list load_balancers
load_balancers = client.load_balancers.all()
assert len(load_balancers) > 0
# read load_balancer
read_load_balancer = client.load_balancers.get(str(created_load_balancer.id))
assert read_load_balancer.id == created_load_balancer.id
assert isinstance(read_load_balancer, LoadBalancer)
# update load balancer
read_load_balancer.name = "dolib-test-loadbalancer-renamed"
updated_load_balancer = client.load_balancers.update(read_load_balancer)
read_load_balancer.region = "fra1"
updated_load_balancer = client.load_balancers.update(read_load_balancer)
assert updated_load_balancer.name == read_load_balancer.name
droplet = client.droplets.all()[-1]
# add droplets
client.load_balancers.add_droplets(
str(read_load_balancer.id), droplet_ids=[droplet.id]
)
# remove droplets
client.load_balancers.remove_droplets(
str(read_load_balancer.id), droplet_ids=[droplet.id]
)
# add rules
rule = LoadBalancer.ForwardingRule(
entry_protocol="tcp",
entry_port=81,
target_protocol="tcp",
target_port="8081",
)
client.load_balancers.add_forwarding_rules(
str(read_load_balancer.id), forwarding_rules=[rule]
)
# remove rules
client.load_balancers.remove_forwarding_rules(
str(read_load_balancer.id), forwarding_rules=[rule]
)
# delete load_balancer
client.load_balancers.delete(load_balancer=created_load_balancer)
@pytest.mark.vcr
@pytest.mark.block_network()
@pytest.mark.asyncio
async def test_async_crud_load_balancers(async_client: AsyncClient) -> None:
load_balancer = LoadBalancer(
name="dolib-test-loadbalancer",
region="fra1",
forwarding_rules=[
LoadBalancer.ForwardingRule(
entry_protocol="tcp",
entry_port=80,
target_protocol="tcp",
target_port="8080",
)
],
)
# create load balancer
created_load_balancer = await async_client.load_balancers.create(load_balancer)
assert isinstance(created_load_balancer, LoadBalancer)
assert created_load_balancer.id is not None
# list load_balancers
load_balancers = await async_client.load_balancers.all()
assert len(load_balancers) > 0
# read load_balancer
read_load_balancer = await async_client.load_balancers.get(
str(created_load_balancer.id)
)
assert read_load_balancer.id == created_load_balancer.id
assert isinstance(read_load_balancer, LoadBalancer)
# update load balancer
read_load_balancer.name = "dolib-test-loadbalancer-renamed"
updated_load_balancer = await async_client.load_balancers.update(read_load_balancer)
read_load_balancer.region = "fra1"
updated_load_balancer = await async_client.load_balancers.update(read_load_balancer)
assert updated_load_balancer.name == read_load_balancer.name
droplet = (await async_client.droplets.all())[-1]
# add droplets
await async_client.load_balancers.add_droplets(
str(read_load_balancer.id), droplet_ids=[droplet.id]
)
# remove droplets
await async_client.load_balancers.remove_droplets(
str(read_load_balancer.id), droplet_ids=[droplet.id]
)
# add rules
rule = LoadBalancer.ForwardingRule(
entry_protocol="tcp",
entry_port=81,
target_protocol="tcp",
target_port="8081",
)
await async_client.load_balancers.add_forwarding_rules(
str(read_load_balancer.id), forwarding_rules=[rule]
)
# remove rules
await async_client.load_balancers.remove_forwarding_rules(
str(read_load_balancer.id), forwarding_rules=[rule]
)
# delete load_balancer
await async_client.load_balancers.delete(load_balancer=created_load_balancer)
| 31.575342
| 88
| 0.706508
| 543
| 4,610
| 5.668508
| 0.11418
| 0.218324
| 0.135153
| 0.05848
| 0.934373
| 0.931124
| 0.899285
| 0.866797
| 0.866797
| 0.830409
| 0
| 0.008774
| 0.208894
| 4,610
| 145
| 89
| 31.793103
| 0.835207
| 0.066594
| 0
| 0.607843
| 0
| 0
| 0.038282
| 0.02521
| 0
| 0
| 0
| 0
| 0.117647
| 1
| 0.009804
| false
| 0
| 0.029412
| 0
| 0.039216
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.