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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c6c54063b59987c8aa59ea53fdab0cacb8af87c | 385 | py | Python | scripts/figures/figure9/stop_next_resnet152/host_run_data.py | netx-repo/PipeSwitch | f321d399e501b79ad51da13074e2aecda36cb06a | [
"Apache-2.0"
] | 81 | 2020-11-05T16:15:58.000Z | 2022-03-09T07:38:51.000Z | scripts/figures/figure9/stop_next_resnet152/host_run_data.py | baizh1994/PipeSwitch | cb7b03f0777cc59038a449e55ce1492f7ec973c6 | [
"Apache-2.0"
] | 3 | 2020-12-21T13:00:09.000Z | 2021-06-13T15:08:46.000Z | scripts/figures/figure9/stop_next_resnet152/host_run_data.py | baizh1994/PipeSwitch | cb7b03f0777cc59038a449e55ce1492f7ec973c6 | [
"Apache-2.0"
] | 22 | 2020-11-06T07:51:35.000Z | 2022-03-09T07:38:53.000Z | import os
import sys
from scripts.common.util import RunRemoteRepo, import_server_list
def main():
server_list_path = sys.argv[1]
server_list = import_server_list(server_list_path)
with RunRemoteRepo(server_list[0], 'dev') as rrr:
rrr.run("bash ~/PipeSwitch/scripts/figures/figure9/stop_next_resnet152/remote_run_data.sh")
if __name__ == '__main__':
main() | 25.666667 | 99 | 0.745455 | 55 | 385 | 4.818182 | 0.6 | 0.226415 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.148052 | 385 | 15 | 100 | 25.666667 | 0.789634 | 0 | 0 | 0 | 0 | 0 | 0.235751 | 0.194301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7c7075d915514d8ea17c1169f66aa1ff036c9031 | 1,980 | py | Python | dlkit/json_/resource/profile.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 2 | 2018-02-23T12:16:11.000Z | 2020-10-08T17:54:24.000Z | dlkit/json_/resource/profile.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 87 | 2017-04-21T18:57:15.000Z | 2021-12-13T19:43:57.000Z | dlkit/json_/resource/profile.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 1 | 2018-03-01T16:44:25.000Z | 2018-03-01T16:44:25.000Z | """Mongo osid profile elements for resource service packages"""
# -*- coding: utf-8 -*-
# pylint: disable=unused-import
# importing common values to be used by resource.ProfileManger implementation
from ..profile import ID
from ..profile import LANGUAGETYPE
from ..profile import SCRIPTTYPE
from ..profile import FORMATTYPE
from ..profile import VERSIONSCHEME
from ..profile import LOCALES
from ..profile import LICENSE
from ..profile import PROVIDERID
from ..profile import OSIDVERSION
DISPLAYNAME = 'Mongo resource'
DESCRIPTION = 'MongoDB based resource implementation'
VERSIONCOMPONENTS = [0, 1, 45]
RELEASEDATE = "2018-03-08"
SUPPORTS = [ # 'Remove the # when implementations exist:'
# 'supports_journal_rollback',
# 'supports_journal_branching',
# 'supports_visible_federation',
'supports_resource_lookup',
'supports_resource_query',
'supports_resource_search',
'supports_resource_admin',
'supports_resource_notification',
'supports_resource_bin',
'supports_resource_bin_assignment',
# 'supports_resource_smart_bin',
# 'supports_membership',
# 'supports_group',
# 'supports_group_assignment',
# 'supports_group_notification',
# 'supports_group_hierarchy',
'supports_resource_agent',
'supports_resource_agent_assignment',
# 'supports_resource_relationship_lookup',
# 'supports_resource_relationship_query',
# 'supports_resource_relationship_search',
# 'supports_resource_relationship_admin',
# 'supports_resource_relationship_notification',
# 'supports_resource_relationship_bin',
# 'supports_resource_relationship_bin_assignment',
# 'supports_resource_relationship_smart_bin',
'supports_bin_lookup',
'supports_bin_query',
# 'supports_bin_search',
'supports_bin_admin',
# 'supports_bin_notification',
'supports_bin_hierarchy',
'supports_bin_hierarchy_design',
# 'supports_resource_batch',
# 'supports_resource_demographic',
]
| 32.459016 | 80 | 0.754545 | 200 | 1,980 | 7.06 | 0.365 | 0.226629 | 0.108357 | 0.041076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007724 | 0.15 | 1,980 | 60 | 81 | 33 | 0.831254 | 0.471212 | 0 | 0 | 0 | 0 | 0.394685 | 0.280512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7c72badec22d57f3ba53fddcec14f3dba3c3dfab | 9,418 | py | Python | src/eduid_webapp/security/schemas.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | null | null | null | src/eduid_webapp/security/schemas.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 161 | 2017-04-13T07:56:38.000Z | 2021-03-12T13:46:38.000Z | src/eduid_webapp/security/schemas.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 3 | 2016-05-16T20:25:49.000Z | 2018-07-27T12:10:58.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 NORDUnet A/S
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# 3. Neither the name of the NORDUnet nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
from flask_babel import gettext as _
from marshmallow import Schema, ValidationError, fields, validate, validates, validates_schema
from eduid_common.api.schemas.base import EduidSchema, FluxStandardAction
from eduid_common.api.schemas.csrf import CSRFRequestMixin, CSRFResponseMixin
from eduid_common.api.schemas.nin import NinSchema
from eduid_common.api.schemas.password import PasswordSchema
from eduid_common.api.schemas.u2f import (
U2FBindRequestSchema,
U2FEnrollResponseSchema,
U2FSignResponseSchema,
U2FVerifyRequestSchema,
U2FVerifyResponseSchema,
)
from eduid_common.api.schemas.validators import validate_email, validate_nin
class CredentialSchema(EduidSchema):
key = fields.String(required=True)
credential_type = fields.String(required=True)
created_ts = fields.String(required=True)
success_ts = fields.String(required=True)
used_for_login = fields.Boolean(required=True, default=False)
verified = fields.Boolean(required=True, default=False)
description = fields.String(required=False)
class CredentialList(EduidSchema, CSRFResponseMixin):
credentials = fields.Nested(CredentialSchema, many=True)
class SecurityResponseSchema(FluxStandardAction):
payload = fields.Nested(CredentialList)
class ChpassCredentialList(EduidSchema, CSRFResponseMixin):
credentials = fields.Nested(CredentialSchema, many=True)
next_url = fields.String(required=True)
class ChpassResponseSchema(FluxStandardAction):
payload = fields.Nested(ChpassCredentialList)
class ChpassRequestSchema(EduidSchema, CSRFRequestMixin):
old_password = fields.String(required=True)
new_password = fields.String(required=True)
class CsrfSchema(EduidSchema, CSRFRequestMixin):
pass
class RedirectSchema(EduidSchema, CSRFResponseMixin):
location = fields.String(required=True)
class RedirectResponseSchema(FluxStandardAction):
payload = fields.Nested(RedirectSchema, many=False)
class SuggestedPassword(EduidSchema, CSRFResponseMixin):
suggested_password = fields.String(required=True)
class SuggestedPasswordResponseSchema(FluxStandardAction):
payload = fields.Nested(SuggestedPassword, many=False)
class ChangePasswordSchema(PasswordSchema):
csrf_token = fields.String(required=True)
old_password = fields.String(required=True)
new_password = fields.String(required=True)
@validates('new_password')
def validate_custom_password(self, value, **kwargs):
# Set a new error message
try:
self.validate_password(value)
except ValidationError:
raise ValidationError('chpass.weak-pass')
class AccountTerminatedSchema(FluxStandardAction):
pass
# U2F schemas
class ConvertRegisteredKeys(EduidSchema):
class U2FRegisteredKey(EduidSchema):
version = fields.String(required=True)
keyhandle = fields.String(required=True, data_key='keyHandle')
app_id = fields.String(required=True, data_key='appId')
transports = fields.String()
registered_keys = fields.Nested(U2FRegisteredKey, required=True, default=list(), many=True)
class EnrollU2FTokenResponseSchema(FluxStandardAction):
class EnrollU2FTokenResponsePayload(U2FEnrollResponseSchema, CSRFResponseMixin):
pass
payload = fields.Nested(EnrollU2FTokenResponsePayload)
class BindU2FRequestSchema(U2FBindRequestSchema, CSRFRequestMixin):
description = fields.String(required=False)
class SignWithU2FTokenResponseSchema(FluxStandardAction):
class SignWithU2FTokenPayload(U2FSignResponseSchema, CSRFResponseMixin):
pass
payload = fields.Nested(SignWithU2FTokenPayload)
class VerifyWithU2FTokenRequestSchema(U2FVerifyRequestSchema, CSRFRequestMixin):
pass
class VerifyWithU2FTokenResponseSchema(FluxStandardAction):
class Payload(U2FVerifyResponseSchema, CSRFResponseMixin):
pass
payload = fields.Nested(Payload)
class ModifyU2FTokenRequestSchema(EduidSchema, CSRFRequestMixin):
credential_key = fields.String(required=True)
description = fields.String(required=True)
class RemoveU2FTokenRequestSchema(EduidSchema, CSRFRequestMixin):
credential_key = fields.String(required=True)
# webauthn schemas
class WebauthnOptionsResponseSchema(FluxStandardAction):
class WebauthnOptionsResponsePayload(EduidSchema, CSRFResponseMixin):
options = fields.String(required=True)
payload = fields.Nested(WebauthnOptionsResponsePayload)
class WebauthnRegisterBeginSchema(EduidSchema, CSRFRequestMixin):
authenticator = fields.String(required=True)
class WebauthnRegisterRequestSchema(EduidSchema, CSRFRequestMixin):
credential_id = fields.String(required=True, data_key="credentialId")
attestation_object = fields.String(required=True, data_key="attestationObject")
client_data = fields.String(required=True, data_key="clientDataJSON")
description = fields.String(required=True)
class RemoveWebauthnTokenRequestSchema(EduidSchema, CSRFRequestMixin):
credential_key = fields.String(required=True)
class VerifyWithWebauthnTokenRequestSchema(U2FVerifyRequestSchema):
pass
class VerifyWithWebauthnTokenResponseSchema(FluxStandardAction):
class Payload(U2FVerifyResponseSchema, CSRFResponseMixin):
pass
payload = fields.Nested(Payload)
# Reset password schemas
class ResetPasswordEmailSchema(Schema):
csrf = fields.String(required=True)
email = fields.String(required=True)
@validates('email')
def validate_email_field(self, value, **kwargs):
# Set a new error message
try:
validate_email(value)
except ValidationError:
raise ValidationError(_('Invalid email address'))
class ResetPasswordExtraSecuritySchema(Schema):
csrf = fields.String(required=True)
phone_number_index = fields.String(required=False)
no_extra_security = fields.Boolean(required=False, default=False)
class ResetPasswordVerifyPhoneNumberSchema(Schema):
csrf = fields.String(required=True)
phone_code = fields.String(required=True, validate=validate.Length(min=1, error=_('Please enter a code')))
class ResetPasswordNewPasswordSchema(PasswordSchema):
csrf = fields.String(required=True)
use_generated_password = fields.Boolean(required=False, default=False)
custom_password = fields.String(required=False)
repeat_password = fields.String(required=False)
@validates_schema
def new_password_validation(self, data, **kwargs):
if not data.get('use_generated_password', False):
custom_password = data.get('custom_password', None)
repeat_password = data.get('repeat_password', None)
if not custom_password:
raise ValidationError(_('Please enter a password'), 'custom_password')
if not repeat_password:
raise ValidationError(_('Please repeat the password'), 'repeat_password')
if custom_password != repeat_password:
raise ValidationError(_('Passwords does not match'), 'repeat_password')
@validates('custom_password')
def validate_custom_password(self, value, **kwargs):
# Set a new error message
try:
self.validate_password(value)
except ValidationError:
raise ValidationError(_('Please use a stronger password'))
# NIN schemas
class NINRequestSchema(EduidSchema, CSRFRequestMixin):
nin = fields.String(required=True, validate=validate_nin)
class NINResponseSchema(FluxStandardAction):
class RemoveNINPayload(EduidSchema, CSRFResponseMixin):
success = fields.Boolean(required=True)
message = fields.String(required=False)
nins = fields.Nested(NinSchema, many=True)
payload = fields.Nested(RemoveNINPayload)
| 32.815331 | 110 | 0.759715 | 962 | 9,418 | 7.355509 | 0.29106 | 0.066139 | 0.107405 | 0.108536 | 0.348078 | 0.258903 | 0.179621 | 0.159271 | 0.110938 | 0.105709 | 0 | 0.004568 | 0.163198 | 9,418 | 286 | 111 | 32.93007 | 0.893288 | 0.179019 | 0 | 0.261745 | 0 | 0 | 0.044852 | 0.00286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026846 | false | 0.315436 | 0.053691 | 0 | 0.684564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
7c80b036190dbab87b76fd7be4321d853d11fc15 | 556 | py | Python | Program skrevet i forelesninger/Video 65 Objekter og klasser Punktet.py | MegaMilkshakes/DAT_120_all_kode | 92579ccc9d29d6570a8806655dcf5718a66c2abc | [
"MIT"
] | null | null | null | Program skrevet i forelesninger/Video 65 Objekter og klasser Punktet.py | MegaMilkshakes/DAT_120_all_kode | 92579ccc9d29d6570a8806655dcf5718a66c2abc | [
"MIT"
] | null | null | null | Program skrevet i forelesninger/Video 65 Objekter og klasser Punktet.py | MegaMilkshakes/DAT_120_all_kode | 92579ccc9d29d6570a8806655dcf5718a66c2abc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 16 19:01:59 2021
@author: gerry
"""
#Klasse: punkt
class Punkt: #start med stor bokstav, skiller klasse fra funksjoner og variabler
#konstruktør
def __init__(self, start_x=0, start_y=0):
self.x_koordinat = start_x
self.y_koordinat = start_y
punktet = Punkt()
print(punktet.x_koordinat)
print(punktet.y_koordinat)
punktet.x_koordinat = 10
print(punktet.x_koordinat)
print(punktet.y_koordinat)
punktet = Punkt(2, 3)
print(punktet.x_koordinat)
print(punktet.y_koordinat) | 19.172414 | 81 | 0.710432 | 82 | 556 | 4.609756 | 0.47561 | 0.190476 | 0.179894 | 0.174603 | 0.386243 | 0.386243 | 0.386243 | 0.386243 | 0.269841 | 0 | 0 | 0.041485 | 0.176259 | 556 | 29 | 82 | 19.172414 | 0.783843 | 0.294964 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7c889aaf2d0ac49249dc38464b27e00d1627e6c2 | 890 | py | Python | ef/config/components/particle_interaction_model.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | ef/config/components/particle_interaction_model.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | ef/config/components/particle_interaction_model.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | __all__ = ["ParticleInteractionModel", "ParticleInteractionModelConf"]
from collections import namedtuple
from ef.config.section import register, ConfigSection
from ef.config.component import ConfigComponent
class ParticleInteractionModel(ConfigComponent):
def __init__(self, model="PIC"):
if model not in ("PIC", 'noninteracting', 'binary'):
raise ValueError("Unexpected particle interaction model: {}".format(model))
self.model = model
def to_conf(self):
return ParticleInteractionModelConf(self.model)
@register
class ParticleInteractionModelConf(ConfigSection):
section = "Particle interaction model"
ContentTuple = namedtuple("ParticleInteractionModelTuple", ('particle_interaction_model',))
convert = ContentTuple(str)
def make(self):
return ParticleInteractionModel(self.content.particle_interaction_model)
| 32.962963 | 95 | 0.75618 | 81 | 890 | 8.148148 | 0.493827 | 0.115152 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153933 | 890 | 26 | 96 | 34.230769 | 0.876494 | 0 | 0 | 0 | 0 | 0 | 0.224719 | 0.120225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.111111 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
7c8fb40ca7cf82a43810c9f81d7f3db5707a9e93 | 1,599 | py | Python | recipes/Python/578640_Pachebel_Cannon_in_C/recipe-578640.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/578640_Pachebel_Cannon_in_C/recipe-578640.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/578640_Pachebel_Cannon_in_C/recipe-578640.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #####################################
## Pachebel Cannon in C
#####################################
import winsound
import time
t = 250
p = .50
llC = 65
lC = 131
lDb = 139
lD = 147
lEb = 156
lE = 165
lF = 175
lGb = 185
lG = 196
lAb = 208
lA = 220
lBb = 233
lB = 247
C = 262
Db = 277
D = 294
Eb = 311
E = 330
F = 349
Gb = 370
G = 392
Ab = 415
A = 440
Bb = 466
B = 494
hC = 523
hDb = 554
hD = 587
hEb = 622
hE = 659
hF = 698
hGb = 740
hG = 784
hAb = 831
hA = 880
hBb = 932
hB = 988
time.sleep(0.001)
for i in range (5):
winsound.Beep( lC, 2*t)
winsound.Beep( hC, t)
winsound.Beep( hE, t)
winsound.Beep( hG, t)
time.sleep(p)
winsound.Beep( lG, 2*t)
winsound.Beep( G, t)
winsound.Beep( B, t)
winsound.Beep( hD, t)
time.sleep(p)
winsound.Beep( lA, 2*t)
winsound.Beep( A, t)
winsound.Beep( hC, t)
winsound.Beep( hE, t)
time.sleep(p)
winsound.Beep( lE, 2*t)
winsound.Beep( E, t)
winsound.Beep( G, t)
winsound.Beep( B, t)
time.sleep(p)
winsound.Beep( lF, 2*t)
winsound.Beep( F, t)
winsound.Beep( A, t)
winsound.Beep( hC, t)
time.sleep(p)
winsound.Beep( llC, 2*t)
winsound.Beep( C, t)
winsound.Beep( E, t)
winsound.Beep( G, t)
time.sleep(p)
winsound.Beep( lF, 2*t)
winsound.Beep( F, t)
winsound.Beep( A, t)
winsound.Beep( hC, t)
time.sleep(p)
winsound.Beep( lG, 2*t)
winsound.Beep( G, t)
winsound.Beep( B, t)
winsound.Beep( hD, t)
time.sleep(p)
| 15.375 | 37 | 0.509694 | 255 | 1,599 | 3.196078 | 0.364706 | 0.471166 | 0.382822 | 0.137423 | 0.614724 | 0.614724 | 0.573006 | 0.573006 | 0.573006 | 0.393865 | 0 | 0.116576 | 0.313321 | 1,599 | 103 | 38 | 15.524272 | 0.625683 | 0.012508 | 0 | 0.409639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.024096 | 0 | 0.024096 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c90342232c5c4b211f9a8fe35e5397bfe20c5b4 | 666 | py | Python | Assignment1/old - hpc tested/hw1/Task2-c/src/mapper.py | HyperTars/NYC-Taxi-Analysis | 1f12223250d62bf7ab48e82231235ea52af4c3cf | [
"Apache-2.0"
] | null | null | null | Assignment1/old - hpc tested/hw1/Task2-c/src/mapper.py | HyperTars/NYC-Taxi-Analysis | 1f12223250d62bf7ab48e82231235ea52af4c3cf | [
"Apache-2.0"
] | null | null | null | Assignment1/old - hpc tested/hw1/Task2-c/src/mapper.py | HyperTars/NYC-Taxi-Analysis | 1f12223250d62bf7ab48e82231235ea52af4c3cf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
for line in sys.stdin:
# extract data
key, val = line.strip().split('\t', 1)
# passenger_count
try:
key = int(val.split(',')[3])
except ValueError:
continue
# print
print '%s\t%s' % (key, 1)
'''
cd ~/hw1/Task2-c/
rm -rf NumberPassengersSamp.out
hfs -rm -r NumberPassengersSamp.out
hjs -D mapreduce.job.reduces=0 \
-file ~/hw1/Task2-c/src/ \
-mapper src/mapper.sh \
-input /user/wl2154/TripFareJoinSamp.txt \
-output /user/wl2154/NumberPassengersSamp.out
hfs -get NumberPassengersSamp.out
hfs -getmerge NumberPassengersSamp.out NumberPassengersSamp.txt
cat NumberPassengersSamp.txt
'''
| 22.2 | 63 | 0.686186 | 89 | 666 | 5.123596 | 0.640449 | 0.252193 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029038 | 0.172673 | 666 | 29 | 64 | 22.965517 | 0.798548 | 0.082583 | 0 | 0 | 0 | 0 | 0.042056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c99e7c6d8e341d3820279e27c8d76b3fc62194b | 247 | py | Python | skynet/util/default_root.py | hulatang/skynet-blockchain | d7d6f7ec84731c13b9d6d307bb171cf0e266be82 | [
"Apache-2.0"
] | 7 | 2021-09-07T02:14:15.000Z | 2022-03-27T06:42:35.000Z | skynet/util/default_root.py | hulatang/skynet-blockchain | d7d6f7ec84731c13b9d6d307bb171cf0e266be82 | [
"Apache-2.0"
] | 1 | 2021-10-21T16:38:56.000Z | 2021-11-15T13:03:15.000Z | skynet/util/default_root.py | hulatang/skynet-blockchain | d7d6f7ec84731c13b9d6d307bb171cf0e266be82 | [
"Apache-2.0"
] | 3 | 2021-10-21T07:17:40.000Z | 2022-03-16T12:57:09.000Z | import os
from pathlib import Path
DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("SKYNET_ROOT", "~/.skynet/mainnet"))).resolve()
DEFAULT_KEYS_ROOT_PATH = Path(os.path.expanduser(os.getenv("SKYNET_KEYS_ROOT", "~/.skynet_keys"))).resolve() | 41.166667 | 108 | 0.765182 | 36 | 247 | 5 | 0.361111 | 0.088889 | 0.133333 | 0.155556 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0 | 0 | 0 | 0.060729 | 247 | 6 | 108 | 41.166667 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0.233871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7c9c021afbdf9536ac0f13d4f3b054392d7d091d | 501 | py | Python | tests/utils_tests/test_simplelazyobject.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 16 | 2019-08-10T12:24:06.000Z | 2020-05-21T09:11:14.000Z | tests/utils_tests/test_simplelazyobject.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 12 | 2019-08-10T11:55:29.000Z | 2020-05-21T04:46:30.000Z | tests/utils_tests/test_simplelazyobject.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 3 | 2019-08-20T13:29:34.000Z | 2020-01-30T22:05:10.000Z | import pickle
from django.contrib.auth.models import User
from django.test import TestCase
from django.utils.functional import SimpleLazyObject
class TestUtilsSimpleLazyObjectDjangoTestCase(TestCase):
def test_pickle(self):
user = User.objects.create_user("johndoe", "john@example.com", "pass")
x = SimpleLazyObject(lambda: user)
pickle.dumps(x)
# Try the variant protocol levels.
pickle.dumps(x, 0)
pickle.dumps(x, 1)
pickle.dumps(x, 2)
| 29.470588 | 78 | 0.698603 | 61 | 501 | 5.704918 | 0.57377 | 0.126437 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007538 | 0.205589 | 501 | 16 | 79 | 31.3125 | 0.866834 | 0.063872 | 0 | 0 | 0 | 0 | 0.057816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
7ca29a5d106a710744fc9b6177a50d569e83ac11 | 516 | py | Python | examples/theories/listing_ex.py | symcollab/CryptoSolve | fc5c709cfeb9de7728b7baddc5d5da60d13ede0a | [
"BSD-3-Clause"
] | 1 | 2021-02-09T20:06:29.000Z | 2021-02-09T20:06:29.000Z | examples/theories/listing_ex.py | symcollab/CryptoSolve | fc5c709cfeb9de7728b7baddc5d5da60d13ede0a | [
"BSD-3-Clause"
] | null | null | null | examples/theories/listing_ex.py | symcollab/CryptoSolve | fc5c709cfeb9de7728b7baddc5d5da60d13ede0a | [
"BSD-3-Clause"
] | null | null | null | from symcollab.theories.listing import Listing
from symcollab.theories.nat import Nat
# Empty list is of length 0
result = Listing.simplify(
Listing.length(Listing.nil)
)
print("length(nil) is", result, flush=True)
assert result == Nat.zero
# Tail of three element is
result = Listing.simplify(
Listing.cons(Nat.zero, Listing.cons(Nat.zero, Listing.cons(Nat.zero, Listing.nil)))
)
print("tail([0, 0, 0]) is", result, flush=True)
assert result == Listing.cons(Nat.zero, Listing.cons(Nat.zero, Listing.nil))
| 30.352941 | 87 | 0.736434 | 79 | 516 | 4.810127 | 0.303797 | 0.110526 | 0.184211 | 0.236842 | 0.442105 | 0.442105 | 0.289474 | 0.289474 | 0.289474 | 0.242105 | 0 | 0.00885 | 0.124031 | 516 | 16 | 88 | 32.25 | 0.831858 | 0.096899 | 0 | 0.166667 | 0 | 0 | 0.069114 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ca3173ddd18fa910267a09818c780f414fa5700 | 309 | py | Python | numbers_py.py | coderRPN/python-first-project | ab7402546ee212d8522cc4f8e9b0a149b6459206 | [
"MIT"
] | null | null | null | numbers_py.py | coderRPN/python-first-project | ab7402546ee212d8522cc4f8e9b0a149b6459206 | [
"MIT"
] | null | null | null | numbers_py.py | coderRPN/python-first-project | ab7402546ee212d8522cc4f8e9b0a149b6459206 | [
"MIT"
] | null | null | null | from math import *
print(5)
print(abs(-4))
print(abs(4.4))
print(str(22))
print(pow(4, 5))
print(max(4, 8))
print(min(4, 8))
print(round(4.3))
print(round(4.6))
print(round(4.5))
print("Floor 4.9 to " + str(floor(4.9)))
print("Ceiling 4.1 to " + str(ceil(4.1)))
print("Square root of 25 is " + str(sqrt(25))) | 20.6 | 46 | 0.627832 | 66 | 309 | 2.939394 | 0.424242 | 0.092784 | 0.170103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110294 | 0.119741 | 309 | 15 | 46 | 20.6 | 0.602941 | 0 | 0 | 0 | 0 | 0 | 0.158065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0.928571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7cb1cc7995d8f7890757e20eecfb73987fe59034 | 322,272 | py | Python | src/flops_wrapper/flops_wrapper.py | OpenMDAO-Plugins/flops_wrapper | da03b981b88682426038dce14e4fa992ec27d158 | [
"Apache-2.0"
] | 1 | 2015-10-08T17:38:47.000Z | 2015-10-08T17:38:47.000Z | src/flops_wrapper/flops_wrapper.py | OpenMDAO-Plugins/flops_wrapper | da03b981b88682426038dce14e4fa992ec27d158 | [
"Apache-2.0"
] | null | null | null | src/flops_wrapper/flops_wrapper.py | OpenMDAO-Plugins/flops_wrapper | da03b981b88682426038dce14e4fa992ec27d158 | [
"Apache-2.0"
] | 4 | 2015-10-08T17:38:58.000Z | 2021-05-27T14:16:56.000Z | """
OpenMDAO Wrapper for Flops
Automatically generated from flops.scriptWrapper with parse_phoenixwrapper.
This wrapper is based on the ModelCenter Java wrapper, version 2.00 Beta
"""
# pylint: disable-msg=E0611,F0401,E1101
from numpy import int64 as numpy_int64
from numpy import float64 as numpy_float64
from numpy import str as numpy_str
from numpy import zeros, array
from openmdao.util.filewrap import FileParser
from openmdao.util.namelist_util import Namelist
from openmdao.main.api import VariableTree, FileMetadata
from openmdao.lib.datatypes.api import Str, Bool, Int, Array, Enum, Float, \
File, List, VarTree
from openmdao.lib.components.api import ExternalCode
# pylint: disable-msg=C0301,C0324,C0103,R0903
class FlopsWrapper_output_Weight_Wing(VariableTree):
"""Container for output.Weight.Wing"""
# OpenMDAO Public Variables
w = Float(0.0, desc='Bending material factor. For detailed wing definition, this factor is calculated by numerical integration along the specified load path to determine the amount of bending material required to support an elliptical load distribution. The wing is treated as an idealized beam with dimensions proportional to the wing local chord and thickness. The bending factor is modified for aeroelastic penalties (flutter, divergence, and aeroelastic loads) depending on wing sweep (including forward), aspect ratio, degree of aeroelastic tailoring, and strut bracing, if any. These modifications are based on a curve fit of the results of a study performed using the Aeroelastic Tailoring and Structural Optimization (ATSO) code to structurally optimize a large matrix of wings.\n\nIf the detailed wing definition is not used, an equivalent bending factor is computed assuming a trapezoidal wing with constant t/c.')
ew = Float(0.0, desc='Engine inertia relief factor.')
w1 = Float(0.0, desc='The first term in the wing weight is the bending factor. It is adjusted for inertia relief for the wing itself and for any engines on the wing.')
w2 = Float(0.0, desc='The second term represents control surfaces and shear material. According to structural and statistical studies conducted during weight module development, the weight of spars and ribs depends almost entirely on control surfaces. The amount of shear material required to carry structural loads is not critical.')
w3 = Float(0.0, desc='The third term depends entirely on wing area and covers multitude of miscellaneous items.')
class FlopsWrapper_output_Weight_Inertia(VariableTree):
"""Container for output.Weight.Inertia"""
# OpenMDAO Public Variables
cgx = Array(dtype=numpy_float64)
cgy = Array(dtype=numpy_float64)
cgz = Array(dtype=numpy_float64)
ixxroll = Array(dtype=numpy_float64)
ixxptch = Array(dtype=numpy_float64)
ixxyaw = Array(dtype=numpy_float64)
ixz = Array(dtype=numpy_float64)
class FlopsWrapper_output_Weight(VariableTree):
"""Container for output.Weight"""
# OpenMDAO Public Variables
dowe = Float(0.0)
paylod = Float(0.0)
fuel = Float(0.0)
rampwt = Float(0.0)
wsr = Float(0.0)
thrso = Float(0.0)
esf = Float(0.0)
twr = Float(0.0)
wldg = Float(0.0)
fultot = Float(0.0)
exsful = Float(0.0)
frwi = Float(0.0)
frht = Float(0.0)
frvt = Float(0.0)
frfin = Float(0.0)
frcan = Float(0.0)
frfu = Float(0.0)
wlg = Float(0.0)
frna = Float(0.0)
wengt = Float(0.0)
wthr = Float(0.0)
wpmisc = Float(0.0)
wfsys = Float(0.0)
frsc = Float(0.0)
wapu = Float(0.0)
win = Float(0.0)
whyd = Float(0.0)
welec = Float(0.0)
wavonc = Float(0.0)
wfurn = Float(0.0)
wac = Float(0.0)
wai = Float(0.0)
wempty = Float(0.0)
wflcrbw = Float(0.0)
wwstuab = Float(0.0)
wuf = Float(0.0)
woil = Float(0.0)
wsrv = Float(0.0)
zfw = Float(0.0)
wbomb = Float(0.0)
# VariableTrees
Inertia = VarTree(FlopsWrapper_output_Weight_Inertia())
Wing = VarTree(FlopsWrapper_output_Weight_Wing())
class FlopsWrapper_output_Plot_Files(VariableTree):
"""Container for output.Plot_Files"""
# OpenMDAO Public Variables
# TODO - Do we really need to read these in every time? Let's not for now.
#cnfile = File(iotype='out', desc='Contour or thumbprint plot data file')
#msfile = File(iotype='out', desc='Mission summary data file')
#crfile = File(iotype='out', desc='Cruise schedule summary data file')
#tofile = File(iotype='out', desc='Takeoff and landing aerodynamic and thrust data file')
#nofile = File(iotype='out', desc='Takeoff and climb profile data file')
#apfile = File(iotype='out', desc='Drag polar plot data file')
#thfile = File(iotype='out', desc='Engine plot data file name')
#hsfile = File(iotype='out', desc='Design history plot file')
#psfile = File(iotype='out', desc='Excess power and load factor plot data file')
class FlopsWrapper_output_Performance_Segments(VariableTree):
"""Container for output.Performance.Segments"""
# OpenMDAO Public Variables
segment = Array(dtype=numpy_str)
weights = Array(dtype=numpy_float64)
alts = Array(dtype=numpy_float64)
machs = Array(dtype=numpy_float64)
thrusts = Array(dtype=numpy_float64)
totmaxs = Array(dtype=numpy_float64)
lods = Array(dtype=numpy_float64)
sfcs = Array(dtype=numpy_float64)
engparms = Array(dtype=numpy_float64)
weighte = Array(dtype=numpy_float64)
alte = Array(dtype=numpy_float64)
mache = Array(dtype=numpy_float64)
thruste = Array(dtype=numpy_float64)
totmaxe = Array(dtype=numpy_float64)
lode = Array(dtype=numpy_float64)
sfce = Array(dtype=numpy_float64)
engparme = Array(dtype=numpy_float64)
class FlopsWrapper_output_Performance_Constraints(VariableTree):
"""Container for output.Performance.Constraints"""
# OpenMDAO Public Variables
constraint = Array(dtype=numpy_str)
value = Array(dtype=numpy_float64)
units = Array(dtype=numpy_str)
limit = Array(dtype=numpy_float64)
weight = Array(dtype=numpy_float64)
mach = Array(dtype=numpy_float64)
alt = Array(dtype=numpy_float64)
g = Array(dtype=numpy_float64)
location = Array(dtype=numpy_str)
class FlopsWrapper_output_Performance(VariableTree):
"""Container for output.Performance"""
# OpenMDAO Public Variables
fuel = Float(0.0)
range = Float(0.0)
vapp = Float(0.0)
taxofl = Float(0.0)
faroff = Float(0.0)
farldg = Float(0.0)
amfor = Float(0.0)
ssfor = Float(0.0)
esf = Float(0.0)
thrso = Float(0.0)
vmmo = Float(0.0)
# VariableTrees
Constraints = VarTree(FlopsWrapper_output_Performance_Constraints())
Segments = VarTree(FlopsWrapper_output_Performance_Segments())
class FlopsWrapper_output_Payload(VariableTree):
"""Container for output.Payload"""
# OpenMDAO Public Variables
npf = Int(0)
npb = Int(0)
npt = Int(0)
nstu = Int(0)
ngalc = Int(0)
nflcr = Int(0)
nstuag = Int(0)
wppass = Float(0.0)
bpp = Float(0.0)
cargow = Float(0.0)
cargof = Float(0.0)
wcon = Float(0.0)
class FlopsWrapper_output_Noise(VariableTree):
"""Container for output.Noise"""
# OpenMDAO Public Variables
nsplot = Str('', msg='Noise output filename')
class FlopsWrapper_output_Geometry_BWB(VariableTree):
"""Container for output.Geometry.BWB"""
# OpenMDAO Public Variables
xlp = Float(0.0, units='ft', desc='Length of centerline')
xlw = Float(0.0, units='ft', desc='Length of side wall')
wf = Float(0.0, units='ft', desc='Width of cabin')
acabin = Float(0.0, units='ft*ft', desc='Cabin area')
nbaw = Int(0, desc='Number of bays')
bayw = Float(0.0, units='ft', desc='Width of bay')
nlava = Int(0, desc='NUMBER OF LAVATORIES')
ngally = Int(0, desc='Number of galleys')
nclset = Int(0, desc='Number of closets')
xl = Float(0.0, units='ft', desc='Total fuselage length')
df = Float(0.0, units='ft', desc='Fuselage maximum depth')
class FlopsWrapper_output_Geometry(VariableTree):
"""Container for output.Geometry"""
# OpenMDAO Public Variables
xl = Float(0.0)
wf = Float(0.0)
df = Float(0.0)
xlp = Float(0.0)
ar = Float(0.0)
sw = Float(0.0)
tr = Float(0.0)
sweep = Float(0.0)
tca = Float(0.0)
span = Float(0.0)
glov = Float(0.0)
sht = Float(0.0)
svt = Float(0.0)
xnac = Float(0.0)
dnac = Float(0.0)
xmlg = Float(0.0)
xnlg = Float(0.0)
# VariableTrees
BWB = VarTree(FlopsWrapper_output_Geometry_BWB())
class FlopsWrapper_output_Engine(VariableTree):
"""Container for output.Engine"""
# OpenMDAO Public Variables
ofile = Str('')
eofile = Str('')
anopp = Str('')
footpr = Str('')
pltfil = Str('')
class FlopsWrapper_output_Econ(VariableTree):
"""Container for output.Econ"""
# OpenMDAO Public Variables
sl = Array(dtype=numpy_float64)
blockt = Array(dtype=numpy_float64)
blockf = Array(dtype=numpy_float64)
blockNx = Array(dtype=numpy_float64)
wpayl = Array(dtype=numpy_float64)
wgross = Array(dtype=numpy_float64)
range = Array(dtype=numpy_float64)
vapp = Array(dtype=numpy_float64)
faroff = Array(dtype=numpy_float64)
farldg = Array(dtype=numpy_float64)
amfor = Array(dtype=numpy_float64)
ssfor = Array(dtype=numpy_float64)
class FlopsWrapper_output(VariableTree):
"""Container for output"""
# VariableTrees
Econ = VarTree(FlopsWrapper_output_Econ())
Engine = VarTree(FlopsWrapper_output_Engine())
Geometry = VarTree(FlopsWrapper_output_Geometry())
Noise = VarTree(FlopsWrapper_output_Noise())
Payload = VarTree(FlopsWrapper_output_Payload())
Performance = VarTree(FlopsWrapper_output_Performance())
Plot_Files = VarTree(FlopsWrapper_output_Plot_Files())
Weight = VarTree(FlopsWrapper_output_Weight())
class FlopsWrapper_input_wtin_Wing_Data(VariableTree):
"""Container for input.wtin.Wing_Data"""
# OpenMDAO Public Variables
span = Float(0.0, units='ft', desc='Wing span (optional, see &CONFIN - SW and AR)')
dih = Float(0.0, units='deg', desc='Wing dihedral (positive) or anhedral (negative) angle')
flapr = Float(0.3330, desc='Flap ratio -- ratio of total movable wing surface area (flaps, elevators, spoilers, etc.) to wing area')
glov = Float(0.0, units='ft*ft', desc='Total glove and bat area beyond theoretical wing')
varswp = Float(0.0, desc='Fraction of wing variable sweep weight penalty = 0., Fixed-geometry wing = 1., Full variable-sweep wing')
fcomp = Float(0.0, desc='Decimal fraction of amount of composites used in wing structure = 0., No composites = 1., Maximum use of composites, approximately equivalent to FRWI1=.6, FRWI2=.83, FRWI3=.7 (Not necessarily all composite) This only applies to the wing. Use override parameters for other components such as FRHT=.75, FRVT=.75, FRFU=.82, FRLGN=.85, FRLGM=.85, FRNA=.8')
faert = Float(0.0, desc='Decimal fraction of amount of aeroelastic tailoring used in design of wing = 0., No aeroelastic tailoring = 1., Maximum aeroelastic tailoring')
fstrt = Float(0.0, desc='Wing strut-bracing factor = 0., No wing strut = 1., Full benefit from strut bracing')
class FlopsWrapper_input_wtin_Tails_Fins(VariableTree):
"""Container for input.wtin.Tails_Fins"""
# OpenMDAO Public Variables
sht = Float(0.0, units='ft*ft', desc='Horizontal tail theoretical area')
swpht = Float(-100.0, units='deg', desc='Horizontal tail 25% chord sweep angle (Default = SWEEP, Namelist &CONFIN)')
arht = Float(-100.0, desc='Horizontal tail theoretical aspect ratio (Default = AR/2, Namelist &CONFIN)')
trht = Float(-100.0, desc='Horizontal tail theoretical taper ratio (Default = TR, Namelist &CONFIN)')
tcht = Float(0.0, desc='Thickness-chord ratio for the horizontal tail (Default = TCA, Namelist &CONFIN)')
hht = Float(-100.0, desc='Decimal fraction of vertical tail span where horizontal tail is mounted = 0. for body mounted (Default for transports with all engines on the wing and for fighters) = 1. for T tail (Default for transports with multiple engines on the fuselage)')
nvert = Int(1, desc='Number of vertical tails')
svt = Float(0.0, units='ft*ft', desc='Vertical tail theoretical area (per tail)')
swpvt = Float(-100.0, units='deg', desc='Vertical tail sweep angle at 25% chord (Default = SWPHT)')
arvt = Float(-100.0, desc='Vertical tail theoretical aspect ratio (Default = ARHT/2)')
trvt = Float(-100.0, desc='Vertical tail theoretical taper ratio (Default = TRHT)')
tcvt = Float(0.0, desc='Thickness-chord ratio for the vertical tail (Default = TCHT)')
nfin = Int(0, desc='Number of fins')
sfin = Float(0.0, units='ft*ft', desc='Vertical fin theoretical area')
arfin = Float(-100.0, desc='Vertical fin theoretical aspect ratio')
trfin = Float(-100.0, desc='Vertical fin theoretical taper ratio')
swpfin = Float(-100.0, units='deg', desc='Vertical fin sweep angle at 25% chord')
tcfin = Float(0.0, desc='Vertical fin thickness - chord ratio')
scan = Float(0.0, units='ft*ft', desc='Canard theoretical area')
swpcan = Float(-100.0, units='deg', desc='Canard sweep angle at 25% chord')
arcan = Float(-100.0, desc='Canard theoretical aspect ratio')
trcan = Float(-100.0, desc='Canard theoretical taper ratio')
tccan = Float(0.0, desc='Canard thickness-chord ratio (Default = TCHT)')
class FlopsWrapper_input_wtin_Propulsion(VariableTree):
"""Container for input.wtin.Propulsion"""
# OpenMDAO Public Variables
new = Int(0, desc='Number of wing mounted engines')
nef = Int(0, desc='Number of fuselage mounted engines')
thrso = Float(0.0, units='lb', desc='Rated thrust of baseline engine as described in Engine Deck (Default = THRUST, see &CONFIN)')
weng = Float(0.0, units='lb', desc='Weight of each baseline engine or bare engine if WINL and WNOZ (below) are supplied (Default = THRSO/5.5 for transports and THRSO/8 for fighters)')
eexp = Float(1.15, desc='Engine weight scaling parameter\nW(Engine) = WENG*(THRUST/THRSO)**EEXP\nIf EEXP is less than 0.3,\nW(Engine) = WENG + (THRUST-THRSO)*EEXP')
winl = Float(0.0, units='lb', desc='Inlet weight for baseline engine if not included in WENG above')
einl = Float(1.0, desc='Inlet weight scaling exponent\nW(Inlet) = WINL*(THRUST/THRSO)**EINL')
wnoz = Float(0.0, units='lb', desc='Nozzle weight for baseline engine if not included in WENG above')
enoz = Float(1.0, desc='Nozzle weight scaling exponent\nW(Nozzle) = WNOZ*(THRUST/THRSO)**ENOZ')
xnac = Float(0.0, units='ft', desc='Average length of baseline engine nacelles. Scaled by SQRT(THRUST/THRSO)')
dnac = Float(0.0, units='ft', desc='Average diameter of baseline engine nacelles. Scaled by SQRT(THRUST/THRSO)')
wpmisc = Float(0.0, desc='Additional miscellaneous propulsion system weight or fraction of engine weight if < 1. This is added to the engine control and starter weight and may be overridden if WPMSC is input.')
class FlopsWrapper_input_wtin_Override(VariableTree):
"""Container for input.wtin.Override"""
# OpenMDAO Public Variables
frwi = Float(1.0, desc='Total wing weight - fixed weight overrides FRWI1, FRWI2, FRWI3, FRWI4 below, scale factor is cumulative \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component\n \n')
frwi1 = Float(1.0, desc='First term in wing weight equation - loosely corresponds to bending material weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component\n')
frwi2 = Float(1.0, desc='Second term in wing weight equation - loosely corresponds to control surfaces, spars and ribs \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component\n')
frwi3 = Float(1.0, desc='Third term in wing weight equation - miscellaneous, just because it')
frwi4 = Float(1.0, desc='Fourth term in wing weight equation - miscellaneous, just because it')
frht = Float(1.0, desc='Horizontal tail weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frvt = Float(1.0, desc='Vertical tail weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frfin = Float(1.0, desc='Wing vertical fin weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frcan = Float(1.0, desc='Canard weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frfu = Float(1.0, desc='Fuselage weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frlgn = Float(1.0, desc='Landing gear weight, nose \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frlgm = Float(1.0, desc='Landing gear weight, main \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frna = Float(1.0, desc='Total weight of nacelles and/or air induction system \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wthr = Float(0.0, desc='Total weight of thrust reversers\n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wpmsc = Float(1.0, desc='Weight of miscellaneous propulsion systems such as engine controls, starter and wiring \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wfsys = Float(1.0, desc='Weight of fuel system \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
frsc = Float(1.0, desc='Surface controls weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wapu = Float(1.0, desc='Auxiliary power unit weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
win = Float(1.0, desc='Instrument Group weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
whyd = Float(1.0, desc='Hydraulics Group weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
welec = Float(1.0, desc='Electrical Group weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wavonc = Float(1.0, desc='Avionics Group weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
warm = Float(0.0, desc='Armament Group weight - includes thermal protection system or armor and fixed weapons\n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wfurn = Float(1.0, desc='Furnishings Group weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wac = Float(1.0, desc='Air Conditioning Group weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wai = Float(1.0, desc='Transports: Anti-icing Group weight\n Fighters: Auxiliary gear \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wuf = Float(1.0, desc='Weight of unusable fuel \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
woil = Float(1.0, desc='Engine oil weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wsrv = Float(1.0, desc='Transports: Passenger service weight\n Fighters: Ammunition and nonfixed weapons weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wcon = Float(1.0, desc='Transports: Cargo and baggage container weight Fighters: Miscellaneous operating items weight If < 0.5, as a fraction of Gross Weight \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wauxt = Float(1.0, desc='Auxiliary fuel tank weight (Fighters only) \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wflcrb = Float(1.0, desc='Total weight of flight crew and baggage\n (Defaults: Transports - 225.*NFLCR\n Fighters - 215.*NFLCR\n Carrier-based - 180.*NFLCR)\n \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
wstuab = Float(1.0, desc='Total weight of cabin crew and baggage (Default = 155.*NSTU + 200.*NGALC) \n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
ewmarg = Float(0.0, desc='Empty weight margin (Special Option) - delta weight added to Weight Empty. If abs(EWMARG) < 5., it is interpreted as a fraction of calculated Weight Empty. May be positive or negative\n < 0., negative of starting weight which will be modified as appropriate during optimization or parametric variation\n \n = 0., no weight for that component\n \n > 0. but < 5., scale factor applied to internally computed weight\n \n > 5., actual fixed weight for component')
class FlopsWrapper_input_wtin_OEW_Calculations(VariableTree):
"""Container for input.wtin.OEW_Calculations."""
# OpenMDAO Public Variables
ispowe = Enum(0, (0,1), desc='= 0, Normal FLOPS weight equations will be used\n= 1, Special equation for Operating Weight Empty will be used:\n \n OWE = SPWTH*THRUST + SPWSW*SW + SPWGW*GW + SPWCON\n \n Structures group weights will be scaled to meet the calculated OWE.\n \n = 2, Use response surface for weights - available only in DOSS version', aliases=('Normal FLOPS', 'Special eqn for OEW'))
spwth = Float(2.2344, units='lb/lb', desc='Multiplier for thrust/engine in special equation for Operating Weight Empty\nSPWTH = \n AIRFLOWref\n(PODsclr + dOEWsclr) * ------------\n SLSTHRUSTref\n ')
spwsw = Float(9.5, units='psf', desc='Multiplier for wing area in special equation for Operating Weight Empty')
spwgw = Float(0.104087, units='lb/lb', desc='Multiplier for gross weight in special equation for Operating Weight Empty\nSPWGW = \n MTOWsclr+OEWgrwth*MTOWgrwth\n -----------------------------------\n 1. + MTOWgrowth\n\n')
spwcon = Float(38584.0, units='lb', desc='Constant weight term in special equation for Operating Weight Empty\n \nSPWCON = OEWuncycled\n - MTOWscalar*MTOWuncycled\n - WINGscalar*SWref\n - (PODscalar + dOEWscalar)\n *AIRFLOWref\n')
class FlopsWrapper_input_wtin_Landing_Gear(VariableTree):
"""Container for input.wtin.Landing_Gear"""
# OpenMDAO Public Variables
xmlg = Float(0.0, units='inch', desc='Length of extended main landing gear oleo (Default is computed internally)')
xnlg = Float(0.0, units='inch', desc='Length of extended nose landing gear oleo (Default is computed internally)')
wldg = Float(0.0, units='lb', desc='Design landing weight (if WRATIO is input in Namelist &AERIN, WLDG = GW*WRATIO) See Namelist &AERIN for WRATIO defaults.')
mldwt = Enum(0, (1,0), desc='= 1, The design landing weight is set to the end of descent weight for the main mission plus DLDWT. Use only if IRW = 1 in Namelist &MISSIN. = 0, The design landing weight is determined by WLDG above or WRATIO in Namelist &AERIN')
dldwt = Float(0.0, units='lb', desc='Delta landing weight for MLDWT = 1')
carbas = Float(0.0, desc='Carrier based aircraft switch, affects weight of flight crew, avionics and nose gear = 1., Carrier based = 0., Land based')
class FlopsWrapper_input_wtin_Inertia(VariableTree):
"""Container for input.wtin.Inertia"""
# OpenMDAO Public Variables
inrtia = Enum(0, (1,0), desc='= 1, Aircraft inertias will be calculated = 0, Otherwise', aliases=('Calculate', 'Do not calculate'))
zht = Float(0.0, units='inch', desc='Vertical C.G. of the horizontal tail (optional)')
zvt = Float(0.0, units='inch', desc='Vertical C.G. of the vertical tail (optional)')
zfin = Float(0.0, units='inch', desc='Vertical C.G. of the vertical fin (optional)')
yfin = Float(0.0, units='inch', desc='Lateral C.G. of the vertical fin (optional)')
zef = Float(0.0, units='inch', desc='Vertical C.G. of two forward mounted engines (optional)')
yef = Float(0.0, units='inch', desc='Lateral C.G. of two forward mounted engines (optional, may be input as a fraction of the semispan)')
zea = Float(0.0, units='inch', desc='Vertical C.G. of one or two aft mounted engines (optional)')
yea = Float(0.0, units='inch', desc='Lateral C.G. of one or two aft mounted engines (optional, may be input as a fraction of the semispan)')
zbw = Float(0.0, units='inch', desc='Lowermost point of wing root airfoil section')
zap = Float(0.0, units='inch', desc='Vertical C.G. of Auxiliary Power Unit (optional)')
zrvt = Float(0.0, units='inch', desc='Vertical datum line (Water Line) of vertical tail theoretical root chord (optional, if blank assumes at maximum height of fuselage)')
ymlg = Float(0.0, units='inch', desc='Lateral C.G. of extended main landing gear')
yfuse = Float(0.0, units='inch', desc='Lateral C.G. of outboard fuselage if there is more than one fuselage')
yvert = Float(0.0, units='inch', desc='Lateral C.G. of outboard vertical tail if there is more than one vertical tail')
swtff = Float(0.0, desc='Gross fuselage wetted area (Default = internally computed)')
tcr = Float(0.0, desc='Wing root thickness-chord ratio (Default = TOC(0) or TCA in &CONFIN)')
tct = Float(0.0, desc='Wing tip thickness-chord ratio (Default = TOC(NETAW) or TCA in &CONFIN)')
incpay = Enum(0, (1,0), desc='For inertia calculations, all mission fuel is placed in "tanks." \n \n = 1, Include passengers, passenger baggage, and cargo in the fuselage and contents for inertia calculations. \n \n = 0, For inertia calculations, all payload (passengers, passenger baggage, and cargo) are placed in "tanks" like the fuel', aliases=('Passengers-etc in fuse', 'All payload in tanks'))
tx = Array(dtype=numpy_float64, units='inch', desc='x coordinates of the centroid of the Ith tank')
ty = Array(dtype=numpy_float64, units='inch', desc='y coordinates of the centroid of the Ith tank')
tz = Array(dtype=numpy_float64, units='inch', desc='z coordinates of the centroid of the Ith tank')
tl = Array(dtype=numpy_float64, desc='Length of the Ith tank (optional, used only in calculating I0')
tw = Array(dtype=numpy_float64, desc='Width of the Ith tank (optional, used only in calculating I0')
td = Array(dtype=numpy_float64, desc='Depth of the Ith tank (optional, used only in calculating I0')
tf = Array(dtype=numpy_float64, units='lb', desc='Weight of fuel (or payload) in Ith tank for the Jth fuel condition NOTE: Dimensions are [J,I]')
class FlopsWrapper_input_wtin_Fuselage(VariableTree):
"""Container for input.wtin.Fuselage"""
# OpenMDAO Public Variables
nfuse = Int(1, desc='Number of fuselages')
xl = Float(0.0, units='ft', desc='Fuselage total length (See Fuselage Design Data)')
wf = Float(0.0, units='ft', desc='Maximum fuselage width')
df = Float(0.0, units='ft', desc='Maximum fuselage depth')
xlp = Float(0.0, units='ft', desc='Length of passenger compartment (Default is internally computed)')
class FlopsWrapper_input_wtin_Fuel_System(VariableTree):
"""Container for input.wtin.Fuel_System"""
# OpenMDAO Public Variables
ntank = Int(7, desc='Number of fuel tanks')
fulwmx = Float(-1.0, units='lb', desc='Total fuel capacity of wing. The default is internally calculated from:\n \n TCA * SW**2 TR\n FULWMX = FWMAX * ---------- * ( 1 - -------- )\n SPAN (1+TR)**2\n \n Where the default value of FWMAX is 23. If FULWMX is input < 50, it is interpreted as FWMAX and the above equation is used. This equation is also used for scaling when the wing area, t/c, aspect ratio, or taper ratio is varied or optimized.\n \n Alternatively, FULWMX = FUELRF + FUSCLA*(SW**1.5 - FSWREF**1.5)\n + FUSCLB*(SW - FSWREF)\n')
fulden = Float(1.0, desc='Fuel density ratio for alternate fuels compared to jet fuel (typical density of 6.7 lb/gal), used in the calculation of FULWMX (if FULWMX is not input) and in the calculation of fuel system weight.')
fuelrf = Float(0.0, units='lb', desc='Fuel capacity at FSWREF for alternate method')
fswref = Float(-1.0, units='ft*ft', desc='Reference wing area for alternate method (Default = SW in Namelist &CONFIN)')
fuscla = Float(0.0, desc='Alternate fuel capacity scaling method - Factor A')
fusclb = Float(0.0, desc='Alternate fuel capacity scaling method - Factor B')
fulfmx = Float(0.0, desc='Total fuel capacity of fuselage (wing ')
ifufu = Int(0, desc='= 1, Fuselage fuel capacity is adjusted to meet the required fuel capacity for the primary mission. Use only if IRW = 1 in Namelist &MISSIN, and use with care - some passengers can')
fulaux = Float(0.0, units='lb', desc='Auxiliary (external) fuel tank capacity (Fighters only)')
class FlopsWrapper_input_wtin_Detailed_Wing(VariableTree):
"""Container for input.wtin.Detailed_Wing"""
# OpenMDAO Public Variables
etaw = Array(dtype=numpy_float64, desc='Wing station location - fraction of semispan or distance from fuselage centerline. Typically, goes from 0. to 1. Input fixed distances (>1.1) are not scaled with changes in span.')
chd = Array(dtype=numpy_float64, desc='Chord length - fraction of semispan or actual chord. Actual chord lengths (>5.) are not scaled.')
toc = Array(dtype=numpy_float64, desc='Thickness - chord ratio')
swl = Array(dtype=numpy_float64, units='deg', desc='Sweep of load path. Typically parallel to rear spar tending toward max t/c of airfoil. The Ith value is used between wing stations I and I+1.')
etae = Array(array([0.3, 0.6, 0.0, 0.0]), dtype=numpy_float64, desc='Engine locations - fraction of semispan or distance from fuselage centerline. Actual distances are not scaled with changes in span. NEW/2 values are input')
pctl = Float(1.0, desc='Fraction of load carried by defined wing')
arref = Float(0.0, desc='Reference aspect ratio (Default = AR in &CONFIN)')
tcref = Float(0.0, desc='Reference thickness-chord ratio (Default = TCA in &CONFIN)')
nstd = Int(50, desc='Number of integration stations')
pdist = Float(2.0, desc='Pressure distribution indicator\n= 0., Input distribution - see below\n= 1., Triangular distribution\n= 2., Elliptical distribution\n= 3., Rectangular distribution PDIST is a continuous variable, i.e., a value of 1.5 would be half way between triangular and elliptical.\nCAUTION - the constants in the wing weight calculations were correlated with existing aircraft assuming an elliptical distribution. Use the default value unless you have a good reason not to.')
etap = Array(dtype=numpy_float64, desc='Fraction of wing semispan')
pval = Array(dtype=numpy_float64, desc='Relative spanwise pressure at ETAP(J)')
class FlopsWrapper_input_wtin_Crew_Payload(VariableTree):
"""Container for input.wtin.Crew_Payload"""
# OpenMDAO Public Variables
npf = Int(0, desc='Number of first class passengers')
npb = Int(0, desc='Number of business class passengers')
npt = Int(0, desc='Number of tourist passengers')
nstu = Int(-1, desc='Number of flight attendants (optional)')
ngalc = Int(-1, desc='Number of galley crew (optional)')
nflcr = Int(-1, desc='Number of flight crew (optional)')
wppass = Float(165.0, units='lb', desc='Weight per passenger')
bpp = Float(-1.0, units='lb', desc='Weight of baggage per passenger (Default = 35., or 40. if DESRNG in Namelist &CONFIN > 900., or 44. if DESRNG > 2900.)')
cargf = Float(0.0, desc='Military cargo aircraft floor factor = 0., Passenger transport\n= 1., Military cargo transport floor')
cargow = Float(0.0, units='lb', desc='Cargo carried in wing (Weight of wing-mounted external stores for fighters)')
cargof = Float(0.0, units='lb', desc='Cargo (other than passenger baggage) carried in fuselage (Fuselage external stores for fighters)')
class FlopsWrapper_input_wtin_Center_of_Gravity(VariableTree):
"""Container for input.wtin.Center_of_Gravity"""
# OpenMDAO Public Variables
cgw = Float(0.0, units='inch', desc='Longitudinal C.G. of wing')
cght = Float(0.0, units='inch', desc='Longitudinal C.G. of horizontal tail')
cgvt = Float(0.0, units='inch', desc='Longitudinal C.G. of vertical tail')
cgfin = Float(0.0, units='inch', desc='Longitudinal C.G. of wing vertical fins')
cgcan = Float(0.0, units='inch', desc='Longitudinal C.G. of canard')
cgf = Float(0.0, units='inch', desc='Longitudinal C.G. of fuselage')
cglgn = Float(0.0, units='inch', desc='Longitudinal C.G. of nose landing gear')
cglgm = Float(0.0, units='inch', desc='Longitudinal C.G. of main landing gear')
cgef = Float(0.0, units='inch', desc='Longitudinal C.G. of two forward mounted engines')
cgea = Float(0.0, units='inch', desc='Longitudinal C.G. of one or two aft mounted engines')
cgap = Float(0.0, units='inch', desc='Longitudinal C.G. of auxiliary power unit')
cgav = Float(0.0, units='inch', desc='Longitudinal C.G. of avionics group (optional)')
cgarm = Float(0.0, units='inch', desc='Longitudinal C.G. of armament group - includes thermal protection system or armor and fixed weapons (Default = CGF)')
cgcr = Float(0.0, units='inch', desc='Longitudinal C.G. of flight crew')
cgp = Float(0.0, units='inch', desc='Longitudinal C.G. of passengers')
cgcw = Float(0.0, units='inch', desc='Longitudinal C.G. of wing cargo or external stores')
cgcf = Float(0.0, units='inch', desc='Longitudinal C.G. of fuselage cargo or external stores')
cgzwf = Float(0.0, units='inch', desc='Longitudinal C.G. of fuselage fuel')
cgfwf = Float(0.0, units='inch', desc='Longitudinal C.G. of wing fuel in full condition')
cgais = Float(0.0, units='inch', desc='Longitudinal C.G. of air induction system')
cgacon = Float(0.0, units='inch', desc='Longitudinal C.G. of air conditioning system')
cgaxg = Float(0.0, units='inch', desc='Longitudinal C.G. of auxiliary gear')
cgaxt = Float(0.0, units='inch', desc='Longitudinal C.G. of auxiliary tanks')
cgammo = Float(0.0, units='inch', desc='Longitudinal C.G. of ammunition and nonfixed weapons')
cgmis = Float(0.0, units='inch', desc='Longitudinal C.G. of miscellaneous operating items')
class FlopsWrapper_input_wtin_Basic(VariableTree):
"""Container for input.wtin.Basic"""
# OpenMDAO Public Variables
ulf = Float(3.75, desc='Structural ultimate load factor')
dgw = Float(1.0, units='lb', desc='Design gross weight - fraction of GW (see &CONFIN) or weight')
vmmo = Float(0.0, desc='Maximum operating Mach number (Default = VCMN, Namelist &CONFIN)')
nwref = Enum(39, (39,37,33,26), desc='The number of the reference weight for percentage weight output.', aliases=('Ramp weight', 'Zero fuel weight', 'Operating weight empty', 'Weight empty'))
cgrefl = Float(0.0, units='inch', desc='Reference length for percentage C.G. location output (Default = XL*12., fuselage length)')
cgrefx = Float(0.0, units='inch', desc='X - location of start of reference length')
mywts = Enum(0, (0,1), desc='= 0, Weights will be computed\n = 1, Otherwise (See User-Specified Weights, Namelist &MISSIN)', aliases=('Compute weight', 'User-specified'))
hydpr = Float(3000.0, units='psi', desc='Hydraulic system pressure')
wpaint = Float(0.0, units='psf', desc='Weight of paint for all wetted areas')
ialtwt = Enum(0, (0,1), desc='= 1, Alternate weight equations for some components will be used (Special option)\n= 0, Normal FLOPS weight equations will be used', aliases=('Normal', 'Alternate'))
class FlopsWrapper_input_wtin(VariableTree):
"""Container for input.wtin"""
# OpenMDAO Public Variables
# VariableTrees
Basic = VarTree(FlopsWrapper_input_wtin_Basic())
Center_of_Gravity = VarTree(FlopsWrapper_input_wtin_Center_of_Gravity())
Crew_Payload = VarTree(FlopsWrapper_input_wtin_Crew_Payload())
Detailed_Wing = VarTree(FlopsWrapper_input_wtin_Detailed_Wing())
Fuel_System = VarTree(FlopsWrapper_input_wtin_Fuel_System())
Fuselage = VarTree(FlopsWrapper_input_wtin_Fuselage())
Inertia = VarTree(FlopsWrapper_input_wtin_Inertia())
Landing_Gear = VarTree(FlopsWrapper_input_wtin_Landing_Gear())
OEW_Calculations = VarTree(FlopsWrapper_input_wtin_OEW_Calculations())
Override = VarTree(FlopsWrapper_input_wtin_Override())
Propulsion = VarTree(FlopsWrapper_input_wtin_Propulsion())
Tails_Fins = VarTree(FlopsWrapper_input_wtin_Tails_Fins())
Wing_Data = VarTree(FlopsWrapper_input_wtin_Wing_Data())
class FlopsWrapper_input_tolin_Thrust_Reverser(VariableTree):
"""Container for input.tolin.Thrust_Reverser"""
# OpenMDAO Public Variables
inthrv = Int(-1, desc='= -1, Use takeoff thrust\n= 0, Input thrust values will be used\n= 1, Input values will be scaled\n> 1, Scaled engine deck for the (INTHRV-1)th power setting will be used')
rvfact = Float(0.0, desc='Fraction of thrust reversed - net (Real values should be negative)')
velrv = Array(dtype=numpy_float64, units='ft/s', desc='Velocities for reverse thrust')
thrrv = Array(dtype=numpy_float64, units='lb', desc='Thrust values')
tirvrs = Float(5.0, units='s', desc='Time after touchdown to reverse thrust')
revcut = Float(-1000.0, units='nmi', desc='Cutoff velocity for thrust reverser')
clrev = Float(0.0, desc='Change in lift coefficient due to thrust reverser')
cdrev = Float(0.0, desc='Change in drag coefficient due to thrust reverser')
class FlopsWrapper_input_tolin_Takeoff(VariableTree):
"""Container for input.tolin.Takeoff"""
# OpenMDAO Public Variables
cltom = Float(-1.0, desc='Maximum CL for takeoff (Default, see &AERIN)')
cdmto = Float(0.0, desc='Minimum CD for takeoff, typically, this is the drag coefficient at zero lift')
fcdmto = Float(0.3, desc='Fraction of CDMTO due to wing')
almxto = Float(25.0, units='deg', desc='Maximum angle of attack during takeoff')
obsto = Float(-1.0, units='ft', desc='Takeoff obstacle height (Defaults, Transport = 35., Fighter = 50.)')
alpto = Array(array([-100.0]), dtype=numpy_float64, units='deg', desc='Angles of attack for takeoff polar')
clto = Array(array([-100.0]), dtype=numpy_float64, desc='Lift coefficients for takeoff polar. These are not generated internally')
cdto = Array(array([-100.0]), dtype=numpy_float64, desc='Drag coefficients for takeoff polar. These are not generated internally')
inthto = Int(0, desc='= 0, Input thrust values will be used\n= 1, The input values will be scaled\n> 1, Scaled engine data deck for the (INTHTO-1)th power setting will be used')
velto = Array(dtype=numpy_float64, units='ft/s', desc='Velocities for takeoff thrust')
thrto = Array(dtype=numpy_float64, units='lb', desc='Thrust values')
alprot = Float(-100.0, desc='Maximum angle of attack during rotation phase of takeoff (Default = ALMXTO)')
vrotat = Float(1.05, desc='Minimum rotation start speed, knots or fraction of Vstall')
vangl = Float(2.0, units='deg/s', desc='Rotation rate')
thfact = Float(1.0, desc='Thrust multiplier for input or extracted thrust data')
ftocl = Float(1.0, desc='Factor for takeoff lift. Also applied to drag polars input in &PROIN')
ftocd = Float(1.0, desc='Factor for takeoff drag. Also applied to drag polars input in &PROIN')
igobs = Enum(0, (0,1), desc='Gear retraction switch', aliases=('Liftoff + TDELG', 'Obstacle + TDELG'))
tdelg = Float(0.0, units='s', desc='Time delay after liftoff/obstacle before start of landing gear retraction')
tigear = Float(2.0, units='s', desc='Time required to retract landing gear. Landing gear drag is reduced using a cosine function.')
ibal = Enum(1, (1,2,0), desc='Option to compute balanced field length', aliases=('pre-1998 FAA rules', 'post-1998 FAA rules', 'Do not compute'))
itxout = Enum(0, (1,0), desc='Weight to use for takeoff field length calculations', aliases=('Ramp weight - taxi out fuel', 'Ramp weight'))
pilott = Float(1.0, units='s', desc='Actual pilot reaction time from engine failure to brake application. Spoilers, brakes, and thrust reversal are assumed to become effective and engine cutback occurs at PILOTT + 2 seconds after engine failure.')
tispa = Float(0.0, units='s', desc='Not currently used')
tibra = Float(0.0, units='s', desc='Not currently used')
tirva = Float(0.0, units='s', desc='Not currently used')
ispol = Enum(1, (0,1), desc='Option for spoiler use during aborted takeoff', aliases=('Not used', 'Used'))
irev = Enum(1, (0,1,2), desc='Option for thrust reversal during aborted takeoff', aliases=('Not used', 'Only if all engines operational', 'Always used'))
class FlopsWrapper_input_tolin_Landing(VariableTree):
"""Container for input.tolin.Landing"""
# OpenMDAO Public Variables
clldm = Float(-1.0, desc='Maximum CL for landing (Default, see &AERIN)')
cdmld = Float(0.0, desc='Minimum CD for landing')
fcdmld = Float(-1.0, desc='Fraction of CDMLD due to wing (Default = FCDMTO)')
almxld = Float(25.0, units='deg', desc='Maximum angle of attack during landing')
obsld = Float(50.0, units='ft', desc='Landing obstacle height')
alpld = Array(dtype=numpy_float64, units='deg', desc='Angles of attack for landing polar')
clld = Array(dtype=numpy_float64, desc='Lift coefficients for landing polar. These are not generated internally')
cdld = Array(dtype=numpy_float64, desc='Drag coefficients for landing polar. These are not generated internally')
inthld = Int(0, desc='= 0, Input thrust values will be used\n= 1, The input values will be scaled\n> 1, Scaled engine data deck will be used')
velld = Array(dtype=numpy_float64, units='ft/s', desc='Velocities for landing')
thrld = Array(dtype=numpy_float64, units='lb', desc='Thrust values')
thdry = Float(-1.0, units='lb', desc='Maximum dry thrust at missed appproach for fighters (Default = takeoff thrust)')
aprhgt = Float(100.0, units='ft', desc='Height above ground for start of approach')
aprang = Float(-3.0, units='deg', desc='Approach flight path angle')
fldcl = Float(1.0, desc='Factor for landing lift')
fldcd = Float(1.0, desc='Factor for landing drag')
tdsink = Float(0.0, units='ft/s', desc='Sink rate at touchdown (Must be positive if input)')
vangld = Float(0.0, units='deg/s', desc='Flare rate (Default = VANGL)')
noflar = Enum(0, (1,0), desc='Option for flare during landing. If no flare, sink rate at touchdown is the approach sink rate with ground effects.', aliases=('No flare', 'Flare'))
tispol = Float(2.0, units='s', desc='Time after touchdown to spoiler actuation')
ticut = Float(3.0, units='s', desc='Time after touchdown to cut back of engines to zero thrust')
tibrak = Float(4.0, units='s', desc='Time after touchdown to brake application')
acclim = Float(16.0, units='ft/(s*s)', desc='Deceleration limit')
magrup = Enum(-1, (1,0,-1), desc='Missed approach landing gear switch', aliases=('Gear up during missed approach', 'Gear down during missed approach', 'Use default'))
class FlopsWrapper_input_tolin_Integration_Intervals(VariableTree):
"""Container for input.tolin.Integration_Intervals"""
# OpenMDAO Public Variables
delvto = Float(4.0, units='ft/s', desc='Velocity step during ground run')
deltro = Float(0.2, units='s', desc='Time step during rotation')
deltcl = Float(0.2, units='s', desc='Time step during climbout')
delhap = Float(10.0, units='ft', desc='Altitude step during approach')
deldfl = Float(10.0, units='ft', desc='Distance step during flare')
deltrn = Float(0.25, units='s', desc='Time step during runout')
class FlopsWrapper_input_tolin_Basic(VariableTree):
"""Container for input.tolin.Basic"""
# OpenMDAO Public Variables
apa = Float(0.0, units='ft', desc='Airport altitude')
dtct = Float(0.0, units='degC', desc='Delta temperature from standard day. (This parameter is independent from the DTC in Namelist &MISSIN and DTCE in Namelist &ENGINE.)')
swref = Float(-1.0, units='ft*ft', desc='Wing area on which takeoff and landing drag polars are based (Default = SW, Namelist &CONFIN). If different from SW, polars will be scaled.')
arret = Float(-1.0, desc='Wing aspect ratio on which takeoff and landing drag polars are based (Default = AR, Namelist &CONFIN). If different from AR, polars will be modified.')
whgt = Float(8.0, units='ft', desc='Wing height above ground')
alprun = Float(0.0, units='deg', desc='Angle of attack on ground')
tinc = Float(0.0, units='deg', desc='Thrust incidence on ground')
rollmu = Float(0.025, desc='Coefficient of rolling friction')
brakmu = Float(0.3, desc='Coefficient of friction, brakes on')
cdgear = Float(0.0, desc='Landing gear drag coefficient')
cdeout = Float(0.0, desc='Delta drag coefficient due to engine out condition. Includes effect of stopped or windmilling engine and the trim drag associated with compensating for asymmetric thrust.')
clspol = Float(0.0, desc='Spoiler delta lift coefficient (Should be negative)')
cdspol = Float(0.0, desc='Spoiler delta drag coefficient')
incgef = Enum(1, (1,0), desc='Ground effects switch', aliases=('Ground effects', 'No ground effects'))
argef = Float(1.0, desc='Aspect ratio factor for ground effects')
itime = Enum(0, (1,0), desc='Detailed takeoff and landing profiles print option', aliases=('Print', 'No print'))
class FlopsWrapper_input_tolin(VariableTree):
"""Container for input.tolin"""
# VariableTrees
Basic = VarTree(FlopsWrapper_input_tolin_Basic())
Integration_Intervals = VarTree(FlopsWrapper_input_tolin_Integration_Intervals())
Landing = VarTree(FlopsWrapper_input_tolin_Landing())
Takeoff = VarTree(FlopsWrapper_input_tolin_Takeoff())
Thrust_Reverser = VarTree(FlopsWrapper_input_tolin_Thrust_Reverser())
class FlopsWrapper_input_syntin_Variables(VariableTree):
"""Container for input.syntin.Variables"""
# OpenMDAO Public Variables
desrng = Float(-1.0, desc='Design range, n.mi. (or endurance, min.). See INDR in Namelist &MISSIN (Overrides input in Namelist &CONFIN).')
vappr = Float(-1.0, units='nmi', desc='Maximum allowable landing approach velocity (Overrides input in Namelist &AERIN)')
flto = Float(-1.0, units='ft', desc='Maximum allowable takeoff field length (Overrides input in Namelist &AERIN)')
flldg = Float(-1.0, units='ft', desc='Maximum allowable landing field length (Overrides input in Namelist &AERIN)')
exfcap = Float(0.0, units='lb', desc='Minimum allowable excess fuel capacity')
cdtmax = Float(-1.0, units='degR', desc='Maximum allowable compressor discharge temperature (Overrides input in Namelist &ENGINE')
cdpmax = Float(-1.0, units='psi', desc='Maximum allowable compressor discharge pressure (Overrides input in Namelist &ENGINE')
vjmax = Float(-1.0, units='ft/s', desc='Maximum allowable jet velocity (Overrides input in Namelist &ENGINE')
stmin = Float(-1.0, units='lb/lb/s', desc='Minimum allowable specific thrust (Overrides input in Namelist &ENGINE')
armax = Float(-1.0, desc='Maximum allowable ratio of the bypass area to the core area of a mixed flow turbofan (Overrides input in Namelist &ENGINE')
gnox = Float(0.0, units='lb', desc='Maximum allowable NOx emissions')
roclim = Float(100.0, units='ft/min', desc='Minimum allowable potential rate of climb during climb segments')
dhdtlm = Float(100.0, units='ft/min', desc='Minimum allowable actual rate of climb during climb segments')
tmglim = Float(0.1, desc='Minimum allowable thrust margin, (Thrust-Drag)/Drag, during climb segments')
ig = Array(dtype=numpy_int64, desc='= 1, Ith behavioral constraint is used in optimization\n= 0, Otherwise')
ibfgs = Enum(1, (0,1,2,3,4,5), desc='Search algorithm for optimization', aliases=('Davidon-Fletcher-Powell', 'Broyden-Fletcher-Goldfarb-Shano', 'Conjugate Gradient (Polak-Ribiere)', 'Steepest Descent', 'Univariate Search', 'Kreisselmeier-Steinhauser with DFP'))
itfine = Enum(0, (1,0), desc='Option to set IRW = 1 for final analysis', aliases=('Yes', 'No'))
class FlopsWrapper_input_syntin_Optimization_Control(VariableTree):
"""Container for input.syntin.Optimization_Control"""
# OpenMDAO Public Variables
ndd = Int(0, desc='Number of drawdowns (Defaults to analysis only - no optimization is performed. Suggested value = 3 or 4)')
rk = Float(0.0, desc='Initial value of RK (Default internally computed)')
fdd = Float(0.2, desc='RK multiplier for successive drawdowns')
nlin = Int(-1, desc='Maximum number of gradients per drawdown (Default = number of active design variables times 2)')
nstep = Int(20, desc='Maximum number of steps per one-dimensional minimization (Default = 20)')
ef = Float(3.0, desc='Limits one-dimensional minimization step size to EF times previous step')
eps = Float(0.001, desc='Fraction of initial design variable value used as a finite difference delta')
amult = Float(10.0, desc='The initial step in a one-dimensional search is controlled by the design variable value times EPS times AMULT')
dep = Float(0.001, desc='One-dimensional search convergence criterion on step size as a fraction of move distance')
accux = Float(3.0e-4, desc='One-dimensional search convergence criterion on step size as a fraction of initial design variable value')
glm = Float(0.0, desc='Value of G at which constraint switches to quadratic extended form, a value of .002 is recommended')
gfact = Array(dtype=numpy_float64, desc='Scaling factor for each behavioral constraint')
autscl = Float(1.0, desc='Design variable scale factor exponent. Scale factors for design variables default to VALUE ** AUTSCL')
icent = Enum(0, (0,1), desc='Type of differencing to be used in gradient calculations', aliases=('Forward', 'Central'))
rhomin = Float(0.0, desc='Starting value for RHO, a scalar multiplying factor used in the KS function. (Default is computed internally)')
rhomax = Float(300.0, desc='Maximum value for RHO')
rhodel = Float(0.0, desc='RHO increment (Default is computed internally)')
itmax = Int(30, desc='Maximum number of iterations')
jprnt = Int(2, desc='KS module print control\n= 0, No output from the KS module\n= 999, Maximum output')
rdfun = Float(0.01, desc='If the relative change in the KS function is less than RDFUN for three consecutive iterations, optimization is terminated.')
adfun = Float(0.001, desc='If the absolute change in the KS function is less than ADFUN for three consecutive iterations, optimization is terminated.')
class FlopsWrapper_input_syntin(VariableTree):
"""Container for input.syntin"""
# VariableTrees
Optimization_Control = VarTree(FlopsWrapper_input_syntin_Optimization_Control())
Variables = VarTree(FlopsWrapper_input_syntin_Variables())
class FlopsWrapper_input_rfhin(VariableTree):
"""Container for input.rfhin"""
# OpenMDAO Public Variables
tmach = Array(dtype=numpy_float64, desc='Mach numbers in increasing order')
cdmin = Array(dtype=numpy_float64, desc='Minimum drag for each Mach number.\nThe lift dependent drag coefficient for the Ith Mach number is computed from:\n\nCD = CDMIN(I) + CK(I) * [CL - CLB(I)] ** 2\n+ C1SW(I) * (SW/REFAS - REFBS) ** EXPS\n+ C1TH(I) * (THRUST/REFAT - REFBT) ** EXPT\n\nwhere SW and THRUST are the current values for the wing area and for the thrust per engine, and CL is the lift coefficient.')
ck = Array(dtype=numpy_float64, desc='Drag-due-to-lift factors for each Mach number')
clb = Array(dtype=numpy_float64, desc='Lift coefficients corresponding to each CDMIN')
c1sw = Array(dtype=numpy_float64, desc='Coefficient for wing area term for each Mach number. May be a drag coefficient or D/Q depending on the values of REFAS, REFBS and EXPS.')
c1th = Array(dtype=numpy_float64, desc='Coefficient for thrust term for each Mach number. May be a drag coefficient or D/Q depending on the values of REFAT, REFBT and EXPT.')
refas = Float(1.0, desc='Wing area reference value')
refbs = Float(0.0, desc='Wing area base value')
exps = Float(1.0, desc='Wing area term exponent')
refat = Float(1.0, desc='Thrust reference value')
refbt = Float(0.0, desc='Thrust base value')
expt = Float(1.0, desc='Thrust term exponent')
class FlopsWrapper_input_proin(VariableTree):
"""Container for input.proin"""
# OpenMDAO Public Variables
npol = Int(0, desc='Number of drag polars to be printed out (Default = size of dflap)')
alpro = Array(dtype=numpy_float64, units='deg', desc='Angles of attack for each drag polar')
clpro = Array(dtype=numpy_float64, desc='Lift coefficients for each drag polar')
cdpro = Array(dtype=numpy_float64, desc='Drag coefficients for each drag polar')
dflap = Array(array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), dtype=numpy_float64, units='deg', desc='Flap deflection corresponding to each drag polar. Used only for output')
ntime = Enum(0, (1,0), desc='Option for printing detailed takeoff and climb profiles for noise', aliases=('Print', 'No print'))
ipcmax = Int(1, desc='Maximum engine power code (This variable could be used, for example, to limit takeoff and climb to dry power settings on an afterburning engine.)')
keas = Enum(0, (1,0), desc='Type of velocity given by VFIX in namelist &SEGIN', aliases=('Knots equivalent airspeed (keas)', 'True airspeed'))
txf = Float(-1.0, units='lb', desc='Fuel used in taxiing out to runway (Default is computed in mission analysis)')
alpmin = Float(0.0, units='deg', desc='Minimum angle of attack during climb segment')
gamlim = Float(0.0, units='deg', desc='Minimum flight path angle during fixed angle of attack segments')
inm = Enum(0, (1,0), desc='Option to generate data files necessary for transporting FLOPS takeoff and climb profile data to the FAA Integrated Noise Model (INM) program', aliases=('Generate', 'Do not generate'))
iatr = Enum(0, (1,0), desc='Automatic thrust restoration indicator option (INM=1, has no effect of takeoff and climb profile)', aliases=('ATR', 'No ATR'))
fzf = Float(1.25, desc='Maneuver speed factor (INM=1)')
thclmb = Float(-1.0, desc='Climb throttle setting (INM=1)')
flapid = Array(dtype=numpy_str, desc='Six character label for each of the NPOL input drag polars, for example, "gearup"')
class FlopsWrapper_input_option_Program_Control(VariableTree):
"""Container for input.option.Program_Control"""
# OpenMDAO Public Variables
mprint = Enum(1, (0,1), desc='Print control \n = 0, Print only 3-5 line summary for each analysis. Usually used only for contour plots (IOPT = 4) \n = 1, Normal output for all analyses', aliases=('Short Summary', 'Normal'))
iopt = Enum(1, (1,2,3,4), desc='Execution Type', aliases=('Analysis', 'Parametric Variation', 'Optimization', 'Contour or Thumbprint plot'))
ianal = Enum(3, (1,2,3,4), desc='Analysis Type', aliases=('Weights', 'Weights and Aerodynamics', 'Full Analysis', 'Propulsion'))
ineng = Enum(0, (0,1), desc='Force engine Data Read', aliases=('If necessary', 'Yes'))
itakof = Enum(0, (0,1), desc='Detailed takeoff', aliases=('No', 'Yes (Namelist &TOLIN required)'))
iland = Enum(0, (0,1), desc='Detailed landing', aliases=('No', 'Yes (Namelist &TOLIN required)'))
nopro = Enum(0, (0,1), desc='Generate takeoff and climb profiles (Namelists &TOLIN &PROIN and &SEGIN required)', aliases=('No', 'Yes'))
noise = Enum(0, (0,1,2), desc='Calculate noise', aliases=('No', 'Yes (Namelist &COSTIN required)', 'Yes for final analysis only'))
icost = Enum(0, (0,1), desc='Calculate costs', aliases=('No', 'Yes (Namelist &COSTIN required)'))
ifite = Enum(0, (0,1,2,3), desc='Weight equations', aliases=('Transports', 'Fighter/attack', 'General aviation', 'Blended wing body'))
class FlopsWrapper_input_option_Plot_Files(VariableTree):
"""Container for input.option.Plot_Files"""
# OpenMDAO Public Variables
ixfl = Enum(0, (0,1), desc='Generate mission summary plot files', aliases=('No', 'Yes'))
npfile = Enum(0, (0,1,2), desc='Output takeoff and climb profiles for use with ANOPP preprocessor (andin)', aliases=('No', 'Yes', 'XFlops'))
ipolp = Enum(0, (0,1,2), desc='Drag polar plot data', aliases=('None', 'Drag polars at existing Mach numbers', 'User specified Mach numbers'))
polalt = Float(0.0, units='ft', desc='Altitude for drag polar plots')
pmach = Array(dtype=numpy_float64, desc='Mach numbers for drag polar plot data')
ipltth = Enum(0, (0,1,2), desc='Generate engine plot data', aliases=('None', 'Initial engine', 'Final scaled engine'))
iplths = Enum(0, (0,1), desc='Design history plot data', aliases=('No', 'Yes'))
cnfile = Str(desc='Contour or thumbprint plot data filename')
msfile = Str(desc='Mission summary data filename')
crfile = Str(desc='Cruise schedule summary data filename')
tofile = Str(desc='Takeoff and landing aerodynamic and thrust data filename')
nofile = Str(desc='Takeoff and climb profile data filename')
apfile = Str(desc='Drag polar plot data filename')
thfile = Str(desc='Engine plot data filename')
hsfile = Str(desc='Design history plot filename')
psfile = Str(desc='Excess power and load factor plot data filename')
class FlopsWrapper_input_option_Excess_Power_Plot(VariableTree):
"""Container for input.option.Excess_Power_Plot"""
# OpenMDAO Public Variables
xmax = Float(0.9, desc='Maximum Mach number for plots')
xmin = Float(0.3, desc='Minimum Mach number for plots')
xinc = Float(0.2, desc='Mach number increment for plots')
ymax = Float(40000.0, units='ft', desc='Maximum altitude for plots')
ymin = Float(0.0, units='ft', desc='Minimum altitude for plots')
yinc = Float(10000.0, units='ft', desc='Altitude increment for plots')
pltnz = Array(dtype=numpy_float64, desc='Nz at which Ps contours are plotted (or Nz)')
pltpc = Array(dtype=numpy_float64, desc='Engine power (fraction if =< 1; else setting)')
ipstdg = Array(dtype=numpy_int64, desc='Store drag schedule (see Namelist &MISSIN)')
pltwt = Array(dtype=numpy_float64, units='lb', desc='Fixed weight')
ipltsg = Array(dtype=numpy_int64, desc='Weight at start of mission segment IPLTSG is used')
pltfm = Array(dtype=numpy_float64, desc='Fraction of fuel burned')
pltwta = Array(dtype=numpy_float64, units='lb', desc='Delta weight')
class FlopsWrapper_input_option(VariableTree):
"""Container for input.option"""
# VariableTrees
Excess_Power_Plot = VarTree(FlopsWrapper_input_option_Excess_Power_Plot())
Plot_Files = VarTree(FlopsWrapper_input_option_Plot_Files())
Program_Control = VarTree(FlopsWrapper_input_option_Program_Control())
class FlopsWrapper_input_noisin_Turbine(VariableTree):
"""Container for input.noisin.Turbine"""
# OpenMDAO Public Variables
tsupp = Array(dtype=numpy_float64, desc='Turbine suppression spectrum')
tbndia = Float(-1.0, units='ft', desc='Diameter of last-stage turbine')
gear = Float(1.0, desc='Gear ratio: turbine RPM/fan RPM')
cs = Float(0.0, desc='Stator chord to rotor spacing ratio')
nblr = Int(-1, desc='Number of last stage rotor blades')
ityptb = Enum(0, (1,0), desc='Type of exit plane', aliases=('Turbofans', 'Turbojets or coplanar exits'))
etdop = Float(4.0, desc='Exponent on source motion (Doppler) amplification on turbine noise')
class FlopsWrapper_input_noisin_Shielding(VariableTree):
"""Container for input.noisin.Shielding"""
# OpenMDAO Public Variables
iuotw = Enum(0, (1,0), desc='Engine location relative to wing', aliases=('Over the wing', 'Under the wing'))
sfuse = Float(10.0, desc='Maximum fuselage shielding')
swide = Float(60.0, units='deg', desc='Degrees of arc where fuselage shielding is greater than SFUSE/e')
swing = Float(10.0, desc='Maximum wing shielding for over-the-wing engine')
smx = Float(90.0, units='deg', desc='Angle in flyover plane of maximum over-the-wing shielding')
cfuse = Float(10.0, units='ft', desc='Characteristic fuselage dimension (such as diameter)')
cwing = Float(10.0, units='ft', desc='Characteristic wing dimension (such as chord)')
class FlopsWrapper_input_noisin_Propeller(VariableTree):
"""Container for input.noisin.Propeller"""
# OpenMDAO Public Variables
nb = Int(0, desc='Number of blades per propeller')
bldia = Float(0.0, units='ft', desc='Diameter of propeller')
blarea = Float(0.0, units='ft*ft', desc='Total blade area for one side of propeller')
gearp = Float(1.0, desc='Ratio of propeller rpm / engine rpm')
epdop = Float(1.0, desc='Exponent on source motion (Doppler) amplification on propeller noise')
blth = Float(0.0, units='ft', desc='Blade thickness at 70% span')
blch = Float(0.0, units='ft', desc='Blade chord at 70% span')
blattk = Float(0.0, units='deg', desc='Blade angle of attack at 70% span')
dharm = Float(0.5, desc='Rate of decrease in harmonic level beyond tenth, dB/harmonic')
nph = Int(10, desc='Number of harmonics of BDF desired')
ivor = Enum(1, (1,0), desc='Calculate vortex noise component', aliases=('Vortex noise', 'No vortex noise'))
irot = Enum(1, (1,0), desc='Calculate rotational noise component', aliases=('Rotational noise', 'No rotational noise'))
ipdir = Enum(0, (1,0), desc='Apply Boeing directivity correction', aliases=('Yes', 'No'))
psupp = Array(dtype=numpy_float64, desc='Propeller noise suppression spectrum')
class FlopsWrapper_input_noisin_Propagation(VariableTree):
"""Container for input.noisin.Propagation"""
# OpenMDAO Public Variables
isupp = Enum(0, (1,0), desc='Apply suppression spectra to each source for which they are supplied', aliases=('Yes', 'No'))
idop = Enum(0, (1,0), desc='Apply Doppler frequency and intensity correction to total noise', aliases=('Yes', 'No'))
ignd = Enum(0, (0,1,2), desc='Ground reflection option', aliases=('None', 'Perfect reflection', 'Putnam method'))
iatm = Enum(0, (0,1,2), desc='Atmospheric absorption correction', aliases=('None', 'SAE ARP 866', 'Bass & Shields'))
iega = Enum(0, (1,0), desc='Extra ground attenuation', aliases=('Yes', 'No'))
ishld = Enum(0, (1,0), desc='Shielding of fan, jet, core, turbine and propeller sources', aliases=('Yes', 'No'))
deldb = Float(20.0, desc='Number of dB down from the peak noise level to cut off printing of noise time histories')
heng = Float(0.0, units='ft', desc='Height of engine above ground during taxi')
filbw = Float(1.0, desc='Fraction of filter bandwidth with a gain of 1')
tdi = Float(1.0, units='s', desc='Reception time increment')
rh = Float(70.0, desc='Ambient relative humidity')
class FlopsWrapper_input_noisin_Observers(VariableTree):
"""Container for input.noisin.Observers"""
# OpenMDAO Public Variables
xo = Array(dtype=numpy_float64, units='ft', desc='X-coordinates of observers')
yo = Array(dtype=numpy_float64, units='ft', desc='Y-coordinates of observers')
zo = Float(0.0, units='ft', desc='Height of all observers above the ground')
ndprt = Enum(1, (1,0), desc='Print observer noise histories')
ifoot = Enum(0, (1,0), desc='Print noise levels of input observers in countour format to file NSPLOT for subsequent plotting of the noise footprint', aliases=('Print', 'No print'))
igeom = Enum(0, (1,0), desc='Print geometric relations of aircraft/observer at each time point', aliases=('Print', 'No print'))
thrn = Float(-1.0, units='lb', desc='Thrust of baseline engine. Geometry data and engine parameter arrays will be scaled accordingly (Default=THRSO, Namelist &WTIN)')
icorr = Enum(0, (1,0), desc='Apply corrections to engine parameters to correct for ambient conditions', aliases=('Yes', 'No'))
tcorxp = Float(1.0, desc='Exponent for core temperature correction in engine parameter arrays')
class FlopsWrapper_input_noisin_MSJet(VariableTree):
"""Container for input.noisin.MSJet"""
# OpenMDAO Public Variables
iy9 = Enum(1, (1,2,3,4,5,6), desc='Type of nozzle', aliases=('Convergent conical', 'Single multitube', 'Single multichute', 'Dual convergent conical', 'Dual, multitube on outer', 'Dual, multichute/spoke on outer'))
n = Int(1, desc='Number of tubes (IY9=2,5) or elements (IY9=3,6)')
rp = Float(0.0, units='ft', desc='Centerbody plug radius (IY9=2,3,5,6)')
b9 = Float(0.0, units='deg', desc='Tube centerline cant angle (IY9-2,5)\nChute/spoke exit cant angle (IY9=3,6)')
dt = Float(0.0, units='inch', desc='Tube diameter (IY9=2,5)')
z5 = Float(0.0, desc='Number of rows of tubes, counting center tube (if present) as zero (IY9=2,5)')
s1j = Float(0.0, desc='Tube centerline spacing to tube diameter ratio (IY9=2,5)')
a6 = Float(0.0, desc='Ratio of ejector inlet area to nozzle (total or annulus) area (input zero for no ejector) (IY9=2,3,5,6)')
zl9 = Float(0.0, desc='Ratio of ejector length to suppressor nozzle equivalent diameter (IY9=2,3,5,6)')
a = Array(dtype=numpy_float64, desc='A(0): Ejector treatment faceplate thickness, in\nA(1): Ejector treatment hole diameter, in\nA(2): Ejector treatment cavity depth, in\nA(3): Ejector treatment open area ratio\n(IY9=2,3,5,6)')
# TODO - rr and rx are units of 'Rayl' (rayleigh)
rr = Array(dtype=numpy_float64, desc='Ejector treatment specific resistance (59 values required) (IY9=2,3,5,6)')
rx = Array(dtype=numpy_float64, desc='Ejector treatment specific reactance (59 values required) (IY9=2,3,5,6)')
r4 = Float(0.0, units='inch', desc='Outer circumferential flow dimension (IY9=3,6)')
r6 = Float(0.0, units='inch', desc='Inner circumferential flow dimension (IY9=3,6)')
ss = Float(0.0, units='inch', desc='Outer circumferential element dimension (IY9=3,6)')
dn = Float(0.0, units='ft', desc='Nozzle outer diameter')
aa = Float(0.0, desc='Unknown variable')
nflt = Int(1, desc='Unknown variable')
htr = Float(0.0, desc='Unknown variable')
nst = Int(1, desc='Unknown variable')
class FlopsWrapper_input_noisin_Jet(VariableTree):
"""Container for input.noisin.Jet"""
# OpenMDAO Public Variables
inoz = Enum(0, (1,0), desc='Type of nozzle', aliases=('Coaxial', 'Circular'))
iplug = Enum(0, (1,0), desc='Plug nozzle on primary', aliases=('Plug', 'No plug'))
islot = Enum(0, (1,0), desc='Slot nozzle on primary', aliases=('Slot nozzle', 'No slot'))
iaz = Enum(0, (1,0), desc='Azimuthal correction for nozzle geometry', aliases=('Yes', 'No'))
dbaz = Float(0.0, desc='Noise reduction due to nozzle geometry at phi = 75 degrees, used only if IAZ = 1')
ejdop = Float(1.0, desc='Exponent on source motion (Doppler) amplification on shock noise only. Used for IJET=1,2')
zmdc = Float(1.0, desc='Core (primary) jet design Mach number. Used for application of non-ideally expanded shock noise. Used for IJET=1,2')
gammac = Float(-1.0, desc='Core (primary) jet exhaust gamma Used for IJET=1,2,6 (Default = 1.4)')
gasrc = Float(-1.0, units='(ft*lb)/(lb*degR)', desc='Core exhaust gas constant, Used for IJET=1,2 (Default = 53.35)')
annht = Float(0.0, units='ft', desc='Core nozzle annulus height. Used for IJET=1,2')
zmdf = Float(1.0, desc='Fan (secondary) jet design Mach number. Used for application of non-ideally expanded shock noise. Used for IJET=1,2')
gammap = Float(-1.0, desc='Fan (secondary) jet exhaust gamma Used for IJET=1,2 (Default = GAMMAF)')
gasrf = Float(53.35, units='(ft*lb)/(lb*degR)', desc='Fan exhaust gas constant. Used for IJET=1,2')
annhtf = Float(0.0, units='ft', desc='Fan nozzle annulus height. Used for IJET=1,2')
dhc = Float(-1.0, units='ft', desc='Core nozzle hydraulic diameter. Used for IJET=3,4')
dhf = Float(0.0, units='ft', desc='Fan nozzle hydraulic diameter. Used for IJET=3,4')
zl2 = Float(0.0, units='ft', desc='Axial distance from the outer exit plane to the exit plane of the inner nozzle. Used for IJET=3,4')
ifwd = Enum(0, (1,0), desc='Forward velocity effects on source. Used for IJET=1,2,3,4,5', aliases=('Yes', 'No'))
ishock = Enum(1, (1,0), desc='Calculate shock noise. Used for IJET=1,2,3,4,5', aliases=('Shock noise', 'No shock'))
zjsupp = Array(dtype=numpy_float64, desc='Jet suppression spectrum. Used for IJET=1,2,3,4,5')
class FlopsWrapper_input_noisin_Ground_Effects(VariableTree):
"""Container for input.noisin.Ground_Effects"""
# OpenMDAO Public Variables
itone = Enum(0, (1,0), desc='1/3-octave bands exceeding adjacent bands by 3 dB or more are approximated as tones', aliases=('Yes', 'No'))
#nht = Int(0, desc='Number of heights to be used to approximate a distributed source by multiple sources')
dk = Array(dtype=numpy_float64, units='ft', desc='Heights of multiple sources from source center')
class FlopsWrapper_input_noisin_Flap_Noise(VariableTree):
"""Container for input.noisin.Flap_Noise"""
# OpenMDAO Public Variables
ilnoz = Enum(0, (2,1,0), desc='Nozzle type', aliases=('Coaxial, mixed flow', 'Coaxial, separate flow', 'Circular'))
insens = Enum(0, (1,0), desc='Configuration with noise levels insensitive to flap angle', aliases=('Yes', 'No'))
ac1 = Float(0.0, units='ft*ft', desc='Core (primary) nozzle area')
af1 = Float(0.0, units='ft*ft', desc='Fan (secondary) nozzle area')
bpr = Float(0.0, desc='Bypass ratio, for mixed flow coaxial nozzle')
wingd = Float(0.0, desc='Ratio of wing chord to total nozzle diameter, used for large BPR designs when WINGD < 3')
flsupp = Array(dtype=numpy_float64, desc='Flap noise suppression spectrum')
eldop = Float(0.0, desc='Exponent on source motion (Doppler) amplification on flap noise')
class FlopsWrapper_input_noisin_Fan(VariableTree):
"""Container for input.noisin.Fan"""
# OpenMDAO Public Variables
igv = Enum(0, (1,0), desc='Inlet guide vane option', aliases=('Inlet guide vane', 'No IGV'))
ifd = Enum(0, (1,0), desc='Inlet flow distortion option during ground run', aliases=('Inlet flow distortion', 'No distortion'))
iexh = Enum(2, (0,1,2), desc='Fan inlet, exhaust noise options', aliases=('Inlet only', 'Exhaust only', 'Both inlet & exhaust'))
nfh = Int(10, desc='Number of harmonics to be considered in blade-passing tone')
nstg = Int(-1, desc='Number of fan stages')
suppin = Array(dtype=numpy_float64, desc='Fan inlet suppression spectrum')
suppex = Array(dtype=numpy_float64, desc='Fan exhaust suppression spectrum')
methtip = Enum(1, (1,2,3), desc='Method for calculation of relative tip Mach number', aliases=('ANOPP method', 'Clark', 'Use ATIPM'))
icomb = Enum(1, (1,0), desc='Option to include combination tones if relative tip Mach number is supersonic', aliases=('Combination tones', 'No combination tones'))
decmpt = Float(0.0, desc='Decrement to apply to combination tones')
gammaf = Float(1.4, desc='Gamma of fan air')
nbl = Int(-1, desc='Number of fan blades')
nvan = Int(-1, desc='Number of stator vanes')
fandia = Float(-1.0, units='ft', desc='Fan diameter')
fanhub = Float(-1.0, units='ft', desc='Fan hub diameter')
tipmd = Float(-1.0, desc='Design relative tip Mach number')
rss = Float(100.0, desc='Rotor-stator spacing in percent')
efdop = Float(4.0, desc='Exponent on source motion (Doppler) amplification on fan noise')
faneff = Float(0.88, desc='Constant first stage fan efficiency, < 1.0. Overridden by AFANEF')
nbl2 = Int(-1, desc='Number of fan blades for second stage (Default = NBL)')
nvan2 = Int(-1, desc='Number of stator vanes for second stage (Default = NVAN)')
fand2 = Float(-1.0, units='ft', desc='Fan diameter for second stage (Default = FANDIA)')
tipmd2 = Float(-1.0, desc='Design relative tip Mach number for second stage (Default = TIPMD)')
rss2 = Float(-1.0, desc='Rotor-stator spacing in percent for second stage (Default = RSS)')
efdop2 = Float(-1.0, desc='Exponent on source motion (Doppler) amplification on second stage fan noise (Default = EFDOP)')
fanef2 = Float(0.88, desc='Constant second stage fan efficiency, < 1.0. Overridden by AFANF2')
trat = Float(-1.0, desc='Ratio of second stage temperature rise (DELT2) to that of first stage. Either TRAT or PRAT is used to calculate DELT2.')
prat = Float(1.0, desc='Ratio of second stage fan pressure ratio to that of first stage')
class FlopsWrapper_input_noisin_Engine_Parameters(VariableTree):
"""Container for input.noisin.Engine_Parameters"""
# OpenMDAO Public Variables
aepp = Array(dtype=numpy_float64, desc='Throttle settings as a fraction of net thrust')
avc = Array(dtype=numpy_float64, units='ft/s', desc='Core/primary exhaust jet velocity (ideally expanded velocity; exclude friction and expansion alterations). Used for IJET=1,2,3,4,6')
avf = Array(dtype=numpy_float64, units='ft/s', desc='Fan/secondary exhaust jet velocity (ideally expanded velocity; exclude friction and expansion alterations). Used for IJET=1,2,3,4')
atc = Array(dtype=numpy_float64, units='degR', desc='Core/primary jet exhaust total temperature. Used for IJET=1,2,3,4,6')
atf = Array(dtype=numpy_float64, units='degR', desc='Fan/secondary jet exhaust total temperature. Used for IJET=1,2,3,4')
aac = Array(dtype=numpy_float64, units='ft*ft', desc='Core jet nozzle exhaust area. For IJET=1,2,6, AAC represents exit area; for IJET=3,4, AAC represents throat area.')
aaf = Array(dtype=numpy_float64, units='ft*ft', desc='Fan jet nozzle exhaust area. For IJET=1 or IJET=2, AAF represents exit area; for IJET=3,4, AAF represents throat area.')
adj = Array(dtype=numpy_float64, units='ft', desc='Core outer diameter; at the equivalent throat if the nozzle is C-D. Used only for IJET=3,4')
adj2 = Array(dtype=numpy_float64, units='ft', desc='Fan outer diameter; at the equivalent throat if the nozzle is C-D. Used only for IJET=3,4')
ahj = Array(dtype=numpy_float64, units='ft', desc='Core annulus height; at the equivalent throat if the nozzle is C-D. Used only for IJET=3,4')
ahj2 = Array(dtype=numpy_float64, units='ft', desc='Fan annulus height; at the equivalent throat if the nozzle is C-D. Used only for IJET=3,4')
afuel = Array(dtype=numpy_float64, units='lb/s', desc='Fuel flow. Used if ICORE, ITURB=1; and IJET=1,2 and only if calculating GAMMAC and GASRC.')
atipm = Array(dtype=numpy_float64, desc='Fan first-stage relative tip Mach number. These are approximated if not input. Used if IFAN=1')
atipm2 = Array(dtype=numpy_float64, desc='Fan second-stage relative tip Mach number. These are approximated if not input. Used if IFAN=1')
awafan = Array(dtype=numpy_float64, units='lb/s', desc='Total engine airflow. Used if IFAN=1')
adelt = Array(dtype=numpy_float64, units='degR', desc='Fan temperature rise. Used if IFAN=1')
afpr = Array(dtype=numpy_float64, desc='Fan pressure ratio. This is not needed if ADELT is input. Otherwise, values for ADELT will be calculated using AFANEF and AFANF2 values.')
afanef = Array(dtype=numpy_float64, desc='Fan first-stage efficiency. These are required if AFPR is supplied rather than ADELT.')
afanf2 = Array(dtype=numpy_float64, desc='Fan second-stage efficiency. These are required if AFPR is supplied rather than ADELT.')
arpm = Array(dtype=numpy_float64, units='rpm', desc='Fan or turbine speed. Used if IFAN, ITURB=1')
awcore = Array(dtype=numpy_float64, units='lb/s', desc='Burner and turbine airflow. Used if ICORE or ITURB=1 and IJET=1,2 and only if calculating GAMMAC and GASRC.')
ap3 = Array(dtype=numpy_float64, units='psf', desc='Burner inlet pressure. Used if ICORE=1')
at3 = Array(dtype=numpy_float64, units='degR', desc='Burner inlet temperature. Used if ICORE=1')
at4 = Array(dtype=numpy_float64, units='degR', desc='Burner exit static temperature. These are approximated from the fuel/air ratio if not input. Used if ICORE=1')
aturts = Array(dtype=numpy_float64, units='ft/s', desc='Turbine last stage rotor relative tip speed. These are approximated if not input. Used if ITURB=1')
atctur = Array(dtype=numpy_float64, units='degR', desc='Turbine exit temperature. These are assumed the same as ATC if not supplied. Used if ITURB=1')
aepwr = Array(dtype=numpy_float64, units='hp', desc='Horsepower supplied to propeller. Used if IPROP=1')
athrst = Array(dtype=numpy_float64, units='lb', desc='Propeller thrust. Used if IPROP=1')
amsp9 = Array(dtype=numpy_float64, desc='Nozzle pressure ratio: entance total to ambient static. Used for M*S code jet predictions, IJET=5')
amstt3 = Array(dtype=numpy_float64, units='degR', desc='Nozzle exit total temperature. Used for M*S code jet predictions, IJET=5')
amsa9 = Array(dtype=numpy_float64, units='ft*ft', desc='Nozzle exit area. Used for M*S code jet predictions, IJET=5')
amsa7 = Array(dtype=numpy_float64, desc='Nozzle ejector chute area ratio. Used for M*S code jet predictions, IJET=5')
amsaa8 = Array(dtype=numpy_float64, units='ft*ft', desc='Inner nozzle flow area. Used for M*S code jet predictions, IJET=5')
amstt4 = Array(dtype=numpy_float64, units='degR', desc='Inner nozzle exit total temperature. Used for M*S code jet predictions, IJET=5')
amsp4 = Array(dtype=numpy_float64, desc='Inner nozzle pressure ratio: entrance total to ambient static. Used for M*S code jet predictions, IJET=5')
amstt5 = Array(dtype=numpy_float64, units='degR', desc='Outer nozzle exit total temperature. Used for M*S code jet predictions, IJET=5')
amsp5 = Array(dtype=numpy_float64, desc='Outer nozzle pressure ratio: entrance total to ambient static. Used for M*S code jet predictions, IJET=5')
class FlopsWrapper_input_noisin_Core(VariableTree):
"""Container for input.noisin.Core"""
# OpenMDAO Public Variables
csupp = Array(dtype=numpy_float64, desc='Core suppression spectrum')
gamma = Float(1.4, desc='Specific heat ratio; required if using AP3 rather than AT3')
imod = Enum(0, (1,0), desc='Use modified core level prediction', aliases=('Yes', 'No'))
dtemd = Float(-1.0, units='degR', desc='Design turbine temperature drop')
ecdop = Float(2.0, desc='Exponent on source motion (Doppler) amplification on core noise')
class FlopsWrapper_input_noisin_Basic(VariableTree):
"""Container for input.noisin.Basic"""
# OpenMDAO Public Variables
iepn = Enum(0, (0,1,2), desc='= 0, Stage III\n= 1, Stage III - Delta dB (see DEPNT, DEPNS and DEPNL)\n=2, Find the X-coordinate where the maximum EPNL occurs. NOB, XO and YO must be input. YO should be constant. IEPN=2 is usually used to get a sideline (YO) noise for GA aircraft.', aliases=('Stage III', 'Stage III - Delta', 'Find max. EPNL'))
depnt = Float(0.0, desc='Increment below Stage III for takeoff (see IEPN)')
depns = Float(0.0, desc='Increment below Stage III for sideline (see IEPN).\nIf IEPN=2, DEPNS is the upper limit for sideline noise.')
depnl = Float(0.0, desc='Increment below Stage III for landing (see IEPN)')
itrade = Enum(0, (1,0), desc='Option to trade 2 dB between sideline and flyover noise', aliases=('Trade', 'No trade'))
ijet = Enum(0, (0,1,2,3,4,5,6), desc='Jet noise option', aliases=('None', 'Stone/Clark', 'Kresja', 'Stone ALLJET', 'Stone JET181', 'GE M*S', 'SAE A-21 (ANOPP)'))
ifan = Enum(0, (0,1,2), desc='Fan noise option', aliases=('None', 'Heidmann', 'Gliebe'))
icore = Enum(0, (0,1), desc='Core noise option', aliases=('None', 'Core noise'))
iturb = Enum(0, (0,1), desc='Turbine noise option', aliases=('None', 'Turbine noise'))
iprop = Enum(0, (0,1,2), desc='Propeller noise option', aliases=('None', 'SAE', 'Gutin'))
iflap = Enum(0, (0,1), desc='Flap noise/Jet-flap impingement noise option', aliases=('None', 'Flap & jet/flap noise'))
iairf = Enum(0, (0,1), desc='Airframe noise option', aliases=('None', 'Airframe noise'))
igear = Enum(0, (0,1), desc='Gear box noise option', aliases=('None', 'Approx. gear box noise'))
class FlopsWrapper_input_noisin_Airframe(VariableTree):
"""Container for input.noisin.Airframe"""
# OpenMDAO Public Variables
ifl = Enum(0, (1,0), desc='Include slotted flap noise', aliases=('Slotted flap noise', 'No slotted flap noise'))
nf = Int(2, desc='Number of trailing edge flap slots for IFL = 1')
pfchd = Float(0.25, desc='Average chord for slotted flap, ft or fraction of wing chord. Used only if IFL = 1')
itypw = Enum(1, (1,2), desc='Type of wing', aliases=('Conventional', 'Delta'))
iclean = Enum(0, (1,0), desc='Aerodynamically clean aircraft', aliases=('Aerodynamically clean', 'Conventional'))
iwing = Enum(0, (1,0), desc='Wing, horizontal and vertical tail noise', aliases=('Wing, horiz., vert. tail noise', 'No wing, tail noise'))
islat = Enum(0, (1,0), desc='Slatted leading edge noise', aliases=('Slatted l.e. noise', 'No slatted l.e. noise'))
ilg = Enum(0, (1,0), desc='Nose and main landing gear noise', aliases=('Landing gear noise', 'No landing gear noise'))
ng = Array(dtype=numpy_int64, desc='NG(0): Number of nose gear trucks\nNG(1): Number of main gear trucks')
nw = Array(dtype=numpy_int64, desc='NW(0): Number of wheels per nose gear truck\nNW(1): Number of wheels per main gear truck')
dw = Array(dtype=numpy_float64, units='ft', desc='DW(0): Diameter of nose gear tires\nDW(1): Diameter of main gear tires')
cg = Array(dtype=numpy_float64, desc='CG(0): Ratio of nose strut length to DW(0)\nCG(1): Ratio of main strut length to DW(1)')
class FlopsWrapper_input_noisin(VariableTree):
"""Container for input.noisin"""
# VariableTrees
Airframe = VarTree(FlopsWrapper_input_noisin_Airframe())
Basic = VarTree(FlopsWrapper_input_noisin_Basic())
Core = VarTree(FlopsWrapper_input_noisin_Core())
Engine_Parameters = VarTree(FlopsWrapper_input_noisin_Engine_Parameters())
Fan = VarTree(FlopsWrapper_input_noisin_Fan())
Flap_Noise = VarTree(FlopsWrapper_input_noisin_Flap_Noise())
Ground_Effects = VarTree(FlopsWrapper_input_noisin_Ground_Effects())
Jet = VarTree(FlopsWrapper_input_noisin_Jet())
MSJet = VarTree(FlopsWrapper_input_noisin_MSJet())
Observers = VarTree(FlopsWrapper_input_noisin_Observers())
Propagation = VarTree(FlopsWrapper_input_noisin_Propagation())
Propeller = VarTree(FlopsWrapper_input_noisin_Propeller())
Shielding = VarTree(FlopsWrapper_input_noisin_Shielding())
Turbine = VarTree(FlopsWrapper_input_noisin_Turbine())
class FlopsWrapper_input_nacell(VariableTree):
"""Container for input.nacell"""
# OpenMDAO Public Variables
x1r = Float(2.06, desc='X1 / R. If IVAR = -1, X1R is the cowl length divided by the inlet capture radius.')
x2r = Float(1.58, desc='X2 / R')
r1r = Float(0.354, desc='R1 / R')
r2r = Float(0.585, desc='R2 / R')
angle = Float(7.0, units='deg', desc='Average angle of the subsonic diffuser portion of the inlet between the throat and the engine face')
clang = Float(0.0, units='deg', desc='Cowl lip angle')
mixed = Enum(-1, (-1,0,1), desc='Inlet compression type indicator\n= -1, Inlet geometry is based solely on the geometry variables described above.\n= 0, Inlet geometry is based in the internal geometry data base for external compression inlets and the given inlet design Mach number.\n= 1, Inlet geometry is based in the internal geometry data base for mixed compression inlets and the given inlet design Mach number', aliases=('Use geometry variables', 'External compression inlet', 'Mixed compression inlet'))
radd = Float(3.0, units='inch', desc='Distance from the engine compressor tip to the exterior of the nacelle. If RADD < 1. the added radial distance is RADD times the compressor tip radius.')
xnlod = Float(-10.0, desc='Nozzle length / diameter (Default is computed')
xnld2 = Float(-10.0, desc='Fan nozzle length / diameter (Default is computed')
inac = Enum(0, (-5,-4,-3,-2,-1,0,1,2,3,4,5), desc='Nacelle type indicator', aliases=('2-D Bifurcated inlet + axisymmetric nozzle + podded together', '2-D Bifurcated inlet + 2-D nozzle + podded together', '2-D inlet + axisymmetric nozzle + podded together', '2-D + podded together', 'Axisymmetric + podded together', 'None', 'Axisymmetric', '2-D', '2-D inlet + Axisymmetric nozzle', '2-D Bifurcated inlet + 2-D nozzle', '2-D Bifurcated inlet + axisymmetric nozzle'))
ivar = Enum(1, (-1,0,1,2,3), desc='Inlet variable geometry switch used to estimate weight factor WTCB1', aliases=('Fixed no centerbody', 'Fixed centerbody', 'Translating centerbody', 'Collapsing centerbody', 'Translating & collapsing centerbody'))
nvar = Enum(0, (0,1,2,3,4), desc='Nozzle variable geometry switch used to estimate weight factor WTNOZ', aliases=('Fixed geometry', 'Variable area throat', 'Variable area exit', 'Variable throat & exit', 'Fixed plug core & fixed fan nozzle'))
wtcb1 = Float(-10.0, desc='Weighting factor for the inlet centerbody up to the throat. Multiplied by the surface area of the applicable inlet section to predict inlet weight. The default is based on the internal materials data base and the maximum cruise Mach number.')
wtcb2 = Float(-10.0, desc='Weighting factor for the inlet centerbody from the throat to the engine face. Multiplied by the surface area of the applicable inlet section to predict inlet weight. The default is based on the internal materials data base and the maximum cruise Mach number.')
wtint = Float(-10.0, desc='Weighting factor for the internal cowl up to the engine face. Multiplied by the surface area of the applicable inlet section to predict inlet weight. The default is based on the internal materials data base and the maximum cruise Mach number.')
wtext = Float(-10.0, desc='Weighting factor for the external nacelle. Multiplied by the surface area of the applicable inlet section to predict inlet weight. The default is based on the internal materials data base and the maximum cruise Mach number.')
wtnoz = Float(-10.0, desc='Weighting factor for the nozzle. Multiplied by the surface area of the applicable inlet section to predict inlet weight. The default is based on the internal materials data base and the maximum cruise Mach number.')
h2w = Float(1.0, desc='Inlet height to width ratio for 2-D inlets')
class FlopsWrapper_input_mission_definition(VariableTree):
"""Container for input.mission_definition"""
# OpenMDAO Public Variables
mission = List(iotype='in')
class FlopsWrapper_input_missin_User_Weights(VariableTree):
"""Container for input.missin.User_Weights"""
# OpenMDAO Public Variables
mywts = Enum(0, (0,1), desc='Weight input switch, overrides value input in Namelist &WTIN.', aliases=('Compute weight', 'User-specified'))
rampwt = Float(0.0, units='lb', desc='Gross weight before taxi out (Default = DOWE + PAYLOD + FUEMAX)')
dowe = Float(0.0, units='lb', desc='Fixed operating weight empty')
paylod = Float(0.0, units='lb', desc='Fixed payload weight')
fuemax = Float(0.0, units='lb', desc='Total usable fuel weight\nFUEMAX = RAMPWT - DOWE - PAYLOD.\nRequired only if RAMPWT is not input')
class FlopsWrapper_input_missin_Turn_Segments(VariableTree):
"""Container for input.missin.Turn_Segments"""
# OpenMDAO Public Variables
xnz = Array(dtype=numpy_float64, units='g', desc='Maximum turn load factor at each Mach number')
xcl = Array(dtype=numpy_float64, desc='Maximum turn lift coefficient at each Mach number')
xmach = Array(dtype=numpy_float64, desc='Mach number array corresponding to both XNZ and XCL')
class FlopsWrapper_input_missin_Store_Drag(VariableTree):
"""Container for input.missin.Store_Drag"""
# OpenMDAO Public Variables
stma = Array(dtype=numpy_float64, desc='Mach number schedule for store drags. Store drags can also be assessed in ACCEL and TURN segments of the mission as covered in the Segment Definition Cards section, in PS and NZ plots (see Namelist &OPTION), and in performance constraints (see Namelist &PCONIN)')
cdst = Array(dtype=numpy_float64, desc='Corresponding drag coefficients or D/q')
istcl = Array(dtype=numpy_int64, desc='Store drag condition applied to climb schedule K\n= 0, No store drag for climb schedule K')
istcr = Array(dtype=numpy_int64, desc='Store drag condition applied to cruise schedule K\n= 0, No store drag for cruise schedule K')
istde = Int(0, desc='Store drag condition applied to descent schedule\n= 0, No store drag for descent schedule')
class FlopsWrapper_input_missin_Reserve(VariableTree):
"""Container for input.missin.Reserve"""
# OpenMDAO Public Variables
irs = Enum(2, (1,2,3), desc='Reserve fuel calculation switch', aliases=('Calculated for trip to alternate airport plus RESRFU and/or RESTRP', 'Constant values (RESRFU and/or RESTRP) only', 'Reserve fuel is what is left over after primary mission'))
resrfu = Float(0.0, desc='> 1., Fixed reserve fuel, lb\n< 1., Reserve fuel as a fraction of total usable fuel weight')
restrp = Float(0.0, desc='Reserve fuel as a fraction of total trip fuel weight')
timmap = Float(0.0, units='min', desc='Missed approach time')
altran = Float(0.0, units='nmi', desc='Range to alternate airport')
nclres = Int(1, desc='Climb schedule number used in reserve mission')
ncrres = Int(1, desc='Cruise schedule number used in reserve mission')
sremch = Float(-1.0, desc='Start reserve Mach number (Default = CLMMIN[NCLRES])')
eremch = Float(-1.0, desc='End reserve Mach number (Default = DEMMIN)')
srealt = Float(-1.0, units='ft', desc='Start reserve altitude (Default = CLAMIN[NCLRES])')
erealt = Float(-1.0, units='ft', desc='End reserve altitude (Default = DEAMIN)')
holdtm = Float(0.0, units='min', desc='Reserve holding time')
ncrhol = Int(0, desc='Cruise schedule number for hold (Default = NCRRES)')
ihopos = Enum(1, (0,1,2), desc='Hold position switch', aliases=('Between main descent and missed approach', 'End of reserve cruise', 'End of reserve descent'))
icron = Enum(0, (0,1,2), desc='Type of flight to alternate airport', aliases=('Climb-cruise-descend', 'Climb-cruise-beam down to airport', 'Cruise only'))
thold = Float(0.0, desc='Used to define a hold segment between main mission descent and missed approach.\n> 1., Reserve holding time, min\n< 1., Fraction of flight time to be used as reserve holding time. (Effective only if IRW = 1)\n= 0., This option is ignored')
ncrth = Int(1, desc='Cruise schedule number for THOLD')
class FlopsWrapper_input_missin_Ground_Operations(VariableTree):
"""Container for input.missin.Ground_Operations"""
# OpenMDAO Public Variables
takotm = Float(0.0, units='min', desc='Takeoff time')
taxotm = Float(0.0, units='min', desc='Taxi out time')
apprtm = Float(0.0, units='min', desc='Approach time')
appfff = Float(2.0, desc='Approach fuel flow factor applied to sea level static idle fuel flow')
taxitm = Float(0.0, units='min', desc='Taxi in time')
ittff = Int(0, desc='> 0, Engine deck power setting for takeoff (Usually = 1 if specified). Taxi fuel flow is sea level static idle.\n= 0, Use TAKOFF and TXFUFL.')
takoff = Float(0.0, units='lb/h', desc='Takeoff fuel flow')
txfufl = Float(0.0, units='lb/h', desc='Taxi fuel flow')
ftkofl = Float(0.0, units='lb', desc='Fixed takeoff fuel. This ovverides the calculated value and is not scaled with engine thrust')
ftxofl = Float(0.0, units='lb', desc='Fixed taxi out fuel. This ovverides the calculated value and is not scaled with engine thrust')
ftxifl = Float(0.0, units='lb', desc='Fixed taxi in fuel. This ovverides the calculated value and is not scaled with engine thrust')
faprfl = Float(0.0, units='lb', desc='Fixed approach fuel. This ovverides the calculated value and is not scaled with engine thrust')
class FlopsWrapper_input_missin_Descent(VariableTree):
"""Container for input.missin.Descent"""
# OpenMDAO Public Variables
ivs = Enum(1, (0,1,2), desc='Descent option switch', aliases=('No descent time or distance or fuel', 'Descend at optimum L/D', 'Descend at constance lift coefficient'))
decl = Float(0.8, desc='Descent lift coefficient for IVS = 2')
demmin = Float(0.3, desc='Minimum Mach number')
demmax = Float(0.0, desc='Max Mach number (Default = VCMN, Namelist &CONFIN)')
deamin = Float(0.0, units='ft', desc='Minimum altitude')
deamax = Float(0.0, units='ft', desc='Max altitude (Default = CH, Namelist &CONFIN)')
ninde = Int(31, desc='Number of descent steps')
dedcd = Float(0.0, desc='Drag coefficient increment applied to descent')
rdlim = Float(-99999.0, units='ft/min', desc='Limiting or constant rate of descent. Must be negative')
ns = Int(0, desc='Number of altitudes for q limit schedule (Default = 0 - QLIM is used, Maximum = 20 )')
keasvd = Enum(0, (0,1), desc='= 1, VDTAB is in knots equivalent airspeed (keas)\n\n= 0, VDTAB is true airspeed or Mach number (Default)', aliases=('VDTAB is Mach number', 'VDTAB in knots'))
adtab = Array(dtype=numpy_float64, units='ft', desc='Descent altitude schedule. If only part of the descent profile is specified, the portion of the profile outside the energy range defined by values of ADTAB and VDTAB will be optimized for the descent schedule.')
vdtab = Array(dtype=numpy_float64, desc='Descent speed schedule, kts or Mach number')
class FlopsWrapper_input_missin_Cruise(VariableTree):
"""Container for input.missin.Cruise"""
# OpenMDAO Public Variables
ncruse = Int(1, desc='Number of cruise schedules to be defined (Default = 1, Maximum = 6, Include reserve cruise)')
ioc = List([1], Enum(1, (0,1,2,3,4,5,6,7,8,9,10), aliases=('Opt. alt. and Mach for specific range', 'Fixed Mach + opt. alt. for specific range', 'Fixed Mach at input max. alt. or cruise ceiling', 'Fixed alt. + opt. Mach for specific range', 'Fixed alt. + opt. Mach for endurance (min. fuel flow)', 'Fixed alt. + constant lift coefficient (CRCLMX)', 'Fixed Mach + opt. alt. for endurance', 'Opt. Mach and alt. for endurance', 'Max. Mach at input fixed alt.', 'Max. Mach at opt. alt.', 'Fixed Mach + constant lift coefficient (CRCLMX')), desc='Cruise option switch')
crmach = Array(array([0.0]), dtype=numpy_float64, desc='Maximum or fixed Mach number (or velocity, kts) (Default = VCMN, Namelist &CONFIN)')
cralt = Array(array([-1.0]), dtype=numpy_float64, units='ft', desc='Maximum or fixed altitude (Default = CH, Namelist &CONFIN)')
crdcd = Array(array([0.0]), dtype=numpy_float64, desc='Drag coefficient increment')
flrcr = Array(array([1.0]), dtype=numpy_float64, desc='Specific range factor for long range cruise Mach number - used if IOC = 3')
crmmin = Array(array([0.0]), dtype=numpy_float64, desc='Minimum Mach number')
crclmx = Array(array([0.0]), dtype=numpy_float64, desc='Maximum or fixed lift coefficient')
hpmin = Array(array([1000.0]), dtype=numpy_float64, units='ft', desc='Minimum cruise altitude.\nFor fixed Mach number cruise schedules, HPMIN can be used to enforce a dynamic pressure (Q) limit.')
ffuel = Array(array([1.0]), dtype=numpy_float64, desc='Fuel factor in cruise profile optimization')
fnox = Array(array([0.0]), dtype=numpy_float64, desc='NOx emissions factor in cruise profile optimization.\nSince for supersonic engines the NOx emissions are on the order of 1 - 3 percent of fuel, FNOX should be relatively large (30. - 100.) to get comparable weighting.')
ifeath = List([0], Enum(0, (1,0,-1)), desc='Cruise feathering option', aliases=('Engines may be feathered', 'No feathering', 'Engines must be feathered'))
feathf = Array(array([0.5]), dtype=numpy_float64, desc='Fraction of engines remaining after feathering')
cdfeth = Array(array([0.0]), dtype=numpy_float64, desc='Drag coefficient increase due to feathered engines')
dcwt = Float(1.0, units='lb', desc='Weight increment used to compute cruise tables (Default = the greater of 1. or DWT/20)')
rcin = Float(100.0, units='ft/min', desc='Instantaneous rate of climb for ceiling calculation')
wtbm = Array(dtype=numpy_float64, desc='Array of weights for specification of max. allowable altitude for low sonic boom configurations (must be in ascending order) Since linear interpolation/extrapolation is used, data should cover the entire expected weight range.')
altbm = Array(dtype=numpy_float64, units='ft', desc='Corresponding array of maximum altitudes')
class FlopsWrapper_input_missin_Climb(VariableTree):
"""Container for input.missin.Climb"""
# OpenMDAO Public Variables
nclimb = Int(1, desc='Number of climb schedules to be defined (Default = 1, Maximum = 4, Include reserve climb)')
clmmin = Array(array([0.3]), dtype=numpy_float64, desc='Minimum Mach number for each climb schedule.\nNote: Separate climb schedules are not required if the only changes are in the minimum or maximum Mach number or altitude. Just make sure all climbs are bracketed.')
clmmax = Array(array([0.0]), dtype=numpy_float64, desc='Maximum Mach number (Default = VCMN, Namelist &CONFIN).\nNote: Separate climb schedules are not required if the only changes are in the minimum or maximum Mach number or altitude. Just make sure all climbs are bracketed.')
clamin = Array(array([0.0]), dtype=numpy_float64, units='ft', desc='Minimum altitude')
clamax = Array(array([0.0]), dtype=numpy_float64, units='ft', desc='Maximum altitude (Default = CH, Namelist &CONFIN)')
nincl = Array(array([31]), dtype=numpy_int64, desc='Number of climb steps')
fwf = Array(array([-0.0010]), dtype=numpy_float64, desc='Climb profile optimization function control parameter. Recommended aircraft in parentheses.\n= 1., minimum fuel-to-distance profile (Subsonic transports, do NOT use for supersonic transports)\n= 0., minimum time-to-distance profile (Interceptors only)\n1. > FWF > 0., combination of the above\n= -.001, minimum time-to-climb profile (Fighters)\n= -1., minimum fuel-to-climb profile (Supersonic transports, Subsonic transports)\n-1. < FWF < -.001, combination of the above')
ncrcl = Array(array([1]), dtype=numpy_int64, desc='Number of the cruise schedule to be used in fuel- or time-to-distance profile climb optimization comparisons')
cldcd = Array(array([0.0]), dtype=numpy_float64, desc='Drag coefficient increment applied to each climb schedule. If coefficient varies with Mach number, see ISTCL above.')
ippcl = Array(array([1]), dtype=numpy_int64, desc='Number of power settings to be considered for climb. Program will select the most efficient. Should be used only with afterburning engines for minimum fuel climb profiles.')
maxcl = Array(array([1]), dtype=numpy_int64, desc='Maximum power setting used for climb')
actab = Array(zeros(shape=(0,0)), dtype=numpy_float64, units='ft', desc='Altitude schedule. If not input, climb profile will be optimized')
vctab = Array(zeros(shape=(0,0)), dtype=numpy_float64, units='nmi', desc='Climb speed schedule. If not input, climb profile will be optimized')
keasvc = Enum(0, (1,0), desc='Type of velocity input in VCTAB', aliases=('Knots equivalent airspeed (keas)', 'True airspeed or Mach no.'))
ifaacl = Enum(1, (0,1,2), desc='Climb speed limit option', aliases=('Optimum speed', 'Max. 250 knots CAS below 10,000 ft', 'Climb to 250 kcas at 1500 ft then SPDLIM at 10,000 ft'))
ifaade = Enum(-1, (-1,0,1), desc='Descent speed limit option', aliases=('Use default', 'Optimum speed', 'Max. 250 knots CAS below 10,000 ft'))
nodive = Enum(0, (0,1), desc='Rate of climb limit option', aliases=('Optimum altitude at each energy level', 'Min. rate of climb limit enfored'))
divlim = Float(0.0, units='ft/min', desc='Minimum allowable rate of climb or descent.\nEnforced only if NODIVE = 1, may be negative to allow a shallow dive during climb.')
qlim = Float(0.0, units='psf', desc='Constant dynamic pressure limit. Applied at all climb and descent points not covered by the variable dynamic pressure limit below.')
spdlim = Float(0.0, desc='Maximum speed at 10,000 ft, used only for IFAACL = 2, kts or Mach number (Default is computed from\n a) the variable dynamic pressure limit below, if applicable,\n b) QLIM above, if QLIM > 0., or\n c) a dynamic pressure of 450 psf, in that order)')
nql = Int(0, desc='Number of altitudes for q limit schedule (Default = 0 - QLIM is used, Maximum = 20 )')
qlalt = Array(dtype=numpy_float64, units='ft', desc='Altitudes, in increasing order, for variable dynamic pressure limit schedule')
vqlm = Array(dtype=numpy_float64, units='psf', desc='Corresponding dynamic pressure limits')
class FlopsWrapper_input_missin_Basic(VariableTree):
"""Container for input.missin.Basic"""
# OpenMDAO Public Variables
indr = Enum(0, (0,1), desc='= 0, DESRNG is design range in n.mi.\n= 1, DESRNG is endurance in minutes', aliases=('Range', 'Endurance'))
fact = Float(1.0, desc='Factor to increase or decrease fuel flows. Cumulative with FFFSUB and FFFSUP in Namelist &ENGDIN.')
fleak = Float(0.0, units='lb/h', desc='Constant delta fuel flow')
fcdo = Float(1.0, desc='Factor to increase or decrease lift-independent drag coefficients')
fcdi = Float(1.0, desc='Factor to increase or decrease lift-dependent drag coefficients')
fcdsub = Float(1.0, desc='Factor to increase or decrease all subsonic drag coefficients. Cumulative with FCDO and FCDI.')
fcdsup = Float(1.0, desc='Factor to increase or decrease all supersonic drag coefficients. Cumulative with FCDO and FCDI.')
iskal = Enum(1, (1,0), desc='Special option used to turn off engine scaling using THRUST/THRSO', aliases=('Scale engine', 'No scaling'))
owfact = Float(1.0, desc='Factor for increasing or decreasing OWE')
iflag = Enum(0, (0,1,2,3), desc='Mission print option', aliases=('Mission summary only', 'Plus cruise', 'Plus climb & descent', 'Plus scaled engine'))
msumpt = Enum(0, (1,0), desc='Option to calculate and print detailed mission summary', aliases=('Yes', 'No'))
dtc = Float(0.0, units='degC', desc='Deviation from standard day temperature (See also DTCT in Namelist &TOLIN and DTCE in Namelist &ENGINE. These temperature deviations are independent.)')
irw = Enum(2, (1,2), desc='Range/weight calculation option', aliases=('Range fixed-calculate ramp weight', 'Ramp weight fixed-calculate range'))
rtol = Float(0.001, units='nmi', desc='Tolerance in range calculation for IRW = 1')
nhold = Int(0, desc='Special option - Time for segment NHOLD (which must be a Hold Segment) is adjusted until the specified range is met for the input ramp weight. Note - IRW must be 1')
iata = Enum(1, (1,0), desc='Option to adjust range for ATA Traffic Allowance', aliases=('Yes', 'No'))
tlwind = Float(0.0, units='nmi', desc='Velocity of tail wind (Input negative value for head wind)')
dwt = Float(1.0, units='lb', desc='Gross weight increment for performance tables (Default is internally computed)')
offdr = Array(dtype=numpy_float64, units='nmi', desc='Off design range. Note: This simply performs the defined mission with the sized airplane with a different design range. If more changes are desired or if additional analyses are required (e.g., cost analysis), use Namelist &RERUN. If OFFDR is used with a cost analysis, costs will be computed for the last design range.')
idoq = Enum(0, (1,0), desc='Form for drag increments', aliases=('D/q', 'Drag coefficients'))
nsout = Int(0, desc='Last segment number in outbound leg (Combat Radius Mission - Iterates until outbound leg and inbound leg are equal. IRW must be equal to 2, and there must be at least two cruise segments). If NSOUT = 0, radius is not calculated')
nsadj = Int(0, desc='Cruise segment in outbound leg to be adjusted for radius calculation (Default = NSOUT). Note: Make sure that the NSADJ Cruise segment is terminated on total rather than segment distance in the Mission Definition Data.')
mirror = Int(0, desc='Cruise segment in inbound leg to be set equal to segment NSADJ (if MIRROR = 0, only total leg lengths are forced to be equal). This option would be used for a high-low-low-high mission where the dash in and dash out are unknown but must be equal to each other. NSADJ would be the dash in segment number, and MIRROR would be the dash out segment number.')
class FlopsWrapper_input_missin(VariableTree):
"""Container for input.missin"""
# VariableTrees
Basic = VarTree(FlopsWrapper_input_missin_Basic())
Climb = VarTree(FlopsWrapper_input_missin_Climb())
Cruise = VarTree(FlopsWrapper_input_missin_Cruise())
Descent = VarTree(FlopsWrapper_input_missin_Descent())
Ground_Operations = VarTree(FlopsWrapper_input_missin_Ground_Operations())
Reserve = VarTree(FlopsWrapper_input_missin_Reserve())
Store_Drag = VarTree(FlopsWrapper_input_missin_Store_Drag())
Turn_Segments = VarTree(FlopsWrapper_input_missin_Turn_Segments())
User_Weights = VarTree(FlopsWrapper_input_missin_User_Weights())
class FlopsWrapper_input_fusein_Basic(VariableTree):
"""Container for input.fusein.Basic"""
# OpenMDAO Public Variables
fpitch = Float(0.0, units='inch', desc='Seat pitch for the first class passengers')
nfabr = Int(0, desc='Number of first class passengers abreast')
bpitch = Float(0.0, units='inch', desc='Seat pitch for business class passengers')
nbabr = Int(0, desc='Number of business class passengers abreast')
tpitch = Float(0.0, units='inch', desc='Seat pitch for tourist class passengers')
ntabr = Int(0, desc='Number of tourist class passengers abreast')
class FlopsWrapper_input_fusein_BWB(VariableTree):
"""Container for input.fusein.BWB"""
# OpenMDAO Public Variables
osspan = Float(0.0, units='ft', desc='Outboard semispan (Default = ETAW(NETAW), required if ETAW(NETAW) is less than or equal to 1.0 and IFITE = 3 and NETAW > 1)\nThis variable is used if a detailed wing outboard panel (See Detailed Wing Data in Namelist $WTIN) is being added to a BWB fuselage.')
tipchd = Float(0.0, units='ft', desc='Wing tip chord (Default = 0.06*Wing span)\nThis variable is used if the wing outer panel is defined as a trapezoid attached to the BWB cabin.')
nesob = Int(0, desc='Wing eta station number for outboard side of body. If this variable is greater than 1, the detailed wing definition is assumed to include the cabin. Weight calculations for the outboard wing start at this eta station. (If = 0, the detailed outboard wing is added to the cabin as indicated above.)')
acabin = Float(0.0, units='ft*ft', desc='Fixed area of passenger cabin for blended wing body transports (Default is internally computed based on passenger data)')
xlw = Float(0.0, units='ft', desc='Fixed length of side wall.\nThis is the outboard wall of the passenger cabin and is used to define the outboard wing root chord.')
xlwmin = Float(0.0, units='ft', desc='Minimum side wall length. The typical value of 38.5 ft is based on a required maximum depth at the side wall of 8.25 ft divided by a fuselage thickness/chord ratio of 0.15 and 70 percent of the resulting wing root chord of 55 ft.')
nbay = Int(0, desc='Fixed number of bays')
nbaymx = Int(0, desc='Maximum number of bays')
bayw = Float(0.0, units='ft', desc='Fixed bay width')
baywmx = Float(0.0, units='ft', desc='Maximum bay width')
swple = Float(45.0, units='deg', desc='Sweep angle of the leading edge of the passenger cabin')
cratio = Float(0.0, desc='Fixed ratio of the centerline length to the cabin width (XLP/WF)')
tcf = Float(0.0, desc='Fuselage thickness/chord ratio (Default = TCA, Namelist &CONFIN)')
tcsob = Float(0.0, desc='Fuselage thickness/chord ratio at side of body (Default = TCF)')
rspchd = Float(0.0, desc='Rear spar percent chord for BWB fuselage and wing (Default = 70 percent)')
rspsob = Float(0.0, desc='Rear spar percent chord for BWB fuselage at side of body (Default = 70 percent)')
class FlopsWrapper_input_fusein(VariableTree):
"""Container for input.fusein"""
# VariableTrees
BWB = VarTree(FlopsWrapper_input_fusein_BWB())
Basic = VarTree(FlopsWrapper_input_fusein_Basic())
class FlopsWrapper_input_engine_deck(VariableTree):
"""Container for input.engine_deck"""
# OpenMDAO Public Variables
engdek = Str('')
class FlopsWrapper_input_engine_Other(VariableTree):
"""Container for input.engine.Other"""
# OpenMDAO Public Variables
hpcpr = Float(5.0, desc='Pressure ratio of the high pressure (third) compressor (Only used if there are three compressor components)')
aburn = Bool(False, desc='True if there is an afterburner')
dburn = Bool(False, desc='True if there is a duct burner (Separate flow turbofans only). ABURN and DBURN cannot both be true.')
effab = Float(0.85, desc='Afterburner/duct burner efficiency')
tabmax = Float(3500.0, units='degR', desc='Maximum afterburner/duct burner temperature')
ven = Bool(False, desc='True if the exhaust nozzle has a variable flow area. The nozzle flow area is automatically allowed to vary for cases when the afterburner or duct burner is on.')
costbl = Float(1.0, units='lb/s', desc='Customer high pressure compressor bleed')
fanbl = Float(0.0, desc='Fan bleed fraction, only used for bypass engines')
hpext = Float(200.0, units='hp', desc='Customer power extraction')
wcool = Float(-1.0e-4, desc='Turbine cooling flow as a fraction of high pressure compressor mass flow. The cooling flow defaults to the value in the engine cycle definition file. If WCOOL is input greater than or equal to zero the default will be overridden.\nIf WCOOL > 1., the turbine cooling flow fraction required to bring the turbine inlet temperature down to WCOOL will be computed.')
fhv = Float(18500.0, units='Btu/lb', desc='Fuel heating value')
dtce = Float(0.0, units='degC', desc='Deviation from standard day temperature. The deviation, as used in the cycle analysis module, is DTCE at sea level and varies to zero at ALC (see below). The design point is at standard temperature.')
alc = Float(10000.0, units='ft', desc='The altitude at which DTCE (see above) becomes zero.')
year = Float(1985.0, desc='Technology availability date used to estimate compressor polytropic efficiency')
boat = Bool(False, desc='True to include boattail drag')
ajmax = Float(0.0, units='ft*ft', desc='Nozzle reference area for boattail drag. Used only if BOAT = true. Default is the largest of\n1) 1.1 times the inlet capture area\n2) Nozzle exit area at the inlet design point\n3) Estimated engine frontal area\n4) Estimated nozzle entrance area\nor\nIf nacelle weight and geometry calculations are\nperformed (see NGINWT below) AJMAX is set to the\nnacelle cross-sectional area at the customer connect. \nor\nIf AJMAX is less than zero, the cruise design point\nnozzle exit area multiplied by the absolute value\nof AJMAX is used as the reference.')
spill = Bool(False, desc='True to include spillage and lip drag in engine performance data')
lip = Bool(False, desc='Compute inlet cowl lip drag. Used only if SPILL = true')
blmax = Float(-1.0, desc='Inlet bleed flow fraction of total flow at the inlet design point (Default = .016 * AMINDS**1.5). Used only if SPILL = true')
spldes = Float(0.01, desc='Inlet design spillage fraction. Used only if SPILL = true')
aminds = Float(0.0, desc='Inlet design Mach number (Default = XMMAX). Used only if SPILL = true')
alinds = Float(0.0, units='ft', desc='Inlet design altitude (Default = AMAX). Used only if SPILL = true')
etaprp = Float(0.84, desc='Maximum propeller efficiency (Turboprops only). The actual propeller efficiency is based on an internal schedule of efficiency versus Mach number with the maximum efficiency (ETAPRP) occurring at a Mach number of 0.80. To use the Hamilton Standard Method set ETAPRP=1 and input the propeller characteristics as defined under ')
shpowa = Float(60.0, units='hp/(lb/s)', desc='Design point shaft horsepower divided by the design point core airflow')
cdtmax = Float(99999.0, units='degR', desc='Maximum allowable compressor discharge temperature')
cdpmax = Float(99999.0, units='psi', desc='Maximum allowable compressor discharge pressure')
vjmax = Float(99999.0, units='ft/s', desc='(IENG < 100) Maximum allowable jet velocity\n(IENG > 100) Propeller tip speed')
stmin = Float(1.0, units='lb/lb/s', desc='Minimum allowable specific thrust')
armax = Float(99999.0, desc='Maximum allowable ratio of the bypass area to the core area of a mixed flow turbofan')
limcd = Enum(1, (0,1,2), desc='Switch to use the compressor discharge temperature and pressure limits only for optimization.', aliases=('Limit at cruise design Mach and altitude only for optimization', 'Limit at all points in envelope', 'Limit max. compressor discharge temp. everywhere'))
class FlopsWrapper_input_engine_Noise_Data(VariableTree):
"""Container for input.engine.Noise_Data"""
# OpenMDAO Public Variables
nprint = Enum(0, (-1,0,1,2), desc='Noise data print control', aliases=('Print compressor operating line', 'No print', 'Print to ANOPP', 'Print to FOOTPR'))
#ivat = Enum(0, (0,1), desc='Flag for variable exit area low pressure turbine. Used only for estimating LPT exit area when NPRINT=1', aliases=('Fixed', 'Variable'))
jet = Enum(-1, (-1,0,1,2,3,4,5,6), desc='FOOTPR input data generation control', aliases=('No noise data', 'No jet noise', 'Stone/Clark', 'Kresja', 'Stone ALLJET', 'Stone JET181', 'GE M*S', 'SAE A-21'))
ftmach = Float(0.0, desc='Mach number to calculate FOOTPR input data')
ftalt = Float(0.0, desc='Altitude to calculate FOOTPR input data')
class FlopsWrapper_input_engine_IC_Engine(VariableTree):
"""Container for input.engine.IC_Engine"""
# OpenMDAO Public Variables
ncyl = Int(4, desc='Number of cylinders')
deshp = Float(180.0, units='hp', desc='Baseline engine power')
alcrit = Float(0.0, units='ft', desc='Critical turbocharger altitude. The altitude to which turbocharged IC engines are able to maintain DESHP')
sfcmax = Float(0.52, units='lb/h/hp', desc='Brake specific fuel consumption at maximum power')
sfcmin = Float(0.4164, units='lb/h/hp', desc='Minimum brake specific fuel consumption or SFC')
pwrmin = Float(0.65, desc='Fraction of maximum power where SFCMIN occurs. If NRPM > 0 and PWRMIN > 1 then PWRMIN is the rotational speed where SFCMIN occurs (recommend PWRMIN > 1 if SFCMIN is less than about 0.4')
engspd = Float(2700.0, units='1/min', desc='Maximum engine crankshaft speed')
prpspd = Float(2700.0, units='1/min', desc='Maximum propeller shaft speed')
iwc = Enum(0, (0,1), desc='Cooling system', aliases=('Air cooled', 'Water cooled'))
ecid = Float(361.0, units='inch*inch*inch', desc='Engine displacement')
ecr = Float(8.5, desc='Engine compression ratio')
eht = Float(19.96, units='inch', desc='Engine envelope height')
ewid = Float(33.37, units='inch', desc='Engine envelope width')
elen = Float(31.83, units='inch', desc='Engine envelope length')
ntyp = Enum(2, (1,2,3,4,5,6), desc='Propeller type indicator', aliases=('Fixed pitch', 'Variable pitch', 'Variable pitch + full feathering', 'Variable pitch + full feathering + deicing', 'Variable pitch + full feathering + deicing w/reverse', 'Ducted fan'))
af = Float(87.6, desc='Activity factor')
cli = Float(0.569, desc='Integrated design lift coefficient')
blang = Float(20.0, units='deg', desc='Blade angle for fixed pitch propeller')
dprop = Float(6.375, units='ft', desc='Propeller diameter')
nblade = Int(0, desc='Number of blades')
gbloss = Float(0.02, desc='Gearbox losses, fraction. If PRPSPD = ENGSPD, there are no losses.')
arrpm = Array(dtype=numpy_float64, units='rpm', desc='Rotational speed (descending order)')
arpwr = Array(dtype=numpy_float64, units='hp', desc='Engine shaft power at ARRPM(I)')
arful = Array(dtype=numpy_float64, desc='Engine fuel requirements at ARRPM(I) (Required only if LFUUN is not equal to zero)')
lfuun = Enum(0, (0,1,2,3), desc='Fuel input type indicator', aliases=('Fuel flows are computed from SFCMAX SFCMIN and PWRMIN', 'Brake specific fuel consumption values are input in ARFUL', 'Actual fuel flows are input in ARFUL (lb/hr)', 'Actual fuel flows are input in ARFUL (gal/hr)'))
feng = Float(1.0, desc='Scale factor on engine weight')
fprop = Float(1.0, desc='Scale factor on propeller weight')
fgbox = Float(1.0, desc='Scale factor on gear box weight')
class FlopsWrapper_input_engine_Engine_Weight(VariableTree):
"""Container for input.engine.Engine_Weight"""
# OpenMDAO Public Variables
nginwt = Enum(0, (-4,-3,-2,-1,0,1,2,3,4,5), desc='Switch for engine weight calculations. Use the negative value to calculate the weight for the initial design and then scale engine weights and dimensions with airflow. Zero or a negative value should always be used during optimization with engine cycle design variables. (IENG > 100 options in parentheses)', aliases=('-Engine + inlet + nacelle + nozzle', '-Engine + inlet + nacelle', '-Engine and inlet', '-Engine only', 'None', 'Engine only (Total prop. system)', 'Engine and inlet (Propeller)', 'Engine + inlet + nacelle (Propeller + cowl + mounts)', 'Engine + inlet + nacelle + nozzle ( Propeller + cowl + mounts + exhaust)', '(Propeller + cowl + mounts + exhaust + alternator)'))
iwtprt = Enum(1, (0,1,2,3,4), desc='Printout control for engine weight calculations. Printout is on file OFILE.', aliases=('No output', 'Print component weights and dimensions', 'Print component design details', 'Plus initial and final optimization data', 'Print component details at each iteration'))
iwtplt = Enum(0, (-4,-3,-2,-1,0,1,2,3,4), desc='PostScript plot control for engine (and nacelle) schematics on file PLTFIL. If the negative value is input, only the final design will be plotted.')
gratio = Float(1.0, desc='Ratio of the RPM of the low pressure compressor to the RPM of the connected fan')
utip1 = Float(0.0, units='ft/s', desc='Tip speed of the first compressor (or fan) in the flow. Default is based on YEAR, engine type, and other design considerations.')
rh2t1 = Float(0.0, desc='Hub to tip radius ratio of the first compressor (or fan) in the flow. Default is based on YEAR, engine type, and other design considerations.')
igvw = Enum(0, (-2,-1,0,1,2), desc='Flag for compressor inlet guide vanes', aliases=('Variable-no fan IGV', 'Fixed-no fan IGV', 'None', 'Fixed', 'Variable'))
trbrpm = Float(0.0, units='rpm', desc='The rotational speed of any free turbine. TRBAN2 is used to set the free turbine rotational speed if TRBRPM is not input. TRBRPM overrides TRBAN2.')
trban2 = Float(0.0, units='(inch*inch)/(min*min)', desc='Maximum allowable AN**2 for turbine components. The input value is the actual maximum divided by 10**10. AN**2 is the flow area multiplied by the rotational speed squared. The default is based on year.')
trbstr = Float(15000.0, units='psi', desc='Turbine usable stress lower limit. Normally when component weights are predicted, the usable stress is a function of operating conditions. For turbine components, this can be unusually low because cooling effects are not accounted for.')
cmpan2 = Float(0.0, units='(inch*inch)/(min*min)', desc='Maximum allowable AN**2 for compressor components. The input value is the actual maximum divided by 10**10. AN**2 is the flow area multiplied by the rotational speed squared. The default is based on year.')
cmpstr = Float(25000.0, units='psi', desc='Requested compressor usable stress. This forces a change in compressor material when the current (lower temperature) material starts to run out of strength as temperature increases.')
vjpnlt = Float(0.0, units='lb', desc='Weight penalty factor for a suppressor to reduce the core jet velocity to 1500 ft/sec')
wtebu = Float(0.2, desc='Fraction for weight of engine build up unit (pylon, mounting hardware, etc)')
wtcon = Float(0.05, desc='Fraction for weight of engine controls')
class FlopsWrapper_input_engine_Design_Point(VariableTree):
"""Container for input.engine.Design_Point"""
# OpenMDAO Public Variables
desfn = Float(0.0, units='lb', desc='Engine design point net dry thrust (Default = THRUST, Namelist &CONFIN). Do not use the default for afterburning engines since THRUST is the maximum wet thrust rating. The maximum wet (afterburning) thrust for the generated engine is transferred back to THRSO for scaling with THRUST.')
xmdes = Float(-9999.0, desc='Engine optimization point Mach number (Default = VCMN, Namelist &CONFIN). XMDES and XADES are used for propulsion only analyses (IANAL = 4).')
xades = Float(-9999.0, units='ft', desc='Engine optimization point altitude (Default = CH, Namelist &CONFIN). If XADES < 0., it is interpreted as the negative of the design point dynamic pressure (psf), and the altitude is back-calculated with a minimum of 0.')
oprdes = Float(25.0, desc='Overall pressure ratio')
fprdes = Float(1.5, desc='Fan pressure ratio (turbofans only)')
bprdes = Float(0.0, desc='Bypass ratio (Turbofans only, Default is computed based on OPRDES, FPRDES, TTRDES, XMDES and ALDES). If BPRDES < -1, then the bypass ratio is computed such that the ratio of the fan to core jet velocities equals the absolute value of BPRDES. For turbine bypass engines, BPRDES must be input and is defined as the fraction of compressor exit airflow that is bypassed around the main burner and the turbine. If both EBPR and BPRDES are zero, the optimum bypass ratio is computed at the design Mach number and altitude (XMDES, XADES).')
tetdes = Float(2500.0, units='degR', desc='Engine design point turbine entry temperature')
ttrdes = Float(1.0, desc='Engine throttle ratio defined as the ratio of the maximum allowable turbine inlet temperature divided by the design point turbine inlet temperature. If TTRDES is greater than TETDES, it is assumed to be the maximum allowable turbine inlet temperature.')
class FlopsWrapper_input_engine_Basic(VariableTree):
"""Container for input.engine.Basic"""
# OpenMDAO Public Variables
ieng = Enum(1, (0,1,2,3,4,5,6,7,8,9,101), desc='Engine cycle definition input file indicator', aliases=('User-defined', 'Turbojet', 'Separate flow turbofan w/ 2 compressors', 'Mixed flow turbofan w/ 2 compressors', 'Turboprop', 'Turbine bypass', 'Separate flow turofan w/ 3 compressors', 'Mixed flow turbofan w/ 3 compressors', '3-spool separate flow turbofan w/ 3 compressors', '2-spool turbojet', 'IC engine'))
iprint = Int(1, desc='Engine cycle analysis printout control. Printout is on file OFILE')
gendek = Bool(False, desc='Engine data will be saved on the file designated by EOFILE as an Engine Deck for future use')
ithrot = Enum(1, (0,1,2), desc='Controls frequency of part power data generation', aliases=('All Mach-altitude combos', 'Max. altitude for each Mach', 'Max. altitude for max. Mach'))
npab = Int(0, desc='Maximum number of afterburning throttle settings for each Mach-altitude combination')
npdry = Int(15, desc='Maximum number of dry (non-afterburning) throttle settings')
xidle = Float(0.05, desc='Fraction of maximum dry thrust used as a cutoff for part power throttle settings')
nitmax = Int(50, desc='Maximum iterations per point')
xmmax = Float(-1.0, desc='Max Mach number (Default = VCMN, Namelist &CONFIN)')
amax = Float(-1.0, units='ft', desc='Max altitude (Default = CH, Namelist &CONFIN)')
xminc = Float(0.2, desc='Mach number increment (Default = .2)')
ainc = Float(5000.0, units='ft', desc='Altitude increment (Default = 5000.)')
qmin = Float(150.0, units='psf', desc='Minimum dynamic pressure')
qmax = Float(1200.0, units='psf', desc='Maximum dynamic pressure')
class FlopsWrapper_input_engine(VariableTree):
"""Container for input.engine"""
# OpenMDAO Public Variables
ifile = Str(desc='Name of cycle definition input file. Used only if IENG = 0.')
tfile = Str('ENGTAB', desc='Name of the file containing component map tables.')
# VariableTrees
Basic = VarTree(FlopsWrapper_input_engine_Basic())
Design_Point = VarTree(FlopsWrapper_input_engine_Design_Point())
Engine_Weight = VarTree(FlopsWrapper_input_engine_Engine_Weight())
IC_Engine = VarTree(FlopsWrapper_input_engine_IC_Engine())
Noise_Data = VarTree(FlopsWrapper_input_engine_Noise_Data())
Other = VarTree(FlopsWrapper_input_engine_Other())
class FlopsWrapper_input_engdin_Special_Options(VariableTree):
"""Container for input.engdin.Special_Options"""
# OpenMDAO Public Variables
dffac = Float(0.0, desc='Fuel flow scaling constant term.\nThe engine fuel flow scale factor for ENGSKAL = THRUST/THRSO is\nENGSKAL*[1. + DFFAC + FFFAC*(1. - ENGSKAL)]')
fffac = Float(0.0, desc='Fuel flow scaling linear term.\nThe engine fuel flow scale factor for ENGSKAL = THRUST/THRSO is\nENGSKAL*[1. + DFFAC + FFFAC*(1. - ENGSKAL)]')
emach = Array(dtype=numpy_float64, desc='Array of Mach numbers in descending order at which engine data are to be generated (Default computed internally, Do not zero fill)')
alt = Array(zeros(shape=(0,0)), dtype=numpy_float64, units='ft', desc='Arrays of altitudes in descending order, one set for each Mach number, at which engine data are to be generated (Default computed internally, do not zero fill). Altitudes and numbers of altitudes do not have to be consistent between Mach numbers.')
insdrg = Enum(0, (0,1,2,3), desc='Nozzle installation drag scaling switch', aliases=('No drag scaling', 'Scale with A10', 'Calculate using A10', 'Calculate for Cd=0 at A9=A9ref'))
nab = Int(6969, desc='Table number in CDFILE to be used for afterbody drag')
nabref = Int(6969, desc='Table number in CDFILE to be used for reference afterbody drag')
a10 = Float(0.0, units='inch*inch', desc='Maximum nozzle area (Required if INSDRG > 0)')
a10ref = Float(0.0, units='inch*inch', desc='Reference maximum nozzle area (Required if INSDRG > 0)')
a9ref = Float(0.0, units='inch*inch', desc='Reference nozzle exit area (Required if INSDRG = 3)')
xnoz = Float(0.0, units='inch', desc='Nozzle length (Required if INSDRG > 0)')
xnref = Float(0.0, units='inch', desc='Reference nozzle length (Required if INSDRG > 0)')
rcrv = Float(-1.0, desc='Nozzle radius of curvature parameter (Triggers special nozzle drag option)')
class FlopsWrapper_input_engdin_Basic(VariableTree):
"""Container for input.engdin.Basic"""
# OpenMDAO Public Variables
ngprt = Enum(1, (0,1,2), desc='Print engine data tables', aliases=('No printout', 'Print tables', 'Print sorted tables'))
igenen = Enum(0, (-3,-2,-1,0,1), desc='Switch indicating source of Engine Deck', aliases=('Response surfaces', 'External file (horsepower/rpm/fuel flow', 'External file (thrust/fuel flow)', 'Follows namelist &ENGDIN', 'Engine deck to be generated'))
extfac = Float(1.0, desc='Slope factor for extrapolating engine fuel flows for thrust levels above the maximum for that Mach number and altitude')
fffsub = Float(1.0, desc='Fuel flow factor for all subsonic engine points')
fffsup = Float(1.0, desc='Fuel flow factor for all supersonic engine points')
idle = Int(0, desc='> 0, Flight idle data will be internally generated with zero thrust and an extrapolated fuel flow. The fuel flow must be at least FIDMIN times the fuel flow at power setting number IDLE and no more than FIDMAX times the fuel flow at power setting number IDLE. If NONEG (below) = 0 and negative thrusts exist, an idle power setting is not generated.\n= 0, The lowest input power setting is assumed to be flight idle (Not recommended. Results will be more consistent with IDLE > 0)')
noneg = Enum(0, (1,0), desc='Option for using points in the Engine Deck with negative thrust', aliases=('Ignore', 'Use all points'))
fidmin = Float(0.08, desc='Minimum fraction of the fuel flow at power setting number IDLE for generated flight idle fuel flows')
fidmax = Float(1.0, desc='Maximum fraction of the fuel flow at power setting number IDLE for generated flight idle fuel flows')
ixtrap = Int(1, desc='Option for extrapolation of engine data beyond altitudes provided in input data, which may result in radically improved SFC')
ifill = Int(2, desc='Option for filling in part power data\n=0, No part power data will be generated\n> 0, Part power cruise data will be filled in for Mach-altitude points for which IFILL (or fewer) thrust levels have been input\nFor NPCODE > 1, data will be filled in for each specified power code that is not input for each Mach-altitude point.')
maxcr = Int(2, desc='Maximum power setting used for cruise')
nox = Enum(0, (0,1,2,3), desc='Option for NOx emissions data. If IGENEN=-2, NOx emissions data are replaced with engine shaft speed, rpm', aliases=('Do not use', 'Indices in engine deck or generated', 'Emissions lb/hr in engine deck', 'Another parameter in engine deck'))
pcode = Array(dtype=numpy_float64, desc='Power codes to be used in sorting the Engine Deck. Values correspond to thrust levels in descending order, i.e., climb, maximum continuous, part power cruise settings, and flight idle. Actual values are arbitrary (they are just used as labels), but only points in the Engine Deck with corresponding values for PC will be used.')
boost = Float(0.0, desc='> 0., Scale factor for boost engine to be added to baseline engine for takeoff and climb. Climb thrust of the boost engine in the Engine Deck must be artificially increased by 100,000.\n= 0., No boost engine')
igeo = Enum(0, (0,1), desc='Engine deck altitude type', aliases=('Geometric', 'Geopotential-will be converted'))
class FlopsWrapper_input_engdin(VariableTree):
"""Container for input.engdin"""
# OpenMDAO Public Variables
cdfile = Str('')
# Special addition for analysis runs where we aren't connected to NPSS.
eifile = Str('', desc="Engine deck filename")
# VariableTrees
Basic = VarTree(FlopsWrapper_input_engdin_Basic())
Special_Options = VarTree(FlopsWrapper_input_engdin_Special_Options())
class FlopsWrapper_input_costin_Mission_Performance(VariableTree):
"""Container for input.costin.Mission_Performance"""
# OpenMDAO Public Variables
desmch = Float(0.0, desc='Design Mach number (Default = VCMN, Namelist &CONFIN)')
dprsmx = Float(0.0, units='psf', desc='Maximum dynamic pressure (Default = 460. * DESMCH)')
veloc = Float(0.0, units='mi/h', desc='Cruise velocity (Default = 660. * DESMCH)')
blockf = Float(0.9, units='lb', desc='Block fuel, or fraction of aircraft fuel capacity (Default = 0.90 * (FULWMX+FULFMX), Namelist &WTIN)')
blockt = Float(0.0, units='h', desc='Block time (Default = DESRNG/VELOC + 0.65)')
class FlopsWrapper_input_costin_Cost_Technology(VariableTree):
"""Container for input.costin.Cost_Technology"""
# OpenMDAO Public Variables
fafrd = Float(1.0, desc='Technology factor on Airframe R&D')
fenrd = Float(1.0, desc='Technology factor on Engine R&D')
fmac = Float(1.0, desc='Technology factor on Air conditioning')
fmai = Float(1.0, desc='Technology factor on Anti-icing')
fmapu = Float(1.0, desc='Technology factor on Auxiliary power unit')
fmav = Float(1.0, desc='Technology factor on Avionics')
fmbody = Float(1.0, desc='Technology factor on Fuselage')
fmcomp = Float(1.0, desc='Technology factor on Composite materials (applied to the wing, tails, fuselage, and nacelles)')
fmel = Float(1.0, desc='Technology factor on Electrical systems')
fmeng = Float(1.0, desc='Technology factor on Engine')
fmensy = Float(1.0, desc='Technology factor on Engine systems')
fmfcs = Float(1.0, desc='Technology factor on Surface controls')
fmfeq = Float(1.0, desc='Technology factor on Furnishings and equipment')
fmfusy = Float(1.0, desc='Technology factor on Fuel systems')
fmgear = Float(1.0, desc='Technology factor on Landing gear')
fmhyd = Float(1.0, desc='Technology factor on Hydraulic systems')
fmins = Float(1.0, desc='Technology factor on Instruments')
fmnac = Float(1.0, desc='Technology factor on Nacelles')
fmpnm = Float(1.0, desc='Technology factor on Pneumatics')
fmtail = Float(1.0, desc='Technology factor on Tail')
fmtrv = Float(1.0, desc='Technology factor on Thrust reversers')
fmwing = Float(1.0, desc='Technology factor on Wing')
foac = Float(1.0, desc='Technology factor on Air conditioning')
foai = Float(1.0, desc='Technology factor on Anti-icing')
foapu = Float(1.0, desc='Technology factor on Auxiliary power unit')
foav = Float(1.0, desc='Technology factor on Avionics')
fobody = Float(1.0, desc='Technology factor on Fuselage')
focomp = Float(1.0, desc='Technology factor on Composite materials')
foel = Float(1.0, desc='Technology factor on Electrical systems')
fofcs = Float(1.0, desc='Technology factor on Flight control system')
fofeq = Float(1.0, desc='Technology factor on Furnishings and equipment')
fofusy = Float(1.0, desc='Technology factor on Fuel systems')
fogear = Float(1.0, desc='Technology factor on Landing gear')
fohyd = Float(1.0, desc='Technology factor on Hydraulic systems')
foins = Float(1.0, desc='Technology factor on Instruments')
fonac = Float(1.0, desc='Technology factor on Nacelles')
fopnm = Float(1.0, desc='Technology factor on Pneumatics')
foprop = Float(1.0, desc='Technology factor on Propulsion system')
fowing = Float(1.0, desc='Technology factor on Wing')
feacsr = Float(1.0, desc='Technology factor on Aircraft servicing')
fecfee = Float(1.0, desc='Technology factor on Aircraft control fee')
fecrw = Float(1.0, desc='Technology factor on Flight crew')
fedep = Float(1.0, desc='Technology factor on Depreciation')
feflta = Float(1.0, desc='Technology factor on Flight attendants')
feins = Float(1.0, desc='Technology factor on Insurance')
felabr = Float(1.0, desc='Technology factor on R&D labor rate')
feldfe = Float(1.0, desc='Technology factor on Landing fee')
femain = Float(1.0, desc='Technology factor on Maintenance hours')
class FlopsWrapper_input_costin_Basic(VariableTree):
"""Container for input.costin.Basic"""
# OpenMDAO Public Variables
ac = Float(350.0, units='lb/min', desc='Airconditioning total pack air flow')
apuflw = Float(400.0, units='lb/min', desc='Auxiliary power unit flow rate')
apushp = Float(170.0, units='hp', desc='Auxiliary power unit shaft horsepower')
depper = Float(14.0, units='year', desc='Depreciation period')
devst = Float(1980.0, units='year', desc='Development start time')
dlbur = Float(2.0, desc='Direct labor burden factor')
dyear = Int(1986, desc='Desired year for dollar calculations')
epr = Float(20.0, desc='Engine pressure ratio at sea level static')
fafmsp = Float(0.1, desc='Spares factor for production airframes')
fare = Float(0.0, units='USD/pax/mi', desc='Fare (Triggers calculation of return on investment)')
fengsp = Float(0.3, desc='Spares factor for production engines')
fppft = Float(0.5, desc='Spares factor for prototype and flight test engines')
fuelpr = Float(0.5, units='USD/galUS', desc='Fuel price')
hydgpm = Float(150.0, desc='Gallon per minute flow of hydraulic pumps')
iacous = Enum(0, (0,1), desc='Acoustic treatment in nacelle', aliases=('No', 'Yes'))
ibody = Enum(0, (0,1), desc='Body type indicator', aliases=('Narrow', 'Wide'))
icirc = Enum(1, (1,2), desc='Circuit indicator - fire detection', aliases=('Single', 'Dual'))
icorev = Enum(1, (0,1), desc='Thrust reverser', aliases=('No core reverser', 'Core reverser'))
icostp = Enum(1, (1,2,3,4,5), desc='Type of cost calculation desired', aliases=('Life cycle cost (LCC)', 'Acquisition cost', 'Direct operating cost (DOC)', 'Indirect operating cost (IOC)', 'Operating cost only (DOC + IOC - Depreciation)'))
idom = Enum(1, (1,2), desc='Operation type indicator', aliases=('Domestic', 'International'))
imux = Enum(0, (0,1), desc='Multiplex indicator', aliases=('No multiplex', 'Multiplex'))
inozz = Enum(1, (1,2,3,4,5), desc='Nozzle type indicator', aliases=('Translating sleeve', 'Simple target w/ separate flow nozzle', 'Simple target w/ mixed flow nozzle', 'Separate flow exhaust w/o thrust reverser', 'Short duct w/o thrust reverser'))
ipflag = Enum(1, (0,1), desc='Print controller for Cost Module', aliases=('Print major elements', 'Print details'))
irad = Enum(1, (0,1), desc='Indicator to include research and development', aliases=('Ignore R&D costs', 'Include R&D costs'))
irange = Enum(1, (0,1,2), desc='Range indicator', aliases=('Short', 'Medium', 'Long'))
ispool = Enum(0, (0,1), desc='Auxiliary power unit complexity indicator', aliases=('Single spool fixed vane', 'Double spool variable vane APU'))
itran = Enum(0, (0,1), desc='Cargo/baggage transfer operation indicator', aliases=('No transfer', 'Transfer'))
iwind = Enum(0, (0,1), desc='Windshield type indicator', aliases=('Flat', 'Curved'))
kva = Float(200.0, desc='KVA rating of full-time generators')
lf = Float(55.0, desc='Passenger load factor')
life = Float(14.0, desc='Number of years for Life Cycle Cost calculation')
napu = Int(1, desc='Number of auxiliary power units')
nchan = Enum(1, (1,2,3), desc='Number of autopilot channels')
nfltst = Int(2, desc='Number of flight test aircraft')
ngen = Enum(3, (3,4), desc='Number of inflight operated generators')
nins = Int(0, desc='Number of inertial navigation systems')
npod = Int(4, desc='Number of podded engines')
nprotp = Int(2, desc='Number of prototype aircraft')
pctfc = Float(10.0, desc='Percent of seats for first class')
plmqt = Float(1984.0, units='year', desc='Planned MQT (150-hour Model Qualification Test or FAA certification)')
prorat = Float(15.0, desc='Manufacturers')
prproc = Float(0.0, desc='Prior number of engines procured')
q = Float(100.0, desc='Airframe production quantities')
resid = Float(2.0, desc='Residual value at end of lifetime')
roi = Float(10.0, desc='Return on investment (Triggers calculation of required fare)')
sfc = Float(0.6, units='lb/h/lb', desc='Engine specific fuel consumption')
taxrat = Float(0.33, desc='Corporate tax rate for ROI calculations')
temp = Float(1800.0, units='degF', desc='Maximum turbine inlet temperature')
class FlopsWrapper_input_costin(VariableTree):
"""Container for input.costin"""
# VariableTrees
Basic = VarTree(FlopsWrapper_input_costin_Basic())
Cost_Technology = VarTree(FlopsWrapper_input_costin_Cost_Technology())
Mission_Performance = VarTree(FlopsWrapper_input_costin_Mission_Performance())
class FlopsWrapper_input_confin_Objective(VariableTree):
"""Container for input.confin.Objective"""
# OpenMDAO Public Variables
ofg = Float(0.0, desc='Objective function weighting factor for gross weight \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
off = Float(1.0, desc='Objective function weighting factor for mission fuel \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofm = Float(0.0, desc='Objective function weighting factor for Mach*(L/D), should be negative to maximize \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofr = Float(0.0, desc='Objective function weighting factor for Range, should be negative to maximize. \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofc = Float(0.0, desc='Objective function weighting factor for Cost \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
osfc = Float(0.0, desc='Objective function weighting factor for Specific Fuel Consumption at the engine design point. Generally used only for engine design cases (IANAL = 4). \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofnox = Float(0.0, desc='Objective function weighting factor for NOx emissions \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofnf = Float(0.0, desc='Objective function weighting factor for flyover noise (used primarily for contour plots) \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofns = Float(0.0, desc='Objective function weighting factor for sideline noise (used primarily for contour plots) \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofnfom = Float(0.0, desc='Objective function weighting factor for noise figure of merit \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
oarea = Float(0.0, desc='Objective function weighting factor for area of noise footprint (not implemented) \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
ofh = Float(0.0, desc='Objective function weighting factor for hold time for segment NHOLD (See Namelist &MISSIN) \nThe function that is minimized is\n \n OBJ = OFG*GW \n + OFF*Fuel \n + OFM*VCMN*(Lift/Drag) \n + OFR*Range + OFC*Cost \n + OSFC*SFC \n + OFNOX*NOx \n + OFNF*(Flyover Noise) \n + OFNS*(Sideline Noise) \n + OFNFOM*(Noise Figure of Merit) \n + OFH*(Hold Time for Segment NHOLD)')
class FlopsWrapper_input_confin_Design_Variables(VariableTree):
"""Container for input.confin.Design_Variables"""
# OpenMDAO Public Variables
gw = Array(dtype=numpy_float64, units='lb', desc='GW(0)=Ramp weight (Required. If IRW = 1, a good initial guess must be input.)\nGW(1)=Activity status, active if > 0\nGW(2)=Lower bound\nGW(3)=Upper bound\nGW(4)=Optimization scale factor')
ar = Array(dtype=numpy_float64, desc='AR(0)=Wing aspect ratio\nAR(1)=Activity status, active if > 0\nAR(2)=Lower bound\nAR(3)=Upper bound\nAR(4)=Optimization scale factor')
thrust = Array(dtype=numpy_float64, units='lb', desc='THRUST(0)=Maximum rated thrust per engine, or thrust-weight ratio if TWR = -1.\nTHRUST(1)=Activity status, active if > 0\nTHRUST(2)=Lower bound\nTHRUST(3)=Upper bound\nTHRUST(4)=Optimization scale factor')
sw = Array(dtype=numpy_float64, units='ft*ft', desc='SW(0)=Reference wing area, or wing loading if WSR = -1.\nSW(1)=Activity status, active if > 0\nSW(2)=Lower bound\nSW(3)=Upper bound\nSW(4)=Optimization scale factor')
tr = Array(dtype=numpy_float64, desc='TR(0)=Taper ratio of the wing (Required)\nTR(1)=Activity status, active if > 0\nTR(2)=Lower bound\nTR(3)=Upper bound\nTR(4)=Optimization scale factor')
sweep = Array(dtype=numpy_float64, units='deg', desc='SWEEP(0)=Quarter-chord sweep angle of the wing (Required)\nSWEEP(1)=Activity status, active if > 0\nSWEEP(2)=Lower bound\nSWEEP(3)=Upper bound\nSWEEP(4)=Optimization scale factor')
tca = Array(dtype=numpy_float64, desc='TCA(0)=Wing thickness-chord ratio (weighted average) (Required)\nTCA(1)=Activity status, active if > 0\nTCA(2)=Lower bound\nTCA(3)=Upper bound\nTCA(4)=Optimization scale factor')
vcmn = Array(dtype=numpy_float64, desc='VCMN(0)=Cruise Mach number (Required)\nVCMN(1)=Activity status, active if > 0\nVCMN(2)=Lower bound\nVCMN(3)=Upper bound\nVCMN(4)=Optimization scale factor')
ch = Array(dtype=numpy_float64, units='ft', desc='CH(0)=Maximum cruise altitude (Required)\nCH(1)=Activity status, active if > 0\nCH(2)=Lower bound\nCH(3)=Upper bound\nCH(4)=Optimization scale factor')
varth = Array(dtype=numpy_float64, desc='VARTH(0)=Thrust derating factor for takeoff noise Fraction of full thrust used in takeoff\nVARTH(1)=Activity status, active if > 0\nVARTH(2)=Lower bound\nVARTH(3)=Upper bound\nVARTH(4)=Optimization scale factor')
rotvel = Array(dtype=numpy_float64, desc='ROTVEL(0)=Rotation velocity for takeoff noise abatement (default is minimum required to meet takeoff performance constraints)\nROTVEL(1)=Activity status, active if > 0\nROTVEL(2)=Lower bound\nROTVEL(3)=Upper bound\nROTVEL(4)=Optimization scale factor')
plr = Array(dtype=numpy_float64, desc='PLR(0)=Thrust fraction after programmed lapse rate (default thrust is specified in each segment)\nPLR(1)=Activity status, active if > 0\nPLR(2)=Lower bound\nPLR(3)=Upper bound\nPLR(4)=Optimization scale factor')
etit = Array(dtype=numpy_float64, units='degR', desc='ETIT(0)=Engine design point turbine entry temperature\nETIT(1)=Activity status, active if > 0\nETIT(2)=Lower bound\nETIT(3)=Upper bound\nETIT(4)=Optimization scale factor')
eopr = Array(dtype=numpy_float64, desc='EOPR(0)=Overall pressure ratio\nEOPR(1)=Activity status, active if > 0\nEOPR(2)=Lower bound\nEOPR(3)=Upper bound\nEOPR(4)=Optimization scale factor')
efpr = Array(dtype=numpy_float64, desc='EFPR(0)=Fan pressure ratio (turbofans only)\nEFPR(1)=Activity status, active if > 0\nEFPR(2)=Lower bound\nEFPR(3)=Upper bound\nEFPR(4)=Optimization scale factor')
ebpr = Array(dtype=numpy_float64, desc='EBPR(0)=Bypass ratio (turbofans only)\nEBPR(1)=Activity status, active if > 0\nEBPR(2)=Lower bound\nEBPR(3)=Upper bound\nEBPR(4)=Optimization scale factor')
ettr = Array(dtype=numpy_float64, desc='ETTR(0)=Engine throttle ratio defined as the ratio of the maximum allowable turbine inlet temperature divided by the design point turbine inlet temperature.\nIf ETTR is greater than ETIT, it is assumed to be the maximum allowable turbine inlet temperature.\nETTR(1)=Activity status, active if > 0\nETTR(2)=Lower bound\nETTR(3)=Upper bound\nETTR(4)=Optimization scale factor')
ebla = Array(dtype=numpy_float64, units='deg', desc='EBLA(0)=Blade angle for fixed pitch propeller\nEBLA(1)=Activity status, active if > 0\nEBLA(2)=Lower bound\nEBLA(3)=Upper bound\nEBLA(4)=Optimization scale factor')
class FlopsWrapper_input_confin_Basic(VariableTree):
"""Container for input.confin.Basic"""
# OpenMDAO Public Variables
desrng = Float(0.0, desc='Design range (or endurance). See INDR in Namelist &MISSIN)\nRequired - if IRW = 2 in Namelist &MISSIN, the range is computed, but a reasonable guess must still be input')
wsr = Float(0.0, desc='Required wing loading if > 0.\nDo not set WSR > 0 during optimization or if wing area is being varied.\nInterpret SW as wing loading for parametric variation if = -1.\nDo not use for optimization.')
twr = Float(0.0, desc='Required total thrust-weight ratio if > 0.\nDo not set TWR > 0 during optimization or if thrust is being varied.\nInterpret THRUST as thrust-weight ratio for parametric variation if = -1.\nDo not use for optimization.')
htvc = Float(0.0, desc='Modified horizontal tail volume coefficient.\nIf HTVC > 0., SHT = HTVC * SW * Sqrt(SW/AR) / XL (This overrides any input value for SHT)\nIf HTVC = 1., the horizontal tail volume coefficient calculated from the input values of SHT, SW, AR and XL will be maintained.')
vtvc = Float(0.0, desc='Modified vertical tail volume coefficient.\nIf VTVC > 0., SVT = VTVC * SW * Sqrt(SW*AR) / XL (This overrides any input value for SVT)\nIf VTVC = 1., the vertical tail volume coefficient calculated from the input values of SVT, SW, AR and XL will be maintained.')
pglov = Float(0.0, desc='Fixed ratio of glove area to wing area (GLOV/SW).\nIf PGLOV > 0., GLOV will change if SW changes.')
fixspn = Float(0.0, units='ft', desc='Special Option - Fixed wing span. If the wing area is being varied or optimized, the wing aspect ratio will be adjusted to maintain a constant span.')
fixful = Float(0.0, units='lb', desc='Special Option - Fixed mission fuel. Allows specification of mission fuel.\nSince this fuel is normally a fall out (what is left over after OWE and payload are subtracted from the gross weight), this option requires iterating on the gross weight until the mission fuel = FIXFUL. Gross weight cannot be an active design variable or used in a parametric variation, and IRW must be 2 in Namelist &MISSIN.')
class FlopsWrapper_input_confin(VariableTree):
"""Container for input.confin"""
# VariableTrees
Basic = VarTree(FlopsWrapper_input_confin_Basic())
Design_Variables = VarTree(FlopsWrapper_input_confin_Design_Variables())
Objective = VarTree(FlopsWrapper_input_confin_Objective())
class FlopsWrapper_input_asclin(VariableTree):
"""Container for input.asclin"""
# OpenMDAO Public Variables
sref = Float(0.0, units='ft*ft', desc='Wing area on which aerodynamic input is based (Default = SW, Namelist &CONFIN). If different from SW, aerodynamics will be scaled.')
tref = Float(0.0, units='lb', desc='Engine thrust corresponding to nacelle size used in generating aerodynamic input data (Default = THRUST, Namelist &CONFIN). If different from THRUST, aerodynamic data will be modified.')
awetn = Float(0.0, desc='Nacelle wetted area/SREF')
eltot = Float(0.0, units='ft', desc='Total configuration length (Default = fuselage length)')
voltot = Float(0.0, units='ft*ft*ft', desc='Total configuration volume')
awett = Array(dtype=numpy_float64, desc='Total wetted area/SREF. For variable geometry aircraft, up to NMP values may be input')
awetw = Array(dtype=numpy_float64, desc='Wing wetted area/SREF')
elw = Array(dtype=numpy_float64, units='ft', desc='Total length of exposed wing')
volw = Array(dtype=numpy_float64, units='ft*ft*ft', desc='Total volume of exposed wing')
form = Array(dtype=numpy_float64, desc='Subsonic form factor for total configuration')
eql = Array(dtype=numpy_float64, units='ft', desc='Equivalent friction length for total baseline configuration. If EQL is omitted, skin friction drag is computed from component data')
cdwav = Array(dtype=numpy_float64, desc='Wave drag coefficients (NMP values)')
dcdnac = Array(dtype=numpy_float64, desc='Delta wave drag coefficients, nacelles on - nacelles off')
class FlopsWrapper_input_aero_data(VariableTree):
"""Container for input.aero_data"""
# OpenMDAO Public Variables
aerodat = Str('')
class FlopsWrapper_input_aerin_Takeoff_Landing(VariableTree):
"""Container for input.aerin.Takeoff_Landing"""
# OpenMDAO Public Variables
wratio = Float(0.0, desc='Ratio of maximum landing weight to maximum takeoff weight (Default = WLDG/GW if WLDG is input, otherwise for supersonic aircraft Default = 1. - .00009*DESRNG, for subsonic aircraft Default = 1. - .00004*DESRNG)')
vappr = Float(150.0, units='nmi', desc='Maximum allowable landing approach velocity')
flto = Float(12000.0, units='ft', desc='Maximum allowable takeoff field length')
flldg = Float(0.0, units='ft', desc='Maximum allowable landing field length')
cltom = Float(2.0, desc='Maximum CL in takeoff configuration')
clldm = Float(3.0, desc='Maximum CL in landing configuration')
clapp = Float(0.0, desc='Approach CL')
dratio = Float(1.0, desc='Takeoff and landing air density ratio')
elodss = Float(0.0, desc='Lift-Drag ratio for second segment climb (Default is internally computed)')
elodma = Float(0.0, desc='Lift-Drag ratio for missed approach climb (Default is internally computed)')
thrss = Float(0.0, units='lb', desc='Thrust per baseline engine for second segment climb (Default = THRUST, Namelist &CONFIN)')
thrma = Float(0.0, units='lb', desc='Thrust per baseline engine for missed approach climb (Default = THRSS)')
throff = Float(0.0, units='lb', desc='Thrust per baseline engine for takeoff (Default = THRSS)')
class FlopsWrapper_input_aerin_Internal_Aero(VariableTree):
"""Container for input.aerin.Internal_Aero"""
# OpenMDAO Public Variables
cam = Float(0.0, desc='Maximum camber at 70% semispan, percent of local chord')
sbase = Float(0.0, units='ft*ft', desc='Aircraft base area (total exit cross-section area minus inlet capture areas for internally mounted engines)')
aitek = Float(1.0, desc='Airfoil technology parameter. Use 1 for conventional wing and 2 for advanced technology wing')
modaro = Enum(0, (0,1), desc='Data tables in EDET are to be modified, Namelist &ARIDE will be read in', aliases=('No', 'Yes'))
fcldes = Float(-1.0, desc='Fixed design lift coefficient. If input, overrides design CL computed by EDET.')
fmdes = Float(-1.0, desc='Fixed design Mach number. If input, overrides design Mach number computed by EDET.')
xllam = Enum(0, (0,1), desc='Use 0 for Turbulent flow and 1 for Laminar Flow', aliases=('Turbulent', 'Laminar'))
truw = Float(0.0, desc='Percent LF wing upper surface')
trlw = Float(0.0, desc='Percent LF wing low surface')
truh = Float(0.0, desc='Percent LF horizontal tail upper surface')
trlh = Float(0.0, desc='Percent LF horizontal tail lower surface')
truv = Float(0.0, desc='Percent LF vertical tail upper surface')
trlv = Float(0.0, desc='Percent LF vertical tail lower surface')
trub = Float(0.0, desc='Percent LF fuselage upper surface')
trlb = Float(0.0, desc='Percent LF fuselage lower surface')
trun = Float(0.0, desc='Percent LF nacelle upper surface')
trln = Float(0.0, desc='Percent LF nacelle lower surface')
truc = Float(0.0, desc='Percent LF canard upper surface')
trlc = Float(0.0, desc='Percent LF canard lower surface')
e = Float(1.0, desc='Aerodynamic efficiency factor: use 1 for normal wing efficiency; normal wing efficiency modified for taper ratio and aspect ratio plus E if < 0; Otherwise, normal wing efficiency multiplied by E')
swetw = Float(1.0, units='ft*ft', desc='Wing wetted area')
sweth = Float(1.0, units='ft*ft', desc='Horizontal tail wetted area')
swetv = Float(1.0, units='ft*ft', desc='Vertical tail wetted area')
swetf = Float(1.0, units='ft*ft', desc='Fuselage wetted area')
swetn = Float(1.0, units='ft*ft', desc='Nacelle wetted area')
swetc = Float(1.0, units='ft*ft', desc='Canard wetted area')
class FlopsWrapper_input_aerin_Basic(VariableTree):
"""Container for input.aerin.Basic"""
# OpenMDAO Public Variables
myaero = Enum(0, (0,1,2,3,4), desc='Controls type of user-supplied aerodynamic data\n= 0, Drag polars are computed internally\n= 1, Aerodynamic Data will be read in\n= 2, Scalable Aerodynamic Data will be input (Namelist &ASCLIN required)\n= 3, Special parabolic Aerodynamic Data format (Namelist &RFHIN required)\n= 4, Use aerodynamic response surface - available only in DOSS version', aliases=('Internal', 'Fixed input', 'Scalable input', 'Parabolic', 'Response surface'))
iwave = Enum(0, (0,1), desc='Controls Wave Drag Data input type\n= 1, Input Wave Drag Data will be formatted\n= 0, Otherwise', aliases=('No', 'Yes'))
fwave = Float(1.0, desc='Wave drag factor - multiplies input values of wave drag from formatted aerodynamic data or Namelist &ASCLIN')
itpaer = Enum(2, (1,2,3), desc='Aerodynamic data interpolation switch\n= 1, Linear - Use if aerodynamic data is irregular. This is usually indicated by strange climb, descent or cruise profiles.\n= 2, Parabolic\n= 3, Parabolic interpolation for CL, linear interpolation for Mach number and altitude.', aliases=('Linear', 'Parabolic', 'Combination'))
ibo = Enum(0, (0,1), desc='Format indicator for input aerodynamic matrices\n= 1, A new line is started for each Mach number for Cards 4 and for each altitude for Cards 8\n= 0, Data is continuous, 10 to a line', aliases=('Continuous', '1 Mach/line'))
class FlopsWrapper_input_aerin(VariableTree):
"""Container for input.aerin"""
# VariableTrees
Basic = VarTree(FlopsWrapper_input_aerin_Basic())
Internal_Aero = VarTree(FlopsWrapper_input_aerin_Internal_Aero())
Takeoff_Landing = VarTree(FlopsWrapper_input_aerin_Takeoff_Landing())
class FlopsWrapper_input(VariableTree):
"""Container for input"""
# OpenMDAO Public Variables
title = Str('', desc='Any alphanumeric title')
aerin = VarTree(FlopsWrapper_input_aerin())
aero_data = VarTree(FlopsWrapper_input_aero_data())
asclin = VarTree(FlopsWrapper_input_asclin())
confin = VarTree(FlopsWrapper_input_confin())
costin = VarTree(FlopsWrapper_input_costin())
engdin = VarTree(FlopsWrapper_input_engdin())
engine = VarTree(FlopsWrapper_input_engine())
engine_deck = VarTree(FlopsWrapper_input_engine_deck())
fusein = VarTree(FlopsWrapper_input_fusein())
missin = VarTree(FlopsWrapper_input_missin())
mission_definition = VarTree(FlopsWrapper_input_mission_definition())
nacell = VarTree(FlopsWrapper_input_nacell())
noisin = VarTree(FlopsWrapper_input_noisin())
option = VarTree(FlopsWrapper_input_option())
proin = VarTree(FlopsWrapper_input_proin())
rfhin = VarTree(FlopsWrapper_input_rfhin())
syntin = VarTree(FlopsWrapper_input_syntin())
tolin = VarTree(FlopsWrapper_input_tolin())
wtin = VarTree(FlopsWrapper_input_wtin())
# pylint: enable-msg=C0301,C0324,R0903
class FlopsWrapper(ExternalCode):
"""Wrapper for FlopsWrapper"""
# OpenMDAO Public Variables
ERROR = Str('none', iotype='out', desc='Error message for FLOPS failures')
HINT = Str('none', iotype='out', desc='Hint for resolving error')
npcon = Int(0, iotype='in', desc='Number of PCONIN namelists to be created')
nseg = Int(0, iotype='in', desc='Number of SEGIN namelists to be created')
nrerun = Int(0, iotype='in', desc='Number of RERUN namelists to be created')
npcons = Array(iotype='in', dtype=numpy_int64, desc='Number of PCONIN ' +
'namelists to be created with each RERUN namelist')
# Variable Trees
input = VarTree(FlopsWrapper_input(), iotype='in')
output = VarTree(FlopsWrapper_output(), iotype='out')
# This stuff is defined in ExternalCode. I'm preserving it to keep a record
# of the var names that were used in the MC Java wrapper.
# ----
#execute_cmd = Str('flops', iotype='in', desc='Command for executing FLOPS')
def __init__(self):
"""Constructor for the FlopsWrapper component"""
super(FlopsWrapper, self).__init__()
# External Code public variables
self.stdin = 'flops.inp'
self.stdout = 'flops.out'
self.stderr = 'flops.err'
self.command = ['flops']
self.external_files = [
FileMetadata(path=self.stdin, input=True),
FileMetadata(path=self.stdout),
FileMetadata(path=self.stderr),
]
# This stuff is global in the Java wrap.
# These are used when adding and removing certain segments.
self.nseg0 = 0
self.npcon0 = 0
self.nrern0 = 0
self.npcons0 = []
self.npcons0.append(0)
self.nmseg = 0
def execute(self):
"""Run Flops."""
#Prepare the input files for Flops
self.generate_input()
#Run Flops via ExternalCode's execute function
super(FlopsWrapper, self).execute()
#Parse the outut files from Flops
self.parse_output()
def generate_input(self):
"""Creates the FLOPS input file(s) namelists."""
sb = Namelist(self)
sb.set_filename(self.stdin)
# Write the Title Card
sb.set_title(self.input.title)
#-------------------
# Namelist &OPTION
#-------------------
sb.add_group('OPTION')
sb.add_comment("\n ! Program Control, Execution, Analysis and Plot Option Data")
iopt = self.input.option.Program_Control.iopt
ianal = self.input.option.Program_Control.ianal
ineng = self.input.option.Program_Control.ineng
itakof = self.input.option.Program_Control.itakof
iland = self.input.option.Program_Control.iland
nopro = self.input.option.Program_Control.nopro
noise = self.input.option.Program_Control.noise
icost = self.input.option.Program_Control.icost
ifite = self.input.option.Program_Control.ifite
mywts = self.input.wtin.Basic.mywts
sb.add_container("input.option.Program_Control")
sb.add_comment("\n ! Plot files for XFLOPS Graphical Interface Postprocessor (MSMPLOT)")
sb.add_var("input.option.Plot_Files.ixfl")
sb.add_comment("\n ! Takeoff and Climb Profile File for Noise Calculations (NPROF)")
sb.add_var("input.option.Plot_Files.npfile")
sb.add_comment("\n ! Drag Polar Plot File (POLPLOT)")
sb.add_var("input.option.Plot_Files.ipolp")
sb.add_var("input.option.Plot_Files.polalt")
nmach = len(self.input.option.Plot_Files.pmach)
if nmach > 0:
sb.add_newvar("nmach", nmach)
sb.add_var("input.option.Plot_Files.pmach")
sb.add_comment("\n ! Engine Performance Data Plot File (THRPLOT)")
sb.add_var("input.option.Plot_Files.ipltth")
sb.add_comment("\n ! Design History Plot File (HISPLOT)")
sb.add_var("input.option.Plot_Files.iplths")
ipltps = len(self.input.option.Excess_Power_Plot.pltnz)
if ipltps > 0:
sb.add_comment("\n ! Excess Power Plot File (PSPLOT)")
sb.add_newvar("ipltps", ipltps)
sb.add_container("input.option.Excess_Power_Plot")
# Plotfile names
sb.add_comment("\n ! Plotfile Names")
if self.input.option.Plot_Files.cnfile:
sb.add_var("input.option.Plot_Files.cnfile")
if self.input.option.Plot_Files.msfile:
sb.add_var("input.option.Plot_Files.msfile")
if self.input.option.Plot_Files.crfile:
sb.add_var("input.option.Plot_Files.crfile")
if self.input.option.Plot_Files.tofile :
sb.add_var("input.option.Plot_Files.tofile ")
if self.input.option.Plot_Files.nofile :
sb.add_var("input.option.Plot_Files.nofile ")
if self.input.option.Plot_Files.apfile :
sb.add_var("input.option.Plot_Files.apfile ")
if self.input.option.Plot_Files.thfile :
sb.add_var("input.option.Plot_Files.thfile ")
if self.input.option.Plot_Files.hsfile :
sb.add_var("input.option.Plot_Files.hsfile ")
if self.input.option.Plot_Files.psfile :
sb.add_var("input.option.Plot_Files.psfile ")
#-------------------
# Namelist &WTIN
#-------------------
sb.add_group('WTIN')
sb.add_comment("\n ! Geometric, Weight, Balance and Inertia Data")
sb.add_container("input.wtin.Basic")
sb.add_comment("\n ! Special Option for Operating Weight Empty Calculations")
sb.add_container("input.wtin.OEW_Calculations")
sb.add_comment("\n ! Wing Data")
sb.add_container("input.wtin.Wing_Data")
netaw = len(self.input.wtin.Detailed_Wing.etaw)
if netaw > 0:
sb.add_comment("\n ! Detailed Wing Data")
sb.add_newvar("netaw", netaw)
sb.add_var("input.wtin.Detailed_Wing.etaw")
sb.add_var("input.wtin.Detailed_Wing.chd")
sb.add_var("input.wtin.Detailed_Wing.toc")
sb.add_var("input.wtin.Detailed_Wing.swl")
sb.add_var("input.wtin.Detailed_Wing.etae")
sb.add_var("input.wtin.Detailed_Wing.pctl")
sb.add_var("input.wtin.Detailed_Wing.arref")
sb.add_var("input.wtin.Detailed_Wing.tcref")
sb.add_var("input.wtin.Detailed_Wing.nstd")
pdist = self.input.wtin.Detailed_Wing.pdist
sb.add_var("input.wtin.Detailed_Wing.pdist")
if pdist < 0.0001:
sb.add_var("input.wtin.Detailed_Wing.etap")
sb.add_var("input.wtin.Detailed_Wing.pval")
sb.add_comment("\n ! Tails, Fins, Canards")
sb.add_comment("\n ! Horizontal Tail Data")
sb.add_var("input.wtin.Tails_Fins.sht")
sb.add_var("input.wtin.Tails_Fins.swpht")
sb.add_var("input.wtin.Tails_Fins.arht")
sb.add_var("input.wtin.Tails_Fins.trht")
sb.add_var("input.wtin.Tails_Fins.tcht")
sb.add_var("input.wtin.Tails_Fins.hht")
nvert = self.input.wtin.Tails_Fins.nvert
if nvert != 0:
sb.add_comment("\n ! Vertical Tail Data")
sb.add_var("input.wtin.Tails_Fins.nvert")
sb.add_var("input.wtin.Tails_Fins.svt")
sb.add_var("input.wtin.Tails_Fins.swpvt")
sb.add_var("input.wtin.Tails_Fins.arvt")
sb.add_var("input.wtin.Tails_Fins.trvt")
sb.add_var("input.wtin.Tails_Fins.tcvt")
nfin = self.input.wtin.Tails_Fins.nfin
if nfin != 0:
sb.add_comment("\n ! Fin Data")
sb.add_var("input.wtin.Tails_Fins.nfin")
sb.add_var("input.wtin.Tails_Fins.sfin")
sb.add_var("input.wtin.Tails_Fins.arfin")
sb.add_var("input.wtin.Tails_Fins.trfin")
sb.add_var("input.wtin.Tails_Fins.swpfin")
sb.add_var("input.wtin.Tails_Fins.tcfin")
scan = self.input.wtin.Tails_Fins.scan
if scan != 0:
sb.add_comment("\n ! Canard Data")
sb.add_var("input.wtin.Tails_Fins.scan")
sb.add_var("input.wtin.Tails_Fins.swpcan")
sb.add_var("input.wtin.Tails_Fins.arcan")
sb.add_var("input.wtin.Tails_Fins.trcan")
sb.add_var("input.wtin.Tails_Fins.tccan")
sb.add_comment("\n ! Fuselage Data")
sb.add_container("input.wtin.Fuselage")
sb.add_comment("\n ! Landing Gear Data")
sb.add_container("input.wtin.Landing_Gear")
sb.add_comment("\n ! Propulsion System Data")
sb.add_container("input.wtin.Propulsion")
sb.add_comment("\n ! Fuel System Data")
sb.add_var("input.wtin.Fuel_System.ntank")
sb.add_var("input.wtin.Fuel_System.fulwmx")
sb.add_var("input.wtin.Fuel_System.fulden")
sb.add_var("input.wtin.Fuel_System.fulfmx")
sb.add_var("input.wtin.Fuel_System.ifufu")
sb.add_var("input.wtin.Fuel_System.fulaux")
fuscla = self.input.wtin.Fuel_System.fuscla
if fuscla > 0.000001:
sb.add_comment("\n ! Special method for scaling wing fuel capacity")
sb.add_var("input.wtin.Fuel_System.fuelrf")
sb.add_var("input.wtin.Fuel_System.fswref")
sb.add_var("input.wtin.Fuel_System.fuscla")
sb.add_var("input.wtin.Fuel_System.fusclb")
sb.add_comment("\n ! Crew and Payload Data")
sb.add_container("input.wtin.Crew_Payload")
sb.add_comment("\n ! Override Parameters")
sb.add_container("input.wtin.Override")
sb.add_comment("\n ! Center of Gravity (C.G.) Data")
sb.add_container("input.wtin.Center_of_Gravity")
inrtia = self.input.wtin.Inertia.inrtia
if inrtia != 0:
sb.add_comment("\n ! Inertia Data")
sb.add_newvar("inrtia", inrtia)
sb.add_var("input.wtin.Inertia.zht")
sb.add_var("input.wtin.Inertia.zvt")
sb.add_var("input.wtin.Inertia.zfin")
sb.add_var("input.wtin.Inertia.yfin")
sb.add_var("input.wtin.Inertia.zef")
sb.add_var("input.wtin.Inertia.yef")
sb.add_var("input.wtin.Inertia.zea")
sb.add_var("input.wtin.Inertia.yea")
sb.add_var("input.wtin.Inertia.zbw")
sb.add_var("input.wtin.Inertia.zap")
sb.add_var("input.wtin.Inertia.zrvt")
sb.add_var("input.wtin.Inertia.ymlg")
sb.add_var("input.wtin.Inertia.yfuse")
sb.add_var("input.wtin.Inertia.yvert")
sb.add_var("input.wtin.Inertia.swtff")
sb.add_var("input.wtin.Inertia.tcr")
sb.add_var("input.wtin.Inertia.tct")
sb.add_var("input.wtin.Inertia.incpay")
l = len(self.input.wtin.Inertia.tx)
sb.add_newvar("itank", l)
if l > 0:
sb.add_var("input.wtin.Inertia.tx")
sb.add_var("input.wtin.Inertia.ty")
sb.add_var("input.wtin.Inertia.tz")
j = len(self.input.wtin.Inertia.tl)
if j > 0:
sb.add_var("input.wtin.Inertia.tl")
sb.add_var("input.wtin.Inertia.tw")
sb.add_var("input.wtin.Inertia.td")
j = self.input.wtin.Inertia.tf.shape[0]
sb.add_newvar("nfcon", j)
if l*j > 0:
sb.add_var("input.wtin.Inertia.tf")
#-------------------
# Namelist &FUSEIN
#-------------------
# Namelist &FUSEIN is only required if XL=0 or IFITE=3.
xl = self.input.wtin.Fuselage.xl
if xl < 0.0000001 or ifite == 3:
sb.add_group('FUSEIN')
sb.add_comment("\n ! Fuselage Design Data")
sb.add_container("input.fusein.Basic")
sb.add_container("input.fusein.BWB")
#-------------------
# Namelist &CONFIN
#-------------------
sb.add_group('CONFIN')
sb.add_container("input.confin.Basic")
# MC Flops wrapper didn't write these out if iopt was less than 3
# I changed it to match expected behavior when comparing manual FLOPS
# if iopt >= 3:
sb.add_comment("\n ! Objective Function Definition")
sb.add_container("input.confin.Objective")
sb.add_comment("\n ! Design Variables")
sb.add_var("input.confin.Design_Variables.gw")
sb.add_var("input.confin.Design_Variables.ar")
sb.add_var("input.confin.Design_Variables.thrust")
sb.add_var("input.confin.Design_Variables.sw")
sb.add_var("input.confin.Design_Variables.tr")
sb.add_var("input.confin.Design_Variables.sweep")
sb.add_var("input.confin.Design_Variables.tca")
sb.add_var("input.confin.Design_Variables.vcmn")
sb.add_var("input.confin.Design_Variables.ch")
sb.add_var("input.confin.Design_Variables.varth")
sb.add_var("input.confin.Design_Variables.rotvel")
sb.add_var("input.confin.Design_Variables.plr")
igenen = self.input.engdin.Basic.igenen
if igenen in (1, -2):
sb.add_comment("\n ! Engine Design Variables")
sb.add_var("input.confin.Design_Variables.etit")
sb.add_var("input.confin.Design_Variables.eopr")
sb.add_var("input.confin.Design_Variables.efpr")
sb.add_var("input.confin.Design_Variables.ebpr")
sb.add_var("input.confin.Design_Variables.ettr")
sb.add_var("input.confin.Design_Variables.ebla")
#-------------------
# Namelist &AERIN
#-------------------
sb.add_group('AERIN')
myaero = self.input.aerin.Basic.myaero
iwave = self.input.aerin.Basic.iwave
if myaero != 0:
sb.add_comment("\n ! Externally Computed Aerodynamics")
sb.add_var("input.aerin.Basic.myaero")
sb.add_var("input.aerin.Basic.iwave")
if iwave != 0:
sb.add_var("input.aerin.Basic.fwave")
sb.add_var("input.aerin.Basic.itpaer")
sb.add_var("input.aerin.Basic.ibo")
else:
sb.add_comment("\n ! Internally Computed Aerodynamics")
sb.add_container("input.aerin.Internal_Aero")
sb.add_container("input.aerin.Takeoff_Landing")
#-------------------
# Namelist &COSTIN
#-------------------
# Namelist &COSTIN is only required if ICOST=1.
if icost != 0:
sb.add_group('COSTIN')
sb.add_comment("\n ! Cost Calculation Data")
sb.add_container("input.costin.Basic")
sb.add_comment("\n ! Mission Performance Data")
sb.add_container("input.costin.Mission_Performance")
sb.add_comment("\n ! Cost Technology Parameters")
sb.add_container("input.costin.Cost_Technology")
#-------------------
# Namelist &ENGDIN
#-------------------
# Namelist &ENGDIN is only required in IANAL=3 or 4 or INENG=1.
if ianal in (3, 4) or ineng == 1:
sb.add_group('ENGDIN')
sb.add_comment("\n ! Engine Deck Control, Scaling and Usage Data")
sb.add_var("input.engdin.Basic.ngprt")
sb.add_var("input.engdin.Basic.igenen")
sb.add_var("input.engdin.Basic.extfac")
sb.add_var("input.engdin.Basic.fffsub")
sb.add_var("input.engdin.Basic.fffsup")
sb.add_var("input.engdin.Basic.idle")
sb.add_var("input.engdin.Basic.noneg")
sb.add_var("input.engdin.Basic.fidmin")
sb.add_var("input.engdin.Basic.fidmax")
sb.add_var("input.engdin.Basic.ixtrap")
sb.add_var("input.engdin.Basic.ifill")
sb.add_var("input.engdin.Basic.maxcr")
sb.add_var("input.engdin.Basic.nox")
npcode = len(self.input.engdin.Basic.pcode)
if npcode > 0:
sb.add_newvar("npcode", npcode)
sb.add_var("input.engdin.Basic.pcode")
sb.add_var("input.engdin.Basic.boost")
sb.add_var("input.engdin.Basic.igeo")
sb.add_var("input.engdin.Special_Options.dffac")
sb.add_var("input.engdin.Special_Options.fffac")
if igenen in (1, -2):
j = len(self.input.engdin.Special_Options.emach)
l = self.input.engdin.Special_Options.alt.shape[0]
if j > 0:
# TODO - Find out about fake 2d for new FLOPS double prop
# capability.
sb.add_var("input.engdin.Special_Options.emach")
if l*j > 0:
# TODO - Find out about fake 3d for new FLOPS double prop
# capability.
sb.add_var("input.engdin.Special_Options.alt")
insdrg = self.input.engdin.Special_Options.insdrg
if insdrg != 0:
sb.add_comment("\n ! Nozzle installation drag using table look-up")
sb.add_newvar("insdrg", insdrg)
sb.add_var("input.engdin.Special_Options.nab")
sb.add_var("input.engdin.Special_Options.nabref")
sb.add_var("input.engdin.Special_Options.a10")
sb.add_var("input.engdin.Special_Options.a10ref")
sb.add_var("input.engdin.Special_Options.a9ref")
sb.add_var("input.engdin.Special_Options.xnoz")
sb.add_var("input.engdin.Special_Options.xnref")
sb.add_var("input.engdin.Special_Options.rcrv")
# TODO - rawInputFile( cdfile, "ENDRAG" );
#cdfile.open
# Write out the eifile. This is a new addition.
if self.input.engdin.eifile:
sb.add_var("input.engdin.eifile")
#----------------------
# Namelist Engine deck
#----------------------
# Insert the engine deck into the flops input file
# If IGENEN=0 the engine deck is part of the input file, otherwise it is an
# external file.
engine_deck = self.input.engine_deck.engdek
if igenen in (0, -2):
# engine_deck contains the raw engine deck
sb.add_group(engine_deck)
else:
# engine_deck contains the name of the engine deck file
if engine_deck:
sb.add_var("input.engine_deck.engdek")
#-------------------
# Namelist &ENGINE
#-------------------
# Namelist &ENGINE is only required if IGENEN=-2 or 1.
if igenen in (-2, 1):
sb.add_group('ENGINE')
nginwt = self.input.engine.Engine_Weight.nginwt
ieng = self.input.engine.Basic.ieng
sb.add_var("input.engine.Basic.ieng")
sb.add_var("input.engine.Basic.iprint")
sb.add_var("input.engine.Basic.gendek")
sb.add_var("input.engine.Basic.ithrot")
sb.add_var("input.engine.Basic.npab")
sb.add_var("input.engine.Basic.npdry")
sb.add_var("input.engine.Basic.xidle")
sb.add_var("input.engine.Basic.nitmax")
if self.input.engine.Basic.xmmax > 0:
sb.add_var("input.engine.Basic.xmmax")
if self.input.engine.Basic.amax > 0:
sb.add_var("input.engine.Basic.amax")
if self.input.engine.Basic.xminc > 0:
sb.add_var("input.engine.Basic.xminc")
if self.input.engine.Basic.ainc > 0:
sb.add_var("input.engine.Basic.ainc")
if self.input.engine.Basic.qmin > 0:
sb.add_var("input.engine.Basic.qmin")
if self.input.engine.Basic.qmax > 0:
sb.add_var("input.engine.Basic.qmax")
sb.add_newvar("nginwt", nginwt)
sb.add_container("input.engine.Noise_Data")
if self.input.engine.Design_Point.desfn > 0:
sb.add_var("input.engine.Design_Point.desfn")
if self.input.engine.Design_Point.xmdes > 0:
sb.add_var("input.engine.Design_Point.xmdes")
if self.input.engine.Design_Point.xades > 0:
sb.add_var("input.engine.Design_Point.xades")
sb.add_var("input.engine.Design_Point.oprdes")
sb.add_var("input.engine.Design_Point.fprdes")
sb.add_var("input.engine.Design_Point.bprdes")
sb.add_var("input.engine.Design_Point.tetdes")
sb.add_var("input.engine.Design_Point.ttrdes")
sb.add_var("input.engine.Other.hpcpr")
sb.add_var("input.engine.Other.aburn")
sb.add_var("input.engine.Other.dburn")
sb.add_var("input.engine.Other.effab")
sb.add_var("input.engine.Other.tabmax")
sb.add_var("input.engine.Other.ven")
sb.add_var("input.engine.Other.costbl")
sb.add_var("input.engine.Other.fanbl")
sb.add_var("input.engine.Other.hpext")
sb.add_var("input.engine.Other.wcool")
sb.add_var("input.engine.Other.fhv")
sb.add_var("input.engine.Other.dtce")
sb.add_var("input.engine.Other.alc")
sb.add_var("input.engine.Other.year")
sb.add_comment("\n ! Installation effects")
sb.add_var("input.engine.Other.boat")
sb.add_var("input.engine.Other.ajmax")
if self.input.engine.Other.spill:
sb.add_comment("\n ! Installation effects")
sb.add_var("input.engine.Other.spill")
sb.add_var("input.engine.Other.lip")
sb.add_var("input.engine.Other.blmax")
sb.add_var("input.engine.Other.spldes")
sb.add_var("input.engine.Other.aminds")
sb.add_var("input.engine.Other.alinds")
sb.add_var("input.engine.Other.etaprp")
sb.add_var("input.engine.Other.shpowa")
sb.add_comment("\n ! Engine operating constraints")
sb.add_var("input.engine.Other.cdtmax")
sb.add_var("input.engine.Other.cdpmax")
sb.add_var("input.engine.Other.vjmax")
sb.add_var("input.engine.Other.stmin")
sb.add_var("input.engine.Other.armax")
sb.add_var("input.engine.Other.limcd")
if nginwt != 0:
sb.add_comment("\n ! Engine Weight Calculation Data")
sb.add_var("input.engine.Engine_Weight.iwtprt")
sb.add_var("input.engine.Engine_Weight.iwtplt")
sb.add_var("input.engine.Engine_Weight.gratio")
sb.add_var("input.engine.Engine_Weight.utip1")
sb.add_var("input.engine.Engine_Weight.rh2t1")
sb.add_var("input.engine.Engine_Weight.igvw")
sb.add_var("input.engine.Engine_Weight.trbrpm")
sb.add_var("input.engine.Engine_Weight.trban2")
sb.add_var("input.engine.Engine_Weight.trbstr")
sb.add_var("input.engine.Engine_Weight.cmpan2")
sb.add_var("input.engine.Engine_Weight.cmpstr")
sb.add_var("input.engine.Engine_Weight.vjpnlt")
sb.add_var("input.engine.Engine_Weight.wtebu")
sb.add_var("input.engine.Engine_Weight.wtcon")
if ieng == 101:
sb.add_var("input.engine.IC_Engine.ncyl")
sb.add_var("input.engine.IC_Engine.deshp")
sb.add_var("input.engine.IC_Engine.alcrit")
sb.add_var("input.engine.IC_Engine.sfcmax")
sb.add_var("input.engine.IC_Engine.sfcmin")
sb.add_var("input.engine.IC_Engine.pwrmin")
sb.add_var("input.engine.IC_Engine.engspd")
sb.add_var("input.engine.IC_Engine.prpspd")
if ieng == 101 or igenen == -2 and nginwt > 0:
sb.add_var("input.engine.IC_Engine.iwc")
sb.add_var("input.engine.IC_Engine.ecid")
sb.add_var("input.engine.IC_Engine.ecr")
if ieng == 101 or igenen == -2:
sb.add_var("input.engine.IC_Engine.eht")
sb.add_var("input.engine.IC_Engine.ewid")
sb.add_var("input.engine.IC_Engine.elen")
sb.add_var("input.engine.IC_Engine.ntyp")
sb.add_var("input.engine.IC_Engine.af")
sb.add_var("input.engine.IC_Engine.cli")
sb.add_var("input.engine.IC_Engine.blang")
sb.add_var("input.engine.IC_Engine.dprop")
sb.add_var("input.engine.IC_Engine.nblade")
sb.add_var("input.engine.IC_Engine.gbloss")
nrpm = len(self.input.engine.IC_Engine.arrpm)
if nrpm > 0:
sb.add_comment(" ! power curve input data")
sb.add_newvar("nrpm", nrpm)
sb.add_var("input.engine.IC_Engine.arrpm")
sb.add_var("input.engine.IC_Engine.arpwr")
sb.add_var("input.engine.IC_Engine.arful")
if self.input.engine.IC_Engine.lfuun != 0:
sb.add_var("input.engine.IC_Engine.lfuun")
sb.add_var("input.engine.IC_Engine.feng")
sb.add_var("input.engine.IC_Engine.fprop")
sb.add_var("input.engine.IC_Engine.fgbox")
ifile = self.input.engine.ifile
tfile = self.input.engine.tfile
# The name of the engine cycle definition file to be read in is
# set by the value of if IENG.
filenames = { 0: "MYCYCL",
1: "TURJET",
2: "TFNSEP",
3: "TFNMIX",
4: "TURPRP",
5: "TBYPAS",
6: "TFNSP3",
7: "TFNMX3",
8: "TFN3SH",
9: "TURJT2",
101: "MYCYCL" }
try:
ifilNam = filenames[ieng]
except KeyError:
msg = "Illegal value %s for input.engine.Basic.IENG" % ieng
raise KeyError(msg)
# TODO - rawInputFile( ifile, ifilNam )
# TODO - rawInputFile( tfile, "ENGTAB" )
sb.add_newvar("tfile", tfile)
sb.add_newvar("ifile", ifilNam)
#-------------------
# Namelist &NACELL
#-------------------
# Namelist &NACELL is only required if NGINWT != 0
# (note:, still in IGENEN=-2 or 1.)
if nginwt != 0:
sb.add_group('NACELL')
sb.add_comment("\n ! Data for Computation of Nacelle Weight.")
sb.add_container("input.nacell")
#-------------------
# Namelist &MISSIN
#-------------------
# Namelist &MISSIN is only required if IANAL=3
npcon = self.npcon
if ianal == 3:
sb.add_group('MISSIN')
sb.add_comment("\n ! Performance Controls and Factors and Mission Segment Definition")
sb.add_var("input.missin.Basic.indr")
sb.add_var("input.missin.Basic.fact")
sb.add_var("input.missin.Basic.fleak")
sb.add_var("input.missin.Basic.fcdo")
sb.add_var("input.missin.Basic.fcdi")
sb.add_var("input.missin.Basic.fcdsub")
sb.add_var("input.missin.Basic.fcdsup")
sb.add_var("input.missin.Basic.iskal")
sb.add_var("input.missin.Basic.owfact")
sb.add_var("input.missin.Basic.iflag")
sb.add_var("input.missin.Basic.msumpt")
sb.add_var("input.missin.Basic.dtc")
sb.add_var("input.missin.Basic.irw")
sb.add_var("input.missin.Basic.rtol")
sb.add_var("input.missin.Basic.nhold")
sb.add_var("input.missin.Basic.iata")
sb.add_var("input.missin.Basic.tlwind")
sb.add_var("input.missin.Basic.dwt")
if len(self.input.missin.Basic.offdr) > 0:
sb.add_var("input.missin.Basic.offdr")
sb.add_var("input.missin.Basic.idoq")
sb.add_newvar("npcon", npcon)
nsout = self.input.missin.Basic.nsout
if nsout > 0:
sb.add_comment("\n ! Combat Radius Mission\n")
sb.add_newvar("nsout", nsout)
sb.add_var("input.missin.Basic.nsadj")
sb.add_var("input.missin.Basic.mirror")
i = len(self.input.missin.Store_Drag.stma)
if i > 0:
sb.add_comment("\n ! Store Drags")
sb.add_container("input.missin.Store_Drag")
sb.add_var("input.missin.User_Weights.mywts")
if mywts == 1:
sb.add_comment("\n ! User-Specified Weights")
sb.add_var("input.missin.User_Weights.rampwt")
sb.add_var("input.missin.User_Weights.dowe")
sb.add_var("input.missin.User_Weights.paylod")
sb.add_var("input.missin.User_Weights.fuemax")
sb.add_comment("\n ! Ground Operations and Takeoff and Approach Allowances")
sb.add_container("input.missin.Ground_Operations")
if len(self.input.missin.Turn_Segments.xnz) > 0:
sb.add_var("input.missin.Turn_Segments.xnz")
if len(self.input.missin.Turn_Segments.xcl) > 0:
sb.add_var("input.missin.Turn_Segments.xcl")
if len(self.input.missin.Turn_Segments.xmach) > 0:
sb.add_var("input.missin.Turn_Segments.xmach")
nclimb = max( len(self.input.missin.Climb.clmmin),
len(self.input.missin.Climb.clmmax),
len(self.input.missin.Climb.clamax),
len(self.input.missin.Climb.nincl),
len(self.input.missin.Climb.fwf),
len(self.input.missin.Climb.ncrcl),
len(self.input.missin.Climb.cldcd),
len(self.input.missin.Climb.ippcl),
len(self.input.missin.Climb.maxcl) )
# TODO - Ask Karl or Jeff about this
# I've removed ioc and ifeath from this. These are parameters, so
# their "length" should have nothing to do with how many Cruise
# Schedules are in the model.
ncruse = max( len(self.input.missin.Cruise.crmach),
len(self.input.missin.Cruise.cralt),
len(self.input.missin.Cruise.crdcd),
len(self.input.missin.Cruise.flrcr),
len(self.input.missin.Cruise.crmmin),
len(self.input.missin.Cruise.crclmx),
len(self.input.missin.Cruise.hpmin),
len(self.input.missin.Cruise.ffuel),
len(self.input.missin.Cruise.fnox),
len(self.input.missin.Cruise.feathf),
len(self.input.missin.Cruise.cdfeth) )
nql = len(self.input.missin.Climb.qlalt)
ns = len(self.input.missin.Descent.adtab)
sb.add_comment("\n ! Climb Schedule Definition")
sb.add_newvar("nclimb", nclimb)
sb.add_var("input.missin.Climb.clmmin")
sb.add_var("input.missin.Climb.clmmax")
sb.add_var("input.missin.Climb.clamin")
sb.add_var("input.missin.Climb.clamax")
sb.add_var("input.missin.Climb.nincl")
sb.add_var("input.missin.Climb.fwf")
sb.add_var("input.missin.Climb.ncrcl")
sb.add_var("input.missin.Climb.cldcd")
sb.add_var("input.missin.Climb.ippcl")
sb.add_var("input.missin.Climb.maxcl")
sb.add_var("input.missin.Climb.keasvc")
actab = self.input.missin.Climb.actab
no = actab.shape[1]
if no == 0:
no = actab.shape[0]
elif no > 0:
noval = ""
for i in range(0, nclimb):
if actab.shape[1] > 0:
for j in range(0, actab.shape[1]):
if actab[i, j] >= 0.0:
n = j+1
noval += n + ", "
else:
break
else:
noval += "0, "
sb.add_newvar("no", noval)
sb.add_var("input.missin.Climb.actab")
sb.add_var("input.missin.Climb.vctab")
sb.add_var("input.missin.Climb.ifaacl")
sb.add_var("input.missin.Climb.ifaade")
sb.add_var("input.missin.Climb.nodive")
sb.add_var("input.missin.Climb.divlim")
sb.add_var("input.missin.Climb.qlim")
sb.add_var("input.missin.Climb.spdlim")
if nql > 0:
sb.add_var("input.missin.Climb.qlalt")
sb.add_var("input.missin.Climb.vqlm")
sb.add_comment("\n ! Cruise Schedule Definition\n")
sb.add_newvar("ncruse", ncruse)
sb.add_var("input.missin.Cruise.ioc")
sb.add_var("input.missin.Cruise.crmach")
sb.add_var("input.missin.Cruise.cralt")
sb.add_var("input.missin.Cruise.crdcd")
sb.add_var("input.missin.Cruise.flrcr")
sb.add_var("input.missin.Cruise.crmmin")
sb.add_var("input.missin.Cruise.crclmx")
sb.add_var("input.missin.Cruise.hpmin")
sb.add_var("input.missin.Cruise.ffuel")
sb.add_var("input.missin.Cruise.fnox")
sb.add_var("input.missin.Cruise.ifeath")
sb.add_var("input.missin.Cruise.feathf")
sb.add_var("input.missin.Cruise.cdfeth")
sb.add_var("input.missin.Cruise.dcwt")
sb.add_var("input.missin.Cruise.rcin")
if len(self.input.missin.Cruise.wtbm) > 0:
sb.add_var("input.missin.Cruise.wtbm")
if len(self.input.missin.Cruise.altbm) > 0:
sb.add_var("input.missin.Cruise.altbm")
sb.add_comment("\n ! Descent Schedule Definition")
sb.add_var("input.missin.Descent.ivs")
sb.add_var("input.missin.Descent.decl")
sb.add_var("input.missin.Descent.demmin")
sb.add_var("input.missin.Descent.demmax")
sb.add_var("input.missin.Descent.deamin")
sb.add_var("input.missin.Descent.deamax")
sb.add_var("input.missin.Descent.ninde")
sb.add_var("input.missin.Descent.dedcd")
sb.add_var("input.missin.Descent.rdlim")
sb.add_var("input.missin.Descent.keasvd")
if ns > 0:
sb.add_newvar("ns", ns)
sb.add_var("input.missin.Descent.adtab")
sb.add_var("input.missin.Descent.vdtab")
sb.add_container("input.missin.Reserve")
#----------------------
# Mission definition
#----------------------
mission = self.input.mission_definition.mission
for seg in mission:
sb.add_group(seg)
self.nmseg = mission.count('CLIMB') + mission.count('CRUISE') + \
mission.count('REFUEL') + mission.count('RELEASE') + \
mission.count('ACCEL') + mission.count('TURN') + \
mission.count('COMBAT') + mission.count('HOLD') + \
mission.count('DESCENT')
#-------------------
# Namelist &PCONIN
#-------------------
# One or more &PCONIN namelists may have been created by the user.
if npcon > 0 and ianal == 3:
for i in range(0, npcon):
sb.add_group('PCONIN')
sb.add_comment("\n ! Performance Constraint")
if self.get("input.pconin%s.conalt" % (i)) >= 0.:
sb.add_var("input.pconin%s.conalt" % (i))
if self.get("input.pconin%s.conmch" % (i)) >= 0.:
sb.add_var("input.pconin%s.conmch" % (i))
if self.get("input.pconin%s.connz" % (i)) >= 0.:
sb.add_var("input.pconin%s.connz" % (i))
if self.get("input.pconin%s.conpc" % (i)) > -10.:
sb.add_var("input.pconin%s.conpc" % (i))
if self.get("input.pconin%s.conlim" % (i)) != -999.:
sb.add_var("input.pconin%s.conlim" % (i))
if self.get("input.pconin%s.conaux" % (i)) > -1.:
sb.add_var("input.pconin%s.conaux" % (i))
if self.get("input.pconin%s.neo" % (i)) >= 0:
sb.add_var("input.pconin%s.neo" % (i))
if self.get("input.pconin%s.icstdg" % (i)) >= 0:
sb.add_var("input.pconin%s.icstdg" % (i))
if self.get("input.pconin%s.conwt" % (i)) >= 0.:
sb.add_var("input.pconin%s.conwt" % (i))
if self.get("input.pconin%s.iconsg" % (i)) >= 0:
sb.add_var("input.pconin%s.iconsg" % (i))
if self.get("input.pconin%s.confm" % (i)) >= 0.:
sb.add_var("input.pconin%s.confm" % (i))
if self.get("input.pconin%s.conwta" % (i)) != -999.:
sb.add_var("input.pconin%s.conwta" % (i))
if self.get("input.pconin%s.icontp" % (i)) >= 0:
sb.add_var("input.pconin%s.icontp" % (i))
#--------------------
# Aerodynamic data
#--------------------
# Aerodynamic data are placed in the input file if MYAERO > 0. If MYAERO=3,
# insert the aerodynamic data after namelist &RFHIN (below), otherwise insert
# them here.
if myaero > 0 and myaero != 3 and ianal == 3:
# aerodat contains the raw aero data
sb.add_group(self.input.aero_data.aerodat)
#-------------------
# Namelist &RFHIN
#-------------------
# Namelist &RFHIN is only required if MYAERO=3.
elif myaero == 3:
sb.add_group('RFHIN')
mmach = len(self.input.rfhin.tmach)
sb.add_comment(" ! Aerodynamic Data for Parabolic Drag Polars")
sb.add_newvar("mmach", mmach)
sb.add_container("input.rfhin")
# If MYAERO=3, insert the aerodynamic data here. Otherwise it may have already
# been inserted above.
# aerodat contains the raw aero data
sb.add_group(self.input.aero_data.aerodat)
#-------------------
# Namelist &ASCLIN
#-------------------
# Namelist &ASCLIN is only required if MYAERO=2.
if myaero == 2:
sb.add_group('ASCLIN')
sb.add_comment(" ! Scaling Data for Lift Independent Drag")
sb.add_var("input.asclin.sref")
sb.add_var("input.asclin.tref")
sb.add_var("input.asclin.awetn")
sb.add_var("input.asclin.eltot")
sb.add_var("input.asclin.voltot")
if len(self.input.asclin.awett) > 0:
sb.add_var("input.asclin.awett")
if len(self.input.asclin.awetw) > 0:
sb.add_var("input.asclin.awetw")
if len(self.input.asclin.elw) > 0:
sb.add_var("input.asclin.elw")
if len(self.input.asclin.volw) > 0:
sb.add_var("input.asclin.volw")
if len(self.input.asclin.form) > 0:
sb.add_var("input.asclin.form")
if len(self.input.asclin.eql) > 0:
sb.add_var("input.asclin.eql")
ncdwav = len(self.input.asclin.cdwav)
if ncdwav > 0:
sb.add_var("input.asclin.cdwav")
sb.add_var("input.asclin.dcdnac")
#-------------------
# Namelist &TOLIN
#-------------------
if itakof == 1 or iland == 1 or nopro == 1:
sb.add_group('TOLIN')
sb.add_var("input.tolin.Basic.apa")
sb.add_var("input.tolin.Basic.dtct")
if self.input.tolin.Basic.swref > 0:
sb.add_var("input.tolin.Basic.swref")
if self.input.tolin.Basic.arret > 0:
sb.add_var("input.tolin.Basic.arret")
sb.add_var("input.tolin.Basic.whgt")
sb.add_var("input.tolin.Basic.alprun")
sb.add_var("input.tolin.Basic.tinc")
sb.add_var("input.tolin.Basic.rollmu")
sb.add_var("input.tolin.Basic.brakmu")
sb.add_var("input.tolin.Basic.cdgear")
sb.add_var("input.tolin.Basic.cdeout")
sb.add_var("input.tolin.Basic.clspol")
sb.add_var("input.tolin.Basic.cdspol")
sb.add_var("input.tolin.Basic.incgef")
sb.add_var("input.tolin.Basic.argef")
sb.add_var("input.tolin.Basic.itime")
sb.add_comment("\n ! Thrust Reverser")
sb.add_var("input.tolin.Thrust_Reverser.inthrv")
sb.add_var("input.tolin.Thrust_Reverser.rvfact")
if len(self.input.tolin.Thrust_Reverser.velrv) > 0:
sb.add_var("input.tolin.Thrust_Reverser.velrv")
sb.add_var("input.tolin.Thrust_Reverser.thrrv")
sb.add_var("input.tolin.Thrust_Reverser.tirvrs")
sb.add_var("input.tolin.Thrust_Reverser.revcut")
sb.add_var("input.tolin.Thrust_Reverser.clrev")
sb.add_var("input.tolin.Thrust_Reverser.cdrev")
sb.add_comment("\n ! Integration Intervals (Default values will provide a precision of +/-.25 ft)")
sb.add_container("input.tolin.Integration_Intervals")
sb.add_comment("\n ! Takeoff Data")
if self.input.tolin.Takeoff.cltom > 0:
sb.add_var("input.tolin.Takeoff.cltom")
sb.add_var("input.tolin.Takeoff.cdmto")
sb.add_var("input.tolin.Takeoff.fcdmto")
sb.add_var("input.tolin.Takeoff.almxto")
if self.input.tolin.Takeoff.obsto > 0:
sb.add_var("input.tolin.Takeoff.obsto")
sb.add_var("input.tolin.Takeoff.alpto")
sb.add_var("input.tolin.Takeoff.clto")
sb.add_var("input.tolin.Takeoff.cdto")
sb.add_var("input.tolin.Takeoff.inthto")
if len(self.input.tolin.Takeoff.velto) > 0:
sb.add_var("input.tolin.Takeoff.velto")
sb.add_var("input.tolin.Takeoff.thrto")
if self.input.tolin.Takeoff.alprot > -99:
sb.add_var("input.tolin.Takeoff.alprot")
sb.add_var("input.tolin.Takeoff.vrotat")
sb.add_var("input.tolin.Takeoff.vangl")
sb.add_var("input.tolin.Takeoff.thfact")
sb.add_var("input.tolin.Takeoff.ftocl")
sb.add_var("input.tolin.Takeoff.ftocd")
sb.add_var("input.tolin.Takeoff.igobs")
sb.add_var("input.tolin.Takeoff.tdelg")
sb.add_var("input.tolin.Takeoff.tigear")
sb.add_var("input.tolin.Takeoff.ibal")
sb.add_var("input.tolin.Takeoff.itxout")
sb.add_comment("\n ! Aborted Takeoff Data")
sb.add_var("input.tolin.Takeoff.pilott")
sb.add_var("input.tolin.Takeoff.tispa")
sb.add_var("input.tolin.Takeoff.tibra")
sb.add_var("input.tolin.Takeoff.tirva")
sb.add_var("input.tolin.Takeoff.ispol")
sb.add_var("input.tolin.Takeoff.irev")
sb.add_comment("\n ! Landing Data")
if self.input.tolin.Landing.clldm > 0:
sb.add_var("input.tolin.Landing.clldm")
sb.add_var("input.tolin.Landing.cdmld")
if self.input.tolin.Landing.fcdmld > 0:
sb.add_var("input.tolin.Landing.fcdmld")
sb.add_var("input.tolin.Landing.almxld")
sb.add_var("input.tolin.Landing.obsld")
sb.add_var("input.tolin.Landing.alpld")
sb.add_var("input.tolin.Landing.clld")
sb.add_var("input.tolin.Landing.cdld")
sb.add_var("input.tolin.Landing.inthld")
if len(self.input.tolin.Landing.velld) > 0:
sb.add_var("input.tolin.Landing.velld")
sb.add_var("input.tolin.Landing.thrld")
sb.add_var("input.tolin.Landing.thrld")
if self.input.tolin.Landing.thdry > 0:
sb.add_var("input.tolin.Landing.thdry")
sb.add_var("input.tolin.Landing.aprhgt")
sb.add_var("input.tolin.Landing.aprang")
sb.add_var("input.tolin.Landing.fldcl")
sb.add_var("input.tolin.Landing.fldcd")
sb.add_var("input.tolin.Landing.tdsink")
if self.input.tolin.Landing.vangld > 0:
sb.add_var("input.tolin.Landing.vangld")
sb.add_var("input.tolin.Landing.noflar")
sb.add_var("input.tolin.Landing.tispol")
sb.add_var("input.tolin.Landing.ticut")
sb.add_var("input.tolin.Landing.tibrak")
sb.add_var("input.tolin.Landing.acclim")
if self.input.tolin.Landing.magrup > 0:
sb.add_var("input.tolin.Landing.magrup")
#-------------------
# Namelist &PROIN
#-------------------
# Namelist &PROIN is only required if NOPRO=1.
if nopro > 0:
npol = len(self.input.proin.dflap)
sb.add_group('PROIN')
sb.add_var("input.proin.npol")
if npol > 0:
sb.add_var("input.proin.alpro")
sb.add_var("input.proin.clpro")
sb.add_var("input.proin.cdpro")
sb.add_var("input.proin.dflap")
sb.add_var("input.proin.ntime")
sb.add_var("input.proin.ipcmax")
sb.add_var("input.proin.txf")
sb.add_var("input.proin.alpmin")
sb.add_var("input.proin.gamlim")
inm = self.input.proin.inm
if inm == 1:
sb.add_var("input.proin.inm")
sb.add_var("input.proin.iatr")
sb.add_var("input.proin.fzf")
sb.add_var("input.proin.thclmb")
sb.add_var("input.proin.flapid")
#-------------------
# Namelist &SEGIN
#-------------------
# One or more &SEGIN namelists may have been created by the user.
#nseg = self.nseg
if nopro > 0 and self.nseg0 > 0:
for i in range(0, self.nseg0):
key = self.get("input.segin%s.key" % (i))
nflap = self.get("input.segin%s.nflap" % (i))
ifix = self.get("input.segin%s.ifix" % (i))
engscl = self.get("input.segin%s.engscl" % (i))
afix = self.get("input.segin%s.afix" % (i))
gfix = self.get("input.segin%s.gfix" % (i))
vfix = self.get("input.segin%s.vfix" % (i))
hstop = self.get("input.segin%s.hstop" % (i))
dstop = self.get("input.segin%s.dstop" % (i))
tstop = self.get("input.segin%s.tstop" % (i))
vstop = self.get("input.segin%s.vstop" % (i))
hmin = self.get("input.segin%s.hmin" % (i))
sprate = self.get("input.segin%s.sprate" % (i))
iplr = self.get("input.segin%s.iplr" % (i))
delt = self.get("input.segin%s.delt" % (i))
grdaeo = self.get("input.segin%s.grdaeo" % (i))
grdoeo = self.get("input.segin%s.grdoeo" % (i))
sb.add_group('SEGIN')
sb.add_newvar("key", key)
if nflap > 0:
sb.add_newvar("nflap", nflap)
if ifix > 0:
sb.add_newvar("ifix", ifix)
if engscl >= 0.:
sb.add_newvar("engscl", engscl)
if afix > -10.:
sb.add_newvar("afix", afix)
if gfix > -10.:
sb.add_newvar("gfix", gfix)
if vfix > 0.:
sb.add_newvar("vfix", vfix)
if hstop > 0.:
sb.add_newvar("hstop", hstop)
if dstop > 0.:
sb.add_newvar("dstop", dstop)
if tstop > 0.:
sb.add_newvar("tstop", tstop)
if vstop > 0.:
sb.add_newvar("vstop", vstop)
if hmin > 0.:
sb.add_newvar("hmin", hmin)
if sprate >= 0.:
sb.add_newvar("sprate", sprate)
if iplr >= 0.:
sb.add_newvar("iplr", iplr)
if delt > 0.:
sb.add_newvar("delt", delt)
if grdaeo > -1.:
sb.add_newvar("grdaeo", grdaeo)
if grdoeo > -1.:
sb.add_newvar("grdoeo", grdoeo)
#-------------------
# Namelist &NOISIN
#-------------------
# Namelist &NOISIN is only required if NOISIN=1.
if noise == 1:
sb.add_group('NOISIN')
sb.add_comment("\n ! Data for Noise Calculations\n ! Noise regulation control")
sb.add_var("input.noisin.Basic.iepn")
sb.add_var("input.noisin.Basic.depnt")
sb.add_var("input.noisin.Basic.depns")
sb.add_var("input.noisin.Basic.depnl")
sb.add_var("input.noisin.Basic.itrade")
sb.add_comment("\n ! Noise sources to be included")
ijet = self.input.noisin.Basic.ijet
ifan = self.input.noisin.Basic.ifan
icore = self.input.noisin.Basic.icore
iturb = self.input.noisin.Basic.iturb
iprop = self.input.noisin.Basic.iprop
iflap = self.input.noisin.Basic.iflap
iairf = self.input.noisin.Basic.iairf
igear = self.input.noisin.Basic.igear
ishld = self.input.noisin.Propagation.ishld
ignd = self.input.noisin.Propagation.ignd
if ijet > 0:
sb.add_newvar("ijet", ijet)
if ifan > 0:
sb.add_newvar("ifan", ifan)
if icore > 0:
sb.add_newvar("icore", icore)
if iturb > 0:
sb.add_newvar("iturb", iturb)
if iprop > 0:
sb.add_newvar("iprop", iprop)
if iflap > 0:
sb.add_newvar("iflap", iflap)
if iairf > 0:
sb.add_newvar("iairf", iairf)
if igear > 0:
sb.add_newvar("igear", igear)
sb.add_comment("\n ! Noise Propagation Corrections")
sb.add_var("input.noisin.Propagation.isupp")
sb.add_var("input.noisin.Propagation.idop")
sb.add_newvar("ignd", ignd)
sb.add_var("input.noisin.Propagation.iatm")
sb.add_var("input.noisin.Propagation.iega")
sb.add_newvar("ishld", ishld)
sb.add_var("input.noisin.Propagation.deldb")
sb.add_var("input.noisin.Propagation.heng")
sb.add_var("input.noisin.Propagation.filbw")
sb.add_var("input.noisin.Propagation.tdi")
sb.add_var("input.noisin.Propagation.rh")
sb.add_comment("\n ! Observer Locations")
nob = len(self.input.noisin.Observers.xo)
if nob > 0:
sb.add_newvar("nob", nob)
sb.add_var("input.noisin.Observers.xo")
sb.add_var("input.noisin.Observers.yo")
sb.add_var("input.noisin.Observers.zo")
sb.add_var("input.noisin.Observers.ndprt")
sb.add_var("input.noisin.Observers.ifoot")
sb.add_var("input.noisin.Observers.igeom")
if self.input.noisin.Observers.thrn > 0:
sb.add_var("input.noisin.Observers.thrn")
sb.add_var("input.noisin.Observers.icorr")
sb.add_var("input.noisin.Observers.tcorxp")
nparam = len(self.input.noisin.Engine_Parameters.aepp)
if nparam > 0:
sb.add_comment("\n ! Engine Noise Parameters")
sb.add_newvar("nparam", nparam)
sb.add_container("input.noisin.Engine_Parameters")
if ijet != 0:
sb.add_comment("\n ! Jet Noise Input Data")
sb.add_var("input.noisin.Jet.inoz")
sb.add_var("input.noisin.Jet.iplug")
sb.add_var("input.noisin.Jet.islot")
sb.add_var("input.noisin.Jet.iaz")
sb.add_var("input.noisin.Jet.dbaz")
sb.add_var("input.noisin.Jet.ejdop")
sb.add_var("input.noisin.Jet.zmdc")
sb.add_var("input.noisin.Jet.gammac")
sb.add_var("input.noisin.Jet.gasrc")
sb.add_var("input.noisin.Jet.annht")
sb.add_var("input.noisin.Jet.zmdf")
sb.add_var("input.noisin.Jet.gammap")
sb.add_var("input.noisin.Jet.gasrf")
sb.add_var("input.noisin.Jet.annhtf")
if self.input.noisin.Jet.dhc > 0:
sb.add_var("input.noisin.Jet.dhc")
sb.add_var("input.noisin.Jet.dhf")
sb.add_var("input.noisin.Jet.zl2")
sb.add_var("input.noisin.Jet.ifwd")
sb.add_var("input.noisin.Jet.ishock")
sb.add_var("input.noisin.Jet.zjsupp")
if ijet == 5:
sb.add_comment("\n ! Jet Noise Input Data for MSjet")
sb.add_container("input.noisin.MSJet")
if ifan > 0:
sb.add_comment("\n ! Fan Noise Data")
sb.add_var("input.noisin.Fan.igv")
sb.add_var("input.noisin.Fan.ifd")
sb.add_var("input.noisin.Fan.iexh")
sb.add_var("input.noisin.Fan.nfh")
if self.input.noisin.Fan.nstg > 0:
sb.add_var("input.noisin.Fan.nstg")
sb.add_var("input.noisin.Fan.suppin")
sb.add_var("input.noisin.Fan.suppex")
sb.add_var("input.noisin.Fan.methtip")
sb.add_var("input.noisin.Fan.icomb")
sb.add_var("input.noisin.Fan.decmpt")
sb.add_var("input.noisin.Fan.gammaf")
if self.input.noisin.Fan.nbl > 0:
sb.add_var("input.noisin.Fan.nbl")
if self.input.noisin.Fan.nvan > 0:
sb.add_var("input.noisin.Fan.nvan")
if self.input.noisin.Fan.fandia > 0:
sb.add_var("input.noisin.Fan.fandia")
if self.input.noisin.Fan.fanhub > 0:
sb.add_var("input.noisin.Fan.fanhub")
if self.input.noisin.Fan.tipmd > 0:
sb.add_var("input.noisin.Fan.tipmd")
sb.add_var("input.noisin.Fan.rss")
sb.add_var("input.noisin.Fan.efdop")
sb.add_var("input.noisin.Fan.faneff")
if self.input.noisin.Fan.nbl2 > 0:
sb.add_var("input.noisin.Fan.nbl2")
if self.input.noisin.Fan.nvan2 > 0:
sb.add_var("input.noisin.Fan.nvan2")
if self.input.noisin.Fan.fand2 > 0:
sb.add_var("input.noisin.Fan.fand2")
if self.input.noisin.Fan.tipmd2 > 0:
sb.add_var("input.noisin.Fan.tipmd2")
sb.add_var("input.noisin.Fan.rss2")
sb.add_var("input.noisin.Fan.efdop2")
sb.add_var("input.noisin.Fan.fanef2")
if self.input.noisin.Fan.trat > 0:
sb.add_var("input.noisin.Fan.trat")
if igenen not in [1, -2] and self.input.noisin.Fan.prat > 0:
sb.add_var("input.noisin.Fan.prat")
if icore > 0:
sb.add_comment("\n ! Core Noise Data")
sb.add_var("input.noisin.Core.csupp")
sb.add_var("input.noisin.Core.gamma")
sb.add_var("input.noisin.Core.imod")
if self.input.noisin.Core.dtemd > 0:
sb.add_var("input.noisin.Core.dtemd")
sb.add_var("input.noisin.Core.ecdop")
if iturb > 0:
sb.add_comment("\n ! Core Noise Data")
sb.add_var("input.noisin.Turbine.tsupp")
if self.input.noisin.Turbine.tbndia > 0:
sb.add_var("input.noisin.Turbine.tbndia")
sb.add_var("input.noisin.Turbine.gear")
sb.add_var("input.noisin.Turbine.cs")
if self.input.noisin.Turbine.nblr > 0:
sb.add_var("input.noisin.Turbine.nblr")
sb.add_var("input.noisin.Turbine.ityptb")
sb.add_var("input.noisin.Turbine.etdop")
if iprop > 0:
sb.add_comment("\n ! Propeller Noise Data")
sb.add_container("input.noisin.Propeller")
if ishld > 0:
sb.add_comment("\n ! Shielding Effects Data")
sb.add_container("input.noisin.Shielding")
if iflap > 0:
sb.add_comment("\n ! Flap Noise Data")
sb.add_container("input.noisin.Flap_Noise")
if iairf > 0:
sb.add_comment("\n ! Flap Noise Data")
sb.add_container("input.noisin.Airframe")
if ignd > 0:
sb.add_comment("\n ! Ground Reflection Effects Data")
sb.add_var("input.noisin.Ground_Effects.itone")
nht = len(self.input.noisin.Ground_Effects.dk)
if nht > 0:
sb.add_newvar("nht", nht)
sb.add_var("input.noisin.Ground_Effects.dk")
#-------------------
# Namelist &SYNTIN
#-------------------
# Namelist &SYNTIN is only required if IOPT=3.
if iopt == 3:
sb.add_group('SYNTIN')
if self.input.syntin.Variables.desrng > 0:
sb.add_var("input.syntin.Variables.desrng")
if self.input.syntin.Variables.vappr > 0:
sb.add_var("input.syntin.Variables.vappr")
if self.input.syntin.Variables.flto > 0:
sb.add_var("input.syntin.Variables.flto")
if self.input.syntin.Variables.flldg > 0:
sb.add_var("input.syntin.Variables.flldg")
sb.add_var("input.syntin.Variables.exfcap")
if igenen == 1:
if self.input.syntin.Variables.cdtmax > 0:
sb.add_var("input.syntin.Variables.cdtmax")
if self.input.syntin.Variables.cdpmax > 0:
sb.add_var("input.syntin.Variables.cdpmax")
if self.input.syntin.Variables.vjmax > 0:
sb.add_var("input.syntin.Variables.vjmax")
if self.input.syntin.Variables.stmin > 0:
sb.add_var("input.syntin.Variables.stmin")
if self.input.syntin.Variables.armax > 0:
sb.add_var("input.syntin.Variables.armax")
sb.add_var("input.syntin.Variables.gnox")
sb.add_var("input.syntin.Variables.roclim")
sb.add_var("input.syntin.Variables.dhdtlm")
sb.add_var("input.syntin.Variables.tmglim")
sb.add_var("input.syntin.Variables.ig")
sb.add_var("input.syntin.Variables.ibfgs")
sb.add_var("input.syntin.Variables.itfine")
sb.add_comment("\n ! Optimization Control")
sb.add_var("input.syntin.Optimization_Control.ndd")
sb.add_var("input.syntin.Optimization_Control.rk")
sb.add_var("input.syntin.Optimization_Control.fdd")
if self.input.syntin.Optimization_Control.nlin > 0:
sb.add_var("input.syntin.Optimization_Control.nlin")
sb.add_var("input.syntin.Optimization_Control.nstep")
sb.add_var("input.syntin.Optimization_Control.ef")
sb.add_var("input.syntin.Optimization_Control.eps")
sb.add_var("input.syntin.Optimization_Control.amult")
sb.add_var("input.syntin.Optimization_Control.dep")
sb.add_var("input.syntin.Optimization_Control.accux")
sb.add_var("input.syntin.Optimization_Control.glm")
if len(self.input.syntin.Optimization_Control.gfact) > 0:
sb.add_var("input.syntin.Optimization_Control.gfact")
sb.add_var("input.syntin.Optimization_Control.autscl")
sb.add_var("input.syntin.Optimization_Control.icent")
sb.add_var("input.syntin.Optimization_Control.rhomin")
sb.add_var("input.syntin.Optimization_Control.rhomax")
sb.add_var("input.syntin.Optimization_Control.rhodel")
sb.add_var("input.syntin.Optimization_Control.itmax")
sb.add_var("input.syntin.Optimization_Control.jprnt")
sb.add_var("input.syntin.Optimization_Control.rdfun")
sb.add_var("input.syntin.Optimization_Control.adfun")
#-------------------
# Namelist &RERUN
#-------------------
# One or more &RERUN namelists may have been created by the user.
#nrerun = self.nrerun
if self.nrern0 > 0:
for i in range(0, self.nrern0):
sb.add_group('RERUN')
re_desrng = self.get("input.rerun%s.desrng" % (i))
re_mywts = self.get("input.rerun%s.mywts" % (i))
re_rampwt = self.get("input.rerun%s.rampwt" % (i))
re_dowe = self.get("input.rerun%s.dowe" % (i))
re_paylod = self.get("input.rerun%s.paylod" % (i))
re_fuemax = self.get("input.rerun%s.fuemax" % (i))
re_itakof = self.get("input.rerun%s.itakof" % (i))
re_iland = self.get("input.rerun%s.iland" % (i))
re_nopro = self.get("input.rerun%s.nopro" % (i))
re_noise = self.get("input.rerun%s.noise" % (i))
re_icost = self.get("input.rerun%s.icost" % (i))
re_wsr = self.get("input.rerun%s.wsr" % (i))
re_twr = self.get("input.rerun%s.twr" % (i))
if re_desrng > 0.:
sb.add_var("input.rerun%s.desrng" % (i))
if re_mywts >= 0:
sb.add_var("input.rerun%s.mywts" % (i))
if re_rampwt >= 0.:
sb.add_var("input.rerun%s.rampwt" % (i))
if re_dowe > 0.:
sb.add_var("input.rerun%s.dowe" % (i))
if re_paylod > 0.:
sb.add_var("input.rerun%s.paylod" % (i))
if re_fuemax > 0.:
sb.add_var("input.rerun%s.fuemax" % (i))
if re_itakof == 0:
sb.add_var("input.rerun%s.itakof" % (i))
if re_iland == 0:
sb.add_var("input.rerun%s.iland" % (i))
if re_nopro == 0:
sb.add_var("input.rerun%s.nopro" % (i))
if re_noise == 0:
sb.add_var("input.rerun%s.noise" % (i))
if re_icost == 0:
sb.add_var("input.rerun%s.icost" % (i))
if re_wsr == 0.:
sb.add_var("input.rerun%s.wsr" % (i))
if re_twr == 0.:
sb.add_var("input.rerun%s.twr" % (i))
re_indr = self.get("input.rerun%s.missin.Basic.indr" % (i))
re_fact = self.get("input.rerun%s.missin.Basic.fact" % (i))
re_fleak = self.get("input.rerun%s.missin.Basic.fleak" % (i))
re_fcdo = self.get("input.rerun%s.missin.Basic.fcdo" % (i))
re_fcdi = self.get("input.rerun%s.missin.Basic.fcdi" % (i))
re_fcdsub = self.get("input.rerun%s.missin.Basic.fcdsub" % (i))
re_fcdsup = self.get("input.rerun%s.missin.Basic.fcdsup" % (i))
re_iskal = self.get("input.rerun%s.missin.Basic.iskal" % (i))
re_owfact = self.get("input.rerun%s.missin.Basic.owfact" % (i))
re_iflag = self.get("input.rerun%s.missin.Basic.iflag" % (i))
re_msumpt = self.get("input.rerun%s.missin.Basic.msumpt" % (i))
re_dtc = self.get("input.rerun%s.missin.Basic.dtc" % (i))
re_irw = self.get("input.rerun%s.missin.Basic.irw" % (i))
re_rtol = self.get("input.rerun%s.missin.Basic.rtol" % (i))
re_nhold = self.get("input.rerun%s.missin.Basic.nhold" % (i))
re_iata = self.get("input.rerun%s.missin.Basic.iata" % (i))
re_tlwind = self.get("input.rerun%s.missin.Basic.tlwind" % (i))
sb.add_group('MISSIN')
if re_indr != -999:
sb.add_var("input.rerun%s.missin.Basic.indr" % (i))
if re_fact != -999.:
sb.add_var("input.rerun%s.missin.Basic.fact" % (i))
if re_fleak != -999.:
sb.add_var("input.rerun%s.missin.Basic.fleak" % (i))
if re_fcdo != -999.:
sb.add_var("input.rerun%s.missin.Basic.fcdo" % (i))
if re_fcdi != -999.:
sb.add_var("input.rerun%s.missin.Basic.fcdi" % (i))
if re_fcdsub != -999.:
sb.add_var("input.rerun%s.missin.Basic.fcdsub" % (i))
if re_fcdsup != -999.:
sb.add_var("input.rerun%s.missin.Basic.fcdsup" % (i))
if re_iskal != -999:
sb.add_var("input.rerun%s.missin.Basic.iskal" % (i))
if re_owfact != -999.:
sb.add_var("input.rerun%s.missin.Basic.owfact" % (i))
if re_iflag != -999:
sb.add_var("input.rerun%s.missin.Basic.iflag" % (i))
if re_msumpt != -999:
sb.add_var("input.rerun%s.missin.Basic.msumpt" % (i))
if re_dtc != -999.:
sb.add_var("input.rerun%s.missin.Basic.dtc" % (i))
if re_irw != -999:
sb.add_var("input.rerun%s.missin.Basic.irw" % (i))
if re_rtol != -999.:
sb.add_var("input.rerun%s.missin.Basic.rtol" % (i))
if re_nhold != -999:
sb.add_var("input.rerun%s.missin.Basic.nhold" % (i))
if re_iata != -999:
sb.add_var("input.rerun%s.missin.Basic.iata" % (i))
if re_tlwind != -999.:
sb.add_var("input.rerun%s.missin.Basic.tlwind" % (i))
re_dwt = self.get("input.rerun%s.missin.Basic.dwt" % (i))
re_offdr = self.get("input.rerun%s.missin.Basic.offdr" % (i))
re_idoq = self.get("input.rerun%s.missin.Basic.idoq" % (i))
re_nsout = self.get("input.rerun%s.missin.Basic.nsout" % (i))
re_nsadj = self.get("input.rerun%s.missin.Basic.nsadj" % (i))
re_mirror = self.get("input.rerun%s.missin.Basic.mirror" % (i))
re_stma = self.get("input.rerun%s.missin.Store_Drag.stma" % (i))
re_cdst = self.get("input.rerun%s.missin.Store_Drag.cdst" % (i))
re_istcl = self.get("input.rerun%s.missin.Store_Drag.istcl" % (i))
re_istcr = self.get("input.rerun%s.missin.Store_Drag.istcr" % (i))
re_istde = self.get("input.rerun%s.missin.Store_Drag.istde" % (i))
re_mywts = self.get("input.rerun%s.missin.User_Weights.mywts" % (i))
re_rampwt = self.get("input.rerun%s.missin.User_Weights.rampwt" % (i))
re_dowe = self.get("input.rerun%s.missin.User_Weights.dowe" % (i))
re_paylod = self.get("input.rerun%s.missin.User_Weights.paylod" % (i))
re_fuemax = self.get("input.rerun%s.missin.User_Weights.fuemax" % (i))
re_takotm = self.get("input.rerun%s.missin.Ground_Operations.takotm" % (i))
re_taxotm = self.get("input.rerun%s.missin.Ground_Operations.taxotm" % (i))
re_apprtm = self.get("input.rerun%s.missin.Ground_Operations.apprtm" % (i))
re_appfff = self.get("input.rerun%s.missin.Ground_Operations.appfff" % (i))
re_taxitm = self.get("input.rerun%s.missin.Ground_Operations.taxitm" % (i))
re_ittff = self.get("input.rerun%s.missin.Ground_Operations.ittff" % (i))
re_takoff = self.get("input.rerun%s.missin.Ground_Operations.takoff" % (i))
re_txfufl = self.get("input.rerun%s.missin.Ground_Operations.txfufl" % (i))
re_ftkofl = self.get("input.rerun%s.missin.Ground_Operations.ftkofl" % (i))
re_ftxofl = self.get("input.rerun%s.missin.Ground_Operations.ftxofl" % (i))
re_ftxifl = self.get("input.rerun%s.missin.Ground_Operations.ftxifl" % (i))
re_faprfl = self.get("input.rerun%s.missin.Ground_Operations.faprfl" % (i))
re_xnz = self.get("input.rerun%s.missin.Turn_Segments.xnz" % (i))
re_xcl = self.get("input.rerun%s.missin.Turn_Segments.xcl" % (i))
re_xmach = self.get("input.rerun%s.missin.Turn_Segments.xmach" % (i))
re_nclimb = self.get("input.rerun%s.missin.Climb.nclimb" % (i))
re_clmmin = self.get("input.rerun%s.missin.Climb.clmmin" % (i))
re_clmmax = self.get("input.rerun%s.missin.Climb.clmmax" % (i))
re_clamin = self.get("input.rerun%s.missin.Climb.clamin" % (i))
re_clamax = self.get("input.rerun%s.missin.Climb.clamax" % (i))
re_nincl = self.get("input.rerun%s.missin.Climb.nincl" % (i))
re_fwf = self.get("input.rerun%s.missin.Climb.fwf" % (i))
re_ncrcl = self.get("input.rerun%s.missin.Climb.ncrcl" % (i))
re_cldcd = self.get("input.rerun%s.missin.Climb.cldcd" % (i))
re_ippcl = self.get("input.rerun%s.missin.Climb.ippcl" % (i))
re_maxcl = self.get("input.rerun%s.missin.Climb.maxcl" % (i))
re_no = self.get("input.rerun%s.missin.Climb.no" % (i))
re_keasvc = self.get("input.rerun%s.missin.Climb.keasvc" % (i))
re_actab = self.get("input.rerun%s.missin.Climb.actab" % (i))
re_vctab = self.get("input.rerun%s.missin.Climb.vctab" % (i))
re_ifaacl = self.get("input.rerun%s.missin.Climb.ifaacl" % (i))
re_ifaade = self.get("input.rerun%s.missin.Climb.ifaade" % (i))
re_nodive = self.get("input.rerun%s.missin.Climb.nodive" % (i))
re_divlim = self.get("input.rerun%s.missin.Climb.divlim" % (i))
re_qlim = self.get("input.rerun%s.missin.Climb.qlim" % (i))
re_spdlim = self.get("input.rerun%s.missin.Climb.spdlim" % (i))
re_qlalt = self.get("input.rerun%s.missin.Climb.qlalt" % (i))
re_vqlm = self.get("input.rerun%s.missin.Climb.vqlm" % (i))
re_ioc = self.get("input.rerun%s.missin.Cruise.ioc" % (i))
re_crmach = self.get("input.rerun%s.missin.Cruise.crmach" % (i))
re_cralt = self.get("input.rerun%s.missin.Cruise.cralt" % (i))
re_crdcd = self.get("input.rerun%s.missin.Cruise.crdcd" % (i))
re_flrcr = self.get("input.rerun%s.missin.Cruise.flrcr" % (i))
re_crmmin = self.get("input.rerun%s.missin.Cruise.crmmin" % (i))
re_crclmx = self.get("input.rerun%s.missin.Cruise.crclmx" % (i))
re_hpmin = self.get("input.rerun%s.missin.Cruise.hpmin" % (i))
re_ffuel = self.get("input.rerun%s.missin.Cruise.ffuel" % (i))
re_fnox = self.get("input.rerun%s.missin.Cruise.fnox" % (i))
re_ifeath = self.get("input.rerun%s.missin.Cruise.ifeath" % (i))
re_feathf = self.get("input.rerun%s.missin.Cruise.feathf" % (i))
re_cdfeth = self.get("input.rerun%s.missin.Cruise.cdfeth" % (i))
re_dcwt = self.get("input.rerun%s.missin.Cruise.dcwt" % (i))
re_rcin = self.get("input.rerun%s.missin.Cruise.rcin" % (i))
re_wtbm = self.get("input.rerun%s.missin.Cruise.wtbm" % (i))
re_altbm = self.get("input.rerun%s.missin.Cruise.altbm" % (i))
re_ivs = self.get("input.rerun%s.missin.Descent.ivs" % (i))
re_decl = self.get("input.rerun%s.missin.Descent.decl" % (i))
re_demmin = self.get("input.rerun%s.missin.Descent.demmin" % (i))
re_demmax = self.get("input.rerun%s.missin.Descent.demmax" % (i))
re_deamin = self.get("input.rerun%s.missin.Descent.deamin" % (i))
re_deamax = self.get("input.rerun%s.missin.Descent.deamax" % (i))
re_ninde = self.get("input.rerun%s.missin.Descent.ninde" % (i))
re_dedcd = self.get("input.rerun%s.missin.Descent.dedcd" % (i))
re_rdlim = self.get("input.rerun%s.missin.Descent.rdlim" % (i))
re_ns = self.get("input.rerun%s.missin.Descent.ns" % (i))
re_irs = self.get("input.rerun%s.missin.Reserve.irs" % (i))
re_resrfu = self.get("input.rerun%s.missin.Reserve.resrfu" % (i))
re_restrp = self.get("input.rerun%s.missin.Reserve.restrp" % (i))
re_timmap = self.get("input.rerun%s.missin.Reserve.timmap" % (i))
re_altran = self.get("input.rerun%s.missin.Reserve.altran" % (i))
re_nclres = self.get("input.rerun%s.missin.Reserve.nclres" % (i))
re_ncrres = self.get("input.rerun%s.missin.Reserve.ncrres" % (i))
re_sremch = self.get("input.rerun%s.missin.Reserve.sremch" % (i))
re_eremch = self.get("input.rerun%s.missin.Reserve.eremch" % (i))
re_srealt = self.get("input.rerun%s.missin.Reserve.srealt" % (i))
re_erealt = self.get("input.rerun%s.missin.Reserve.erealt" % (i))
re_holdtm = self.get("input.rerun%s.missin.Reserve.holdtm" % (i))
re_ncrhol = self.get("input.rerun%s.missin.Reserve.ncrhol" % (i))
re_ihopos = self.get("input.rerun%s.missin.Reserve.ihopos" % (i))
re_icron = self.get("input.rerun%s.missin.Reserve.icron" % (i))
re_thold = self.get("input.rerun%s.missin.Reserve.thold" % (i))
re_ncrth = self.get("input.rerun%s.missin.Reserve.ncrth" % (i))
if re_dwt != -999.:
sb.add_var("input.rerun%s.missin.Basic.dwt" % (i))
if len(re_offdr) > 0:
sb.add_var("input.rerun%s.missin.Basic.offdr" % (i))
if re_idoq != -999:
sb.add_var("input.rerun%s.missin.Basic.idoq" % (i))
if re_nsout != -999:
sb.add_var("input.rerun%s.missin.Basic.nsout" % (i))
if re_nsadj != -999:
sb.add_var("input.rerun%s.missin.Basic.nsadj" % (i))
if re_mirror != -999:
sb.add_var("input.rerun%s.missin.Basic.mirror" % (i))
if len(re_stma) > 0:
sb.add_var("input.rerun%s.missin.Store_Drag.stma" % (i))
if len(re_cdst) > 0:
sb.add_var("input.rerun%s.missin.Store_Drag.cdst" % (i))
if len(re_istcl) > 0:
sb.add_var("input.rerun%s.missin.Store_Drag.istcl" % (i))
if len(re_istcr) > 0:
sb.add_var("input.rerun%s.missin.Store_Drag.istcr" % (i))
if re_istde != -999:
sb.add_var("input.rerun%s.missin.Store_Drag.istde" % (i))
if re_mywts != -999:
sb.add_var("input.rerun%s.missin.User_Weights.mywts" % (i))
if re_rampwt != -999.:
sb.add_var("input.rerun%s.missin.User_Weights.rampwt" % (i))
if re_dowe != -999.:
sb.add_var("input.rerun%s.missin.User_Weights.dowe" % (i))
if re_paylod != -999.:
sb.add_var("input.rerun%s.missin.User_Weights.paylod" % (i))
if re_fuemax != -999.:
sb.add_var("input.rerun%s.missin.User_Weights.fuemax" % (i))
if re_takotm != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.takotm" % (i))
if re_taxotm != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.taxotm" % (i))
if re_apprtm != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.apprtm" % (i))
if re_appfff != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.appfff" % (i))
if re_taxitm != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.taxitm" % (i))
if re_ittff != -999:
sb.add_var("input.rerun%s.missin.Ground_Operations.ittff" % (i))
if re_takoff != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.takoff" % (i))
if re_txfufl != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.txfufl" % (i))
if re_ftkofl != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.ftkofl" % (i))
if re_ftxofl != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.ftxofl" % (i))
if re_ftxifl != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.ftxifl" % (i))
if re_faprfl != -999.:
sb.add_var("input.rerun%s.missin.Ground_Operations.faprfl" % (i))
if len(re_xnz) > 0:
sb.add_var("input.rerun%s.missin.Turn_Segments.xnz" % (i))
if len(re_xcl) > 0:
sb.add_var("input.rerun%s.missin.Turn_Segments.xcl" % (i))
if len(re_xmach) > 0:
sb.add_var("input.rerun%s.missin.Turn_Segments.xmach" % (i))
if re_nclimb > 0:
sb.add_var("input.rerun%s.missin.Climb.nclimb" % (i))
if len(re_clmmin) > 0:
sb.add_var("input.rerun%s.missin.Climb.clmmin" % (i))
if len(re_clmmax) > 0:
sb.add_var("input.rerun%s.missin.Climb.clmmax" % (i))
if len(re_clamin) > 0:
sb.add_var("input.rerun%s.missin.Climb.clamin" % (i))
if len(re_clamax) > 0:
sb.add_var("input.rerun%s.missin.Climb.clamax" % (i))
if len(re_nincl) > 0:
sb.add_var("input.rerun%s.missin.Climb.nincl" % (i))
if len(re_fwf) > 0:
sb.add_var("input.rerun%s.missin.Climb.fwf" % (i))
if len(re_ncrcl) > 0:
sb.add_var("input.rerun%s.missin.Climb.ncrcl" % (i))
if len(re_cldcd) > 0:
sb.add_var("input.rerun%s.missin.Climb.cldcd" % (i))
if len(re_ippcl) > 0:
sb.add_var("input.rerun%s.missin.Climb.ippcl" % (i))
if len(re_maxcl) > 0:
sb.add_var("input.rerun%s.missin.Climb.maxcl" % (i))
if len(re_no) > 0:
sb.add_var("input.rerun%s.missin.Climb.no" % (i))
if re_keasvc != -999:
sb.add_var("input.rerun%s.missin.Climb.keasvc" % (i))
if len(re_actab) > 0:
sb.add_var2d("input.rerun%s.missin.Climb.actab" % (i))
if len(re_vctab) > 0:
sb.add_var2d("input.rerun%s.missin.Climb.vctab" % (i))
if re_ifaacl != -999:
sb.add_var("input.rerun%s.missin.Climb.ifaacl" % (i))
if re_ifaade != -999:
sb.add_var("input.rerun%s.missin.Climb.ifaade" % (i))
if re_nodive != -999:
sb.add_var("input.rerun%s.missin.Climb.nodive" % (i))
if re_divlim != -999.:
sb.add_var("input.rerun%s.missin.Climb.divlim" % (i))
if re_qlim != -999.:
sb.add_var("input.rerun%s.missin.Climb.qlim" % (i))
if re_spdlim != -999.:
sb.add_var("input.rerun%s.missin.Climb.spdlim" % (i))
if len(re_qlalt) > 0:
sb.add_var("input.rerun%s.missin.Climb.qlalt" % (i))
if len(re_vqlm) > 0:
sb.add_var("input.rerun%s.missin.Climb.vqlm" % (i))
if len(re_ioc) > 0:
sb.add_var("input.rerun%s.missin.Cruise.ioc" % (i))
if len(re_crmach) > 0:
sb.add_var("input.rerun%s.missin.Cruise.crmach" % (i))
if len(re_cralt) > 0:
sb.add_var("input.rerun%s.missin.Cruise.cralt" % (i))
if len(re_crdcd) > 0:
sb.add_var("input.rerun%s.missin.Cruise.crdcd" % (i))
if len(re_flrcr) > 0:
sb.add_var("input.rerun%s.missin.Cruise.flrcr" % (i))
if len(re_crmmin) > 0:
sb.add_var("input.rerun%s.missin.Cruise.crmmin" % (i))
if len(re_crclmx) > 0:
sb.add_var("input.rerun%s.missin.Cruise.crclmx" % (i))
if len(re_hpmin) > 0:
sb.add_var("input.rerun%s.missin.Cruise.hpmin" % (i))
if len(re_ffuel) > 0:
sb.add_var("input.rerun%s.missin.Cruise.ffuel" % (i))
if len(re_fnox) > 0:
sb.add_var("input.rerun%s.missin.Cruise.fnox" % (i))
if len(re_ifeath) > 0:
sb.add_var("input.rerun%s.missin.Cruise.ifeath" % (i))
if len(re_feathf) > 0:
sb.add_var("input.rerun%s.missin.Cruise.feathf" % (i))
if len(re_cdfeth) > 0:
sb.add_var("input.rerun%s.missin.Cruise.cdfeth" % (i))
if re_dcwt != -999.:
sb.add_var("input.rerun%s.missin.Cruise.dcwt" % (i))
if re_rcin != -999.:
sb.add_var("input.rerun%s.missin.Cruise.rcin" % (i))
if len(re_wtbm) > 0:
sb.add_var("input.rerun%s.missin.Cruise.wtbm" % (i))
if len(re_altbm) > 0:
sb.add_var("input.rerun%s.missin.Cruise.altbm" % (i))
if re_ivs != -999:
sb.add_var("input.rerun%s.missin.Descent.ivs" % (i))
if re_decl != -999.:
sb.add_var("input.rerun%s.missin.Descent.decl" % (i))
if re_demmin != -999.:
sb.add_var("input.rerun%s.missin.Descent.demmin" % (i))
if re_demmax != -999.:
sb.add_var("input.rerun%s.missin.Descent.demmax" % (i))
if re_deamin != -999.:
sb.add_var("input.rerun%s.missin.Descent.deamin" % (i))
if re_deamax != -999.:
sb.add_var("input.rerun%s.missin.Descent.deamax" % (i))
if re_ninde != -999:
sb.add_var("input.rerun%s.missin.Descent.ninde" % (i))
if re_dedcd != -999.:
sb.add_var("input.rerun%s.missin.Descent.dedcd" % (i))
if re_rdlim != -999.:
sb.add_var("input.rerun%s.missin.Descent.rdlim" % (i))
ns = len(self.get("input.rerun%s.missin.Descent.adtab" % (i)))
if ns > 0:
sb.add_comment("\n ! Input Descent Schedule\n")
sb.add_newvar('ns', ns)
sb.add_var("input.rerun%s.missin.Descent.keasvd" % (i))
sb.add_var("input.rerun%s.missin.Descent.adtab" % (i))
sb.add_var("input.rerun%s.missin.Descent.vdtab" % (i))
if re_irs != -999:
sb.add_var("input.rerun%s.missin.Reserve.irs" % (i))
if re_resrfu != -999.:
sb.add_var("input.rerun%s.missin.Reserve.resrfu" % (i))
if re_restrp != -999.:
sb.add_var("input.rerun%s.missin.Reserve.restrp" % (i))
if re_timmap != -999.:
sb.add_var("input.rerun%s.missin.Reserve.timmap" % (i))
if re_altran != -999.:
sb.add_var("input.rerun%s.missin.Reserve.altran" % (i))
if re_nclres != -999:
sb.add_var("input.rerun%s.missin.Reserve.nclres" % (i))
if re_ncrres != -999:
sb.add_var("input.rerun%s.missin.Reserve.ncrres" % (i))
if re_sremch != -999.:
sb.add_var("input.rerun%s.missin.Reserve.sremch" % (i))
if re_eremch != -999.:
sb.add_var("input.rerun%s.missin.Reserve.eremch" % (i))
if re_srealt != -999.:
sb.add_var("input.rerun%s.missin.Reserve.srealt" % (i))
if re_erealt != -999.:
sb.add_var("input.rerun%s.missin.Reserve.erealt" % (i))
if re_holdtm != -999.:
sb.add_var("input.rerun%s.missin.Reserve.holdtm" % (i))
if re_ncrhol != -999:
sb.add_var("input.rerun%s.missin.Reserve.ncrhol" % (i))
if re_ihopos != -999:
sb.add_var("input.rerun%s.missin.Reserve.ihopos" % (i))
if re_icron != -999:
sb.add_var("input.rerun%s.missin.Reserve.icron" % (i))
if re_thold != -999.:
sb.add_var("input.rerun%s.missin.Reserve.thold" % (i))
if re_ncrth != -999:
sb.add_var("input.rerun%s.missin.Reserve.ncrth" % (i))
sb.add_newvar("NPCON", self.npcons0[i])
# Insert the new mission definition.
#infile = self.get("input.rerun%s.mission" % (i)).open()
#mission = infile.read()
#infile.close()
#sb.add_comment(mission)
# Get the mission definition
mission = self.get("input.rerun%s.mission_definition" % i)
for seg in mission:
sb.add_group(seg)
# Insert the &PCONIN namelists
for j in range(0, self.npcons0[i]):
re_conalt = self.get("input.rerun%s.pconin%s.conalt" % (i, j))
re_conmch = self.get("input.rerun%s.pconin%s.conmch" % (i, j))
re_connz = self.get("input.rerun%s.pconin%s.connz" % (i, j))
re_conpc = self.get("input.rerun%s.pconin%s.conpc" % (i, j))
re_conlim = self.get("input.rerun%s.pconin%s.conlim" % (i, j))
re_conaux = self.get("input.rerun%s.pconin%s.conaux" % (i, j))
re_neo = self.get("input.rerun%s.pconin%s.neo" % (i, j))
re_icstdg = self.get("input.rerun%s.pconin%s.icstdg" % (i, j))
re_conwt = self.get("input.rerun%s.pconin%s.conwt" % (i, j))
re_iconsg = self.get("input.rerun%s.pconin%s.iconsg" % (i, j))
re_confm = self.get("input.rerun%s.pconin%s.confm" % (i, j))
re_conwta = self.get("input.rerun%s.pconin%s.conwta" % (i, j))
re_icontp = self.get("input.rerun%s.pconin%s.icontp" % (i, j))
sb.add_group('PCONIN')
if re_conalt >= 0.:
sb.add_newvar("CONALT", re_conalt)
if re_conmch >= 0.:
sb.add_newvar("CONMCH", re_conmch)
if re_connz >= 0.:
sb.add_newvar("CONNZ", re_connz)
if re_conpc > -10.:
sb.add_newvar("CONPC", re_conpc)
if re_conlim != -999.:
sb.add_newvar("CONLIM", re_conlim)
if re_conaux > -1.:
sb.add_newvar("CONAUX", re_conaux)
if re_neo >= 0:
sb.append("NEO", re_neo)
if re_icstdg >= 0:
sb.add_newvar("ICSTDG", re_icstdg)
if re_conwt >= 0.:
sb.add_newvar("CONWT", re_conwt)
if re_iconsg >= 0:
sb.add_newvar("ICONSG", re_iconsg)
if re_confm >= 0.:
sb.add_newvar("CONFM", re_confm)
if re_conwta != -999.:
sb.add_newvar("CONWTA", re_conwta)
if re_icontp >= 0:
sb.add_newvar("ICONTP", re_icontp)
# Generate the input file for FLOPS
sb.generate()
def parse_output(self):
"""Parses the FLOPS output file(s) and populates the component
outputs with the data.
"""
out = FileParser()
out.set_file(self.stdout)
# added error check Thu Nov 15 2007
ERROR = self.ERROR
HINT = self.HINT
# Check for namelist read error
# Throw new Exception for fatal errors
# Continue processing for FLOPS failures (may want to return error
# codes to optimizers sometime in the future)
out.set_delimiters(" ")
try:
out.mark_anchor("ERROR READING NAMELIST")
except RuntimeError:
pass
else:
ERROR = out.transfer_line(0)
raise RuntimeError('Error during FLOPS execution.\n %s' % ERROR)
out.reset_anchor()
try:
out.mark_anchor("ERROR READING AERODYNAMIC")
except RuntimeError:
pass
else:
ERROR = out.transfer_line(0)
raise RuntimeError('Error during FLOPS execution.\n %s' % ERROR)
out.reset_anchor()
try:
out.mark_anchor("* * * ENGINE DECK MISSING * * *")
except RuntimeError:
pass
else:
ERROR = out.transfer_line(0)
raise RuntimeError('Error during FLOPS execution.\n %s' % ERROR + \
'\n\nCheck links from "Engine" to "Flops". Make sure EIFILE' + \
'points to an existing file (default is "ENGDECK.txt" in UserDir.\n\n*****************')
out.reset_anchor()
try:
out.mark_anchor("* * * ONLY ONE ALTITUDE FOR MACH NUMBER")
except RuntimeError:
pass
else:
ERROR = out.transfer_line(0)
# TODO - Why does MC wrapper do this?
# commented out for now
#self.output.Performance.range = 0.
#self.output.Performance.rampwt = 0.
#self.output.Performance.fuel = 0.
raise RuntimeError('Error during FLOPS execution.\n %s' % ERROR)
out.reset_anchor()
try:
out.mark_anchor("* * * ILLEGAL DATA IN ENGINE DECK * * *")
except RuntimeError:
pass
else:
ERROR = out.transfer_line(0)
raise RuntimeError('Error during FLOPS execution.\n %s' % ERROR)
out.reset_anchor()
try:
#out.mark_anchor("ERROR READING MISSION DEFINITION DATA FROM UNIT")
# Loosened this up to find any read error; i've found others
out.mark_anchor("ERROR READING")
except RuntimeError:
pass
else:
ERROR = out.transfer_line(0)
raise RuntimeError('Error reading a file during FLOPS execution.\n %s' % ERROR)
out.reset_anchor()
try:
out.mark_anchor("ERROR IN SEGMENT INPUT DATA")
except RuntimeError:
pass
else:
ERROR = out.transfer_line(0)
raise RuntimeError('Error during FLOPS execution.\n %s' % ERROR)
# Modified this section Fri Mar 5 15:05:09 EST 2010
# there could be failures that recover during optimization
iopt = self.input.option.Program_Control.iopt
out.reset_anchor()
try:
if iopt != 3:
out.mark_anchor("TITLE, BEGIN OUTPUT OF RESULTS")
else:
out.mark_anchor("FINAL ANALYSIS")
except RuntimeError:
# Check invalid results
errorArray = [
"* * * ENGINE DECK MISSING * * *",
"NO WEIGHT AVAILABLE FOR FUEL",
"FAILURE FOR CLIMB SEGMENT",
"FAILURE FOR CRUISE CONDITION",
"FAILURE FOR DESCENT SEGMENT",
"ANALYSIS COULD NOT RECOVER",
"INITIAL DESIGN UNACCEPTABLE"
]
descArray = [
"Check links from \"Engine\" to \"Flops\". Make sure EIFILE points to an existing file (default is \"ENGDECK.txt\" in UserDir",
"Try increasing gross weight (confin.variables.GW1)",
"Try increasing thrust and/or wing area and see flops.man",
"Try increasing thrust and/or wing area and see flops.man",
"Check thrust at flight idle. May need to set IDLE to 1 and see flops.man",
"Try tweaking SYNTIN inputs to resolve this (AnalysisControl.syntin.control). Also check for other nonfatal failures like failed missed approach climb criterion.",
"Make sure any initial design variable are within the upper and lower bounds"
]
for i in range(0, len(errorArray)):
try:
out.reset_anchor()
out.mark_anchor(errorArray[i])
ERROR = out.transfer_line(0)
HINT = descArray[i]
self.output.Performance.range = 0.
self.output.Performance.rampwt = 0.
self.output.Performance.fuel = 0.
break
except RuntimeError:
ERROR = "None"
HINT = "n/a"
iopt = self.input.option.Program_Control.iopt
ianal = self.input.option.Program_Control.ianal
ifite = self.input.option.Program_Control.ifite
mywts = self.input.wtin.Basic.mywts
inrtia = self.input.wtin.Inertia.inrtia
msumpt = self.input.missin.Basic.msumpt
noffdr = len(self.input.missin.Basic.offdr)
out.reset_anchor()
if ifite == 3:
out.mark_anchor("PRESSURIZED CABIN DIMENSIONS FOR A")
self.output.Geometry.BWB.xlp = out.transfer_var(1, 5)
self.output.Geometry.BWB.xlw = out.transfer_var(2, 6)
self.output.Geometry.BWB.wf = out.transfer_var(3, 5)
self.output.Geometry.BWB.acabin = out.transfer_var(4, 4)
self.output.Geometry.BWB.nbaw = out.transfer_var(5, 5)
self.output.Geometry.BWB.bayw = out.transfer_var(6, 5)
self.output.Geometry.BWB.nlava = out.transfer_var(7, 5)
self.output.Geometry.BWB.ngally = out.transfer_var(8, 5)
self.output.Geometry.BWB.nclset = out.transfer_var(9, 5)
self.output.Geometry.BWB.xl = out.transfer_var(10, 5)
self.output.Geometry.BWB.df = out.transfer_var(11, 5)
out.reset_anchor()
out.mark_anchor("FUSELAGE DATA")
self.output.Geometry.xl = out.transfer_var(2, 4)
self.output.Geometry.wf = out.transfer_var(3, 4)
self.output.Geometry.df = out.transfer_var(4, 4)
self.output.Geometry.xlp = out.transfer_var(6, 5)
out.reset_anchor()
out.mark_anchor( "CREW AND PAYLOAD DATA" )
if ifite != 1:
self.output.Payload.npf = out.transfer_var(1, 5)
self.output.Payload.npb = out.transfer_var(2, 4)
self.output.Payload.npt = out.transfer_var(3, 4)
self.output.Payload.nstu = out.transfer_var(4, 3)
self.output.Payload.ngalc = out.transfer_var(5, 4)
self.output.Payload.wppass = out.transfer_var(7, 5)
self.output.Payload.bpp = out.transfer_var(8, 5)
self.output.Payload.cargow = out.transfer_var(9, 5)
self.output.Payload.cargof = out.transfer_var(10, 5)
else:
self.output.Payload.cargow = out.transfer_var(2, 6)
self.output.Payload.cargof = out.transfer_var(3, 6)
out.reset_anchor()
out.mark_anchor( "CARGO AND BAGGAGE CONTAIN." )
self.output.Payload.wcon = out.transfer_var(0, 6)
if mywts == 0:
out.reset_anchor()
out.mark_anchor( "CREW AND BAGGAGE-FLIGHT" )
self.output.Payload.nflcr = out.transfer_var(0, 4)
if ifite != 1:
self.output.Payload.nstuag = out.transfer_var(1, 2)
if iopt == 3:
# In optimization mode, find the last design mission
nos = 0
while True:
try:
out.reset_anchor()
out.mark_anchor( "#OBJ/VAR/CONSTR SUMMARY",
noffdr+nos+1+self.nrern0 )
except RuntimeError:
break
else:
nos += 1
nit = noffdr + nos
else:
nit = nos = 1
if nit > 0:
# Read output from the weights module
if mywts == 0:
out.reset_anchor()
try:
out.mark_anchor( "WING SPAN ", nos)
except RuntimeError:
ndd = self.input.syntin.Optimization_Control.ndd
if ndd == 0:
msg = "\n\n***************** \n\n"
msg += "There was only one iteration in optimization mode \n\n"
msg += "and we happen to be looking for the final solution, which isn't there. \n\n"
msg += "ndd = %" % ndd + "\n\n"
msg += "Try setting flops.input.syntin.Optimization_Control.ndd to 3 or 4.\n\n"
msg += "*****************"
raise RuntimeError(msg)
else:
msg = "\n\n***************** \n\n"
msg += "There was only one iteration in optimization mode \n\n"
msg += "and we happen to be looking for the final solution, which isn't there. \n\n"
msg += "Something is wrong here and someone needs to figure it out before we can proceed.\n\n"
msg += "*****************"
raise RuntimeError(msg)
self.output.Geometry.span = out.transfer_var(0, 3)
self.output.Geometry.glov = out.transfer_var(1, 4)
self.output.Geometry.sht = out.transfer_var(3, 4)
self.output.Geometry.svt = out.transfer_var(5, 4)
self.output.Geometry.xnac = out.transfer_var(8, 3)
self.output.Geometry.dnac = out.transfer_var(9, 3)
self.output.Geometry.xmlg = out.transfer_var(11, 5)
self.output.Geometry.xnlg = out.transfer_var(12, 5)
self.output.Weight.wldg = out.transfer_var(14, 4)
self.output.Weight.fultot = out.transfer_var(19, 4)
self.output.Weight.exsful = out.transfer_var(20, 4)
out.reset_anchor()
out.mark_anchor( "WING BENDING FACTOR", nos)
self.output.Weight.Wing.w = out.transfer_var(0, 4)
self.output.Weight.Wing.ew = out.transfer_var(1, 5)
self.output.Weight.Wing.w1 = out.transfer_var(4, 3)
self.output.Weight.Wing.w2 = out.transfer_var(5, 3)
self.output.Weight.Wing.w3 = out.transfer_var(6, 3)
# Read mass and balance summary data
out.reset_anchor()
out.mark_anchor( "MASS AND BALANCE SUMMARY", nos)
if ifite == 1:
self.output.Weight.frwi = out.transfer_keyvar("WING ", 2)
self.output.Weight.frht = out.transfer_keyvar("HORIZONTAL TAIL ", 2)
self.output.Weight.frvt = out.transfer_keyvar("VERTICAL TAIL ", 2)
self.output.Weight.frfin = out.transfer_keyvar("VERTICAL FIN ", 2)
self.output.Weight.frcan = out.transfer_keyvar("CANARD ", 2)
self.output.Weight.frfu = out.transfer_keyvar("FUSELAGE ", 2)
self.output.Weight.wlg = out.transfer_keyvar("LANDING GEAR ", 2)
self.output.Weight.frna = out.transfer_keyvar("NACELLE (AIR INDUCTION) ", 2)
self.output.Weight.wengt = out.transfer_keyvar("ENGINES ", 2)
self.output.Weight.wthr = out.transfer_keyvar("THRUST REVERSERS ", 2)
self.output.Weight.wpmisc = out.transfer_keyvar("MISCELLANEOUS SYSTEMS ", 2)
self.output.Weight.wfsys = out.transfer_keyvar("FUEL SYSTEM-TANKS AND PLUMBING ", 2)
self.output.Weight.frsc = out.transfer_keyvar("SURFACE CONTROLS ", 2)
self.output.Weight.wapu = out.transfer_keyvar("AUXILIARY POWER ", 2)
self.output.Weight.win = out.transfer_keyvar("INSTRUMENTS ", 2)
self.output.Weight.whyd = out.transfer_keyvar("HYDRAULICS ", 2)
self.output.Weight.welec = out.transfer_keyvar("ELECTRICAL ", 2)
self.output.Weight.wavonc = out.transfer_keyvar("AVIONICS ", 2)
self.output.Weight.wfurn = out.transfer_keyvar("FURNISHINGS AND EQUIPMENT ", 2)
self.output.Weight.wac = out.transfer_keyvar("AIR CONDITIONING ", 2)
self.output.Weight.wai = out.transfer_keyvar("AUXILIARY GEAR ", 2)
self.output.Weight.wempty = out.transfer_keyvar(" WEIGHT EMPTY ", 2)
self.output.Weight.wflcrbw = out.transfer_keyvar("CREW AND BAGGAGE-FLIGHT,", 3)
self.output.Weight.wuf = out.transfer_keyvar("UNUSABLE FUEL ", 2)
self.output.Weight.woil = out.transfer_keyvar("ENGINE OIL ", 2)
self.output.Weight.wsrv = out.transfer_keyvar("AMMUNITION, ETC. ", 2)
self.output.Weight.wbomb = out.transfer_keyvar("AUXILIARY TANKS ", 2)
self.output.Weight.dowe = out.transfer_keyvar("OPERATING WEIGHT ", 2)
self.output.Weight.zfw = out.transfer_keyvar("ZERO FUEL WEIGHT ", 2)
else:
self.output.Weight.frwi = out.transfer_keyvar("WING ", 2)
self.output.Weight.frht = out.transfer_keyvar("HORIZONTAL TAIL ", 2)
self.output.Weight.frvt = out.transfer_keyvar("VERTICAL TAIL ", 2)
self.output.Weight.frfin = out.transfer_keyvar("VERTICAL FIN ", 2)
self.output.Weight.frcan = out.transfer_keyvar("CANARD ", 2)
self.output.Weight.frfu = out.transfer_keyvar("FUSELAGE ", 2)
self.output.Weight.wlg = out.transfer_keyvar("LANDING GEAR ", 2)
self.output.Weight.frna = out.transfer_keyvar("NACELLE (AIR INDUCTION) ", 2)
self.output.Weight.wengt = out.transfer_keyvar("ENGINES ", 2)
self.output.Weight.wthr = out.transfer_keyvar("THRUST REVERSERS ", 2)
self.output.Weight.wpmisc = out.transfer_keyvar("MISCELLANEOUS SYSTEMS ", 2)
self.output.Weight.wfsys = out.transfer_keyvar("FUEL SYSTEM-TANKS AND PLUMBING ", 2)
self.output.Weight.frsc = out.transfer_keyvar("SURFACE CONTROLS ", 2)
self.output.Weight.wapu = out.transfer_keyvar("AUXILIARY POWER ", 2)
self.output.Weight.win = out.transfer_keyvar("INSTRUMENTS ", 2)
self.output.Weight.whyd = out.transfer_keyvar("HYDRAULICS ", 2)
self.output.Weight.welec = out.transfer_keyvar("ELECTRICAL ", 2)
self.output.Weight.wavonc = out.transfer_keyvar("AVIONICS ", 2)
self.output.Weight.wfurn = out.transfer_keyvar("FURNISHINGS AND EQUIPMENT ", 2)
self.output.Weight.wac = out.transfer_keyvar("AIR CONDITIONING ", 2)
self.output.Weight.wai = out.transfer_keyvar("ANTI-ICING ", 2)
self.output.Weight.wempty = out.transfer_keyvar(" WEIGHT EMPTY ", 2)
self.output.Weight.wflcrbw = out.transfer_keyvar("CREW AND BAGGAGE-FLIGHT,", 3)
self.output.Weight.wwstuab = out.transfer_keyvar("-CABIN, ", 3)
self.output.Weight.wuf = out.transfer_keyvar("UNUSABLE FUEL ", 2)
self.output.Weight.woil = out.transfer_keyvar("ENGINE OIL ", 2)
self.output.Weight.wsrv = out.transfer_keyvar("PASSENGER SERVICE ", 2)
self.output.Weight.dowe = out.transfer_keyvar("OPERATING WEIGHT ", 2)
self.output.Weight.zfw = out.transfer_keyvar("ZERO FUEL WEIGHT ", 2)
# Read inertia data
if inrtia > 0:
out.reset_anchor()
out.mark_anchor( "# INERTIA DATA FOR AIRCRAFT", nos)
nfcon = self.input.wtin.Inertia.tf.shape[0]
self.output.Weight.Inertia.cgx = zeros(1+nfcon)
self.output.Weight.Inertia.cgy = zeros(1+nfcon)
self.output.Weight.Inertia.cgz = zeros(1+nfcon)
self.output.Weight.Inertia.ixxroll = zeros(1+nfcon)
self.output.Weight.Inertia.ixxptch = zeros(1+nfcon)
self.output.Weight.Inertia.ixxyaw = zeros(1+nfcon)
self.output.Weight.Inertia.ixz = zeros(1+nfcon)
out.reset_anchor()
out.mark_anchor( " AIRCRAFT OWE OR ZFW", 1)
self.output.Weight.Inertia.cgx[0] = out.transfer_var(0, 6)
self.output.Weight.Inertia.cgy[0] = out.transfer_var(0, 7)
self.output.Weight.Inertia.cgz[0] = out.transfer_var(0, 8)
out.reset_anchor()
out.mark_anchor( " AIRCRAFT OWE OR ZFW", 2)
self.output.Weight.Inertia.ixxroll[0] = out.transfer_var(0, 5)
self.output.Weight.Inertia.ixxptch[0] = out.transfer_var(0, 6)
self.output.Weight.Inertia.ixxyaw[0] = out.transfer_var(0, 7)
self.output.Weight.Inertia.ixz[0] = out.transfer_var(0, 8)
out.reset_anchor()
if nfcon > 0:
for i in range(1, nfcon+1):
out.mark_anchor( "INERTIA DATA FOR FUEL CONDITION" )
out.mark_anchor( " TOTAL WEIGHT " )
self.output.Weight.Inertia.cgx[i] = out.transfer_var(0, 4)
self.output.Weight.Inertia.cgy[i] = out.transfer_var(0, 5)
self.output.Weight.Inertia.cgz[i] = out.transfer_var(0, 6)
out.mark_anchor( " TOTAL AIRCRAFT " )
self.output.Weight.Inertia.ixxroll[i] = out.transfer_var(0, 3)
self.output.Weight.Inertia.ixxptch[i] = out.transfer_var(0, 4)
self.output.Weight.Inertia.ixxyaw[i] = out.transfer_var(0, 5)
self.output.Weight.Inertia.ixz[i] = out.transfer_var(0, 6)
else:
# set weights to zero
self.output.Geometry.span = 0.0
self.output.Geometry.glov = 0.0
self.output.Geometry.sht = 0.0
self.output.Geometry.svt = 0.0
self.output.Geometry.xnac = 0.0
self.output.Geometry.dnac = 0.0
self.output.Geometry.xmlg = 0.0
self.output.Geometry.xnlg = 0.0
self.output.Weight.wldg = 0.0
self.output.Weight.fultot = 0.0
self.output.Weight.exsful = 0.0
self.output.Weight.frwi = 0.0
self.output.Weight.frht = 0.0
self.output.Weight.frvt = 0.0
self.output.Weight.frfin = 0.0
self.output.Weight.frcan = 0.0
self.output.Weight.frfu = 0.0
self.output.Weight.wlg = 0.0
self.output.Weight.frna = 0.0
self.output.Weight.wengt = 0.0
self.output.Weight.wthr = 0.0
self.output.Weight.wpmisc = 0.0
self.output.Weight.wfsys = 0.0
self.output.Weight.frsc = 0.0
self.output.Weight.wapu = 0.0
self.output.Weight.win = 0.0
self.output.Weight.whyd = 0.0
self.output.Weight.welec = 0.0
self.output.Weight.wavonc = 0.0
self.output.Weight.wfurn = 0.0
self.output.Weight.wac = 0.0
self.output.Weight.wai = 0.0
self.output.Weight.wempty = 0.0
self.output.Weight.wflcrbw = 0.0
self.output.Weight.wwstuab = 0.0
self.output.Weight.wuf = 0.0
self.output.Weight.woil = 0.0
self.output.Weight.wsrv = 0.0
self.output.Weight.dowe = 0.0
self.output.Weight.zfw = 0.0
self.output.Weight.wbomb = 0.0
# inertia data
self.output.Weight.Inertia.cgx = zeros(0)
self.output.Weight.Inertia.cgy = zeros(0)
self.output.Weight.Inertia.cgz = zeros(0)
self.output.Weight.Inertia.ixxroll = zeros(0)
self.output.Weight.Inertia.ixxptch = zeros(0)
self.output.Weight.Inertia.ixxyaw = zeros(0)
self.output.Weight.Inertia.ixz = zeros(0)
# Read performance contraints summary
if self.npcon0 > 0 and ianal == 3:
out.reset_anchor()
out.mark_anchor( "PERFORMANCE CONSTRAINT SUMMARY", nos)
out.set_delimiters("columns")
self.output.Performance.Constraints.constraint = out.transfer_array(4, 16, 3+self.npcon0, 29)
self.output.Performance.Constraints.value = out.transfer_array(4, 32, 3+self.npcon0, 40)
self.output.Performance.Constraints.units = out.transfer_array(4, 41, 3+self.npcon0, 47)
self.output.Performance.Constraints.limit = out.transfer_array(4, 48, 3+self.npcon0, 56)
weight = out.transfer_array(4, 56, 3+self.npcon0, 65)
if isinstance(weight[0], str):
self.output.Performance.Constraints.location = out.transfer_array(4, 58, 3+self.npcon0, 87)
else:
self.output.Performance.Constraints.weight = weight
self.output.Performance.Constraints.mach = out.transfer_array(4, 66, 3+self.npcon0, 74)
self.output.Performance.Constraints.alt = out.transfer_array(4, 75, 3+self.npcon0, 85)
self.output.Performance.Constraints.g = out.transfer_array(4, 86, 3+self.npcon0, 98)
out.set_delimiters(" ")
# Read sizing and performance results
if ianal == 3:
out.reset_anchor()
out.mark_anchor( "CONFIGURATION DATA AFTER RESIZING (IF ANY)", nit)
self.output.Weight.dowe = out.transfer_var(2, 4)
self.output.Weight.paylod = out.transfer_var(3, 2)
self.output.Weight.fuel = out.transfer_var(4, 3)
self.output.Weight.rampwt = out.transfer_var(5, 3)
self.output.Weight.wsr = out.transfer_var(8, 3)
self.output.Weight.thrso = out.transfer_var(10, 4)
self.output.Weight.esf = out.transfer_var(11, 4)
self.output.Weight.twr = out.transfer_var(12, 3)
self.output.Performance.thrso = self.output.Weight.thrso
self.output.Performance.esf = self.output.Weight.esf
# Read detailed flight segment summary
if ianal == 3 and msumpt > 0:
out.reset_anchor()
out.mark_anchor( "DETAILED FLIGHT SEGMENT SUMMARY")
self.output.Performance.Segments.segment = zeros(self.nmseg)
self.output.Performance.Segments.weights = zeros(self.nmseg)
self.output.Performance.Segments.alts = zeros(self.nmseg)
self.output.Performance.Segments.machs = zeros(self.nmseg)
self.output.Performance.Segments.thrusts = zeros(self.nmseg)
self.output.Performance.Segments.totmaxs = zeros(self.nmseg)
self.output.Performance.Segments.lods = zeros(self.nmseg)
self.output.Performance.Segments.sfcs = zeros(self.nmseg)
self.output.Performance.Segments.engparms = zeros(self.nmseg)
self.output.Performance.Segments.weighte = zeros(self.nmseg)
self.output.Performance.Segments.alte = zeros(self.nmseg)
self.output.Performance.Segments.mache = zeros(self.nmseg)
self.output.Performance.Segments.thruste = zeros(self.nmseg)
self.output.Performance.Segments.totmaxe = zeros(self.nmseg)
self.output.Performance.Segments.lode = zeros(self.nmseg)
self.output.Performance.Segments.sfce = zeros(self.nmseg)
self.output.Performance.Segments.engparme = zeros(self.nmseg)
for i in range(0, self.nmseg):
if i < 9:
out.mark_anchor( "SEGMENT " + str(i+1) + " ")
else:
out.mark_anchor( "SEGMENT " + str(i+1) + " " )
self.output.Performance.Segments.segment[i] = out.transfer_var(0, 3)
self.output.Performance.Segments.weights[i] = out.transfer_var(5, 1)
self.output.Performance.Segments.alts[i] = out.transfer_var(5, 2)
self.output.Performance.Segments.machs[i] = out.transfer_var(5, 3)
self.output.Performance.Segments.thrusts[i] = out.transfer_var(5, 7)
self.output.Performance.Segments.lods[i] = out.transfer_var(5, 12)
self.output.Performance.Segments.totmaxs[i] = out.transfer_var(6, 6)
self.output.Performance.Segments.sfcs[i] = out.transfer_var(6, 7)
self.output.Performance.Segments.engparms[i] = out.transfer_var(6, 13)
# This seems a bit klugey, but it actually works.
j = 0
while True:
try:
self.output.Performance.Segments.weighte[i] = out.transfer_var(j+5, 1)
self.output.Performance.Segments.alte[i] = out.transfer_var(j+5, 2)
self.output.Performance.Segments.mache[i] = out.transfer_var(j+5, 3)
self.output.Performance.Segments.thruste[i] = out.transfer_var(j+5, 7)
self.output.Performance.Segments.lode[i] = out.transfer_var(j+5, 12)
self.output.Performance.Segments.totmaxe[i] = out.transfer_var(j+6, 6)
self.output.Performance.Segments.sfce[i] = out.transfer_var(j+6, 7)
self.output.Performance.Segments.engparme[i] = out.transfer_var(j+6, 13)
except ValueError:
break
j += 3
# Read the mission summary
out.reset_anchor()
out.mark_anchor( "M I S S I O N S U M M A R Y", nos)
self.output.Performance.taxofl = out.transfer_var(5, 4)
# Read the objective, variable and constraint summary
out.reset_anchor()
out.mark_anchor( "#OBJ/VAR/CONSTR SUMMARY", nos)
out.set_delimiters("columns")
# Changed based on Karl's fix to bug I reported
if ianal == 3:
self.output.Performance.fuel = out.transfer_var(3, 1, 10)
self.output.Performance.range = out.transfer_var(3, 11, 17)
self.output.Performance.vapp = out.transfer_var(3, 18, 23)
# TODO - Again, there's got to be a better way
try:
self.output.Performance.faroff = out.transfer_var(3, 24, 30)
except RuntimeError, IndexError:
self.output.Performance.faroff = 1.0e10
self.output.Performance.farldg = out.transfer_var(3, 31, 37)
self.output.Performance.amfor = out.transfer_var(3, 38, 45)
self.output.Performance.ssfor = out.transfer_var(3, 46, 53)
self.output.Geometry.ar = out.transfer_var(3, 65, 70)
self.output.Geometry.sw = out.transfer_var(3, 80, 87)
self.output.Geometry.tr = out.transfer_var(3, 88, 93)
self.output.Geometry.sweep = out.transfer_var(3, 94, 99)
self.output.Geometry.tca = out.transfer_var(3, 100, 106)
if self.input.wtin.Basic.vmmo > 0.:
self.output.Performance.vmmo = self.input.wtin.Basic.vmmo
else:
self.output.Performance.vmmo = out.transfer_var(3, 107, 112)
if self.output.Weight.fuel == 0.:
self.output.Weight.fuel = out.transfer_var(3, 1, 10)
if self.output.Weight.rampwt == 0.:
self.output.Weight.rampwt = out.transfer_var(3, 54, 64)
if self.output.Weight.thrso == 0.:
self.output.Weight.thrso = out.transfer_var(3, 72, 78)
self.output.Weight.thrsop = self.output.Performance.thrso
if self.output.Weight.wsr == 0.:
self.output.Weight.wsr = out.transfer_var(3, 121, 126)
if self.output.Weight.twr == 0.:
self.output.Weight.twr = out.transfer_var(3, 127, 132)
out.set_delimiters(" ")
# Read off-design mission data
if ianal == 3:
ndim = 1 + noffdr + self.nrern0
self.output.Econ.sl = zeros(ndim)
self.output.Econ.blockt = zeros(ndim)
self.output.Econ.blockf = zeros(ndim)
self.output.Econ.blockNx = zeros(ndim)
self.output.Econ.wpayl = zeros(ndim)
self.output.Econ.wgross = zeros(ndim)
self.output.Econ.range = zeros(ndim)
self.output.Econ.vapp = zeros(ndim)
self.output.Econ.faroff = zeros(ndim)
self.output.Econ.farldg = zeros(ndim)
self.output.Econ.amfor = zeros(ndim)
self.output.Econ.ssfor = zeros(ndim)
for i in range(0, ndim):
out.reset_anchor()
out.mark_anchor( "CONFIGURATION DATA AFTER RESIZING", (nos-1)*(1 + noffdr) + 1 + i)
self.output.Econ.wpayl[i] = out.transfer_var(3, 2)
self.output.Econ.wgross[i] = out.transfer_var(5, 3)
out.mark_anchor( "DESIGN RANGE" )
self.output.Econ.sl[i] = out.transfer_var(0, 3)
out.mark_anchor( "BLOCK TIME =" )
self.output.Econ.blockt[i] = out.transfer_var(0, 4)
self.output.Econ.blockf[i] = out.transfer_var(1, 4)
self.output.Econ.blockNx[i] = out.transfer_var(2, 6)
out.mark_anchor( "#OBJ/VAR/CONSTR SUMMARY" );
out.set_delimiters("columns")
self.output.Econ.range[i] = out.transfer_var(3, 11, 17)
self.output.Econ.vapp[i] = out.transfer_var(3, 18, 23)
try:
self.output.Econ.faroff[i] = out.transfer_var(3, 24, 30)
except RuntimeError, IndexError:
self.output.Econ.faroff[i] = 1.0e10
self.output.Econ.farldg[i] = out.transfer_var(3, 31, 37)
self.output.Econ.amfor[i] = out.transfer_var(3, 38, 45)
self.output.Econ.ssfor[i] = out.transfer_var(3, 46, 53)
out.set_delimiters(" ")
def add_segin(self):
"""Adds a new SEGIN namelist."""
name = "segin" + str(self.nseg0)
self.nseg0 += 1
comp = VariableTree()
comp.add('key', Str('CHAN', desc="Key word specifying reason for end of segment"))
comp.add('nflap', Int(-1, desc="Number of drag polar to use\nIf NFLAP = -1, default value or previous value is used"))
comp.add('ifix', Int(-1, desc="Constraints for climb segments after OBSTACLE\nIf IFIX = 0, default value or previous value is used" ))
comp.add('engscl', Float(-1., desc="Engine setting as a fraction of thrust at IPCMAX\nIf ENGSCL = -1., default value or previous value is used" ))
comp.add('afix', Float(-10., units='deg', desc="Fixed angle of attack for IFIX = 3 or 6\nIf AFIX = -10., final value from previous segment is used" ))
comp.add('gfix', Float(-10., units='deg', desc="Fixed flight path angle for IFIX = 2 or 4, or fixed cabin floor angle for IFIX = 5\nIf GFIX = -10., final value from previous segment is used" ))
comp.add('vfix', Float(-1., units='nmi/h', desc="Fixed velocity for IFIX = 1, 4 or 6\nIf VFIX = -1., final value from previous segment is used" ))
comp.add('hstop', Float(-1., units='ft', desc="Segment termination altitude\nIf HSTOP = -1., default value is used" ))
comp.add('dstop', Float(-1., units='ft', desc="Segment termination distance\nIf DSTOP = -1., value from following segment is used" ))
comp.add('tstop', Float(-1., units='s', desc="Segment termination time\nIf TSTOP = -1., value from following segment is used" ))
comp.add('vstop', Float(-1., units='nmi/h', desc="Segment termination velocity\nIf VSTOP = -1., default value is used" ))
comp.add('hmin', Float(-1., units='ft', desc="Minimum altitude for segment termination; overrides STOP variables above\nIf HMIN = -1., value is not used" ))
comp.add('sprate', Float(-1., desc="Thrust reduction rate during segments where the power setting is reduced\nIf SPRATE = -1., default value or previous value is used" ))
comp.add('iplr', Int(-1, desc="Programmed lapse rate switch for this segment\nIf IPLR = -1, default value is used" ))
comp.add('noycal', Int(-1, desc="Noise calculation switch - available only for simplified noise calculations in DOSS version\nIf NOYCAL = -1, default value is used" ))
comp.add('delt', Float(-1., units='s', desc="Time step for post OBSTACLE segments\nIf DELT = -1., default value is used" ))
comp.add('grdaeo', Float(-1., units='deg', desc="Flight path angle for CUTBACK with all engines operating\nIf GRDAEO = -1., default value is used" ))
comp.add('grdoeo', Float(-1., units='deg', desc="Flight path angle for CUTBACK with one engine out\nIf GRDOEO = -1., default value is used" ))
self.input.add(name, VarTree(comp))
def remove_segin(self):
"""Removes a SEGIN namelist. Actually, it removes the most recently added SEGIN, as per the MC wrapper."""
if self.nseg0 == 0:
raise RuntimeError('No &SEGIN namelists to remove!')
self.nseg0 += -1
name = "segin" + str(self.nseg0)
self.input.remove_container(name)
def add_pconin(self):
"""Method to add a pconin* group to the list of input variables. This method
can be invoked multiple times to add as many pconin* groups as desired.
The first group added is input.pconin0, the second is input.pconin1, etc.
Local var self.npcon0 keeps track of the number of groups added."""
if self.npcon0 == 30:
raise RuntimeError('Maximum of 30 performance constraints')
name = "pconin" + str(self.npcon0)
self.npcon0 += 1
comp = VariableTree()
comp.add('conalt', Float(-1., units='ft', desc="Altitude at which constraint is to be evaluated (Default = value from preceding constraint)" ))
comp.add('conmch', Float(-1., units='nmi/h', desc="Velocity at which constraint is to be evaluated, kts. If less than or equal to 5., assumed to be Mach number (Default = value from preceding constraint)" ))
if self.npcon0 == 1:
comp.add('connz', Float(1., desc="Load factor (Nz) at which constraint is to be evaluated, G's (Default = value from preceding constraint or 1.)" ))
comp.add('conpc', Float(1., desc="Engine power setting parameter\n< 1., Fraction of maximum available thrust\n= 1., Maximum thrust at this Mach number and altitude\n> 1., Power setting for engine deck (3. would indicate the third highest thrust)\n(Default = value from preceding constraint or 1.)" ))
comp.add('icstdg', Int(0, desc="Number of store drag schedule (see Namelist $MISSIN) to be applied to this constraint (Default = value from preceding constraint or 0)" ))
else:
comp.add('connz', Float(-1., desc="Load factor (Nz) at which constraint is to be evaluated, G's (Default = value from preceding constraint or 1.)" ))
comp.add('conpc', Float(-10., desc="Engine power setting parameter\n< 1., Fraction of maximum available thrust\n= 1., Maximum thrust at this Mach number and altitude\n> 1., Power setting for engine deck (3. would indicate the third highest thrust)\n(Default = value from preceding constraint or 1.)" ))
comp.add('icstdg', Int(-1, desc="Number of store drag schedule (see Namelist $MISSIN) to be applied to this constraint (Default = value from preceding constraint or 0)" ))
comp.add('conlim', Float(-999., desc="Constraint minimum or maximum value" ))
comp.add('conaux', Float(-1., desc="Additional constraint parameter" ))
comp.add('neo', Int(-1, desc="Number of engines operating (Default = value from preceding constraint or all)" ))
comp.add('conwt', Float(-1., units='lb', desc="Fixed weight (Default = value from preceding constraint)" ))
comp.add('iconsg', Int(-1, desc="Weight at start of mission segment ICONSG is used (Default = value from preceding constraint)" ))
comp.add('confm', Float(-1., desc="Fuel multiplier or fraction of fuel burned (Default = value from preceding constraint)" ))
comp.add('conwta', Float(-999., units='lb', desc="Delta weight (Default = value from preceding constraint)" ))
comp.add('icontp', Enum(-1, (-1,5,6,7,8,9,10,11,12,13,16,17,20,30), desc="Type of constraint (Default = value from preceding constraint)", \
aliases=("Previous","Min. climb rate","Max. time-to-climb","Max. time-to-distance","Min. sustained load factor","Min. instant. load factor","Min. turn rate","Max. turn radius","Min. excess energy","Min. climb ceiling","Max. accel./decel. time","Min. max. speed","Min. energy bleed rate","Min. thrust margin")))
self.input.add(name, VarTree(comp))
def remove_pconin(self):
"""Removes a PCONIN namelist. Actually, it removes the most recently added PCONIN, as per the MC wrapper."""
if self.npcon0 == 0:
raise RuntimeError('No &PCONIN namelists to remove!')
self.npcon0 += -1
name = "pconin" + str(self.npcon0)
self.input.remove_container(name)
def add_rerunpconin(self, i):
"""Method to add a pconin* group to the list of input variables, within an
existing rerun* group . This method can be invoked multiple times to add
as many pconin* groups as desired. Local array self.npcons keeps track of the
number of groups added to each rerun*."""
if self.npcons0[i] == 30:
raise RuntimeError('Maximum of 30 performance constraints')
rerun_name = "rerun" + str(i)
if not hasattr(self.input,rerun_name):
raise RuntimeError('Attempted to add a PCONIN group to a nonexistant RERUN group')
name = "pconin" + str(self.npcons0[i])
self.npcons0[i] += 1
comp = VariableTree()
comp.add('conalt', Float(-1., units='ft', desc="Altitude at which constraint is to be evaluated (Default = value from preceding constraint)" ))
comp.add('conmch', Float(-1., units='nmi/h', desc="Velocity at which constraint is to be evaluated, kts. If less than or equal to 5., assumed to be Mach number (Default = value from preceding constraint)" ))
comp.add('connz', Float(-1., desc="Load factor (Nz) at which constraint is to be evaluated, G's (Default = value from preceding constraint or 1.)" ))
comp.add('conpc', Float(-10., desc="Engine power setting parameter\n< 1., Fraction of maximum available thrust\n= 1., Maximum thrust at this Mach number and altitude\n> 1., Power setting for engine deck (3. would indicate the third highest thrust)\n(Default = value from preceding constraint or 1.)" ))
comp.add('icstdg', Int(-1, desc="Number of store drag schedule (see Namelist $MISSIN) to be applied to this constraint (Default = value from preceding constraint or 0)" ))
comp.add('conlim', Float(-999., desc="Constraint minimum or maximum value" ))
comp.add('conaux', Float(-1., desc="Additional constraint parameter" ))
comp.add('neo', Int(-1, desc="Number of engines operating (Default = value from preceding constraint or all)" ))
comp.add('conwt', Float(-1., units='lb', desc="Fixed weight (Default = value from preceding constraint)" ))
comp.add('iconsg', Int(-1, desc="Weight at start of mission segment ICONSG is used (Default = value from preceding constraint)" ))
comp.add('confm', Float(-1., desc="Fuel multiplier or fraction of fuel burned (Default = value from preceding constraint)" ))
comp.add('conwta', Float(-999., units='lb', desc="Delta weight (Default = value from preceding constraint)" ))
comp.add('icontp', Enum(-1, (-1,5,6,7,8,9,10,11,12,13,16,17,20,30), desc="Type of constraint (Default = value from preceding constraint)", \
aliases=("Previous","Min. climb rate","Max. time-to-climb","Max. time-to-distance","Min. sustained load factor","Min. instant. load factor","Min. turn rate","Max. turn radius","Min. excess energy","Min. climb ceiling","Max. accel./decel. time","Min. max. speed","Min. energy bleed rate","Min. thrust margin")))
temp = getattr(self.input, rerun_name)
temp.add(name, comp)
def remove_rerunpconin(self, i):
"""Removes a PCONIN from an existing RERUN group. Actually, it removes
the most recently added PCONIN, as per the MC wrapper."""
if self.npcons0[i] == 0:
raise RuntimeError('No &PCONIN namelists to remove!')
self.npcons0[i] += -1
rerun_name = "rerun" + str(i)
if not hasattr(self.input,rerun_name):
raise RuntimeError('Attempted to remove a PCONIN group to a nonexistant RERUN group')
name = "pconin" + str(self.npcons0[i])
temp = getattr(self.input, rerun_name)
temp.remove_container(name)
def add_rerun(self):
""" Method to add a rerun* group to the list of input variables. This method
can be invoked multiple times to add as many rerun* groups as desired.
The first group added is input.rerun0, the second is input.rerun1, etc.
An additional missin group and mission definition file are also created
within the new group. Local var self.nrern0 keeps track of the number of
groups added."""
name = "rerun" + str(self.nrern0)
self.nrern0 += 1
self.npcons0.append(0)
comp = VariableTree()
comp.add('desrng', Float(-1., units="nmi/s" ))
comp.add('mywts', Int(-1 ))
comp.add('rampwt', Float(-1., units="lb" ))
comp.add('dowe', Float(-1., units="lb" ))
comp.add('paylod', Float(-1., units="lb" ))
comp.add('fuemax', Float(-1., units="lb" ))
comp.add('itakof', Int(-1 ))
comp.add('iland', Int(-1 ))
comp.add('nopro', Int(-1 ))
comp.add('noise', Int(-1 ))
comp.add('icost', Int(-1 ))
comp.add('wsr', Float(-1. ))
comp.add('twr', Float(-1. ))
comp.add('missin', VarTree(VariableTree()))
comp.missin.add('Basic', VarTree(VariableTree()))
comp.missin.Basic.add('indr', Int(-999 ))
comp.missin.Basic.add('fact', Float(-999. ))
comp.missin.Basic.add('fleak', Float(-999. ))
comp.missin.Basic.add('fcdo', Float(-999. ))
comp.missin.Basic.add('fcdi', Float(-999. ))
comp.missin.Basic.add('fcdsub', Float(-999. ))
comp.missin.Basic.add('fcdsup', Float(-999. ))
comp.missin.Basic.add('iskal', Int(-999 ))
comp.missin.Basic.add('owfact', Float(-999. ))
comp.missin.Basic.add('iflag', Int(-999 ))
comp.missin.Basic.add('msumpt', Int(-999 ))
comp.missin.Basic.add('dtc', Float(-999. ))
comp.missin.Basic.add('irw', Int(-999 ))
comp.missin.Basic.add('rtol', Float(-999. ))
comp.missin.Basic.add('nhold', Int(-999 ))
comp.missin.Basic.add('iata', Int(-999 ))
comp.missin.Basic.add('tlwind', Float(-999. ))
comp.missin.Basic.add('dwt', Float(-999. ))
comp.missin.Basic.add('offdr', Array(dtype=numpy_float64 ))
comp.missin.Basic.add('idoq', Int(-999 ))
comp.missin.Basic.add('nsout', Int(-999 ))
comp.missin.Basic.add('nsadj', Int(-999 ))
comp.missin.Basic.add('mirror', Int(-999 ))
comp.missin.add('Store_Drag', VarTree(VariableTree()))
comp.missin.Store_Drag.add('stma', Array(dtype=numpy_float64 ))
comp.missin.Store_Drag.add('cdst', Array(dtype=numpy_float64 ))
comp.missin.Store_Drag.add('istcl', Array(dtype=numpy_float64 ))
comp.missin.Store_Drag.add('istcr', Array(dtype=numpy_float64 ))
comp.missin.Store_Drag.add('istde', Int(-999 ))
comp.missin.add('User_Weights', VarTree(VariableTree()))
comp.missin.User_Weights.add('mywts', Int(-999 ))
comp.missin.User_Weights.add('rampwt', Float(-999. ))
comp.missin.User_Weights.add('dowe', Float(-999. ))
comp.missin.User_Weights.add('paylod', Float(-999. ))
comp.missin.User_Weights.add('fuemax', Float(-999. ))
comp.missin.add('Ground_Operations', VarTree(VariableTree()))
comp.missin.Ground_Operations.add('takotm', Float(-999. ))
comp.missin.Ground_Operations.add('taxotm', Float(-999. ))
comp.missin.Ground_Operations.add('apprtm', Float(-999. ))
comp.missin.Ground_Operations.add('appfff', Float(-999. ))
comp.missin.Ground_Operations.add('taxitm', Float(-999. ))
comp.missin.Ground_Operations.add('ittff', Int(-999 ))
comp.missin.Ground_Operations.add('takoff', Float(-999. ))
comp.missin.Ground_Operations.add('txfufl', Float(-999. ))
comp.missin.Ground_Operations.add('ftkofl', Float(-999. ))
comp.missin.Ground_Operations.add('ftxofl', Float(-999. ))
comp.missin.Ground_Operations.add('ftxifl', Float(-999. ))
comp.missin.Ground_Operations.add('faprfl', Float(-999. ))
comp.missin.add('Turn_Segments', VarTree(VariableTree()))
comp.missin.Turn_Segments.add('xnz', Array(dtype=numpy_float64 ))
comp.missin.Turn_Segments.add('xcl', Array(dtype=numpy_float64 ))
comp.missin.Turn_Segments.add('xmach', Array(dtype=numpy_float64 ))
comp.missin.add('Climb', VarTree(VariableTree()))
comp.missin.Climb.add('nclimb', Int(-999))
comp.missin.Climb.add('clmmin', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('clmmax', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('clamin', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('clamax', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('nincl', Array(dtype=numpy_int64 ))
comp.missin.Climb.add('fwf', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('ncrcl', Array(dtype=numpy_int64 ))
comp.missin.Climb.add('cldcd', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('ippcl', Array(dtype=numpy_int64 ))
comp.missin.Climb.add('maxcl', Array(dtype=numpy_int64 ))
comp.missin.Climb.add('no', Array(dtype=numpy_int64 ))
comp.missin.Climb.add('keasvc', Int(-999 ))
comp.missin.Climb.add('actab', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('vctab', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('ifaacl', Int(-999 ))
comp.missin.Climb.add('ifaade', Int(-999 ))
comp.missin.Climb.add('nodive', Int(-999 ))
comp.missin.Climb.add('divlim', Float(-999. ))
comp.missin.Climb.add('qlim', Float(-999. ))
comp.missin.Climb.add('spdlim', Float(-999. ))
comp.missin.Climb.add('nql', Int(-999 ))
comp.missin.Climb.add('qlalt', Array(dtype=numpy_float64 ))
comp.missin.Climb.add('vqlm', Array(dtype=numpy_float64 ))
comp.missin.add('Cruise', VarTree(VariableTree()))
comp.missin.Cruise.add('ncruse', Int(-999 ))
comp.missin.Cruise.add('ioc', Array(dtype=numpy_int64 ))
comp.missin.Cruise.add('crmach', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('cralt', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('crdcd', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('flrcr', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('crmmin', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('crclmx', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('hpmin', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('ffuel', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('fnox', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('ifeath', Array(dtype=numpy_int64 ))
comp.missin.Cruise.add('feathf', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('cdfeth', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('dcwt', Float(-999. ))
comp.missin.Cruise.add('rcin', Float(-999. ))
comp.missin.Cruise.add('wtbm', Array(dtype=numpy_float64 ))
comp.missin.Cruise.add('altbm', Array(dtype=numpy_float64 ))
comp.missin.add('Descent', VarTree(VariableTree()))
comp.missin.Descent.add('ivs', Int(-999 ))
comp.missin.Descent.add('decl', Float(-999. ))
comp.missin.Descent.add('demmin', Float(-999. ))
comp.missin.Descent.add('demmax', Float(-999. ))
comp.missin.Descent.add('deamin', Float(-999. ))
comp.missin.Descent.add('deamax', Float(-999. ))
comp.missin.Descent.add('ninde', Int(-999 ))
comp.missin.Descent.add('dedcd', Float(-999. ))
comp.missin.Descent.add('rdlim', Float(-999. ))
comp.missin.Descent.add('ns', Int(-999 ))
comp.missin.Descent.add('keasvd', Int(-999 ))
comp.missin.Descent.add('adtab', Array(dtype=numpy_float64 ))
comp.missin.Descent.add('vdtab', Array(dtype=numpy_float64 ))
comp.missin.add('Reserve', VarTree(VariableTree()))
comp.missin.Reserve.add('irs', Int(-999 ))
comp.missin.Reserve.add('resrfu', Float(-999. ))
comp.missin.Reserve.add('restrp', Float(-999. ))
comp.missin.Reserve.add('timmap', Float(-999. ))
comp.missin.Reserve.add('altran', Float(-999. ))
comp.missin.Reserve.add('nclres', Int(-999 ))
comp.missin.Reserve.add('ncrres', Int(-999 ))
comp.missin.Reserve.add('sremch', Float(-999. ))
comp.missin.Reserve.add('eremch', Float(-999. ))
comp.missin.Reserve.add('srealt', Float(-999. ))
comp.missin.Reserve.add('erealt', Float(-999. ))
comp.missin.Reserve.add('holdtm', Float(-999. ))
comp.missin.Reserve.add('ncrhol', Int(-999 ))
comp.missin.Reserve.add('ihopos', Int(-999 ))
comp.missin.Reserve.add('icron', Int(-999 ))
comp.missin.Reserve.add('thold', Float(-999. ))
comp.missin.Reserve.add('ncrth', Int(-999 ))
# New mission definition defaults to the original one
comp.add('mission_definition', List(iotype='in'))
comp.mission_definition = self.input.mission_definition.mission
self.input.add(name, VarTree(comp))
def remove_rerun(self):
"""Removes a Rerun namelist. Actually, it removes the most recently added Rerun, as per the MC wrapper."""
if self.nrern0 == 0:
raise RuntimeError('No &PCONIN namelists to remove!')
self.nrern0 += -1
name = "rerun" + str(self.nrern0)
self.input.remove_container(name)
self.npcons0 = self.npcons0[:-1]
def reinitialize(self):
"""Method to add pconin*, segin* and rerun* groups to the list of input
variables. This method can be invoked by the user to add the appropriate
number of groups based on input variables npcon, nseg, nrerun and
npcons[]."""
# Add or remove an appropriate number of pconin* groups to the input variable
# list.
n0 = self.npcon0
n = self.npcon
if n > n0:
for i in range(0,n-n0):
self.add_pconin()
elif n < n0:
for i in range(0,n0-n):
self.remove_pconin()
# Add or remove an appropriate number of segin* groups to the input variable
# list.
n0 = self.nseg0
n = self.nseg
if n > n0:
for i in range(0,n-n0):
self.add_segin()
elif n < n0:
for i in range(0,n0-n):
self.remove_segin()
# Add or remove an appropriate number of rerun* groups to the input variable
# list.
n0 = self.nrern0
n = self.nrerun
if n > n0:
for i in range(0,n-n0):
self.add_rerun()
elif n < n0:
for i in range(0,n0-n):
self.remove_rerun()
# Add or remove an appropriate number of rerun*.pconin* groups to the input
# variable list.
for i in range(0,self.nrern0):
n0 = self.npcons0[i]
n = self.npcons[i]
if n > n0:
for j in range(0,n-n0):
self.add_rerunpconin(i)
elif n < n0:
for j in range(0,n0-n):
self.remove_rerunpconin(i)
def load_model(self, filename):
""" Loads a FLOPS model from an existing input file."""
sb = Namelist(self)
sb.set_filename(filename)
# Where each namelist goes in the component
rule_dict = { "OPTION" : ["input.option.Program_Control", \
"input.option.Plot_Files", \
"input.option.Excess_Power_Plot"],
"WTIN" : [ "input.wtin.Basic", \
"input.wtin.Center_of_Gravity", \
"input.wtin.Crew_Payload", \
"input.wtin.Detailed_Wing", \
"input.wtin.Fuel_System", \
"input.wtin.Fuselage", \
"input.wtin.Inertia", \
"input.wtin.Landing_Gear", \
"input.wtin.OEW_Calculations", \
"input.wtin.Override", \
"input.wtin.Propulsion", \
"input.wtin.Tails_Fins", \
"input.wtin.Wing_Data"],
"CONFIN" : ["input.confin.Basic", \
"input.confin.Design_Variables", \
"input.confin.Objective"],
"AERIN" : ["input.aerin.Basic", \
"input.aerin.Internal_Aero", \
"input.aerin.Takeoff_Landing"],
"ENGDIN" : ["input.engdin", \
"input.engdin.Basic", \
"input.engdin.Special_Options"],
"MISSIN" : ["input.missin.Basic", \
"input.missin.Climb", \
"input.missin.Cruise", \
"input.missin.Descent", \
"input.missin.Ground_Operations", \
"input.missin.Reserve", \
"input.missin.Store_Drag", \
"input.missin.Turn_Segments", \
"input.missin.User_Weights", \
"input.parent"],
"TOLIN" : ["input.tolin.Basic", \
"input.tolin.Integration_Intervals", \
"input.tolin.Landing", \
"input.tolin.Takeoff", \
"input.tolin.Thrust_Reverser"],
"NOISIN" : ["input.noisin.Airframe", \
"input.noisin.Basic", \
"input.noisin.Core", \
"input.noisin.Engine_Parameters", \
"input.noisin.Fan", \
"input.noisin.Flap_Noise", \
"input.noisin.Ground_Effects", \
"input.noisin.Jet", \
"input.noisin.MSJet", \
"input.noisin.Observers", \
"input.noisin.Propagation", \
"input.noisin.Propeller", \
"input.noisin.Shielding", \
"input.noisin.Turbine"],
"COSTIN" : ["input.costin.Basic", \
"input.costin.Cost_Technology", \
"input.costin.Mission_Performance"],
"FUSEIN" : ["input.fusein.Basic", \
"input.fusein.BWB"],
"ENGINE" : ["input.engine", \
"input.engine.Basic", \
"input.engine.Design_Point", \
"input.engine.Engine_Weight", \
"input.engine.IC_Engine", \
"input.engine.Noise_Data", \
"input.engine.Other"],
"SYNTIN" : ["input.syntin", \
"input.syntin.Variables", \
"input.syntin.Optimization_Control"],
"ASCLIN" : ["input.asclin"],
"NACELL" : ["input.nacell"],
"PROIN" : ["input.proin"]
}
# Some variables aren't exposed in the OpenMDAO wrapper (e.g., array
# sizes which aren't needed explicitly.)
ignore = ["netaw", "itank", "nob", "nparam", "nfcon", "npcon"]
sb.parse_file()
self.input.title = sb.title
empty_groups, unlisted_groups, unlinked_vars = \
sb.load_model(rule_dict, ignore)
# The pconin groups are problematic, and have not been filled because
# they aren't created yet. We can parse the unlisted_groups to see
# which ones are in the input-file, and then add them to the component.
# Rerun, Segin, and Pconin groups also do not have unique names. We give
# them unique names in OpenMDAO.
num_mission = 0
if len(unlisted_groups) > 0:
for i, group in unlisted_groups.iteritems():
if group.lower().count('pconin'):
self.add_pconin()
rule_dict = { "PCONIN" : ["input.pconin"+str(self.npcon0-1)] }
ne, nu, nv = sb.load_model(rule_dict, ignore, i)
for var in nv:
unlinked_vars.append(var)
elif group.lower().count('rerun'):
self.add_rerun()
stem = "input.rerun"+str(self.nrern0-1)
rule_dict = { "RERUN" : [stem] }
ne, nu, nv = sb.load_model(rule_dict, ignore, i)
for var in nv:
unlinked_vars.append(var)
elif group.lower().count('segin'):
self.add_segin()
stem = "input.segin"+str(self.nseg0-1)
rule_dict = { "SEGIN" : [stem] }
ne, nu, nv = sb.load_model(rule_dict, ignore, i)
for var in nv:
unlinked_vars.append(var)
# Hopefully the missin namelist always follows its associated
# rerun group.
elif group.lower().count('missin'):
rule_dict = { "MISSIN" : [stem+".missin.Basic",
stem+".missin.Store_Drag",
stem+".missin.User_Weights",
stem+".missin.Ground_Operations",
stem+".missin.Turn_Segments",
stem+".missin.Climb",
stem+".missin.Cruise",
stem+".missin.Descent",
stem+".missin.Reserve",] }
ne, nu, nv = sb.load_model(rule_dict, ignore, i)
for var in nv:
unlinked_vars.append(var)
num_mission += 1
# Mission segments are also a challenge.
# The remaining empty groups should be mission segments or comments.
missions = []
if len(empty_groups) > 0:
in_mission = False
for group in empty_groups.values():
group_name = group.strip().split(" ")[0]
if group_name.lower() == 'start':
missions.append('START')
in_mission = True
elif group_name.lower() == 'end':
missions.append('END')
in_mission = False
elif in_mission == True:
groups = ['climb', 'cruise', 'refuel', 'release', 'accel', \
'turn', 'combat', 'hold', 'descent']
if group_name.lower() in groups:
missions.append(group.upper())
else:
print "Warning: Ignoring unknonwn mission %s" % group
# Fist, handle the standard run missions
mission_count = 0
mission_start = 0
mission_end = 0
for i, mission in enumerate(missions):
if mission == 'END':
mission_end = i
mission_count += i+1
break
self.input.mission_definition.mission = missions[:mission_end+1]
# Next, handle the missions in the Rerun groups
for j in range(0,self.nrern0):
name = "rerun" + str(j)
mission_start = mission_end+1
for i, mission in enumerate(missions[mission_start:]):
if mission == 'END':
mission_end = i+mission_start
mission_count += i+1
break
self.set("input.%s.mission_definition" % name, \
missions[mission_start:mission_end+1])
# Certain data files are sometimes jammed into the input file. We have
# to jump through some hoops to detect and import this information.
ndecks = 0
if self.input.engdin.Basic.igenen in (0, -2):
found = False
engine_deck = ""
for i, group in enumerate(sb.groups):
if group.lower().strip() == 'engdin':
found = True
elif found == True:
if len(sb.cards[i]) > 0:
break
engine_deck += '%s\n' % group
ndecks += 1
self.input.engine_deck.engdek = engine_deck
# Aero deck seems to fall after the mission segements
if self.input.aerin.Basic.myaero > 0 and \
self.input.aerin.Basic.myaero != 3 and \
self.input.option.Program_Control.ianal == 3:
found = False
aerodat = ""
for i, group in enumerate(sb.groups):
if group.lower().strip() == 'end':
found = True
elif found == True:
if len(sb.cards[i]) > 0:
break
aerodat += '%s\n' % group
ndecks += 1
self.input.aero_data.aerodat = aerodat
# Post process some stuff, mostly arrays 2D arrays that come over as 1D
tf = self.input.wtin.Inertia.tf
# TODO: tf can be input with 1st dim greater than one. Need to find out
# how that is written / parsed.
if tf.shape[0] > 0:
self.set('input.wtin.Inertia.tf', array([tf]))
# Report diagnostics and raise any exceptions.
print "Empty Groups: %d, Unhandled Groups: %d, Unlinked Vars: %d" % \
(len(empty_groups)-len(missions)-ndecks, \
len(unlisted_groups)-self.npcon-self.nrern0-self.nseg0-num_mission, \
len(unlinked_vars))
#print empty_groups
#print unlisted_groups
if __name__ == "__main__": # pragma: no cover
from openmdao.main.api import set_as_top
from numpy import array
flops_comp = set_as_top(FlopsWrapper())
flops_comp.input.option.Program_Control.mprint = 1
flops_comp.input.title = "Testing"
#flops_comp.npcon = 1
#flops_comp.nseg = 3
#flops_comp.nrerun = 2
#flops_comp.npcons = [3, 4]
#flops_comp.reinitialize()
flops_comp.run()
| 62.310905 | 930 | 0.629409 | 44,336 | 322,272 | 4.509789 | 0.071342 | 0.022081 | 0.027287 | 0.044342 | 0.547198 | 0.44377 | 0.354366 | 0.246512 | 0.197883 | 0.155622 | 0 | 0.024184 | 0.2439 | 322,272 | 5,171 | 931 | 62.322955 | 0.796376 | 0.033053 | 0 | 0.092045 | 1 | 0.065528 | 0.447655 | 0.083452 | 0 | 0 | 0 | 0.00058 | 0 | 0 | null | null | 0.010199 | 0.002805 | null | null | 0.005099 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cbe5ab213d95447703f4b1c269f6082048b3b60 | 6,500 | py | Python | Lib/ufo2svg/fontFace.py | LettError/ufo2svg | a7216fd110a47c860225a1635e34a30a31ba5176 | [
"MIT"
] | null | null | null | Lib/ufo2svg/fontFace.py | LettError/ufo2svg | a7216fd110a47c860225a1635e34a30a31ba5176 | [
"MIT"
] | null | null | null | Lib/ufo2svg/fontFace.py | LettError/ufo2svg | a7216fd110a47c860225a1635e34a30a31ba5176 | [
"MIT"
] | null | null | null | from xml.etree.ElementTree import Element
from tools import valueToString
def writeFontFace(font, svgFont):
svgFontFaceAttrib = {}
_writeFontFamily(font, svgFontFaceAttrib)
_writeFontStyle(font, svgFontFaceAttrib)
_writeFontWeight(font, svgFontFaceAttrib)
_writeFontStretch(font, svgFontFaceAttrib)
_writeUnitsPerEm(font, svgFontFaceAttrib)
_writeCapHeight(font, svgFontFaceAttrib)
_writeXHeight(font, svgFontFaceAttrib)
_writeAscent(font, svgFontFaceAttrib)
_writeDescent(font, svgFontFaceAttrib)
_writeBbox(font, svgFontFaceAttrib)
svgFontFace = Element("font-face", attrib=svgFontFaceAttrib)
svgFont.append(svgFontFace)
def _writeFontFamily(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeFontFamily(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.familyName = "Test Family"
>>> _writeFontFamily(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'font-family': 'Test Family'}
"""
if font.info.familyName is not None:
svgFontFaceAttrib["font-family"] = font.info.familyName
def _writeFontStyle(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeFontStyle(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.styleMapStyleName = "regular"
>>> _writeFontStyle(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'font-style': 'normal'}
>>> font.info.styleMapStyleName = "italic"
>>> _writeFontStyle(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'font-style': 'italic'}
"""
if font.info.styleMapStyleName is not None:
if "italic" in font.info.styleMapStyleName:
svgFontFaceAttrib["font-style"] = "italic"
else:
svgFontFaceAttrib["font-style"] = "normal"
def _writeFontWeight(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeFontWeight(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.openTypeOS2WeightClass = 100
>>> _writeFontWeight(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'font-weight': '100'}
"""
if font.info.openTypeOS2WeightClass is not None:
svgFontFaceAttrib["font-weight"] = valueToString(font.info.openTypeOS2WeightClass)
def _writeFontStretch(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeFontStretch(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.openTypeOS2WidthClass = 1
>>> _writeFontStretch(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'font-stretch': 'ultra-condensed'}
>>> font.info.openTypeOS2WidthClass = 9
>>> _writeFontStretch(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'font-stretch': 'ultra-expanded'}
"""
if font.info.openTypeOS2WidthClass >= 1 and font.info.openTypeOS2WidthClass <= 9:
options = "ultra-condensed extra-condensed condensed semi-condensed normal semi-expanded expanded extra-expanded ultra-expanded".split(" ")
svgFontFaceAttrib["font-stretch"] = options[font.info.openTypeOS2WidthClass - 1]
def _writeUnitsPerEm(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeUnitsPerEm(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.unitsPerEm = 1000
>>> _writeUnitsPerEm(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'units-per-em': '1000'}
"""
if font.info.unitsPerEm is not None:
svgFontFaceAttrib["units-per-em"] = valueToString(font.info.unitsPerEm)
def _writeCapHeight(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeCapHeight(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.capHeight = 750
>>> _writeCapHeight(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'cap-height': '750'}
"""
if font.info.capHeight is not None:
svgFontFaceAttrib["cap-height"] = valueToString(font.info.capHeight)
def _writeXHeight(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeXHeight(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.xHeight = 400
>>> _writeXHeight(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'x-height': '400'}
"""
if font.info.xHeight is not None:
svgFontFaceAttrib["x-height"] = valueToString(font.info.xHeight)
def _writeAscent(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeAscent(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.ascender = 750
>>> _writeAscent(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'ascent': '750'}
"""
if font.info.ascender is not None:
svgFontFaceAttrib["ascent"] = valueToString(font.info.ascender)
def _writeDescent(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeDescent(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{}
>>> font.info.descender = -250
>>> _writeDescent(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'descent': '-250'}
"""
if font.info.descender is not None:
svgFontFaceAttrib["descent"] = valueToString(font.info.descender)
def _writeBbox(font, svgFontFaceAttrib):
"""
>>> from defcon import Font
>>> font = Font()
>>> svgFontFaceAttrib = {}
>>> _writeBbox(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'bbox': '0 0 0 0'}
>>> font.newGlyph("A")
>>> glyph = font["A"]
>>> pen = glyph.getPen()
>>> pen.moveTo((-10, -10))
>>> pen.lineTo((-10, 10))
>>> pen.lineTo((10, 10))
>>> pen.lineTo((10, -10))
>>> pen.closePath()
>>> _writeBbox(font, svgFontFaceAttrib)
>>> svgFontFaceAttrib
{'bbox': '-10 -10 10 10'}
"""
rect = font.bounds
if rect is None:
rect = (0, 0, 0, 0)
rect = [valueToString(i) for i in rect]
svgFontFaceAttrib["bbox"] = " ".join(rect)
if __name__ == "__main__":
import doctest
doctest.testmod() | 32.019704 | 147 | 0.647077 | 552 | 6,500 | 7.528986 | 0.172101 | 0.262753 | 0.201155 | 0.151588 | 0.5077 | 0.232916 | 0.203561 | 0.169875 | 0.169875 | 0.011068 | 0 | 0.01612 | 0.207846 | 6,500 | 203 | 148 | 32.019704 | 0.791027 | 0.482923 | 0 | 0 | 0 | 0.017857 | 0.091007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0 | 0.053571 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cbfafd5d3b5ea4146232945e9d8add2184061a8 | 375 | py | Python | d6tflow/tasks/h5.py | dlfelps/d6tflow | 8f5104c642d37f5ef1cf545864986daac894330d | [
"MIT"
] | null | null | null | d6tflow/tasks/h5.py | dlfelps/d6tflow | 8f5104c642d37f5ef1cf545864986daac894330d | [
"MIT"
] | null | null | null | d6tflow/tasks/h5.py | dlfelps/d6tflow | 8f5104c642d37f5ef1cf545864986daac894330d | [
"MIT"
] | null | null | null | from d6tflow.tasks import TaskData
from d6tflow.targets.h5 import H5PandasTarget, H5KerasTarget
class TaskH5Pandas(TaskData):
"""
Task which saves to HDF5
"""
target_class = H5PandasTarget
target_ext = 'hdf5'
class TaskH5Keras(d6tflow.tasks.TaskData):
"""
Task which saves to HDF5
"""
target_class = H5KerasTarget
target_ext = 'hdf5' | 23.4375 | 60 | 0.701333 | 42 | 375 | 6.166667 | 0.452381 | 0.084942 | 0.131274 | 0.169884 | 0.301158 | 0.301158 | 0.301158 | 0.301158 | 0 | 0 | 0 | 0.047458 | 0.213333 | 375 | 16 | 61 | 23.4375 | 0.830508 | 0.130667 | 0 | 0.25 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7cc242f60c16ba220614e43c292406585aa58ed9 | 408 | py | Python | Algorithms/Sorting/InsertionSort/insertion_sort.py | Nidita/Data-Structures-Algorithms | 7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a | [
"MIT"
] | 26 | 2019-07-17T11:05:43.000Z | 2022-02-06T08:31:40.000Z | Algorithms/Sorting/InsertionSort/insertion_sort.py | Nidita/Data-Structures-Algorithms | 7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a | [
"MIT"
] | 7 | 2019-07-16T19:52:25.000Z | 2022-01-08T08:03:44.000Z | Algorithms/Sorting/InsertionSort/insertion_sort.py | Nidita/Data-Structures-Algorithms | 7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a | [
"MIT"
] | 19 | 2020-01-14T02:44:28.000Z | 2021-12-27T17:31:59.000Z | def insertion_sort(arr):
for i in range(1, len(arr)):
key = arr[i]
j = i - 1
while(j>=0 and arr[j]>key):
arr[j+1]=arr[j]
j = j - 1
arr[j+1] = key
return arr
def main():
arr = [6, 5, 8, 9, 3, 1, 4, 7, 2]
sorted_arr = insertion_sort(arr)
for i in sorted_arr:
print(i, end=" ")
if __name__ == "__main__":
main() | 20.4 | 37 | 0.458333 | 67 | 408 | 2.61194 | 0.447761 | 0.091429 | 0.182857 | 0.217143 | 0.251429 | 0.251429 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.382353 | 408 | 20 | 38 | 20.4 | 0.634921 | 0 | 0 | 0 | 0 | 0 | 0.022005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cc4b38748c7806f66ee5aec0f383b1c1798e7ba | 3,120 | py | Python | cime/scripts/lib/CIME/BuildTools/makemacroswriter.py | od2020/E3SM | f37bf3e054b3d12ec77191c0463b7bcd0b75db04 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | 1 | 2022-01-24T15:46:12.000Z | 2022-01-24T15:46:12.000Z | cime/scripts/lib/CIME/BuildTools/makemacroswriter.py | od2020/E3SM | f37bf3e054b3d12ec77191c0463b7bcd0b75db04 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | cime/scripts/lib/CIME/BuildTools/makemacroswriter.py | od2020/E3SM | f37bf3e054b3d12ec77191c0463b7bcd0b75db04 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | 1 | 2020-07-10T21:09:35.000Z | 2020-07-10T21:09:35.000Z | """Classes used to write build system files.
The classes here are used to write out settings for use by Makefile and CMake
build systems. The two relevant classes are CMakeMacroWriter and
MakeMacroWriter, which encapsulate the information necessary to write CMake and
Makefile formatted text, respectively. See the docstrings for those classes for
more.
"""
from CIME.BuildTools.macrowriterbase import MacroWriterBase
from CIME.XML.standard_module_setup import *
#logger = logging.getLogger(__name__)
# This is not the most useful check.
# pylint: disable=invalid-name
class MakeMacroWriter(MacroWriterBase):
"""Macro writer for the Makefile format.
For details on the provided methods, see MacroWriterBase, which this
class inherits from.
"""
def environment_variable_string(self, name):
"""Return an environment variable reference.
>>> import io
>>> s = io.StringIO()
>>> MakeMacroWriter(s).environment_variable_string("foo")
'$(foo)'
"""
return "$(" + name + ")"
def shell_command_strings(self, command):
"""Return strings used to get the output of a shell command.
>>> import io
>>> s = io.StringIO()
>>> MakeMacroWriter(s).shell_command_strings("echo bar")
(None, '$(shell echo bar)', None)
"""
return (None, "$(shell " + command + ")", None)
def variable_string(self, name):
"""Return a string to refer to a variable with the given name.
>>> import io
>>> s = io.StringIO()
>>> MakeMacroWriter(s).variable_string("foo")
'$(foo)'
"""
return "$(" + name + ")"
def set_variable(self, name, value):
"""Write out a statement setting a variable to some value.
>>> import io
>>> s = io.StringIO()
>>> MakeMacroWriter(s).set_variable("foo", "bar")
>>> str(s.getvalue())
'foo := bar\\n'
"""
# Note that ":=" is used so that we can control the behavior for
# both Makefile and CMake variables similarly.
self.write_line(name + " := " + value)
def start_ifeq(self, left, right):
"""Write out a statement to start a conditional block.
>>> import io
>>> s = io.StringIO()
>>> MakeMacroWriter(s).start_ifeq("foo", "bar")
>>> str(s.getvalue())
'ifeq (foo,bar)\\n'
"""
if right.startswith("!"):
right = right.lstrip("!")
not_str = "n"
else:
not_str = ""
self.write_line("if{}eq ({},{})".format(not_str, left, right))
self.indent_right()
def end_ifeq(self):
"""Write out a statement to end a block started with start_ifeq.
>>> import io
>>> s = io.StringIO()
>>> writer = MakeMacroWriter(s)
>>> writer.start_ifeq("foo", "bar")
>>> writer.set_variable("foo2", "bar2")
>>> writer.end_ifeq()
>>> str(s.getvalue())
'ifeq (foo,bar)\\n foo2 := bar2\\nendif\\n'
"""
self.indent_left()
self.write_line("endif")
| 31.2 | 79 | 0.585897 | 366 | 3,120 | 4.904372 | 0.346995 | 0.026741 | 0.030084 | 0.036769 | 0.237326 | 0.159889 | 0.159889 | 0 | 0 | 0 | 0 | 0.001775 | 0.277885 | 3,120 | 99 | 80 | 31.515152 | 0.79494 | 0.584615 | 0 | 0.090909 | 0 | 0 | 0.04371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7cc9b94c7472cdcc1eab6429fb175b82f6f051ad | 759 | py | Python | rpycserver.py | jesson20121020/myRobot | 667213f6b21ac69dddeff453c4ec663e3e082e73 | [
"Apache-2.0"
] | 2 | 2016-12-25T14:31:47.000Z | 2016-12-27T02:30:53.000Z | rpycserver.py | jesson20121020/myRobot | 667213f6b21ac69dddeff453c4ec663e3e082e73 | [
"Apache-2.0"
] | null | null | null | rpycserver.py | jesson20121020/myRobot | 667213f6b21ac69dddeff453c4ec663e3e082e73 | [
"Apache-2.0"
] | null | null | null | #encoding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import os, commands, glob, re
import datetime
from rpyc import Service
from rpyc.utils.server import ThreadedServer
class remote_call_func(Service):
def exposed_test(self, output):
print output
import SpecialServiceMgr
print 'xdc::::', SpecialServiceMgr.instance().msg
return SpecialServiceMgr.instance().msg
def exposed_reload(self, module_name): # 热更新
import sys
if module_name in sys.modules:
module = sys.modules[module_name]
reload(module)
return 'reload_module successfully'
else:
return '%s is not exist' % module_name
# rpycServer = ThreadedServer(remote_call_func, hostname='localhost', port=11111, auto_register=False)
# rpycServer.start() | 23 | 102 | 0.761528 | 99 | 759 | 5.717172 | 0.545455 | 0.070671 | 0.035336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010736 | 0.140975 | 759 | 33 | 103 | 23 | 0.857362 | 0.181818 | 0 | 0.095238 | 0 | 0 | 0.085761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7cd635d491262dae769f35d3aeaabef66dc15196 | 872 | py | Python | ulid/providers/time/base.py | xkortex/ulid | 96bdb1daad7ce96f6db8c91ac0410b66d2e1c4c1 | [
"Apache-2.0"
] | 303 | 2017-06-15T14:41:41.000Z | 2022-03-28T11:46:50.000Z | ulid/providers/time/base.py | xkortex/ulid | 96bdb1daad7ce96f6db8c91ac0410b66d2e1c4c1 | [
"Apache-2.0"
] | 387 | 2017-06-16T14:47:31.000Z | 2022-03-24T05:55:44.000Z | ulid/providers/time/base.py | xkortex/ulid | 96bdb1daad7ce96f6db8c91ac0410b66d2e1c4c1 | [
"Apache-2.0"
] | 21 | 2017-06-16T20:00:33.000Z | 2022-03-23T04:14:04.000Z | """
ulid/time/base
~~~~~~~~~~~~~~
Contains time abstract providers.
"""
import abc
from ... import hints
class Provider(metaclass=abc.ABCMeta):
"""
Abstract class that defines providers for current time values.
"""
@abc.abstractmethod
def milliseconds(self) -> hints.Int:
"""
Get the current time since unix epoch in milliseconds.
:return: Epoch timestamp in milliseconds.
:rtype: :class:`~int`
"""
raise NotImplementedError('Method must be implemented by derived class')
@abc.abstractmethod
def microseconds(self) -> hints.Int:
"""
Get the current time since unix epoch in microseconds.
:return: Epoch timestamp in microseconds.
:rtype: :class:`~int`
"""
raise NotImplementedError('Method must be implemented by derived class')
| 24.914286 | 80 | 0.623853 | 92 | 872 | 5.913043 | 0.456522 | 0.060662 | 0.073529 | 0.055147 | 0.4375 | 0.4375 | 0.4375 | 0.4375 | 0.4375 | 0.4375 | 0 | 0 | 0.266055 | 872 | 34 | 81 | 25.647059 | 0.85 | 0.420872 | 0 | 0.444444 | 0 | 0 | 0.219388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7cd9fc3d917b485ddd5f05d68ea833b4b87641c8 | 5,442 | py | Python | scripts/install_dev_python_modules.py | geoHeil/dagster | f044147f1cb0a545152bbe651f079974293deb73 | [
"Apache-2.0"
] | null | null | null | scripts/install_dev_python_modules.py | geoHeil/dagster | f044147f1cb0a545152bbe651f079974293deb73 | [
"Apache-2.0"
] | null | null | null | scripts/install_dev_python_modules.py | geoHeil/dagster | f044147f1cb0a545152bbe651f079974293deb73 | [
"Apache-2.0"
] | 1 | 2021-09-26T07:29:17.000Z | 2021-09-26T07:29:17.000Z | import os
import subprocess
import sys
def is_39():
return sys.version_info >= (3, 9)
def main(quiet):
"""
Python 3.9 Notes
================
Especially on macOS, there are still many missing wheels for Python 3.9, which means that some
dependencies may have to be built from source. You may find yourself needing to install system
packages such as freetype, gfortran, etc.; on macOS, Homebrew should suffice.
Tensorflow is still not available for 3.9 (2020-12-10), so we have put conditional logic in place
around examples, etc., that make use of it. https://github.com/tensorflow/tensorflow/issues/44485
Pyarrow is still not available for 3.9 (2020-12-10). https://github.com/apache/arrow/pull/8386
As a consequence of pyarrow, the snowflake connector also is not yet avaialble for 3.9 (2020-12-10).
https://github.com/snowflakedb/snowflake-connector-python/issues/562
"""
# Previously, we did a pip install --upgrade pip here. We have removed that and instead
# depend on the user to ensure an up-to-date pip is installed and available. For context, there
# is a lengthy discussion here: https://github.com/pypa/pip/issues/5599
# On machines with less memory, pyspark install will fail... see:
# https://stackoverflow.com/a/31526029/11295366
cmd = ["pip", "--no-cache-dir", "install", "pyspark>=3.0.1"]
if quiet:
cmd.append(quiet)
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
print(" ".join(cmd)) # pylint: disable=print-call
while True:
output = p.stdout.readline()
if p.poll() is not None:
break
if output:
print(output.decode("utf-8").strip()) # pylint: disable=print-call
install_targets = []
# Need to do this for 3.9 compat
# This is to ensure we can build Pandas on 3.9
# See: https://github.com/numpy/numpy/issues/17784,
if is_39():
install_targets += ["Cython==0.29.21", "numpy==1.18.5"]
install_targets += [
"awscli",
"-e python_modules/dagster[test]",
"-e python_modules/dagster-graphql",
"-e python_modules/dagster-test",
"-e python_modules/dagit",
"-e python_modules/automation",
"-e python_modules/libraries/dagster-pandas",
"-e python_modules/libraries/dagster-aws[test]",
"-e python_modules/libraries/dagster-celery",
"-e python_modules/libraries/dagster-celery-docker",
'-e "python_modules/libraries/dagster-dask[yarn,pbs,kube]"',
"-e python_modules/libraries/dagster-datadog",
"-e python_modules/libraries/dagster-dbt",
"-e python_modules/libraries/dagster-docker",
"-e python_modules/libraries/dagster-gcp",
"-e python_modules/libraries/dagster-k8s",
"-e python_modules/libraries/dagster-celery-k8s",
"-e python_modules/libraries/dagster-github",
"-e python_modules/libraries/dagster-mysql",
"-e python_modules/libraries/dagster-pagerduty",
"-e python_modules/libraries/dagster-papertrail",
"-e python_modules/libraries/dagster-postgres",
"-e python_modules/libraries/dagster-prometheus",
"-e python_modules/libraries/dagster-spark",
"-e python_modules/libraries/dagster-pyspark",
"-e python_modules/libraries/dagster-databricks",
"-e python_modules/libraries/dagster-shell",
"-e python_modules/libraries/dagster-slack",
"-e python_modules/libraries/dagster-ssh",
"-e python_modules/libraries/dagster-twilio",
"-e python_modules/libraries/lakehouse",
"-e python_modules/libraries/dagster-airflow",
"-e integration_tests/python_modules/dagster-k8s-test-infra",
"-r scala_modules/scripts/requirements.txt",
"-e python_modules/libraries/dagster-azure",
"-e python_modules/libraries/dagster-msteams",
"-e helm/dagster/schema[test]",
]
# dagster-ge depends on a great_expectations version that does not install on Windows
# https://github.com/dagster-io/dagster/issues/3319
if not os.name == "nt":
install_targets += ["-e python_modules/libraries/dagster-ge"]
if not is_39():
install_targets += [
"-e python_modules/libraries/dagster-snowflake",
"-e python_modules/libraries/dagstermill",
'-e "examples/airline_demo[full]"',
]
# NOTE: These need to be installed as one long pip install command, otherwise pip will install
# conflicting dependencies, which will break pip freeze snapshot creation during the integration
# image build!
cmd = ["pip", "install"] + install_targets
# Second, install with dependencies. Now, pip will see that the editable installs already
# exist and will use them instead of trying to find the projects on pypi.
cmd += ["&&", "pip", "install"] + install_targets
if quiet:
cmd.append(quiet)
p = subprocess.Popen(
" ".join(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True
)
print(" ".join(cmd)) # pylint: disable=print-call
while True:
output = p.stdout.readline()
if p.poll() is not None:
break
if output:
print(output.decode("utf-8").strip()) # pylint: disable=print-call
if __name__ == "__main__":
main(quiet=sys.argv[1] if len(sys.argv) > 1 else "")
| 41.541985 | 104 | 0.662257 | 713 | 5,442 | 4.970547 | 0.352034 | 0.135722 | 0.142212 | 0.201185 | 0.456264 | 0.263262 | 0.202314 | 0.152088 | 0.109199 | 0.09763 | 0 | 0.024784 | 0.214076 | 5,442 | 130 | 105 | 41.861538 | 0.803834 | 0.340867 | 0 | 0.240964 | 0 | 0 | 0.49673 | 0.423657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.036145 | 0.012048 | 0.072289 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ce54517517ac922bfc32c7bd663dabfac9cfb3b | 221 | py | Python | Mundo 2/ex047.py | lucashsbarros/Python_Curso | 01f7b5c89636cacc774d38b39951ac2b73272c63 | [
"MIT"
] | null | null | null | Mundo 2/ex047.py | lucashsbarros/Python_Curso | 01f7b5c89636cacc774d38b39951ac2b73272c63 | [
"MIT"
] | null | null | null | Mundo 2/ex047.py | lucashsbarros/Python_Curso | 01f7b5c89636cacc774d38b39951ac2b73272c63 | [
"MIT"
] | null | null | null | '''Crie um programa que mostre na tela todos os números pares que estão no intervalo entre 1 e 50'''
from time import sleep
e = '=-=' * 3
for par in range(0, 50+2, 2):
sleep(0.2)
print(par)
print( e +' FIM ' + e ) | 31.571429 | 100 | 0.633484 | 42 | 221 | 3.333333 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064706 | 0.230769 | 221 | 7 | 101 | 31.571429 | 0.758824 | 0.425339 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ce6b37b1fb2a601105d8f511466cb178a28879f | 555 | py | Python | scripts/rebalance_dataset.py | abhinavvadrevu/MelNet | 81043200e89e78cba4d065bb4bb262383d49e702 | [
"MIT"
] | 1 | 2021-06-10T22:42:38.000Z | 2021-06-10T22:42:38.000Z | scripts/rebalance_dataset.py | abhinavvadrevu/MelNet | 81043200e89e78cba4d065bb4bb262383d49e702 | [
"MIT"
] | null | null | null | scripts/rebalance_dataset.py | abhinavvadrevu/MelNet | 81043200e89e78cba4d065bb4bb262383d49e702 | [
"MIT"
] | 1 | 2021-03-24T16:54:41.000Z | 2021-03-24T16:54:41.000Z | import os
import shutil
trainset_index = 45325
testset_index = 567
while trainset_index < 47143:
train_txt_path = f'datasets/cleaned_blizzard/train_txt/{trainset_index:05d}.txt'
train_wav_path = f'datasets/cleaned_blizzard/train_wav/{trainset_index:05d}.wav'
test_txt_path = f'datasets/cleaned_blizzard/test_txt/{testset_index:05d}.txt'
test_wav_path = f'datasets/cleaned_blizzard/test_wav/{testset_index:05d}.wav'
os.rename(train_txt_path, test_txt_path)
os.rename(train_wav_path, test_wav_path)
trainset_index += 1
testset_index += 1 | 32.647059 | 82 | 0.8 | 88 | 555 | 4.670455 | 0.25 | 0.158151 | 0.126521 | 0.194647 | 0.345499 | 0.345499 | 0 | 0 | 0 | 0 | 0 | 0.046 | 0.099099 | 555 | 17 | 83 | 32.647059 | 0.776 | 0 | 0 | 0 | 0 | 0 | 0.42446 | 0.42446 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ce8828ceb78924296a3205dd45cf430fd81e7af | 5,215 | py | Python | sgce/settings.py | joseolinda/sgce | 13fec450da60c7c0279e3c8b89379c96a5443621 | [
"MIT"
] | 1 | 2020-12-16T17:21:47.000Z | 2020-12-16T17:21:47.000Z | sgce/settings.py | FcoGabrielSL/sgce | aba719895c8516bf38342fb8bdeca5c3394ddffd | [
"MIT"
] | null | null | null | sgce/settings.py | FcoGabrielSL/sgce | aba719895c8516bf38342fb8bdeca5c3394ddffd | [
"MIT"
] | 1 | 2020-12-15T16:41:35.000Z | 2020-12-15T16:41:35.000Z | """
Django settings for sgce project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
from decouple import config, Csv
from dj_database_url import parse as dburl
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
SITE_URL = config('SITE_URL', default = 'http://localhost:8000')
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = config('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = config('DEBUG', default = False, cast = bool)
ALLOWED_HOSTS = config('ALLOWED_HOSTS', default = [], cast = Csv())
INTERNAL_IPS = (
'127.0.0.1',
)
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
#Third-Apps
'test_without_migrations',
'tinymce',
'bootstrap4',
'django_select2',
'qr_code',
#System Apps
'sgce.core',
'sgce.accounts',
'sgce.certificates',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'sgce.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.template.context_processors.media',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'sgce.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
default_dburl = 'sqlite:///' + os.path.join(BASE_DIR, 'db.sqlite3')
DATABASES = {
'default': config('DATABASE_URL', default = default_dburl, cast = dburl),
}
# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/
LANGUAGE_CODE = 'pt-br'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Media files
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Login
LOGIN_REDIRECT_URL = 'core:index'
LOGIN_URL = 'login'
# Override Absolute URL's
ABSOLUTE_URL_OVERRIDES = {
'auth.User': lambda user: "user/{}/".format(user.pk)
}
TINYMCE_DEFAULT_CONFIG = {
'plugins': "table,xhtmlxtras,paste,searchreplace",
"theme_advanced_buttons3_add" : "cite,abbr",
'cleanup_on_startup': True,
'custom_undo_redo_levels': 10,
'theme_advanced_buttons1': "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
'theme_advanced_buttons2': "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
'theme_advanced_buttons3': "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
'theme_advanced_buttons4': "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
'extended_valid_elements': "iframe[src|title|width|height|allowfullscreen|frameborder|webkitAllowFullScreen|mozallowfullscreen|allowFullScreen]",
'theme_advanced_toolbar_location': "top",
'theme_advanced_toolbar_align': "left",
'theme_advanced_statusbar_location': "bottom",
'theme_advanced_resizing': True,
'width': '100%',
'height': "480",
}
| 30.497076 | 236 | 0.714477 | 589 | 5,215 | 6.179966 | 0.475382 | 0.053571 | 0.042308 | 0.048077 | 0.145879 | 0.127747 | 0.073352 | 0.073352 | 0.032967 | 0 | 0 | 0.010984 | 0.144583 | 5,215 | 170 | 237 | 30.676471 | 0.804976 | 0.200767 | 0 | 0 | 1 | 0.038835 | 0.594203 | 0.492512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.048544 | 0.029126 | 0 | 0.029126 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cfb1b51b215a55c9fffa001ecbe80f269ec1333 | 724 | py | Python | Python/bloombox/colors.py | sgammon/bloombox-client | 61720ab677a577992f84ed73e0d7faebda38d164 | [
"Apache-2.0"
] | null | null | null | Python/bloombox/colors.py | sgammon/bloombox-client | 61720ab677a577992f84ed73e0d7faebda38d164 | [
"Apache-2.0"
] | null | null | null | Python/bloombox/colors.py | sgammon/bloombox-client | 61720ab677a577992f84ed73e0d7faebda38d164 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__doc__ = """
bloombox: CLI color support
"""
# colorama
from colorama import init, Fore, Style
init()
def green(message):
""" Output a green message. """
print Fore.GREEN + message + Fore.RESET + Style.RESET_ALL
def red(message):
""" Output a red message. """
print Fore.RED + message + Fore.RESET + Style.RESET_ALL
def yellow(message):
""" Output a yellow message. """
print Fore.YELLOW + message + Fore.RESET + Style.RESET_ALL
def cyan(message):
""" Output a cyan message. """
print Fore.CYAN + message + Fore.RESET + Style.RESET_ALL
def gray(message):
""" Output a gray message. """
print Fore.LIGHTBLACK_EX + message + Fore.RESET + Style.RESET_ALL
| 15.083333 | 67 | 0.653315 | 97 | 724 | 4.773196 | 0.28866 | 0.140389 | 0.151188 | 0.226782 | 0.339093 | 0.339093 | 0.276458 | 0 | 0 | 0 | 0 | 0.001739 | 0.205801 | 724 | 47 | 68 | 15.404255 | 0.803478 | 0.041436 | 0 | 0 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cfbf09bfb425a86f32de1af77038410a69c0ba6 | 2,448 | py | Python | superpaper/spanmode.py | Aetf/superpaper | 286cfc37f260a286306c991e69abdacf77a3a88e | [
"MIT"
] | 757 | 2019-12-05T09:24:49.000Z | 2022-03-29T21:20:37.000Z | superpaper/spanmode.py | Aetf/superpaper | 286cfc37f260a286306c991e69abdacf77a3a88e | [
"MIT"
] | 105 | 2019-12-02T20:43:29.000Z | 2022-03-08T19:14:54.000Z | superpaper/spanmode.py | Aetf/superpaper | 286cfc37f260a286306c991e69abdacf77a3a88e | [
"MIT"
] | 29 | 2019-12-06T14:30:02.000Z | 2022-02-13T12:21:53.000Z | """Control host OS desktop background spanning mode when needed."""
import os
import platform
import subprocess
if platform.system() == "Windows":
import winreg
def set_spanmode():
"""Sets host OS desktop background to span all displays."""
pltf = platform.system()
if pltf == "Windows":
# Windows wallpaper fitting style codes:
# Fill = 10
# Fit = 6
# Stretch = 2
# Tile = 0 and there is another key called "TileWallpaper" which needs value 1
# Center = 0 (with key "TileWallpaper" = 0)
# Span = 22
# Both WallpaperStyle and TileWallpaper keys need to be set under HKEY_CURRENT_USER\Control Panel\Desktop
reg_key_desktop = winreg.OpenKey(winreg.HKEY_CURRENT_USER,
r'Control Panel\Desktop',
0, winreg.KEY_SET_VALUE)
winreg.SetValueEx(reg_key_desktop, "WallpaperStyle", 0, winreg.REG_SZ, "22")
winreg.SetValueEx(reg_key_desktop, "TileWallpaper", 0, winreg.REG_SZ, "0")
elif pltf == "Linux":
desk_env = os.environ.get("DESKTOP_SESSION")
if desk_env:
if desk_env in ["gnome", "gnome-wayland", "gnome-xorg",
"unity", "ubuntu",
"pantheon", "budgie-desktop",
"pop"]:
subprocess.run(["gsettings", "set",
"org.gnome.desktop.background", "picture-options",
"spanned"])
elif desk_env in ["cinnamon"]:
subprocess.run(["gsettings", "set",
"org.cinnamon.desktop.background", "picture-options",
"spanned"])
elif desk_env in ["mate"]:
subprocess.run(["gsettings", "set",
"org.mate.background", "picture-options",
"spanned"])
elif desk_env.lower() == "lubuntu" or "lxqt" in desk_env.lower():
try:
subprocess.run(["pcmanfm", "--wallpaper-mode=stretch"])
except OSError:
try:
subprocess.run(["pcmanfm-qt", "--wallpaper-mode=stretch"])
except OSError:
pass
elif pltf == "Darwin":
# Mac support TODO
pass
else:
pass
| 42.206897 | 113 | 0.506944 | 237 | 2,448 | 5.139241 | 0.443038 | 0.04023 | 0.03202 | 0.061576 | 0.288998 | 0.118227 | 0.118227 | 0.083744 | 0.083744 | 0 | 0 | 0.01061 | 0.383987 | 2,448 | 57 | 114 | 42.947368 | 0.797082 | 0.178105 | 0 | 0.302326 | 0 | 0 | 0.212243 | 0.053688 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.023256 | false | 0.069767 | 0.093023 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7cfe65be35eaab42fe4ca125da819d2f35f36473 | 60,003 | py | Python | public/Python27/Lib/test/string_tests.py | NingrumFadillah/cekmutasi | 1fccb6cafb874c2a80ece9b71d7c682fd44dbd48 | [
"MIT"
] | 27 | 2020-11-12T19:24:54.000Z | 2022-03-27T23:10:45.000Z | public/Python27/Lib/test/string_tests.py | NingrumFadillah/cekmutasi | 1fccb6cafb874c2a80ece9b71d7c682fd44dbd48 | [
"MIT"
] | 2 | 2020-11-02T06:30:39.000Z | 2022-02-23T18:39:55.000Z | public/Python27/Lib/test/string_tests.py | NingrumFadillah/cekmutasi | 1fccb6cafb874c2a80ece9b71d7c682fd44dbd48 | [
"MIT"
] | 3 | 2017-04-07T12:02:22.000Z | 2020-03-23T12:11:55.000Z | """
Common tests shared by test_str, test_unicode, test_userstring and test_string.
"""
import unittest, string, sys, struct
from test import test_support
from UserList import UserList
class Sequence:
def __init__(self, seq='wxyz'): self.seq = seq
def __len__(self): return len(self.seq)
def __getitem__(self, i): return self.seq[i]
class BadSeq1(Sequence):
def __init__(self): self.seq = [7, 'hello', 123L]
class BadSeq2(Sequence):
def __init__(self): self.seq = ['a', 'b', 'c']
def __len__(self): return 8
class CommonTest(unittest.TestCase):
# This testcase contains test that can be used in all
# stringlike classes. Currently this is str, unicode
# UserString and the string module.
# The type to be tested
# Change in subclasses to change the behaviour of fixtesttype()
type2test = None
# All tests pass their arguments to the testing methods
# as str objects. fixtesttype() can be used to propagate
# these arguments to the appropriate type
def fixtype(self, obj):
if isinstance(obj, str):
return self.__class__.type2test(obj)
elif isinstance(obj, list):
return [self.fixtype(x) for x in obj]
elif isinstance(obj, tuple):
return tuple([self.fixtype(x) for x in obj])
elif isinstance(obj, dict):
return dict([
(self.fixtype(key), self.fixtype(value))
for (key, value) in obj.iteritems()
])
else:
return obj
# check that object.method(*args) returns result
def checkequal(self, result, object, methodname, *args):
result = self.fixtype(result)
object = self.fixtype(object)
args = self.fixtype(args)
realresult = getattr(object, methodname)(*args)
self.assertEqual(
result,
realresult
)
# if the original is returned make sure that
# this doesn't happen with subclasses
if object == realresult:
class subtype(self.__class__.type2test):
pass
object = subtype(object)
realresult = getattr(object, methodname)(*args)
self.assert_(object is not realresult)
# check that object.method(*args) raises exc
def checkraises(self, exc, object, methodname, *args):
object = self.fixtype(object)
args = self.fixtype(args)
self.assertRaises(
exc,
getattr(object, methodname),
*args
)
# call object.method(*args) without any checks
def checkcall(self, object, methodname, *args):
object = self.fixtype(object)
args = self.fixtype(args)
getattr(object, methodname)(*args)
def test_hash(self):
# SF bug 1054139: += optimization was not invalidating cached hash value
a = self.type2test('DNSSEC')
b = self.type2test('')
for c in a:
b += c
hash(b)
self.assertEqual(hash(a), hash(b))
def test_capitalize(self):
self.checkequal(' hello ', ' hello ', 'capitalize')
self.checkequal('Hello ', 'Hello ','capitalize')
self.checkequal('Hello ', 'hello ','capitalize')
self.checkequal('Aaaa', 'aaaa', 'capitalize')
self.checkequal('Aaaa', 'AaAa', 'capitalize')
self.checkraises(TypeError, 'hello', 'capitalize', 42)
def test_count(self):
self.checkequal(3, 'aaa', 'count', 'a')
self.checkequal(0, 'aaa', 'count', 'b')
self.checkequal(3, 'aaa', 'count', 'a')
self.checkequal(0, 'aaa', 'count', 'b')
self.checkequal(3, 'aaa', 'count', 'a')
self.checkequal(0, 'aaa', 'count', 'b')
self.checkequal(0, 'aaa', 'count', 'b')
self.checkequal(2, 'aaa', 'count', 'a', 1)
self.checkequal(0, 'aaa', 'count', 'a', 10)
self.checkequal(1, 'aaa', 'count', 'a', -1)
self.checkequal(3, 'aaa', 'count', 'a', -10)
self.checkequal(1, 'aaa', 'count', 'a', 0, 1)
self.checkequal(3, 'aaa', 'count', 'a', 0, 10)
self.checkequal(2, 'aaa', 'count', 'a', 0, -1)
self.checkequal(0, 'aaa', 'count', 'a', 0, -10)
self.checkequal(3, 'aaa', 'count', '', 1)
self.checkequal(1, 'aaa', 'count', '', 3)
self.checkequal(0, 'aaa', 'count', '', 10)
self.checkequal(2, 'aaa', 'count', '', -1)
self.checkequal(4, 'aaa', 'count', '', -10)
self.checkequal(1, '', 'count', '')
self.checkequal(0, '', 'count', '', 1, 1)
self.checkequal(0, '', 'count', '', sys.maxint, 0)
self.checkequal(0, '', 'count', 'xx')
self.checkequal(0, '', 'count', 'xx', 1, 1)
self.checkequal(0, '', 'count', 'xx', sys.maxint, 0)
self.checkraises(TypeError, 'hello', 'count')
self.checkraises(TypeError, 'hello', 'count', 42)
# For a variety of combinations,
# verify that str.count() matches an equivalent function
# replacing all occurrences and then differencing the string lengths
charset = ['', 'a', 'b']
digits = 7
base = len(charset)
teststrings = set()
for i in xrange(base ** digits):
entry = []
for j in xrange(digits):
i, m = divmod(i, base)
entry.append(charset[m])
teststrings.add(''.join(entry))
teststrings = list(teststrings)
for i in teststrings:
i = self.fixtype(i)
n = len(i)
for j in teststrings:
r1 = i.count(j)
if j:
r2, rem = divmod(n - len(i.replace(j, '')), len(j))
else:
r2, rem = len(i)+1, 0
if rem or r1 != r2:
self.assertEqual(rem, 0, '%s != 0 for %s' % (rem, i))
self.assertEqual(r1, r2, '%s != %s for %s' % (r1, r2, i))
def test_find(self):
self.checkequal(0, 'abcdefghiabc', 'find', 'abc')
self.checkequal(9, 'abcdefghiabc', 'find', 'abc', 1)
self.checkequal(-1, 'abcdefghiabc', 'find', 'def', 4)
self.checkequal(0, 'abc', 'find', '', 0)
self.checkequal(3, 'abc', 'find', '', 3)
self.checkequal(-1, 'abc', 'find', '', 4)
# to check the ability to pass None as defaults
self.checkequal( 2, 'rrarrrrrrrrra', 'find', 'a')
self.checkequal(12, 'rrarrrrrrrrra', 'find', 'a', 4)
self.checkequal(-1, 'rrarrrrrrrrra', 'find', 'a', 4, 6)
self.checkequal(12, 'rrarrrrrrrrra', 'find', 'a', 4, None)
self.checkequal( 2, 'rrarrrrrrrrra', 'find', 'a', None, 6)
self.checkraises(TypeError, 'hello', 'find')
self.checkraises(TypeError, 'hello', 'find', 42)
self.checkequal(0, '', 'find', '')
self.checkequal(-1, '', 'find', '', 1, 1)
self.checkequal(-1, '', 'find', '', sys.maxint, 0)
self.checkequal(-1, '', 'find', 'xx')
self.checkequal(-1, '', 'find', 'xx', 1, 1)
self.checkequal(-1, '', 'find', 'xx', sys.maxint, 0)
# issue 7458
self.checkequal(-1, 'ab', 'find', 'xxx', sys.maxsize + 1, 0)
# For a variety of combinations,
# verify that str.find() matches __contains__
# and that the found substring is really at that location
charset = ['', 'a', 'b', 'c']
digits = 5
base = len(charset)
teststrings = set()
for i in xrange(base ** digits):
entry = []
for j in xrange(digits):
i, m = divmod(i, base)
entry.append(charset[m])
teststrings.add(''.join(entry))
teststrings = list(teststrings)
for i in teststrings:
i = self.fixtype(i)
for j in teststrings:
loc = i.find(j)
r1 = (loc != -1)
r2 = j in i
self.assertEqual(r1, r2)
if loc != -1:
self.assertEqual(i[loc:loc+len(j)], j)
def test_rfind(self):
self.checkequal(9, 'abcdefghiabc', 'rfind', 'abc')
self.checkequal(12, 'abcdefghiabc', 'rfind', '')
self.checkequal(0, 'abcdefghiabc', 'rfind', 'abcd')
self.checkequal(-1, 'abcdefghiabc', 'rfind', 'abcz')
self.checkequal(3, 'abc', 'rfind', '', 0)
self.checkequal(3, 'abc', 'rfind', '', 3)
self.checkequal(-1, 'abc', 'rfind', '', 4)
# to check the ability to pass None as defaults
self.checkequal(12, 'rrarrrrrrrrra', 'rfind', 'a')
self.checkequal(12, 'rrarrrrrrrrra', 'rfind', 'a', 4)
self.checkequal(-1, 'rrarrrrrrrrra', 'rfind', 'a', 4, 6)
self.checkequal(12, 'rrarrrrrrrrra', 'rfind', 'a', 4, None)
self.checkequal( 2, 'rrarrrrrrrrra', 'rfind', 'a', None, 6)
self.checkraises(TypeError, 'hello', 'rfind')
self.checkraises(TypeError, 'hello', 'rfind', 42)
# For a variety of combinations,
# verify that str.rfind() matches __contains__
# and that the found substring is really at that location
charset = ['', 'a', 'b', 'c']
digits = 5
base = len(charset)
teststrings = set()
for i in xrange(base ** digits):
entry = []
for j in xrange(digits):
i, m = divmod(i, base)
entry.append(charset[m])
teststrings.add(''.join(entry))
teststrings = list(teststrings)
for i in teststrings:
i = self.fixtype(i)
for j in teststrings:
loc = i.rfind(j)
r1 = (loc != -1)
r2 = j in i
self.assertEqual(r1, r2)
if loc != -1:
self.assertEqual(i[loc:loc+len(j)], j)
# issue 7458
self.checkequal(-1, 'ab', 'rfind', 'xxx', sys.maxsize + 1, 0)
def test_index(self):
self.checkequal(0, 'abcdefghiabc', 'index', '')
self.checkequal(3, 'abcdefghiabc', 'index', 'def')
self.checkequal(0, 'abcdefghiabc', 'index', 'abc')
self.checkequal(9, 'abcdefghiabc', 'index', 'abc', 1)
self.checkraises(ValueError, 'abcdefghiabc', 'index', 'hib')
self.checkraises(ValueError, 'abcdefghiab', 'index', 'abc', 1)
self.checkraises(ValueError, 'abcdefghi', 'index', 'ghi', 8)
self.checkraises(ValueError, 'abcdefghi', 'index', 'ghi', -1)
# to check the ability to pass None as defaults
self.checkequal( 2, 'rrarrrrrrrrra', 'index', 'a')
self.checkequal(12, 'rrarrrrrrrrra', 'index', 'a', 4)
self.checkraises(ValueError, 'rrarrrrrrrrra', 'index', 'a', 4, 6)
self.checkequal(12, 'rrarrrrrrrrra', 'index', 'a', 4, None)
self.checkequal( 2, 'rrarrrrrrrrra', 'index', 'a', None, 6)
self.checkraises(TypeError, 'hello', 'index')
self.checkraises(TypeError, 'hello', 'index', 42)
def test_rindex(self):
self.checkequal(12, 'abcdefghiabc', 'rindex', '')
self.checkequal(3, 'abcdefghiabc', 'rindex', 'def')
self.checkequal(9, 'abcdefghiabc', 'rindex', 'abc')
self.checkequal(0, 'abcdefghiabc', 'rindex', 'abc', 0, -1)
self.checkraises(ValueError, 'abcdefghiabc', 'rindex', 'hib')
self.checkraises(ValueError, 'defghiabc', 'rindex', 'def', 1)
self.checkraises(ValueError, 'defghiabc', 'rindex', 'abc', 0, -1)
self.checkraises(ValueError, 'abcdefghi', 'rindex', 'ghi', 0, 8)
self.checkraises(ValueError, 'abcdefghi', 'rindex', 'ghi', 0, -1)
# to check the ability to pass None as defaults
self.checkequal(12, 'rrarrrrrrrrra', 'rindex', 'a')
self.checkequal(12, 'rrarrrrrrrrra', 'rindex', 'a', 4)
self.checkraises(ValueError, 'rrarrrrrrrrra', 'rindex', 'a', 4, 6)
self.checkequal(12, 'rrarrrrrrrrra', 'rindex', 'a', 4, None)
self.checkequal( 2, 'rrarrrrrrrrra', 'rindex', 'a', None, 6)
self.checkraises(TypeError, 'hello', 'rindex')
self.checkraises(TypeError, 'hello', 'rindex', 42)
def test_lower(self):
self.checkequal('hello', 'HeLLo', 'lower')
self.checkequal('hello', 'hello', 'lower')
self.checkraises(TypeError, 'hello', 'lower', 42)
def test_upper(self):
self.checkequal('HELLO', 'HeLLo', 'upper')
self.checkequal('HELLO', 'HELLO', 'upper')
self.checkraises(TypeError, 'hello', 'upper', 42)
def test_expandtabs(self):
self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs')
self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs', 8)
self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs', 4)
self.checkequal('abc\r\nab def\ng hi', 'abc\r\nab\tdef\ng\thi', 'expandtabs', 4)
self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs')
self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi', 'expandtabs', 8)
self.checkequal('abc\r\nab\r\ndef\ng\r\nhi', 'abc\r\nab\r\ndef\ng\r\nhi', 'expandtabs', 4)
self.checkequal(' a\n b', ' \ta\n\tb', 'expandtabs', 1)
self.checkraises(TypeError, 'hello', 'expandtabs', 42, 42)
# This test is only valid when sizeof(int) == sizeof(void*) == 4.
if sys.maxint < (1 << 32) and struct.calcsize('P') == 4:
self.checkraises(OverflowError,
'\ta\n\tb', 'expandtabs', sys.maxint)
def test_split(self):
self.checkequal(['this', 'is', 'the', 'split', 'function'],
'this is the split function', 'split')
# by whitespace
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d ', 'split')
self.checkequal(['a', 'b c d'], 'a b c d', 'split', None, 1)
self.checkequal(['a', 'b', 'c d'], 'a b c d', 'split', None, 2)
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d', 'split', None, 3)
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d', 'split', None, 4)
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d', 'split', None,
sys.maxint-1)
self.checkequal(['a b c d'], 'a b c d', 'split', None, 0)
self.checkequal(['a b c d'], ' a b c d', 'split', None, 0)
self.checkequal(['a', 'b', 'c d'], 'a b c d', 'split', None, 2)
self.checkequal([], ' ', 'split')
self.checkequal(['a'], ' a ', 'split')
self.checkequal(['a', 'b'], ' a b ', 'split')
self.checkequal(['a', 'b '], ' a b ', 'split', None, 1)
self.checkequal(['a', 'b c '], ' a b c ', 'split', None, 1)
self.checkequal(['a', 'b', 'c '], ' a b c ', 'split', None, 2)
self.checkequal(['a', 'b'], '\n\ta \t\r b \v ', 'split')
aaa = ' a '*20
self.checkequal(['a']*20, aaa, 'split')
self.checkequal(['a'] + [aaa[4:]], aaa, 'split', None, 1)
self.checkequal(['a']*19 + ['a '], aaa, 'split', None, 19)
# by a char
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|')
self.checkequal(['a|b|c|d'], 'a|b|c|d', 'split', '|', 0)
self.checkequal(['a', 'b|c|d'], 'a|b|c|d', 'split', '|', 1)
self.checkequal(['a', 'b', 'c|d'], 'a|b|c|d', 'split', '|', 2)
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|', 3)
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|', 4)
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|',
sys.maxint-2)
self.checkequal(['a|b|c|d'], 'a|b|c|d', 'split', '|', 0)
self.checkequal(['a', '', 'b||c||d'], 'a||b||c||d', 'split', '|', 2)
self.checkequal(['endcase ', ''], 'endcase |', 'split', '|')
self.checkequal(['', ' startcase'], '| startcase', 'split', '|')
self.checkequal(['', 'bothcase', ''], '|bothcase|', 'split', '|')
self.checkequal(['a', '', 'b\x00c\x00d'], 'a\x00\x00b\x00c\x00d', 'split', '\x00', 2)
self.checkequal(['a']*20, ('a|'*20)[:-1], 'split', '|')
self.checkequal(['a']*15 +['a|a|a|a|a'],
('a|'*20)[:-1], 'split', '|', 15)
# by string
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'split', '//')
self.checkequal(['a', 'b//c//d'], 'a//b//c//d', 'split', '//', 1)
self.checkequal(['a', 'b', 'c//d'], 'a//b//c//d', 'split', '//', 2)
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'split', '//', 3)
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'split', '//', 4)
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'split', '//',
sys.maxint-10)
self.checkequal(['a//b//c//d'], 'a//b//c//d', 'split', '//', 0)
self.checkequal(['a', '', 'b////c////d'], 'a////b////c////d', 'split', '//', 2)
self.checkequal(['endcase ', ''], 'endcase test', 'split', 'test')
self.checkequal(['', ' begincase'], 'test begincase', 'split', 'test')
self.checkequal(['', ' bothcase ', ''], 'test bothcase test',
'split', 'test')
self.checkequal(['a', 'bc'], 'abbbc', 'split', 'bb')
self.checkequal(['', ''], 'aaa', 'split', 'aaa')
self.checkequal(['aaa'], 'aaa', 'split', 'aaa', 0)
self.checkequal(['ab', 'ab'], 'abbaab', 'split', 'ba')
self.checkequal(['aaaa'], 'aaaa', 'split', 'aab')
self.checkequal([''], '', 'split', 'aaa')
self.checkequal(['aa'], 'aa', 'split', 'aaa')
self.checkequal(['A', 'bobb'], 'Abbobbbobb', 'split', 'bbobb')
self.checkequal(['A', 'B', ''], 'AbbobbBbbobb', 'split', 'bbobb')
self.checkequal(['a']*20, ('aBLAH'*20)[:-4], 'split', 'BLAH')
self.checkequal(['a']*20, ('aBLAH'*20)[:-4], 'split', 'BLAH', 19)
self.checkequal(['a']*18 + ['aBLAHa'], ('aBLAH'*20)[:-4],
'split', 'BLAH', 18)
# mixed use of str and unicode
self.checkequal([u'a', u'b', u'c d'], 'a b c d', 'split', u' ', 2)
# argument type
self.checkraises(TypeError, 'hello', 'split', 42, 42, 42)
# null case
self.checkraises(ValueError, 'hello', 'split', '')
self.checkraises(ValueError, 'hello', 'split', '', 0)
def test_rsplit(self):
self.checkequal(['this', 'is', 'the', 'rsplit', 'function'],
'this is the rsplit function', 'rsplit')
# by whitespace
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d ', 'rsplit')
self.checkequal(['a b c', 'd'], 'a b c d', 'rsplit', None, 1)
self.checkequal(['a b', 'c', 'd'], 'a b c d', 'rsplit', None, 2)
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d', 'rsplit', None, 3)
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d', 'rsplit', None, 4)
self.checkequal(['a', 'b', 'c', 'd'], 'a b c d', 'rsplit', None,
sys.maxint-20)
self.checkequal(['a b c d'], 'a b c d', 'rsplit', None, 0)
self.checkequal(['a b c d'], 'a b c d ', 'rsplit', None, 0)
self.checkequal(['a b', 'c', 'd'], 'a b c d', 'rsplit', None, 2)
self.checkequal([], ' ', 'rsplit')
self.checkequal(['a'], ' a ', 'rsplit')
self.checkequal(['a', 'b'], ' a b ', 'rsplit')
self.checkequal([' a', 'b'], ' a b ', 'rsplit', None, 1)
self.checkequal([' a b','c'], ' a b c ', 'rsplit',
None, 1)
self.checkequal([' a', 'b', 'c'], ' a b c ', 'rsplit',
None, 2)
self.checkequal(['a', 'b'], '\n\ta \t\r b \v ', 'rsplit', None, 88)
aaa = ' a '*20
self.checkequal(['a']*20, aaa, 'rsplit')
self.checkequal([aaa[:-4]] + ['a'], aaa, 'rsplit', None, 1)
self.checkequal([' a a'] + ['a']*18, aaa, 'rsplit', None, 18)
# by a char
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'rsplit', '|')
self.checkequal(['a|b|c', 'd'], 'a|b|c|d', 'rsplit', '|', 1)
self.checkequal(['a|b', 'c', 'd'], 'a|b|c|d', 'rsplit', '|', 2)
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'rsplit', '|', 3)
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'rsplit', '|', 4)
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'rsplit', '|',
sys.maxint-100)
self.checkequal(['a|b|c|d'], 'a|b|c|d', 'rsplit', '|', 0)
self.checkequal(['a||b||c', '', 'd'], 'a||b||c||d', 'rsplit', '|', 2)
self.checkequal(['', ' begincase'], '| begincase', 'rsplit', '|')
self.checkequal(['endcase ', ''], 'endcase |', 'rsplit', '|')
self.checkequal(['', 'bothcase', ''], '|bothcase|', 'rsplit', '|')
self.checkequal(['a\x00\x00b', 'c', 'd'], 'a\x00\x00b\x00c\x00d', 'rsplit', '\x00', 2)
self.checkequal(['a']*20, ('a|'*20)[:-1], 'rsplit', '|')
self.checkequal(['a|a|a|a|a']+['a']*15,
('a|'*20)[:-1], 'rsplit', '|', 15)
# by string
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'rsplit', '//')
self.checkequal(['a//b//c', 'd'], 'a//b//c//d', 'rsplit', '//', 1)
self.checkequal(['a//b', 'c', 'd'], 'a//b//c//d', 'rsplit', '//', 2)
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'rsplit', '//', 3)
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'rsplit', '//', 4)
self.checkequal(['a', 'b', 'c', 'd'], 'a//b//c//d', 'rsplit', '//',
sys.maxint-5)
self.checkequal(['a//b//c//d'], 'a//b//c//d', 'rsplit', '//', 0)
self.checkequal(['a////b////c', '', 'd'], 'a////b////c////d', 'rsplit', '//', 2)
self.checkequal(['', ' begincase'], 'test begincase', 'rsplit', 'test')
self.checkequal(['endcase ', ''], 'endcase test', 'rsplit', 'test')
self.checkequal(['', ' bothcase ', ''], 'test bothcase test',
'rsplit', 'test')
self.checkequal(['ab', 'c'], 'abbbc', 'rsplit', 'bb')
self.checkequal(['', ''], 'aaa', 'rsplit', 'aaa')
self.checkequal(['aaa'], 'aaa', 'rsplit', 'aaa', 0)
self.checkequal(['ab', 'ab'], 'abbaab', 'rsplit', 'ba')
self.checkequal(['aaaa'], 'aaaa', 'rsplit', 'aab')
self.checkequal([''], '', 'rsplit', 'aaa')
self.checkequal(['aa'], 'aa', 'rsplit', 'aaa')
self.checkequal(['bbob', 'A'], 'bbobbbobbA', 'rsplit', 'bbobb')
self.checkequal(['', 'B', 'A'], 'bbobbBbbobbA', 'rsplit', 'bbobb')
self.checkequal(['a']*20, ('aBLAH'*20)[:-4], 'rsplit', 'BLAH')
self.checkequal(['a']*20, ('aBLAH'*20)[:-4], 'rsplit', 'BLAH', 19)
self.checkequal(['aBLAHa'] + ['a']*18, ('aBLAH'*20)[:-4],
'rsplit', 'BLAH', 18)
# mixed use of str and unicode
self.checkequal([u'a b', u'c', u'd'], 'a b c d', 'rsplit', u' ', 2)
# argument type
self.checkraises(TypeError, 'hello', 'rsplit', 42, 42, 42)
# null case
self.checkraises(ValueError, 'hello', 'rsplit', '')
self.checkraises(ValueError, 'hello', 'rsplit', '', 0)
def test_strip(self):
self.checkequal('hello', ' hello ', 'strip')
self.checkequal('hello ', ' hello ', 'lstrip')
self.checkequal(' hello', ' hello ', 'rstrip')
self.checkequal('hello', 'hello', 'strip')
# strip/lstrip/rstrip with None arg
self.checkequal('hello', ' hello ', 'strip', None)
self.checkequal('hello ', ' hello ', 'lstrip', None)
self.checkequal(' hello', ' hello ', 'rstrip', None)
self.checkequal('hello', 'hello', 'strip', None)
# strip/lstrip/rstrip with str arg
self.checkequal('hello', 'xyzzyhelloxyzzy', 'strip', 'xyz')
self.checkequal('helloxyzzy', 'xyzzyhelloxyzzy', 'lstrip', 'xyz')
self.checkequal('xyzzyhello', 'xyzzyhelloxyzzy', 'rstrip', 'xyz')
self.checkequal('hello', 'hello', 'strip', 'xyz')
# strip/lstrip/rstrip with unicode arg
if test_support.have_unicode:
self.checkequal(unicode('hello', 'ascii'), 'xyzzyhelloxyzzy',
'strip', unicode('xyz', 'ascii'))
self.checkequal(unicode('helloxyzzy', 'ascii'), 'xyzzyhelloxyzzy',
'lstrip', unicode('xyz', 'ascii'))
self.checkequal(unicode('xyzzyhello', 'ascii'), 'xyzzyhelloxyzzy',
'rstrip', unicode('xyz', 'ascii'))
# XXX
#self.checkequal(unicode('hello', 'ascii'), 'hello',
# 'strip', unicode('xyz', 'ascii'))
self.checkraises(TypeError, 'hello', 'strip', 42, 42)
self.checkraises(TypeError, 'hello', 'lstrip', 42, 42)
self.checkraises(TypeError, 'hello', 'rstrip', 42, 42)
def test_ljust(self):
self.checkequal('abc ', 'abc', 'ljust', 10)
self.checkequal('abc ', 'abc', 'ljust', 6)
self.checkequal('abc', 'abc', 'ljust', 3)
self.checkequal('abc', 'abc', 'ljust', 2)
self.checkequal('abc*******', 'abc', 'ljust', 10, '*')
self.checkraises(TypeError, 'abc', 'ljust')
def test_rjust(self):
self.checkequal(' abc', 'abc', 'rjust', 10)
self.checkequal(' abc', 'abc', 'rjust', 6)
self.checkequal('abc', 'abc', 'rjust', 3)
self.checkequal('abc', 'abc', 'rjust', 2)
self.checkequal('*******abc', 'abc', 'rjust', 10, '*')
self.checkraises(TypeError, 'abc', 'rjust')
def test_center(self):
self.checkequal(' abc ', 'abc', 'center', 10)
self.checkequal(' abc ', 'abc', 'center', 6)
self.checkequal('abc', 'abc', 'center', 3)
self.checkequal('abc', 'abc', 'center', 2)
self.checkequal('***abc****', 'abc', 'center', 10, '*')
self.checkraises(TypeError, 'abc', 'center')
def test_swapcase(self):
self.checkequal('hEllO CoMPuTErS', 'HeLLo cOmpUteRs', 'swapcase')
self.checkraises(TypeError, 'hello', 'swapcase', 42)
def test_replace(self):
EQ = self.checkequal
# Operations on the empty string
EQ("", "", "replace", "", "")
EQ("A", "", "replace", "", "A")
EQ("", "", "replace", "A", "")
EQ("", "", "replace", "A", "A")
EQ("", "", "replace", "", "", 100)
EQ("", "", "replace", "", "", sys.maxint)
# interleave (from=="", 'to' gets inserted everywhere)
EQ("A", "A", "replace", "", "")
EQ("*A*", "A", "replace", "", "*")
EQ("*1A*1", "A", "replace", "", "*1")
EQ("*-#A*-#", "A", "replace", "", "*-#")
EQ("*-A*-A*-", "AA", "replace", "", "*-")
EQ("*-A*-A*-", "AA", "replace", "", "*-", -1)
EQ("*-A*-A*-", "AA", "replace", "", "*-", sys.maxint)
EQ("*-A*-A*-", "AA", "replace", "", "*-", 4)
EQ("*-A*-A*-", "AA", "replace", "", "*-", 3)
EQ("*-A*-A", "AA", "replace", "", "*-", 2)
EQ("*-AA", "AA", "replace", "", "*-", 1)
EQ("AA", "AA", "replace", "", "*-", 0)
# single character deletion (from=="A", to=="")
EQ("", "A", "replace", "A", "")
EQ("", "AAA", "replace", "A", "")
EQ("", "AAA", "replace", "A", "", -1)
EQ("", "AAA", "replace", "A", "", sys.maxint)
EQ("", "AAA", "replace", "A", "", 4)
EQ("", "AAA", "replace", "A", "", 3)
EQ("A", "AAA", "replace", "A", "", 2)
EQ("AA", "AAA", "replace", "A", "", 1)
EQ("AAA", "AAA", "replace", "A", "", 0)
EQ("", "AAAAAAAAAA", "replace", "A", "")
EQ("BCD", "ABACADA", "replace", "A", "")
EQ("BCD", "ABACADA", "replace", "A", "", -1)
EQ("BCD", "ABACADA", "replace", "A", "", sys.maxint)
EQ("BCD", "ABACADA", "replace", "A", "", 5)
EQ("BCD", "ABACADA", "replace", "A", "", 4)
EQ("BCDA", "ABACADA", "replace", "A", "", 3)
EQ("BCADA", "ABACADA", "replace", "A", "", 2)
EQ("BACADA", "ABACADA", "replace", "A", "", 1)
EQ("ABACADA", "ABACADA", "replace", "A", "", 0)
EQ("BCD", "ABCAD", "replace", "A", "")
EQ("BCD", "ABCADAA", "replace", "A", "")
EQ("BCD", "BCD", "replace", "A", "")
EQ("*************", "*************", "replace", "A", "")
EQ("^A^", "^"+"A"*1000+"^", "replace", "A", "", 999)
# substring deletion (from=="the", to=="")
EQ("", "the", "replace", "the", "")
EQ("ater", "theater", "replace", "the", "")
EQ("", "thethe", "replace", "the", "")
EQ("", "thethethethe", "replace", "the", "")
EQ("aaaa", "theatheatheathea", "replace", "the", "")
EQ("that", "that", "replace", "the", "")
EQ("thaet", "thaet", "replace", "the", "")
EQ("here and re", "here and there", "replace", "the", "")
EQ("here and re and re", "here and there and there",
"replace", "the", "", sys.maxint)
EQ("here and re and re", "here and there and there",
"replace", "the", "", -1)
EQ("here and re and re", "here and there and there",
"replace", "the", "", 3)
EQ("here and re and re", "here and there and there",
"replace", "the", "", 2)
EQ("here and re and there", "here and there and there",
"replace", "the", "", 1)
EQ("here and there and there", "here and there and there",
"replace", "the", "", 0)
EQ("here and re and re", "here and there and there", "replace", "the", "")
EQ("abc", "abc", "replace", "the", "")
EQ("abcdefg", "abcdefg", "replace", "the", "")
# substring deletion (from=="bob", to=="")
EQ("bob", "bbobob", "replace", "bob", "")
EQ("bobXbob", "bbobobXbbobob", "replace", "bob", "")
EQ("aaaaaaa", "aaaaaaabob", "replace", "bob", "")
EQ("aaaaaaa", "aaaaaaa", "replace", "bob", "")
# single character replace in place (len(from)==len(to)==1)
EQ("Who goes there?", "Who goes there?", "replace", "o", "o")
EQ("WhO gOes there?", "Who goes there?", "replace", "o", "O")
EQ("WhO gOes there?", "Who goes there?", "replace", "o", "O", sys.maxint)
EQ("WhO gOes there?", "Who goes there?", "replace", "o", "O", -1)
EQ("WhO gOes there?", "Who goes there?", "replace", "o", "O", 3)
EQ("WhO gOes there?", "Who goes there?", "replace", "o", "O", 2)
EQ("WhO goes there?", "Who goes there?", "replace", "o", "O", 1)
EQ("Who goes there?", "Who goes there?", "replace", "o", "O", 0)
EQ("Who goes there?", "Who goes there?", "replace", "a", "q")
EQ("who goes there?", "Who goes there?", "replace", "W", "w")
EQ("wwho goes there?ww", "WWho goes there?WW", "replace", "W", "w")
EQ("Who goes there!", "Who goes there?", "replace", "?", "!")
EQ("Who goes there!!", "Who goes there??", "replace", "?", "!")
EQ("Who goes there?", "Who goes there?", "replace", ".", "!")
# substring replace in place (len(from)==len(to) > 1)
EQ("Th** ** a t**sue", "This is a tissue", "replace", "is", "**")
EQ("Th** ** a t**sue", "This is a tissue", "replace", "is", "**", sys.maxint)
EQ("Th** ** a t**sue", "This is a tissue", "replace", "is", "**", -1)
EQ("Th** ** a t**sue", "This is a tissue", "replace", "is", "**", 4)
EQ("Th** ** a t**sue", "This is a tissue", "replace", "is", "**", 3)
EQ("Th** ** a tissue", "This is a tissue", "replace", "is", "**", 2)
EQ("Th** is a tissue", "This is a tissue", "replace", "is", "**", 1)
EQ("This is a tissue", "This is a tissue", "replace", "is", "**", 0)
EQ("cobob", "bobob", "replace", "bob", "cob")
EQ("cobobXcobocob", "bobobXbobobob", "replace", "bob", "cob")
EQ("bobob", "bobob", "replace", "bot", "bot")
# replace single character (len(from)==1, len(to)>1)
EQ("ReyKKjaviKK", "Reykjavik", "replace", "k", "KK")
EQ("ReyKKjaviKK", "Reykjavik", "replace", "k", "KK", -1)
EQ("ReyKKjaviKK", "Reykjavik", "replace", "k", "KK", sys.maxint)
EQ("ReyKKjaviKK", "Reykjavik", "replace", "k", "KK", 2)
EQ("ReyKKjavik", "Reykjavik", "replace", "k", "KK", 1)
EQ("Reykjavik", "Reykjavik", "replace", "k", "KK", 0)
EQ("A----B----C----", "A.B.C.", "replace", ".", "----")
EQ("Reykjavik", "Reykjavik", "replace", "q", "KK")
# replace substring (len(from)>1, len(to)!=len(from))
EQ("ham, ham, eggs and ham", "spam, spam, eggs and spam",
"replace", "spam", "ham")
EQ("ham, ham, eggs and ham", "spam, spam, eggs and spam",
"replace", "spam", "ham", sys.maxint)
EQ("ham, ham, eggs and ham", "spam, spam, eggs and spam",
"replace", "spam", "ham", -1)
EQ("ham, ham, eggs and ham", "spam, spam, eggs and spam",
"replace", "spam", "ham", 4)
EQ("ham, ham, eggs and ham", "spam, spam, eggs and spam",
"replace", "spam", "ham", 3)
EQ("ham, ham, eggs and spam", "spam, spam, eggs and spam",
"replace", "spam", "ham", 2)
EQ("ham, spam, eggs and spam", "spam, spam, eggs and spam",
"replace", "spam", "ham", 1)
EQ("spam, spam, eggs and spam", "spam, spam, eggs and spam",
"replace", "spam", "ham", 0)
EQ("bobob", "bobobob", "replace", "bobob", "bob")
EQ("bobobXbobob", "bobobobXbobobob", "replace", "bobob", "bob")
EQ("BOBOBOB", "BOBOBOB", "replace", "bob", "bobby")
with test_support.check_py3k_warnings():
ba = buffer('a')
bb = buffer('b')
EQ("bbc", "abc", "replace", ba, bb)
EQ("aac", "abc", "replace", bb, ba)
#
self.checkequal('one@two!three!', 'one!two!three!', 'replace', '!', '@', 1)
self.checkequal('onetwothree', 'one!two!three!', 'replace', '!', '')
self.checkequal('one@two@three!', 'one!two!three!', 'replace', '!', '@', 2)
self.checkequal('one@two@three@', 'one!two!three!', 'replace', '!', '@', 3)
self.checkequal('one@two@three@', 'one!two!three!', 'replace', '!', '@', 4)
self.checkequal('one!two!three!', 'one!two!three!', 'replace', '!', '@', 0)
self.checkequal('one@two@three@', 'one!two!three!', 'replace', '!', '@')
self.checkequal('one!two!three!', 'one!two!three!', 'replace', 'x', '@')
self.checkequal('one!two!three!', 'one!two!three!', 'replace', 'x', '@', 2)
self.checkequal('-a-b-c-', 'abc', 'replace', '', '-')
self.checkequal('-a-b-c', 'abc', 'replace', '', '-', 3)
self.checkequal('abc', 'abc', 'replace', '', '-', 0)
self.checkequal('', '', 'replace', '', '')
self.checkequal('abc', 'abc', 'replace', 'ab', '--', 0)
self.checkequal('abc', 'abc', 'replace', 'xy', '--')
# Next three for SF bug 422088: [OSF1 alpha] string.replace(); died with
# MemoryError due to empty result (platform malloc issue when requesting
# 0 bytes).
self.checkequal('', '123', 'replace', '123', '')
self.checkequal('', '123123', 'replace', '123', '')
self.checkequal('x', '123x123', 'replace', '123', '')
self.checkraises(TypeError, 'hello', 'replace')
self.checkraises(TypeError, 'hello', 'replace', 42)
self.checkraises(TypeError, 'hello', 'replace', 42, 'h')
self.checkraises(TypeError, 'hello', 'replace', 'h', 42)
def test_replace_overflow(self):
# Check for overflow checking on 32 bit machines
if sys.maxint != 2147483647 or struct.calcsize("P") > 4:
return
A2_16 = "A" * (2**16)
self.checkraises(OverflowError, A2_16, "replace", "", A2_16)
self.checkraises(OverflowError, A2_16, "replace", "A", A2_16)
self.checkraises(OverflowError, A2_16, "replace", "AA", A2_16+A2_16)
def test_zfill(self):
self.checkequal('123', '123', 'zfill', 2)
self.checkequal('123', '123', 'zfill', 3)
self.checkequal('0123', '123', 'zfill', 4)
self.checkequal('+123', '+123', 'zfill', 3)
self.checkequal('+123', '+123', 'zfill', 4)
self.checkequal('+0123', '+123', 'zfill', 5)
self.checkequal('-123', '-123', 'zfill', 3)
self.checkequal('-123', '-123', 'zfill', 4)
self.checkequal('-0123', '-123', 'zfill', 5)
self.checkequal('000', '', 'zfill', 3)
self.checkequal('34', '34', 'zfill', 1)
self.checkequal('0034', '34', 'zfill', 4)
self.checkraises(TypeError, '123', 'zfill')
# XXX alias for py3k forward compatibility
BaseTest = CommonTest
class MixinStrUnicodeUserStringTest:
# additional tests that only work for
# stringlike objects, i.e. str, unicode, UserString
# (but not the string module)
def test_islower(self):
self.checkequal(False, '', 'islower')
self.checkequal(True, 'a', 'islower')
self.checkequal(False, 'A', 'islower')
self.checkequal(False, '\n', 'islower')
self.checkequal(True, 'abc', 'islower')
self.checkequal(False, 'aBc', 'islower')
self.checkequal(True, 'abc\n', 'islower')
self.checkraises(TypeError, 'abc', 'islower', 42)
def test_isupper(self):
self.checkequal(False, '', 'isupper')
self.checkequal(False, 'a', 'isupper')
self.checkequal(True, 'A', 'isupper')
self.checkequal(False, '\n', 'isupper')
self.checkequal(True, 'ABC', 'isupper')
self.checkequal(False, 'AbC', 'isupper')
self.checkequal(True, 'ABC\n', 'isupper')
self.checkraises(TypeError, 'abc', 'isupper', 42)
def test_istitle(self):
self.checkequal(False, '', 'istitle')
self.checkequal(False, 'a', 'istitle')
self.checkequal(True, 'A', 'istitle')
self.checkequal(False, '\n', 'istitle')
self.checkequal(True, 'A Titlecased Line', 'istitle')
self.checkequal(True, 'A\nTitlecased Line', 'istitle')
self.checkequal(True, 'A Titlecased, Line', 'istitle')
self.checkequal(False, 'Not a capitalized String', 'istitle')
self.checkequal(False, 'Not\ta Titlecase String', 'istitle')
self.checkequal(False, 'Not--a Titlecase String', 'istitle')
self.checkequal(False, 'NOT', 'istitle')
self.checkraises(TypeError, 'abc', 'istitle', 42)
def test_isspace(self):
self.checkequal(False, '', 'isspace')
self.checkequal(False, 'a', 'isspace')
self.checkequal(True, ' ', 'isspace')
self.checkequal(True, '\t', 'isspace')
self.checkequal(True, '\r', 'isspace')
self.checkequal(True, '\n', 'isspace')
self.checkequal(True, ' \t\r\n', 'isspace')
self.checkequal(False, ' \t\r\na', 'isspace')
self.checkraises(TypeError, 'abc', 'isspace', 42)
def test_isalpha(self):
self.checkequal(False, '', 'isalpha')
self.checkequal(True, 'a', 'isalpha')
self.checkequal(True, 'A', 'isalpha')
self.checkequal(False, '\n', 'isalpha')
self.checkequal(True, 'abc', 'isalpha')
self.checkequal(False, 'aBc123', 'isalpha')
self.checkequal(False, 'abc\n', 'isalpha')
self.checkraises(TypeError, 'abc', 'isalpha', 42)
def test_isalnum(self):
self.checkequal(False, '', 'isalnum')
self.checkequal(True, 'a', 'isalnum')
self.checkequal(True, 'A', 'isalnum')
self.checkequal(False, '\n', 'isalnum')
self.checkequal(True, '123abc456', 'isalnum')
self.checkequal(True, 'a1b3c', 'isalnum')
self.checkequal(False, 'aBc000 ', 'isalnum')
self.checkequal(False, 'abc\n', 'isalnum')
self.checkraises(TypeError, 'abc', 'isalnum', 42)
def test_isdigit(self):
self.checkequal(False, '', 'isdigit')
self.checkequal(False, 'a', 'isdigit')
self.checkequal(True, '0', 'isdigit')
self.checkequal(True, '0123456789', 'isdigit')
self.checkequal(False, '0123456789a', 'isdigit')
self.checkraises(TypeError, 'abc', 'isdigit', 42)
def test_title(self):
self.checkequal(' Hello ', ' hello ', 'title')
self.checkequal('Hello ', 'hello ', 'title')
self.checkequal('Hello ', 'Hello ', 'title')
self.checkequal('Format This As Title String', "fOrMaT thIs aS titLe String", 'title')
self.checkequal('Format,This-As*Title;String', "fOrMaT,thIs-aS*titLe;String", 'title', )
self.checkequal('Getint', "getInt", 'title')
self.checkraises(TypeError, 'hello', 'title', 42)
def test_splitlines(self):
self.checkequal(['abc', 'def', '', 'ghi'], "abc\ndef\n\rghi", 'splitlines')
self.checkequal(['abc', 'def', '', 'ghi'], "abc\ndef\n\r\nghi", 'splitlines')
self.checkequal(['abc', 'def', 'ghi'], "abc\ndef\r\nghi", 'splitlines')
self.checkequal(['abc', 'def', 'ghi'], "abc\ndef\r\nghi\n", 'splitlines')
self.checkequal(['abc', 'def', 'ghi', ''], "abc\ndef\r\nghi\n\r", 'splitlines')
self.checkequal(['', 'abc', 'def', 'ghi', ''], "\nabc\ndef\r\nghi\n\r", 'splitlines')
self.checkequal(['\n', 'abc\n', 'def\r\n', 'ghi\n', '\r'], "\nabc\ndef\r\nghi\n\r", 'splitlines', 1)
self.checkraises(TypeError, 'abc', 'splitlines', 42, 42)
def test_startswith(self):
self.checkequal(True, 'hello', 'startswith', 'he')
self.checkequal(True, 'hello', 'startswith', 'hello')
self.checkequal(False, 'hello', 'startswith', 'hello world')
self.checkequal(True, 'hello', 'startswith', '')
self.checkequal(False, 'hello', 'startswith', 'ello')
self.checkequal(True, 'hello', 'startswith', 'ello', 1)
self.checkequal(True, 'hello', 'startswith', 'o', 4)
self.checkequal(False, 'hello', 'startswith', 'o', 5)
self.checkequal(True, 'hello', 'startswith', '', 5)
self.checkequal(False, 'hello', 'startswith', 'lo', 6)
self.checkequal(True, 'helloworld', 'startswith', 'lowo', 3)
self.checkequal(True, 'helloworld', 'startswith', 'lowo', 3, 7)
self.checkequal(False, 'helloworld', 'startswith', 'lowo', 3, 6)
# test negative indices
self.checkequal(True, 'hello', 'startswith', 'he', 0, -1)
self.checkequal(True, 'hello', 'startswith', 'he', -53, -1)
self.checkequal(False, 'hello', 'startswith', 'hello', 0, -1)
self.checkequal(False, 'hello', 'startswith', 'hello world', -1, -10)
self.checkequal(False, 'hello', 'startswith', 'ello', -5)
self.checkequal(True, 'hello', 'startswith', 'ello', -4)
self.checkequal(False, 'hello', 'startswith', 'o', -2)
self.checkequal(True, 'hello', 'startswith', 'o', -1)
self.checkequal(True, 'hello', 'startswith', '', -3, -3)
self.checkequal(False, 'hello', 'startswith', 'lo', -9)
self.checkraises(TypeError, 'hello', 'startswith')
self.checkraises(TypeError, 'hello', 'startswith', 42)
# test tuple arguments
self.checkequal(True, 'hello', 'startswith', ('he', 'ha'))
self.checkequal(False, 'hello', 'startswith', ('lo', 'llo'))
self.checkequal(True, 'hello', 'startswith', ('hellox', 'hello'))
self.checkequal(False, 'hello', 'startswith', ())
self.checkequal(True, 'helloworld', 'startswith', ('hellowo',
'rld', 'lowo'), 3)
self.checkequal(False, 'helloworld', 'startswith', ('hellowo', 'ello',
'rld'), 3)
self.checkequal(True, 'hello', 'startswith', ('lo', 'he'), 0, -1)
self.checkequal(False, 'hello', 'startswith', ('he', 'hel'), 0, 1)
self.checkequal(True, 'hello', 'startswith', ('he', 'hel'), 0, 2)
self.checkraises(TypeError, 'hello', 'startswith', (42,))
def test_endswith(self):
self.checkequal(True, 'hello', 'endswith', 'lo')
self.checkequal(False, 'hello', 'endswith', 'he')
self.checkequal(True, 'hello', 'endswith', '')
self.checkequal(False, 'hello', 'endswith', 'hello world')
self.checkequal(False, 'helloworld', 'endswith', 'worl')
self.checkequal(True, 'helloworld', 'endswith', 'worl', 3, 9)
self.checkequal(True, 'helloworld', 'endswith', 'world', 3, 12)
self.checkequal(True, 'helloworld', 'endswith', 'lowo', 1, 7)
self.checkequal(True, 'helloworld', 'endswith', 'lowo', 2, 7)
self.checkequal(True, 'helloworld', 'endswith', 'lowo', 3, 7)
self.checkequal(False, 'helloworld', 'endswith', 'lowo', 4, 7)
self.checkequal(False, 'helloworld', 'endswith', 'lowo', 3, 8)
self.checkequal(False, 'ab', 'endswith', 'ab', 0, 1)
self.checkequal(False, 'ab', 'endswith', 'ab', 0, 0)
# test negative indices
self.checkequal(True, 'hello', 'endswith', 'lo', -2)
self.checkequal(False, 'hello', 'endswith', 'he', -2)
self.checkequal(True, 'hello', 'endswith', '', -3, -3)
self.checkequal(False, 'hello', 'endswith', 'hello world', -10, -2)
self.checkequal(False, 'helloworld', 'endswith', 'worl', -6)
self.checkequal(True, 'helloworld', 'endswith', 'worl', -5, -1)
self.checkequal(True, 'helloworld', 'endswith', 'worl', -5, 9)
self.checkequal(True, 'helloworld', 'endswith', 'world', -7, 12)
self.checkequal(True, 'helloworld', 'endswith', 'lowo', -99, -3)
self.checkequal(True, 'helloworld', 'endswith', 'lowo', -8, -3)
self.checkequal(True, 'helloworld', 'endswith', 'lowo', -7, -3)
self.checkequal(False, 'helloworld', 'endswith', 'lowo', 3, -4)
self.checkequal(False, 'helloworld', 'endswith', 'lowo', -8, -2)
self.checkraises(TypeError, 'hello', 'endswith')
self.checkraises(TypeError, 'hello', 'endswith', 42)
# test tuple arguments
self.checkequal(False, 'hello', 'endswith', ('he', 'ha'))
self.checkequal(True, 'hello', 'endswith', ('lo', 'llo'))
self.checkequal(True, 'hello', 'endswith', ('hellox', 'hello'))
self.checkequal(False, 'hello', 'endswith', ())
self.checkequal(True, 'helloworld', 'endswith', ('hellowo',
'rld', 'lowo'), 3)
self.checkequal(False, 'helloworld', 'endswith', ('hellowo', 'ello',
'rld'), 3, -1)
self.checkequal(True, 'hello', 'endswith', ('hell', 'ell'), 0, -1)
self.checkequal(False, 'hello', 'endswith', ('he', 'hel'), 0, 1)
self.checkequal(True, 'hello', 'endswith', ('he', 'hell'), 0, 4)
self.checkraises(TypeError, 'hello', 'endswith', (42,))
def test___contains__(self):
self.checkequal(True, '', '__contains__', '')
self.checkequal(True, 'abc', '__contains__', '')
self.checkequal(False, 'abc', '__contains__', '\0')
self.checkequal(True, '\0abc', '__contains__', '\0')
self.checkequal(True, 'abc\0', '__contains__', '\0')
self.checkequal(True, '\0abc', '__contains__', 'a')
self.checkequal(True, 'asdf', '__contains__', 'asdf')
self.checkequal(False, 'asd', '__contains__', 'asdf')
self.checkequal(False, '', '__contains__', 'asdf')
def test_subscript(self):
self.checkequal(u'a', 'abc', '__getitem__', 0)
self.checkequal(u'c', 'abc', '__getitem__', -1)
self.checkequal(u'a', 'abc', '__getitem__', 0L)
self.checkequal(u'abc', 'abc', '__getitem__', slice(0, 3))
self.checkequal(u'abc', 'abc', '__getitem__', slice(0, 1000))
self.checkequal(u'a', 'abc', '__getitem__', slice(0, 1))
self.checkequal(u'', 'abc', '__getitem__', slice(0, 0))
self.checkraises(TypeError, 'abc', '__getitem__', 'def')
def test_slice(self):
self.checkequal('abc', 'abc', '__getslice__', 0, 1000)
self.checkequal('abc', 'abc', '__getslice__', 0, 3)
self.checkequal('ab', 'abc', '__getslice__', 0, 2)
self.checkequal('bc', 'abc', '__getslice__', 1, 3)
self.checkequal('b', 'abc', '__getslice__', 1, 2)
self.checkequal('', 'abc', '__getslice__', 2, 2)
self.checkequal('', 'abc', '__getslice__', 1000, 1000)
self.checkequal('', 'abc', '__getslice__', 2000, 1000)
self.checkequal('', 'abc', '__getslice__', 2, 1)
self.checkraises(TypeError, 'abc', '__getslice__', 'def')
def test_extended_getslice(self):
# Test extended slicing by comparing with list slicing.
s = string.ascii_letters + string.digits
indices = (0, None, 1, 3, 41, -1, -2, -37)
for start in indices:
for stop in indices:
# Skip step 0 (invalid)
for step in indices[1:]:
L = list(s)[start:stop:step]
self.checkequal(u"".join(L), s, '__getitem__',
slice(start, stop, step))
def test_mul(self):
self.checkequal('', 'abc', '__mul__', -1)
self.checkequal('', 'abc', '__mul__', 0)
self.checkequal('abc', 'abc', '__mul__', 1)
self.checkequal('abcabcabc', 'abc', '__mul__', 3)
self.checkraises(TypeError, 'abc', '__mul__')
self.checkraises(TypeError, 'abc', '__mul__', '')
# XXX: on a 64-bit system, this doesn't raise an overflow error,
# but either raises a MemoryError, or succeeds (if you have 54TiB)
#self.checkraises(OverflowError, 10000*'abc', '__mul__', 2000000000)
def test_join(self):
# join now works with any sequence type
# moved here, because the argument order is
# different in string.join (see the test in
# test.test_string.StringTest.test_join)
self.checkequal('a b c d', ' ', 'join', ['a', 'b', 'c', 'd'])
self.checkequal('abcd', '', 'join', ('a', 'b', 'c', 'd'))
self.checkequal('bd', '', 'join', ('', 'b', '', 'd'))
self.checkequal('ac', '', 'join', ('a', '', 'c', ''))
self.checkequal('w x y z', ' ', 'join', Sequence())
self.checkequal('abc', 'a', 'join', ('abc',))
self.checkequal('z', 'a', 'join', UserList(['z']))
if test_support.have_unicode:
self.checkequal(unicode('a.b.c'), unicode('.'), 'join', ['a', 'b', 'c'])
self.checkequal(unicode('a.b.c'), '.', 'join', [unicode('a'), 'b', 'c'])
self.checkequal(unicode('a.b.c'), '.', 'join', ['a', unicode('b'), 'c'])
self.checkequal(unicode('a.b.c'), '.', 'join', ['a', 'b', unicode('c')])
self.checkraises(TypeError, '.', 'join', ['a', unicode('b'), 3])
for i in [5, 25, 125]:
self.checkequal(((('a' * i) + '-') * i)[:-1], '-', 'join',
['a' * i] * i)
self.checkequal(((('a' * i) + '-') * i)[:-1], '-', 'join',
('a' * i,) * i)
self.checkraises(TypeError, ' ', 'join', BadSeq1())
self.checkequal('a b c', ' ', 'join', BadSeq2())
self.checkraises(TypeError, ' ', 'join')
self.checkraises(TypeError, ' ', 'join', 7)
self.checkraises(TypeError, ' ', 'join', Sequence([7, 'hello', 123L]))
try:
def f():
yield 4 + ""
self.fixtype(' ').join(f())
except TypeError, e:
if '+' not in str(e):
self.fail('join() ate exception message')
else:
self.fail('exception not raised')
def test_formatting(self):
self.checkequal('+hello+', '+%s+', '__mod__', 'hello')
self.checkequal('+10+', '+%d+', '__mod__', 10)
self.checkequal('a', "%c", '__mod__', "a")
self.checkequal('a', "%c", '__mod__', "a")
self.checkequal('"', "%c", '__mod__', 34)
self.checkequal('$', "%c", '__mod__', 36)
self.checkequal('10', "%d", '__mod__', 10)
self.checkequal('\x7f', "%c", '__mod__', 0x7f)
for ordinal in (-100, 0x200000):
# unicode raises ValueError, str raises OverflowError
self.checkraises((ValueError, OverflowError), '%c', '__mod__', ordinal)
longvalue = sys.maxint + 10L
slongvalue = str(longvalue)
if slongvalue[-1] in ("L","l"): slongvalue = slongvalue[:-1]
self.checkequal(' 42', '%3ld', '__mod__', 42)
self.checkequal('42', '%d', '__mod__', 42L)
self.checkequal('42', '%d', '__mod__', 42.0)
self.checkequal(slongvalue, '%d', '__mod__', longvalue)
self.checkcall('%d', '__mod__', float(longvalue))
self.checkequal('0042.00', '%07.2f', '__mod__', 42)
self.checkequal('0042.00', '%07.2F', '__mod__', 42)
self.checkraises(TypeError, 'abc', '__mod__')
self.checkraises(TypeError, '%(foo)s', '__mod__', 42)
self.checkraises(TypeError, '%s%s', '__mod__', (42,))
self.checkraises(TypeError, '%c', '__mod__', (None,))
self.checkraises(ValueError, '%(foo', '__mod__', {})
self.checkraises(TypeError, '%(foo)s %(bar)s', '__mod__', ('foo', 42))
self.checkraises(TypeError, '%d', '__mod__', "42") # not numeric
self.checkraises(TypeError, '%d', '__mod__', (42+0j)) # no int/long conversion provided
# argument names with properly nested brackets are supported
self.checkequal('bar', '%((foo))s', '__mod__', {'(foo)': 'bar'})
# 100 is a magic number in PyUnicode_Format, this forces a resize
self.checkequal(103*'a'+'x', '%sx', '__mod__', 103*'a')
self.checkraises(TypeError, '%*s', '__mod__', ('foo', 'bar'))
self.checkraises(TypeError, '%10.*f', '__mod__', ('foo', 42.))
self.checkraises(ValueError, '%10', '__mod__', (42,))
def test_floatformatting(self):
# float formatting
for prec in xrange(100):
format = '%%.%if' % prec
value = 0.01
for x in xrange(60):
value = value * 3.141592655 / 3.0 * 10.0
self.checkcall(format, "__mod__", value)
def test_inplace_rewrites(self):
# Check that strings don't copy and modify cached single-character strings
self.checkequal('a', 'A', 'lower')
self.checkequal(True, 'A', 'isupper')
self.checkequal('A', 'a', 'upper')
self.checkequal(True, 'a', 'islower')
self.checkequal('a', 'A', 'replace', 'A', 'a')
self.checkequal(True, 'A', 'isupper')
self.checkequal('A', 'a', 'capitalize')
self.checkequal(True, 'a', 'islower')
self.checkequal('A', 'a', 'swapcase')
self.checkequal(True, 'a', 'islower')
self.checkequal('A', 'a', 'title')
self.checkequal(True, 'a', 'islower')
def test_partition(self):
self.checkequal(('this is the par', 'ti', 'tion method'),
'this is the partition method', 'partition', 'ti')
# from raymond's original specification
S = 'http://www.python.org'
self.checkequal(('http', '://', 'www.python.org'), S, 'partition', '://')
self.checkequal(('http://www.python.org', '', ''), S, 'partition', '?')
self.checkequal(('', 'http://', 'www.python.org'), S, 'partition', 'http://')
self.checkequal(('http://www.python.', 'org', ''), S, 'partition', 'org')
self.checkraises(ValueError, S, 'partition', '')
self.checkraises(TypeError, S, 'partition', None)
# mixed use of str and unicode
self.assertEqual('a/b/c'.partition(u'/'), ('a', '/', 'b/c'))
def test_rpartition(self):
self.checkequal(('this is the rparti', 'ti', 'on method'),
'this is the rpartition method', 'rpartition', 'ti')
# from raymond's original specification
S = 'http://www.python.org'
self.checkequal(('http', '://', 'www.python.org'), S, 'rpartition', '://')
self.checkequal(('', '', 'http://www.python.org'), S, 'rpartition', '?')
self.checkequal(('', 'http://', 'www.python.org'), S, 'rpartition', 'http://')
self.checkequal(('http://www.python.', 'org', ''), S, 'rpartition', 'org')
self.checkraises(ValueError, S, 'rpartition', '')
self.checkraises(TypeError, S, 'rpartition', None)
# mixed use of str and unicode
self.assertEqual('a/b/c'.rpartition(u'/'), ('a/b', '/', 'c'))
class MixinStrStringUserStringTest:
# Additional tests for 8bit strings, i.e. str, UserString and
# the string module
def test_maketrans(self):
self.assertEqual(
''.join(map(chr, xrange(256))).replace('abc', 'xyz'),
string.maketrans('abc', 'xyz')
)
self.assertRaises(ValueError, string.maketrans, 'abc', 'xyzw')
def test_translate(self):
table = string.maketrans('abc', 'xyz')
self.checkequal('xyzxyz', 'xyzabcdef', 'translate', table, 'def')
table = string.maketrans('a', 'A')
self.checkequal('Abc', 'abc', 'translate', table)
self.checkequal('xyz', 'xyz', 'translate', table)
self.checkequal('yz', 'xyz', 'translate', table, 'x')
self.checkequal('yx', 'zyzzx', 'translate', None, 'z')
self.checkequal('zyzzx', 'zyzzx', 'translate', None, '')
self.checkequal('zyzzx', 'zyzzx', 'translate', None)
self.checkraises(ValueError, 'xyz', 'translate', 'too short', 'strip')
self.checkraises(ValueError, 'xyz', 'translate', 'too short')
class MixinStrUserStringTest:
# Additional tests that only work with
# 8bit compatible object, i.e. str and UserString
if test_support.have_unicode:
def test_encoding_decoding(self):
codecs = [('rot13', 'uryyb jbeyq'),
('base64', 'aGVsbG8gd29ybGQ=\n'),
('hex', '68656c6c6f20776f726c64'),
('uu', 'begin 666 <data>\n+:&5L;&\\@=V]R;&0 \n \nend\n')]
for encoding, data in codecs:
self.checkequal(data, 'hello world', 'encode', encoding)
self.checkequal('hello world', data, 'decode', encoding)
# zlib is optional, so we make the test optional too...
try:
import zlib
except ImportError:
pass
else:
data = 'x\x9c\xcbH\xcd\xc9\xc9W(\xcf/\xcaI\x01\x00\x1a\x0b\x04]'
self.checkequal(data, 'hello world', 'encode', 'zlib')
self.checkequal('hello world', data, 'decode', 'zlib')
self.checkraises(TypeError, 'xyz', 'decode', 42)
self.checkraises(TypeError, 'xyz', 'encode', 42)
class MixinStrUnicodeTest:
# Additional tests that only work with str and unicode.
def test_bug1001011(self):
# Make sure join returns a NEW object for single item sequences
# involving a subclass.
# Make sure that it is of the appropriate type.
# Check the optimisation still occurs for standard objects.
t = self.type2test
class subclass(t):
pass
s1 = subclass("abcd")
s2 = t().join([s1])
self.assert_(s1 is not s2)
self.assert_(type(s2) is t)
s1 = t("abcd")
s2 = t().join([s1])
self.assert_(s1 is s2)
# Should also test mixed-type join.
if t is unicode:
s1 = subclass("abcd")
s2 = "".join([s1])
self.assert_(s1 is not s2)
self.assert_(type(s2) is t)
s1 = t("abcd")
s2 = "".join([s1])
self.assert_(s1 is s2)
elif t is str:
s1 = subclass("abcd")
s2 = u"".join([s1])
self.assert_(s1 is not s2)
self.assert_(type(s2) is unicode) # promotes!
s1 = t("abcd")
s2 = u"".join([s1])
self.assert_(s1 is not s2)
self.assert_(type(s2) is unicode) # promotes!
else:
self.fail("unexpected type for MixinStrUnicodeTest %r" % t)
| 46.987471 | 108 | 0.522107 | 6,996 | 60,003 | 4.422098 | 0.090766 | 0.224909 | 0.012994 | 0.013835 | 0.635744 | 0.507515 | 0.401914 | 0.302453 | 0.253935 | 0.221191 | 0 | 0.026491 | 0.26142 | 60,003 | 1,276 | 109 | 47.024295 | 0.671593 | 0.06638 | 0 | 0.150398 | 0 | 0.000996 | 0.250318 | 0.004818 | 0 | 0 | 0.000215 | 0 | 0.023904 | 0 | null | null | 0.002988 | 0.00498 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cfea82d3151294a1cccad742083632592823666 | 835 | py | Python | downtime/main/migrations/0005_auto_20200303_2320.py | GSCrawley/downtime | 57a1c8e00424c1948e1650cd980d541174febbd8 | [
"MIT"
] | 1 | 2020-05-03T03:57:26.000Z | 2020-05-03T03:57:26.000Z | downtime/main/migrations/0005_auto_20200303_2320.py | GSCrawley/downtime | 57a1c8e00424c1948e1650cd980d541174febbd8 | [
"MIT"
] | null | null | null | downtime/main/migrations/0005_auto_20200303_2320.py | GSCrawley/downtime | 57a1c8e00424c1948e1650cd980d541174febbd8 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-04 07:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20200303_2259'),
]
operations = [
migrations.RenameField(
model_name='music',
old_name='album',
new_name='title',
),
migrations.RemoveField(
model_name='music',
name='artist',
),
migrations.RemoveField(
model_name='music',
name='genre',
),
migrations.RemoveField(
model_name='music',
name='name',
),
migrations.AlterField(
model_name='music',
name='slug',
field=models.SlugField(editable=False, max_length=200),
),
]
| 23.194444 | 67 | 0.522156 | 76 | 835 | 5.592105 | 0.592105 | 0.105882 | 0.164706 | 0.169412 | 0.275294 | 0.275294 | 0 | 0 | 0 | 0 | 0 | 0.06367 | 0.360479 | 835 | 35 | 68 | 23.857143 | 0.73221 | 0.053892 | 0 | 0.448276 | 1 | 0 | 0.102792 | 0.029188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b09e609db84d5028fd9924bdc99d37d97f53566 | 6,758 | py | Python | coursereg/tests/test_instructor.py | s-gv/bheemboy | b35c6611739b6df517cb1bb642fa6d46cf1b246e | [
"MIT"
] | null | null | null | coursereg/tests/test_instructor.py | s-gv/bheemboy | b35c6611739b6df517cb1bb642fa6d46cf1b246e | [
"MIT"
] | 105 | 2016-05-07T05:54:28.000Z | 2016-12-30T13:47:13.000Z | coursereg/tests/test_instructor.py | s-gv/bheemboy | b35c6611739b6df517cb1bb642fa6d46cf1b246e | [
"MIT"
] | 4 | 2016-05-29T14:00:33.000Z | 2020-09-30T17:16:02.000Z | import datetime
from django.test import TestCase
from django.test import Client
from django.core.urlresolvers import reverse
from coursereg.models import User, Course, Department, Participant, Grade, Term, RegistrationType
from utils import is_error_msg_present
import logging
class InstructorTests(TestCase):
@classmethod
def setUpTestData(cls):
dept = Department.objects.create(name='Electrical Communication Engineering (ECE)')
charles = User.objects.create_user(email='charles@test.com', password='charles12345', user_type=User.USER_TYPE_FACULTY)
rajesh = User.objects.create_user(email='rajesh@test.com', password='rajesh12345', user_type=User.USER_TYPE_FACULTY)
cls.ben = User.objects.create_user(email='ben@test.com', password='ben12345', user_type=User.USER_TYPE_STUDENT, adviser=rajesh)
cls.alyssa = User.objects.create_user(email='alyssa@test.com', password='alyssa12345', user_type=User.USER_TYPE_STUDENT, adviser=rajesh)
cls.rama = User.objects.create_user(email='rama@test.com', password='rama12345', user_type=User.USER_TYPE_STUDENT, adviser=rajesh)
tomorrow = datetime.datetime.now() + datetime.timedelta(days=1)
yesterday = datetime.datetime.now() - datetime.timedelta(days=1)
aug_term = Term.objects.create(
name='Aug-Dec',
year='2016',
last_reg_date=tomorrow,
last_adviser_approval_date=tomorrow,
last_instructor_approval_date=tomorrow,
last_conversion_date=tomorrow,
last_drop_date=tomorrow,
last_grade_date=tomorrow
)
aug_term_expired = Term.objects.create(
name='Aug-Dec',
year='2016',
last_reg_date=yesterday,
last_cancellation_date=yesterday,
last_adviser_approval_date=yesterday,
last_instructor_approval_date=yesterday,
last_conversion_date=yesterday,
last_drop_date=yesterday,
last_grade_date=yesterday
)
cls.s_grade = Grade.objects.create(name="S grade", points=7.5, should_count_towards_cgpa=True)
cls.course = Course.objects.create(num='E0-111', title='Course Name1', department=dept, term=aug_term)
cls.course_yesterday = Course.objects.create(num='E0-111', title='Course Name1', department=dept, term=aug_term_expired)
cls.credit = RegistrationType.objects.create(name='Credit',should_count_towards_cgpa=True,is_active=True)
cls.audit = RegistrationType.objects.create(name='Audit',should_count_towards_cgpa=False,is_active=True)
cls.nonrtp = RegistrationType.objects.create(name='NonRTP',should_count_towards_cgpa=False,is_active=True)
# To add as instructor for courses
cls.participant = Participant.objects.create(user=charles, course=cls.course,
participant_type=Participant.PARTICIPANT_INSTRUCTOR, grade=cls.s_grade)
cls.participant = Participant.objects.create(user=charles, course=cls.course_yesterday,
participant_type=Participant.PARTICIPANT_INSTRUCTOR, grade=cls.s_grade)
def setUp(self):
self.client = Client()
logging.disable(logging.CRITICAL)
def tearDown(self):
logging.disable(logging.NOTSET)
def test_1_instructor_review(self):
participant = Participant.objects.create(user=self.ben, course=self.course,
participant_type=Participant.PARTICIPANT_STUDENT, registration_type=self.credit, grade=self.s_grade)
self.client.login(email='charles@test.com', password='charles12345')
response = self.client.post(reverse('coursereg:participants_update',args=[participant.id]),
{'action': 'review', 'origin': 'instructor'}, follow=True)
self.assertTrue(Participant.objects.filter(user=self.ben, course=self.course,is_instructor_reviewed = True))
def test_2_instructor_cancel(self):
participant = Participant.objects.create(user=self.ben, course=self.course,
participant_type=Participant.PARTICIPANT_STUDENT, registration_type=self.credit, grade=self.s_grade)
self.client.login(email='charles@test.com', password='charles12345')
response = self.client.post(reverse('coursereg:participants_delete',args=[participant.id]),
{'origin': 'instructor'}, follow=True)
self.assertFalse(Participant.objects.filter(user=self.ben, course=self.course))
def test_3_instructor_new_badge_alert_for_new_request(self):
self.client.login(email='ben@test.com', password='ben12345')
self.client.post(reverse('coursereg:participants_create'),
{'course_id': self.course.id, 'reg_type': 1, 'user_id': self.ben.id, 'origin': 'student'}, follow=True)
self.client.login(email='charles@test.com', password='charles12345')
self.assertTrue(Participant.objects.filter(user=self.ben, course=self.course, is_instructor_reviewed=False))
def test_4_instructor_mark_all(self):
participant = Participant.objects.create(user=self.ben, course=self.course,
participant_type=Participant.PARTICIPANT_STUDENT, registration_type=self.credit, grade=self.s_grade,is_instructor_reviewed=False)
participant = Participant.objects.create(user=self.alyssa, course=self.course,
participant_type=Participant.PARTICIPANT_STUDENT, registration_type=self.credit, grade=self.s_grade,is_instructor_reviewed=False)
participant = Participant.objects.create(user=self.rama, course=self.course,
participant_type=Participant.PARTICIPANT_STUDENT, registration_type=self.nonrtp, grade=self.s_grade,is_instructor_reviewed=False)
self.client.login(email='charles@test.com', password='charles12345')
response = self.client.post(reverse('coursereg:participants_update_all'),
{'course_id': self.course.id,'action': 'review', 'origin': 'instructor'}, follow=True)
self.assertTrue(Participant.objects.filter(user=self.ben, course=self.course, is_instructor_reviewed = True))
self.assertTrue(Participant.objects.filter(user=self.alyssa, course=self.course, is_instructor_reviewed = True))
self.assertTrue(Participant.objects.filter(user=self.rama, course=self.course, is_instructor_reviewed = True))
def test_5_instructor_delete_after_instructor_ApprovalDate(self):
participant = Participant.objects.create(user=self.ben, course=self.course_yesterday,
participant_type=Participant.PARTICIPANT_STUDENT, registration_type=self.credit, grade=self.s_grade)
self.client.login(email='charles@test.com', password='charles12345')
response = self.client.post(reverse('coursereg:participants_delete',args=[participant.id]),
{'origin': 'instructor'}, follow=True)
self.assertEqual(response.status_code, 403)
self.assertTrue(Participant.objects.filter(user=self.ben, course=self.course_yesterday))
# NotGraded
| 61.436364 | 144 | 0.750222 | 839 | 6,758 | 5.852205 | 0.165673 | 0.058248 | 0.04501 | 0.031161 | 0.694908 | 0.652138 | 0.60611 | 0.585743 | 0.553564 | 0.478819 | 0 | 0.014663 | 0.13214 | 6,758 | 109 | 145 | 62 | 0.822506 | 0.006363 | 0 | 0.263158 | 0 | 0 | 0.102652 | 0.022199 | 0 | 0 | 0 | 0 | 0.084211 | 0 | null | null | 0.115789 | 0.073684 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6b11d373ae7cf4faf910013db9aecc4c7c2930a2 | 339 | py | Python | py2-work/struct_test.py | zcjl/python-works | 20afc0c179d08fc8628eec498862a5e675664b67 | [
"Apache-2.0"
] | null | null | null | py2-work/struct_test.py | zcjl/python-works | 20afc0c179d08fc8628eec498862a5e675664b67 | [
"Apache-2.0"
] | null | null | null | py2-work/struct_test.py | zcjl/python-works | 20afc0c179d08fc8628eec498862a5e675664b67 | [
"Apache-2.0"
] | null | null | null | import sys
import struct
import csv
sb = struct.pack(">h", 2006)
print len(sb)
s = struct.unpack(">h", sb)
print s
print struct.unpack(">2c", sb)
fb = struct.pack(">f", 2006.0001)
print len(fb)
f = struct.unpack(">f", fb)
print f
print struct.unpack(">4c", fb)
file = open("ttt.dat", "wb")
file.write(sb)
file.write(fb)
file.close() | 14.125 | 33 | 0.651917 | 60 | 339 | 3.683333 | 0.4 | 0.217195 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048276 | 0.144543 | 339 | 24 | 34 | 14.125 | 0.713793 | 0 | 0 | 0 | 0 | 0 | 0.067647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.352941 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b271a701c7a79698c474c6aae630c7e612ae5e9 | 1,227 | py | Python | GDLC/tests/test_get_content.py | ptoche/Gran-Diccionari-de-la-llengua-catalana-Kindle-Edition- | a31412d2a6f05a6c1a9bd9854cdd6fee8abd65f4 | [
"BSD-3-Clause"
] | 1 | 2022-02-01T16:08:03.000Z | 2022-02-01T16:08:03.000Z | GDLC/tests/test_get_content.py | ptoche/Gran-Diccionari-de-la-llengua-catalana-Kindle-Edition- | a31412d2a6f05a6c1a9bd9854cdd6fee8abd65f4 | [
"BSD-3-Clause"
] | null | null | null | GDLC/tests/test_get_content.py | ptoche/Gran-Diccionari-de-la-llengua-catalana-Kindle-Edition- | a31412d2a6f05a6c1a9bd9854cdd6fee8abd65f4 | [
"BSD-3-Clause"
] | null | null | null | """
Get content from tag.
>>> from GDLC.GDLC import *
>>> dml = '''\
... <idx:entry scriptable="yes">
... <idx:orth value="ABC">
... <idx:infl>
... <idx:iform name="" value="ABC"/>
... </idx:infl>
... </idx:orth>
... <div>
... <span>
... <b>ABC</b>
... </span>
... </div>
... <span>
... <strong>ABC -xy</strong><sup class="calibre23">1</sup>.
... </span>
... <div>
... <blockquote align="left"><span>Definition here.</span></blockquote>
... </blockquote align="left"><span>More details here.</span></blockquote>
... </blockquote align="left"><span>Even more details here.</span></blockquote>
... </div>
... </idx:entry>'''
>>> soup = BeautifulSoup(dml, features='lxml')
>>> print(get_content(soup, tag='idx:entry'))
{'idx:entry': ['\n', <idx:orth value="ABC">
<idx:infl>
<idx:iform name="" value="ABC"></idx:iform>
</idx:infl>
</idx:orth>, '\n', <div>
<span>
<b>ABC</b>
</span>
</div>, '\n', <span>
<strong>ABC -xy</strong><sup class="calibre23">1</sup>.
</span>, '\n', <div>
<blockquote align="left"><span>Definition here.</span></blockquote>
<span>More details here.</span>
<span>Even more details here.</span>
</div>, '\n']}
"""
| 26.673913 | 85 | 0.541972 | 152 | 1,227 | 4.368421 | 0.263158 | 0.072289 | 0.066265 | 0.138554 | 0.74247 | 0.665663 | 0.590361 | 0.436747 | 0.436747 | 0.274096 | 0 | 0.005894 | 0.170334 | 1,227 | 45 | 86 | 27.266667 | 0.646365 | 0.98533 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b2b28c348b9be23539faf31125571b08abdecb7 | 1,700 | py | Python | fuxi/web/flask_app.py | cocobear/fuxi | a3916131689d82ce6b804e0993d89f755d1108ec | [
"MIT"
] | 731 | 2018-06-13T05:41:04.000Z | 2019-09-06T01:36:57.000Z | fuxi/web/flask_app.py | riusksk/fuxi | fadb1136b8896fe2a0f7783627bda867d5e6fd98 | [
"MIT"
] | 16 | 2019-10-14T08:17:13.000Z | 2021-12-13T20:13:23.000Z | fuxi/web/flask_app.py | riusksk/fuxi | fadb1136b8896fe2a0f7783627bda867d5e6fd98 | [
"MIT"
] | 238 | 2018-06-14T08:59:44.000Z | 2019-09-04T06:35:37.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : jeffzhang
# @Time : 2019/7/5
# @File : flask_app.py
# @Desc : ""
import sys
from flask import Flask
from celery import Celery
from flask_cors import CORS
from secrets import token_urlsafe
from instance.config import config
from fuxi.common.utils.logger import logger
def create_app(config_name):
try:
_app = Flask(__name__, static_folder="../../dist/", static_url_path='', template_folder="../../dist")
_app.config.from_object(config[config_name])
_app.config['CELERY_BROKER_URL'] = "redis://{}:{}/{}".format(
_app.config.get("REDIS_HOST"), _app.config.get("REDIS_PORT"), _app.config.get("REDIS_DB"),
)
if _app.config.get('MONGO_USER') and _app.config.get('MONGO_PASSWD'):
_app.config['MONGO_URI'] = "mongodb://{}:{}@{}:{}/{}".format(
_app.config.get("MONGO_USER"), _app.config.get("MONGO_PASSWD"),
_app.config.get("MONGO_HOST"), _app.config.get("MONGO_PORT"), _app.config.get("MONGO_DB"),
)
else:
_app.config['MONGO_URI'] = "mongodb://{}:{}/{}".format(
_app.config.get("MONGO_HOST"), _app.config.get("MONGO_PORT"), _app.config.get("MONGO_DB"),
)
_app.config['SECRET_KEY'] = token_urlsafe()
CORS(_app, supports_credentials=True)
return _app
except Exception as e:
logger.error("create flask app error: {}".format(e))
sys.exit(0)
flask_app = create_app('dev')
fuxi_celery = Celery(flask_app.name, broker=flask_app.config['CELERY_BROKER_URL'])
fuxi_celery.conf.update(flask_app.config)
flask_app.app_context().push()
| 37.777778 | 109 | 0.629412 | 220 | 1,700 | 4.559091 | 0.345455 | 0.188435 | 0.155533 | 0.169492 | 0.317049 | 0.244267 | 0.244267 | 0.198405 | 0.198405 | 0.198405 | 0 | 0.005882 | 0.2 | 1,700 | 44 | 110 | 38.636364 | 0.731618 | 0.071176 | 0 | 0.060606 | 0 | 0 | 0.189447 | 0.015257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.212121 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6b2c976647a4257fbcab4451d6dc53d41ddd5eef | 223 | py | Python | data/python/pattern_7/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | 3 | 2021-12-29T13:03:27.000Z | 2021-12-31T20:27:17.000Z | data/python/pattern_7/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | 2 | 2022-01-15T13:08:13.000Z | 2022-01-18T19:41:07.000Z | data/python/pattern_7/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | null | null | null | #MAIN PROGRAM STARTS HERE:
num = int(input('Enter the number of rows and columns for the square: '))
k = 1
for x in range(0, num ):
for y in range(0, num):
print ('%d ' % (k), end='')
k += 2
print() | 24.777778 | 73 | 0.55157 | 38 | 223 | 3.236842 | 0.710526 | 0.113821 | 0.130081 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.29148 | 223 | 9 | 74 | 24.777778 | 0.753165 | 0.112108 | 0 | 0 | 0 | 0 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b3017e565125c160db2008f20371860b6b47f47 | 9,429 | py | Python | centersurround/stimuli.py | gjheij/experiments | 4eddce164a9e48823f5807ce5037d785b5224417 | [
"MIT"
] | null | null | null | centersurround/stimuli.py | gjheij/experiments | 4eddce164a9e48823f5807ce5037d785b5224417 | [
"MIT"
] | null | null | null | centersurround/stimuli.py | gjheij/experiments | 4eddce164a9e48823f5807ce5037d785b5224417 | [
"MIT"
] | null | null | null | import numpy as np
from psychopy.visual import TextStim, Line, RadialStim, Circle
from psychopy import tools
class FixationLines(object):
def __init__(self, win, circle_radius, color, *args, **kwargs):
self.color = color
self.line1 = Line(win, start=(-circle_radius, -circle_radius),
end=(circle_radius, circle_radius), lineColor=self.color, *args, **kwargs)
self.line2 = Line(win, start=(-circle_radius, circle_radius),
end=(circle_radius, -circle_radius), lineColor=self.color, *args, **kwargs)
def draw(self):
self.line1.draw()
self.line2.draw()
def setColor(self, color):
self.line1.color = color
self.line2.color = color
self.color = color
class PRFStim(object):
def __init__(self, session):
self.session = session
if hasattr(self.session, 'prf_parameters'):
self.size_prf = self.session.prf_parameters['size'][self.session.hemi]
self.x_loc = self.session.prf_parameters['x'][self.session.hemi]
self.y_loc = self.session.prf_parameters['y'][self.session.hemi]
self.size_prf_pix = tools.monitorunittools.deg2pix(self.size_prf, self.session.monitor)
self.x_loc_pix = tools.monitorunittools.deg2pix(self.x_loc, self.session.monitor)
self.y_loc_pix = tools.monitorunittools.deg2pix(self.y_loc, self.session.monitor)
else:
self.size_prf = 1000.0
self.prf_stimulus = Circle(win=self.session.win,
size=(self.size_prf_pix, self.size_prf_pix),
pos=(self.x_loc_pix, self.y_loc_pix),
units='pix',
fillColor="#65CC14",
lineColor=[0, 0, 0],
opacity=0.5,
edges=128)
def draw(self):
self.prf_stimulus.draw()
class HemiFieldStim(object):
def __init__(self,
session,
angular_cycles,
radial_cycles,
border_radius,
pacman_angle=20,
n_mask_pixels=1000,
frequency=8.0):
self.session = session
self.angular_cycles = angular_cycles
self.radial_cycles = radial_cycles
self.border_radius = border_radius
self.pacman_angle = pacman_angle
self.n_mask_pixels = n_mask_pixels
self.frequency = frequency
mask = np.ones((n_mask_pixels))
mask[-int(border_radius*n_mask_pixels):] = (np.cos(np.linspace(0,np.pi,int(border_radius*n_mask_pixels)))+1)/2
mask[:int(border_radius*n_mask_pixels)] = (np.cos(np.linspace(0,np.pi,int(border_radius*n_mask_pixels))[::-1])+1)/2
if hasattr(self.session, 'prf_parameters'):
self.size_prf = self.session.prf_parameters['size'][self.session.hemi]
self.x_loc = self.session.prf_parameters['x'][self.session.hemi]
self.y_loc = self.session.prf_parameters['y'][self.session.hemi]
self.size_prf_pix = tools.monitorunittools.deg2pix(self.size_prf, self.session.monitor)
self.x_loc_pix = tools.monitorunittools.deg2pix(self.x_loc, self.session.monitor)
self.y_loc_pix = tools.monitorunittools.deg2pix(self.y_loc, self.session.monitor)
print(f"target pRF-size: {self.size_prf} [{self.size_prf_pix}px]")
print(f"target pRF x_loc: {self.x_loc} [{self.x_loc_pix}px]")
print(f"target pRF y_loc: {self.y_loc} [{self.y_loc_pix}px]")
else:
self.size_prf = 1000.0
self.stimulus_1 = RadialStim(win=self.session.win,
mask=mask,
size=(self.size_prf_pix,self.size_prf_pix),
radialCycles=self.radial_cycles,
angularCycles=self.angular_cycles,
texRes=128,
angularRes=100,
pos=(self.x_loc_pix, self.y_loc_pix),
ori=180,
color=1,
units='pix')
self.stimulus_2 = RadialStim(win=self.session.win,
mask=mask,
size=(self.size_prf_pix,self.size_prf_pix),
radialCycles=self.radial_cycles,
angularCycles=self.angular_cycles,
texRes=128,
angularRes=100,
pos=(self.x_loc_pix, self.y_loc_pix),
ori=180,
color=-1,
units='pix')
factor = 2
self.stimulus_3 = RadialStim(win=self.session.win,
mask=mask,
size=(self.size_prf_pix*factor,self.size_prf_pix*factor),
radialCycles=self.radial_cycles*factor,
angularCycles=self.angular_cycles*factor,
texRes=128,
angularRes=100,
pos=(self.x_loc_pix, self.y_loc_pix),
ori=180,
color=1,
units='pix')
self.stimulus_4 = RadialStim(win=self.session.win,
mask=mask,
size=(self.size_prf_pix*factor,self.size_prf_pix*factor),
radialCycles=self.radial_cycles*factor,
angularCycles=self.angular_cycles*factor,
texRes=128,
angularRes=100,
pos=(self.x_loc_pix, self.y_loc_pix),
ori=180,
color=-1,
units='pix')
self.stimulus_5 = RadialStim(win=self.session.win,
mask=mask,
size=(self.size_prf_pix*3,self.size_prf_pix*3),
radialCycles=self.radial_cycles*factor,
angularCycles=self.angular_cycles*factor,
texRes=128,
angularRes=100,
pos=(self.x_loc_pix, self.y_loc_pix),
ori=180,
color=1,
units='pix')
self.stimulus_6 = RadialStim(win=self.session.win,
mask=mask,
size=(self.size_prf_pix*3,self.size_prf_pix*3),
radialCycles=self.radial_cycles*factor,
angularCycles=self.angular_cycles*factor,
texRes=128,
angularRes=100,
pos=(self.x_loc_pix, self.y_loc_pix),
ori=180,
color=-1,
units='pix')
self.block_center1 = Circle(win=self.session.win,
size=(self.size_prf_pix,self.size_prf_pix),
pos=(self.x_loc_pix, self.y_loc_pix),
units='pix',
fillColor=[0,0,0],
lineColor=[0,0,0],
edges=128)
self.block_center2 = Circle(win=self.session.win,
size=(self.size_prf_pix*2,self.size_prf_pix*2),
pos=(self.x_loc_pix, self.y_loc_pix),
units='pix',
fillColor=[0,0,0],
lineColor=[0,0,0],
edges=128)
def draw(self, trial=None):
rotationRate = 0.1 # revs per sec
t = 0
phase = np.fmod(self.session.settings['design'].get('stim_duration')+self.session.timer.getTime(), 1.0/self.frequency) * self.frequency
if trial == "center":
if phase < 0.5:
self.stimulus_1.draw()
else:
self.stimulus_2.draw()
elif trial == "surround":
if phase < 0.5:
self.stimulus_3.draw()
else:
self.stimulus_4.draw()
self.block_center1.draw()
elif trial == "outside":
if phase < 0.5:
self.stimulus_5.draw()
else:
self.stimulus_6.draw()
self.block_center2.draw()
| 45.995122 | 143 | 0.453919 | 926 | 9,429 | 4.404968 | 0.12419 | 0.094386 | 0.075509 | 0.072076 | 0.733513 | 0.700662 | 0.675411 | 0.663643 | 0.663643 | 0.663643 | 0 | 0.03125 | 0.453601 | 9,429 | 204 | 144 | 46.220588 | 0.760481 | 0.001273 | 0 | 0.616279 | 0 | 0 | 0.02889 | 0.002443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040698 | false | 0 | 0.017442 | 0 | 0.075581 | 0.017442 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b36025e3a2a181a75cdc222b23b3e4ec41b6492 | 714 | py | Python | students/k3342/laboratory_works/Koshkareva_Maria/laboratory_work_2-3/my_project/bus/migrations/0004_auto_20200626_0114.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3342/laboratory_works/Koshkareva_Maria/laboratory_work_2-3/my_project/bus/migrations/0004_auto_20200626_0114.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3342/laboratory_works/Koshkareva_Maria/laboratory_work_2-3/my_project/bus/migrations/0004_auto_20200626_0114.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | # Generated by Django 3.0.7 on 2020-06-25 22:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bus', '0003_bus_capacity'),
]
operations = [
migrations.AddField(
model_name='driver',
name='salary',
field=models.IntegerField(default=1),
),
migrations.AddField(
model_name='driver',
name='work_exp',
field=models.IntegerField(default=1),
),
migrations.AlterField(
model_name='bus',
name='capacity',
field=models.IntegerField(default=1, help_text='fills in based on "Type"'),
),
]
| 24.62069 | 87 | 0.557423 | 72 | 714 | 5.430556 | 0.583333 | 0.069054 | 0.176471 | 0.230179 | 0.452685 | 0.373402 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.322129 | 714 | 28 | 88 | 25.5 | 0.762397 | 0.063025 | 0 | 0.409091 | 1 | 0 | 0.121439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b4b547d29c5014c85e94af364b17c11aae8b04a | 5,523 | py | Python | nomad/__init__.py | tbartelmess/python-nomad | 3ddbf904af2947992722a9dcf58c23eb0078fc8f | [
"MIT"
] | null | null | null | nomad/__init__.py | tbartelmess/python-nomad | 3ddbf904af2947992722a9dcf58c23eb0078fc8f | [
"MIT"
] | null | null | null | nomad/__init__.py | tbartelmess/python-nomad | 3ddbf904af2947992722a9dcf58c23eb0078fc8f | [
"MIT"
] | null | null | null |
import nomad.api as api
import os
class Nomad(object):
def __init__(self,
host='127.0.0.1',
secure=False,
port=4646,
address=os.getenv('NOMAD_ADDR', None),
namespace=os.getenv('NOMAD_NAMESPACE', None),
token=os.getenv('NOMAD_TOKEN', None),
timeout=5,
region=os.getenv('NOMAD_REGION', None),
version='v1',
verify=False,
cert=()):
""" Nomad api client
https://github.com/jrxFive/python-nomad/
optional arguments:
- host (defaults 127.0.0.1), string ip or name of the nomad api server/agent that will be used.
- port (defaults 4646), integer port that will be used to connect.
- secure (defaults False), define if the protocol is secured or not (https or http)
- version (defaults v1), vesion of the api of nomad.
- verify (defaults False), verify the certificate when tls/ssl is enabled
at nomad.
- cert (defaults empty), cert, or key and cert file to validate the certificate
configured at nomad.
- region (defaults None), version of the region to use. It will be used then
regions of the current agent of the connection.
- namespace (defaults to None), Specifies the enterpise namespace that will
be use to deploy or to ask info to nomad.
- token (defaults to None), Specifies to append ACL token to the headers to
make authentication on secured based nomad environemnts.
returns: Nomad api client object
raises:
- nomad.api.exceptions.BaseNomadException
- nomad.api.exceptions.URLNotFoundNomadException
- nomad.api.exceptions.URLNotAuthorizedNomadException
"""
self.host = host
self.secure = secure
self.port = port
self.address = address
self.timeout = timeout
self.version = version
self.verify = verify
self.cert = cert
self.requester = api.Requester(address=address, uri=self.get_uri(), port=port, namespace=namespace,
token=token, timeout=timeout, version=version, verify=verify, cert=cert)
self._jobs = api.Jobs(self.requester)
self._job = api.Job(self.requester)
self._nodes = api.Nodes(self.requester)
self._node = api.Node(self.requester)
self._allocations = api.Allocations(self.requester)
self._allocation = api.Allocation(self.requester)
self._evaluations = api.Evaluations(self.requester)
self._evaluation = api.Evaluation(self.requester)
self._agent = api.Agent(self.requester)
self._client = api.Client(self.requester)
self._deployments = api.Deployments(self.requester)
self._deployment = api.Deployment(self.requester)
self._regions = api.Regions(self.requester)
self._status = api.Status(self.requester)
self._system = api.System(self.requester)
self._operator = api.Operator(self.requester)
self._validate = api.Validate(self.requester)
self._namespaces = api.Namespaces(self.requester)
self._namespace = api.Namespace(self.requester)
self._acl = api.Acl(self.requester)
self._sentinel = api.Sentinel(self.requester)
self._metrics = api.Metrics(self.requester)
def set_namespace(self, namespace):
self.requester.namespace = namespace
def set_token(self, token):
self.requester.token = token
def get_namespace(self):
return self.requester.namespace
def get_token(self):
return self.requester.token
def get_uri(self):
if self.secure:
protocol = "https"
else:
protocol = "http"
return "{protocol}://{host}".format(protocol=protocol, host=self.host)
@property
def jobs(self):
return self._jobs
@property
def job(self):
return self._job
@property
def nodes(self):
return self._nodes
@property
def node(self):
return self._node
@property
def allocations(self):
return self._allocations
@property
def allocation(self):
return self._allocation
@property
def evaluations(self):
return self._evaluations
@property
def evaluation(self):
return self._evaluation
@property
def agent(self):
return self._agent
@property
def client(self):
return self._client
@property
def deployments(self):
return self._deployments
@property
def deployment(self):
return self._deployment
@property
def regions(self):
return self._regions
@property
def status(self):
return self._status
@property
def system(self):
return self._system
@property
def operator(self):
return self._operator
@property
def validate(self):
return self._validate
@property
def namespaces(self):
return self._namespaces
@property
def namespace(self):
return self._namespace
@property
def acl(self):
return self._acl
@property
def sentinel(self):
return self._sentinel
@property
def metrics(self):
return self._metrics
| 29.693548 | 112 | 0.609089 | 616 | 5,523 | 5.366883 | 0.201299 | 0.106171 | 0.101633 | 0.00363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005985 | 0.304183 | 5,523 | 185 | 113 | 29.854054 | 0.854281 | 0.229404 | 0 | 0.173228 | 0 | 0 | 0.021593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220472 | false | 0 | 0.015748 | 0.188976 | 0.440945 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
860b9c9e24c12a2cf4b922bfe11eb1cd301978f0 | 95 | py | Python | forsun/version.py | guanchaoguo/forsun | 9bef8356e5ad1224c9e670e0d319a6ff3486e5d5 | [
"MIT"
] | null | null | null | forsun/version.py | guanchaoguo/forsun | 9bef8356e5ad1224c9e670e0d319a6ff3486e5d5 | [
"MIT"
] | null | null | null | forsun/version.py | guanchaoguo/forsun | 9bef8356e5ad1224c9e670e0d319a6ff3486e5d5 | [
"MIT"
] | 1 | 2020-04-21T21:21:46.000Z | 2020-04-21T21:21:46.000Z | # -*- coding: utf-8 -*-
# 18/1/30
# create by: snower
version = "0.1.1"
version_info = (0,1.1) | 15.833333 | 23 | 0.568421 | 18 | 95 | 2.944444 | 0.666667 | 0.075472 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.178947 | 95 | 6 | 24 | 15.833333 | 0.525641 | 0.494737 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
860f8e6d25c84110681081cf6b57d85a645af337 | 2,558 | py | Python | aod2nano/preselection/pre_trigger.py | llayer/cmsopen | 876e35eb4dfdf727ae91be5c2db29fc087325db7 | [
"Apache-2.0"
] | null | null | null | aod2nano/preselection/pre_trigger.py | llayer/cmsopen | 876e35eb4dfdf727ae91be5c2db29fc087325db7 | [
"Apache-2.0"
] | null | null | null | aod2nano/preselection/pre_trigger.py | llayer/cmsopen | 876e35eb4dfdf727ae91be5c2db29fc087325db7 | [
"Apache-2.0"
] | null | null | null | import ROOT
import sys
def pass_tau_iso(evt, iTau):
if (evt.Tau_byLooseCombinedIsolationDeltaBetaCorr[iTau] == 1):
return True
if (evt.Tau_byLooseCombinedIsolationDeltaBetaCorr3Hits[iTau] == 1):
return True
#if (evt.Tau_byLooseIsolationMVA2[iTau] == 1):
# return True
return False
def pass_against_ele(evt, iTau):
if evt.Tau_againstElectronLoose[iTau] == 1:
return True
if evt.Tau_againstElectronLooseMVA3[iTau] == 1:
return True
return False
def pass_against_mu(evt, iTau):
if evt.Tau_againstMuonLoose[iTau] == 1:
return True
if evt.Tau_againstMuonLoose3[iTau] == 1:
return True
return False
def pass_pre_sel_tau(evt):
if not ( evt.nJet>=4 ):
return False
ntaus = 0
for iTau in range(evt.nTau):
if pass_tau_iso(evt, iTau):
if pass_against_mu(evt, iTau):
if pass_against_ele(evt, iTau):
ntaus += 1
if not ( ntaus>=1 ):
return False
return True
def pass_pre_sel_jet(evt):
#print ":::::::::::::::"
if evt.nJet < 4:
return False
for iJet in range(evt.nJet):
if iJet == 3:
break
#print evt.Jet_pt[iJet]
if evt.Jet_pt[iJet] < 70.:
return False
#print "Pass"
return True
def preselect():
ff = ROOT.TFile( '/eos/user/l/llayer/opendata_files/legacy_id/Run2011B_SingleMu/Run2011B_SingleMu_808BDB63-9837-E311-8A49-003048F23A06_2595.root')# '/eos/user/l/llayer/opendata_files/legacy_id/Run2011A_MultiJet/Run2011A_MultiJet_564CBC7A-C143-E311-895A-C860001BD936_348.root') #ff = ROOT.TFile( '/eos/user/l/llayer/opendata_files/legacy/Run2011A_MultiJet/Run2011A_MultiJet_56D66460-C743-E311-B818-BCAEC518FF62_3089.root') # ff = ROOT.TFile( '/eos/user/l/llayer/opendata_files/legacy/DYJetsToLL/DYJetsToLL_AA11C768-AEBC-E311-B184-0025905A60BE_4018.root')
#'/eos/user/l/llayer/opendata_files/legacy/Run2011A_MultiJet/Run2011A_MultiJet_56D66460-C743-E311-B818-BCAEC518FF62_3089.root')
tree_in = ff.Get("MyModule/Events")
tree_info = ff.Get("MyModule/Info")
file = ROOT.TFile("presel.root", 'recreate')
newtree = tree_in.CloneTree(0)
for counter, evt in enumerate(tree_in):
if not pass_pre_sel_jet(evt):
continue
else:
newtree.Fill()
newtree.Print()
print tree_in.GetEntriesFast(), newtree.GetEntriesFast()
newtree.Write()
tree_info.Write()
file.Close()
if __name__ == "__main__":
preselect()
| 26.371134 | 558 | 0.659891 | 334 | 2,558 | 4.847305 | 0.296407 | 0.027795 | 0.034589 | 0.064855 | 0.466337 | 0.3916 | 0.347746 | 0.29092 | 0.242742 | 0.193329 | 0 | 0.090543 | 0.22283 | 2,558 | 96 | 559 | 26.645833 | 0.723843 | 0.253323 | 0 | 0.254237 | 0 | 0.016949 | 0.095213 | 0.066281 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.152542 | 0.033898 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
863f9bfeee58b6c38960c4722de8198bea06e678 | 214 | py | Python | Algorithms/itertools/itertools_count.py | Nobodylesszb/python_module | 37d2cdcf89a3ff02a9e560696a059cec9272bd1f | [
"MIT"
] | null | null | null | Algorithms/itertools/itertools_count.py | Nobodylesszb/python_module | 37d2cdcf89a3ff02a9e560696a059cec9272bd1f | [
"MIT"
] | null | null | null | Algorithms/itertools/itertools_count.py | Nobodylesszb/python_module | 37d2cdcf89a3ff02a9e560696a059cec9272bd1f | [
"MIT"
] | null | null | null | #该count()函数返回一个无限期生成连续整数的迭代器。
# 第一个数字可以作为参数传递(默认值为零)。
# 没有上限参数(range()有关结果集的更多控制,请参阅内置参数)
from itertools import *
for i in zip(count(1), ['a', 'b', 'c']):
print(i)
"""
output:
(1, 'a')
(2, 'b')
(3, 'c')
""" | 13.375 | 40 | 0.588785 | 29 | 214 | 4.344828 | 0.827586 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0.154206 | 214 | 16 | 41 | 13.375 | 0.674033 | 0.392523 | 0 | 0 | 0 | 0 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
86493747f677ff8aa38d68078b4ff431c1e3b3fa | 4,659 | py | Python | django_xsede_warehouse/glue2_db/serializers.py | XSEDE/XSEDE_Information_Warehouse | 8b3aab42b7afd70ce69b9bf44551a0ded4491831 | [
"Apache-2.0"
] | 1 | 2019-10-29T22:50:29.000Z | 2019-10-29T22:50:29.000Z | django_xsede_warehouse/glue2_db/serializers.py | XSEDE/XSEDE_Information_Warehouse | 8b3aab42b7afd70ce69b9bf44551a0ded4491831 | [
"Apache-2.0"
] | null | null | null | django_xsede_warehouse/glue2_db/serializers.py | XSEDE/XSEDE_Information_Warehouse | 8b3aab42b7afd70ce69b9bf44551a0ded4491831 | [
"Apache-2.0"
] | null | null | null | from glue2_db.models import *
from rest_framework import serializers
class AdminDomain_DbSerializer(serializers.ModelSerializer):
class Meta:
model = AdminDomain
fields = ('ID', 'Name', 'CreationTime', 'Validity' , 'EntityJSON', \
'Description', 'WWW', 'Distributed', 'Owner')
class UserDomain_DbSerializer(serializers.ModelSerializer):
class Meta:
model = UserDomain
fields = ('ID', 'Name', 'CreationTime', 'Validity' , 'EntityJSON', \
'Description', 'WWW', 'Level', 'UserManager', 'Member')
class AccessPolicy_DbSerializer(serializers.ModelSerializer):
class Meta:
model = AccessPolicy
fields = ('ID', 'Name', 'CreationTime', 'Validity' , 'EntityJSON', \
'Scheme', 'Rule')
class Contact_DbSerializer(serializers.ModelSerializer):
class Meta:
model = Contact
fields = ('ID', 'Name', 'CreationTime', 'Validity' , 'EntityJSON', \
'Detail', 'Type')
class Location_DbSerializer(serializers.ModelSerializer):
class Meta:
model = Location
fields = ('ID', 'Name', 'CreationTime', 'Validity' , 'EntityJSON')
#
class ApplicationEnvironment_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ApplicationEnvironment
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON', \
'Description', 'AppName', 'AppVersion')
class ApplicationHandle_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ApplicationHandle
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON', \
'ApplicationEnvironment', 'Type', 'Value')
class AbstractService_DbSerializer(serializers.ModelSerializer):
class Meta:
model = AbstractService
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON', \
'ServiceType', 'Type', 'QualityLevel')
class Endpoint_DbSerializer(serializers.ModelSerializer):
class Meta:
model = Endpoint
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON', \
'AbstractService', 'HealthState', 'ServingState', 'URL', \
'QualityLevel', 'InterfaceVersion', 'InterfaceName')
class ComputingManager_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ComputingManager
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class ExecutionEnvironment_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ExecutionEnvironment
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class ComputingShare_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ComputingShare
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class ComputingQueue_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ComputingQueue
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class ComputingActivity_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ComputingActivity
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class ComputingManagerAcceleratorInfo_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ComputingManagerAcceleratorInfo
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class ComputingManagerAcceleratorInfo_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ComputingManagerAcceleratorInfo
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class ComputingShareAcceleratorInfo_DbSerializer(serializers.ModelSerializer):
class Meta:
model = ComputingShareAcceleratorInfo
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON')
class AcceleratorEnvironment_DbSerializer(serializers.ModelSerializer):
class Meta:
model = AcceleratorEnvironment
fields = ('ID', 'ResourceID', 'Name', 'CreationTime', 'Validity', 'EntityJSON', \
'Type')
class EntityHistory_DbSerializer(serializers.ModelSerializer):
class Meta:
model = EntityHistory
fields = ('ID', 'DocumentType', 'ResourceID', 'ReceivedTime', 'EntityJSON')
class EntityHistory_Usage_Serializer(serializers.ModelSerializer):
class Meta:
model = EntityHistory
fields = ('DocumentType', 'ResourceID', 'ReceivedTime')
| 41.230088 | 89 | 0.669457 | 352 | 4,659 | 8.795455 | 0.178977 | 0.167959 | 0.200258 | 0.226098 | 0.697674 | 0.692506 | 0.379199 | 0.257106 | 0.128876 | 0.128876 | 0 | 0.000269 | 0.202619 | 4,659 | 112 | 90 | 41.598214 | 0.833109 | 0 | 0 | 0.467391 | 0 | 0 | 0.239588 | 0.004723 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.456522 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
865ee2b86736a8b927d88498bacff8455ed5a29d | 1,079 | py | Python | setup.py | Achuttarsing/inflecteur | 5b659b57dc6ad96f6946d8fde1b7d2ba1e839833 | [
"MIT"
] | 1 | 2021-03-30T18:26:57.000Z | 2021-03-30T18:26:57.000Z | setup.py | Achuttarsing/inflecteur | 5b659b57dc6ad96f6946d8fde1b7d2ba1e839833 | [
"MIT"
] | null | null | null | setup.py | Achuttarsing/inflecteur | 5b659b57dc6ad96f6946d8fde1b7d2ba1e839833 | [
"MIT"
] | null | null | null | # setup.py
from setuptools import setup
setup(
name="inflecteur",
version="0.1.4",
packages=["inflecteur"],
license="MIT",
author="Adrien Chuttarsing",
author_email="adrien.chuttarsing@gmail.com",
url="https://github.com/Achuttarsing/inflecteur",
description="python inflector for French language : control gender, tense and number",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
keywords="nlp inflector python inflecteur data augmentation french",
install_requires = ['sacremoses','tokenizers','sentencepiece','transformers','pandas','numpy'],
classifiers=[
"Natural Language :: French",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Linguistic"
],
)
| 35.966667 | 97 | 0.704356 | 112 | 1,079 | 6.732143 | 0.705357 | 0.06366 | 0.09947 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008715 | 0.149212 | 1,079 | 29 | 98 | 37.206897 | 0.812636 | 0.007414 | 0 | 0 | 0 | 0 | 0.63985 | 0.046773 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8664b077a19d5d116115818d5000e0818fb52655 | 1,840 | py | Python | RoboticsLanguage/Base/Types.py | omelinopineda/RoboticsLanguage | ffce1dc4b83eba0825ceafbaef22cf2d6691ba08 | [
"Apache-2.0"
] | null | null | null | RoboticsLanguage/Base/Types.py | omelinopineda/RoboticsLanguage | ffce1dc4b83eba0825ceafbaef22cf2d6691ba08 | [
"Apache-2.0"
] | null | null | null | RoboticsLanguage/Base/Types.py | omelinopineda/RoboticsLanguage | ffce1dc4b83eba0825ceafbaef22cf2d6691ba08 | [
"Apache-2.0"
] | null | null | null | #
# This is the Robotics Language compiler
#
# Transformations.py: Applies tranformations to the XML structure
#
# Created on: June 22, 2017
# Author: Gabriel A. D. Lopes
# Licence: Apache 2.0
# Copyright: 2014-2017 Robot Care Systems BV, The Hague, The Netherlands. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
atoms = {
'string':'Strings',
'boolean':'Booleans',
'real':'Reals',
'integer':'Integers'
}
def manySameNumbersOrStrings(x):
'''number or string'''
return all(map(lambda y: y in ['Reals', 'Integers'], x)) or all(map(lambda y: y == 'Strings', x))
def singleString(x):
'''string'''
return len(x) == 1 and x[0] == 'Strings'
def singleReal(x):
'''real'''
return len(x) == 1 and (x[0] == 'Reals' or x[0] == 'Integers')
def singleBoolean(x):
'''boolean'''
return len(x) == 1 and x[0] == 'Booleans'
def manyStrings(x):
'''string , ... , string'''
return [ xi == 'Strings' for xi in x ]
def manyExpressions(x):
'''expression , ... , expression'''
return [True]
def manyCodeBlocks(x):
'''code block , ... , code block'''
return [ xi == 'CodeBlock' for xi in x ]
def returnNothing(x):
'''nothing'''
return 'Nothing'
def returnCodeBlock(x):
'''code block'''
return 'CodeBlock'
def returnSameArgumentType(x):
return x[0]
| 26.666667 | 99 | 0.657065 | 253 | 1,840 | 4.778656 | 0.482213 | 0.049628 | 0.024814 | 0.027295 | 0.081059 | 0.039702 | 0.039702 | 0 | 0 | 0 | 0 | 0.018983 | 0.19837 | 1,840 | 68 | 100 | 27.058824 | 0.800678 | 0.526087 | 0 | 0 | 0 | 0 | 0.163772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.038462 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
866a84715020307f496bf6d7506e9c54a49e2d4c | 888 | py | Python | src/percentage.py | o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis | 4f0faaefdbdc515165a58fd53942c2902c3e7372 | [
"MIT"
] | 3 | 2020-12-23T14:57:59.000Z | 2021-06-14T07:30:25.000Z | src/percentage.py | o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis | 4f0faaefdbdc515165a58fd53942c2902c3e7372 | [
"MIT"
] | 2 | 2021-04-06T18:21:56.000Z | 2021-06-02T03:36:15.000Z | src/percentage.py | o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis | 4f0faaefdbdc515165a58fd53942c2902c3e7372 | [
"MIT"
] | 1 | 2021-06-14T07:30:40.000Z | 2021-06-14T07:30:40.000Z | import nltk,re,time,sys ,codecs,os,requests
import xml.etree.ElementTree as ET
from lxml import etree
from nltk.corpus import stopwords
from textblob import TextBlob
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from xml.dom import minidom
from tqdm import tqdm
import pandas as pd
from pandas import ExcelWriter
from bs4 import BeautifulSoup
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from contextlib import closing
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver import Firefox
def percentage(part, whole):
temp = 100 * float(part) / float(whole)
return format(temp, '.2f') | 37 | 64 | 0.82545 | 124 | 888 | 5.895161 | 0.443548 | 0.147743 | 0.201094 | 0.110807 | 0.106703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006427 | 0.123874 | 888 | 24 | 65 | 37 | 0.933162 | 0 | 0 | 0 | 0 | 0 | 0.003375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.869565 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
866a85d019d851bdc243fe72f4516388cdc8212e | 1,235 | py | Python | sphinx_revealit/nodes.py | Theta-Dev/sphinx-revealit | f8418376b76ab5b1ec1b4ac858f43e3e441f21f4 | [
"Apache-2.0"
] | null | null | null | sphinx_revealit/nodes.py | Theta-Dev/sphinx-revealit | f8418376b76ab5b1ec1b4ac858f43e3e441f21f4 | [
"Apache-2.0"
] | null | null | null | sphinx_revealit/nodes.py | Theta-Dev/sphinx-revealit | f8418376b76ab5b1ec1b4ac858f43e3e441f21f4 | [
"Apache-2.0"
] | null | null | null | """Custom docutils nodes for Reveal.js."""
from docutils import nodes
from sphinx_revealit.elements import RjsElement
class FlagAttribute(object):
"""Flag options for docutils node."""
pass
class SectionTagRenderer(object):
"""Mix-in class to build attributes combined string."""
def attributes_str(self):
"""Build string of attributes for Reveal.js sections.
Catch only keys starting 'data-'.
Others are skipped.
"""
pair = []
for k, v in self.attributes.items():
if not k.startswith('data-'):
continue
if isinstance(v, FlagAttribute):
pair.append(k)
continue
pair.append(f'{k}="{v}"')
return " ".join(pair)
class RevealjsNode(nodes.Structural, nodes.Element):
revealit_el: RjsElement = None
class revealjs_deck(RevealjsNode):
pass
class revealjs_section(SectionTagRenderer, RevealjsNode):
pass
class revealjs_break(SectionTagRenderer, RevealjsNode):
pass
class revealjs_fragments(RevealjsNode):
pass
class revealjs_effect(RevealjsNode):
pass
class revealjs_div(RevealjsNode):
pass
class revealjs_title(RevealjsNode):
pass
| 19.919355 | 61 | 0.654251 | 133 | 1,235 | 6 | 0.496241 | 0.078947 | 0.157895 | 0.218045 | 0.117794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251012 | 1,235 | 61 | 62 | 20.245902 | 0.862703 | 0.181377 | 0 | 0.322581 | 0 | 0 | 0.015544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.258065 | 0.064516 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
867eda69b1d93177077c9e632aafed2c91d09959 | 917 | py | Python | tfinterface/tests/__init__.py | cgarciae/tf-interface | bc4036c9f4d19e042ca7801c51fbafd8220afc76 | [
"MIT"
] | 1 | 2017-07-06T19:50:49.000Z | 2017-07-06T19:50:49.000Z | tfinterface/tests/__init__.py | cgarciae/tf-interface | bc4036c9f4d19e042ca7801c51fbafd8220afc76 | [
"MIT"
] | 3 | 2017-09-01T19:35:19.000Z | 2018-04-27T21:01:00.000Z | tfinterface/tests/__init__.py | cgarciae/tf-interface | bc4036c9f4d19e042ca7801c51fbafd8220afc76 | [
"MIT"
] | 2 | 2018-09-10T11:11:29.000Z | 2018-11-26T15:31:23.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xaa0f5a8b
# Compiled with Coconut version 1.2.3-post_dev1 [Colonel]
# Coconut Header: --------------------------------------------------------
from __future__ import print_function, absolute_import, unicode_literals, division
import sys as _coconut_sys, os.path as _coconut_os_path
_coconut_file_path = _coconut_os_path.dirname(_coconut_os_path.abspath(__file__))
_coconut_sys.path.insert(0, _coconut_file_path)
from __coconut__ import _coconut, _coconut_MatchError, _coconut_tail_call, _coconut_tco, _coconut_igetitem, _coconut_compose, _coconut_pipe, _coconut_starpipe, _coconut_backpipe, _coconut_backstarpipe, _coconut_bool_and, _coconut_bool_or, _coconut_minus, _coconut_map, _coconut_partial
from __coconut__ import *
_coconut_sys.path.remove(_coconut_file_path)
# Compiled Coconut: ------------------------------------------------------
| 48.263158 | 285 | 0.732824 | 110 | 917 | 5.372727 | 0.5 | 0.040609 | 0.06599 | 0.081218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011848 | 0.079607 | 917 | 18 | 286 | 50.944444 | 0.688389 | 0.2988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
868741ad0ac064969e90a8c9bf5ae839de2eeb01 | 4,300 | py | Python | Bootcamp_2020/collection_counters.py | samirsaravia/Python_101 | 0c45f11d74a356514a0c436ade6af4c0f67c56b7 | [
"MIT"
] | null | null | null | Bootcamp_2020/collection_counters.py | samirsaravia/Python_101 | 0c45f11d74a356514a0c436ade6af4c0f67c56b7 | [
"MIT"
] | 1 | 2020-10-16T23:26:41.000Z | 2020-10-16T23:26:41.000Z | Bootcamp_2020/collection_counters.py | samirsaravia/Python_101 | 0c45f11d74a356514a0c436ade6af4c0f67c56b7 | [
"MIT"
] | null | null | null | from collections import Counter
import matplotlib.pyplot as plt
sherlock = ('\n'
'Mr. Sherlock Holmes, who was usually very late in the mornings, save upon those not infrequent occasions when he was up all night, was seated at the breakfast table. I stood upon the hearth-rug and picked up the stick which our visitor had left behind him the night before. It was a fine, thick piece of wood, bulbous-headed, of the sort which is known as a “Penang lawyer.” Just under the head was a broad silver band nearly an inch across. “To James Mortimer, M.R.C.S., from his friends of the C.C.H.,” was engraved upon it, with the date “1884.” It was just such a stick as the old-fashioned family practitioner used to carry—dignified, solid, and reassuring.\n'
'“Well, Watson, what do you make of it?”\n'
'\n'
'Holmes was sitting with his back to me, and I had given him no sign of my occupation.\n'
'\n'
'“How did you know what I was doing? I believe you have eyes in the back of your head.”\n'
'\n'
'“I have, at least, a well-polished, silver-plated coffee-pot in front of me,” said he. “But, tell me, Watson, what do you make of our visitor’s stick? Since we have been so unfortunate as to miss him and have no notion of his errand, this accidental souvenir becomes of importance. Let me hear you reconstruct the man by an examination of it.”\n'
'\n'
'“I think,” said I, following as far as I could the methods of my companion, “that Dr. Mortimer is a successful, elderly medical man, well-esteemed since those who know him give him this mark of their appreciation.”\n'
'\n'
'“Good!” said Holmes. “Excellent!”\n'
'\n'
'“I think also that the probability is in favour of his being a country practitioner who does a great deal of his visiting on foot.”\n'
'\n'
'“Why so?”\n'
'\n'
'“Because this stick, though originally a very handsome one has been so knocked about that I can hardly imagine a town practitioner carrying it. The thick-iron ferrule is worn down, so it is evident that he has done a great amount of walking with it.”\n'
'\n'
'“Perfectly sound!” said Holmes.\n'
'\n'
'“And then again, there is the ‘friends of the C.C.H.’ I should guess that to be the Something Hunt, the local hunt to whose members he has possibly given some surgical assistance, and which has made him a small presentation in return.”\n'
'\n'
'“Really, Watson, you excel yourself,” said Holmes, pushing back his chair and lighting a cigarette. “I am bound to say that in all the accounts which you have been so good as to give of my own small achievements you have habitually underrated your own abilities. It may be that you are not yourself luminous, but you are a conductor of light. Some people without possessing genius have a remarkable power of stimulating it. I confess, my dear fellow, that I am very much in your debt.”\n'
'\n'
'He had never said as much before, and I must admit that his words gave me keen pleasure, for I had often been piqued by his indifference to my admiration and to the attempts which I had made to give publicity to his methods. I was proud, too, to think that I had so far mastered his system as to apply it in a way which earned his approval. He now took the stick from my hands and examined it for a few minutes with his naked eyes. Then with an expression of interest he laid down his cigarette, and carrying the cane to the window, he looked over it again with a convex lens.\n')
print(Counter(sherlock.lower()))
print()
new_dict = dict(Counter(sherlock.lower()))
print(new_dict)
# dictionary comprehension
new_dict = {k: v for k, v in new_dict.items() if k.isalpha()}
'''
# This code below is alike to dict comprehension with additional lines of code
new_dict_clean = dict()
for k, v in new_dict.items():
if k.isalpha():
new_dict_clean[k] = v
'''
print()
print(new_dict)
print()
# list comprehension
L = list(x ** 2 for x in range(1, 11))
print(L)
m = []
for x in range(1, 11):
m.append(x ** 2)
print(m)
x, y = zip(*new_dict.items())
plt.bar(x, y)
plt.show()
| 75.438596 | 678 | 0.687442 | 744 | 4,300 | 3.959677 | 0.431452 | 0.008147 | 0.004073 | 0.008826 | 0.075356 | 0.075356 | 0.019688 | 0.019688 | 0.019688 | 0.019688 | 0 | 0.003659 | 0.237209 | 4,300 | 56 | 679 | 76.785714 | 0.894207 | 0.01 | 0 | 0.369565 | 0 | 0.217391 | 0.795522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.065217 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
868791b96e9a4fdfdf2caff923aea25a6a2e68a5 | 697 | py | Python | experiments/karla/diplomski-rad/blade/pb/datasets/n10-all-indels/train-test-split.py | lvrcek/consensus-net | 560957f315751822e1ddf8c097eb7b712ceadff3 | [
"MIT"
] | null | null | null | experiments/karla/diplomski-rad/blade/pb/datasets/n10-all-indels/train-test-split.py | lvrcek/consensus-net | 560957f315751822e1ddf8c097eb7b712ceadff3 | [
"MIT"
] | null | null | null | experiments/karla/diplomski-rad/blade/pb/datasets/n10-all-indels/train-test-split.py | lvrcek/consensus-net | 560957f315751822e1ddf8c097eb7b712ceadff3 | [
"MIT"
] | 1 | 2018-12-23T13:50:29.000Z | 2018-12-23T13:50:29.000Z | import numpy as np
import sys
module_path = '/home/diplomski-rad/consensus-net/src/python/dataset/'
if module_path not in sys.path:
print('Adding dataset module.')
sys.path.append(module_path)
import dataset
X, y, X_train, X_validate, y_train, y_validate = dataset.read_dataset_and_reshape_for_conv(
'./dataset-all-n10-X-indels.npy', './dataset-all-n10-y-indels.npy', 0.1)
np.save('./dataset-n10-X-reshaped-script', X)
np.save('./dataset-n10-y-reshaped-scipt', y)
np.save('./dataset-n10-X-reshaped-train', X_train)
np.save('./dataset-n10-X-reshaped-validate', X_validate)
np.save('./dataset-n10-y-reshaped-train', y_train)
np.save('./dataset-n10-y-reshaped-validate', y_validate)
| 33.190476 | 91 | 0.734577 | 117 | 697 | 4.239316 | 0.34188 | 0.072581 | 0.157258 | 0.193548 | 0.322581 | 0.302419 | 0 | 0 | 0 | 0 | 0 | 0.028257 | 0.086083 | 697 | 20 | 92 | 34.85 | 0.750392 | 0 | 0 | 0 | 0 | 0 | 0.46198 | 0.430416 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8693aab94e0b5b337cf147778c3f97780e8f9aad | 9,646 | py | Python | BaseStation/tests/test_real_time_controller.py | ul-gaul/Avionique_Software | e131936de4878d6b71a7168de2212bd9a3a507c7 | [
"MIT"
] | 3 | 2017-10-17T22:56:17.000Z | 2019-02-04T17:23:07.000Z | BaseStation/tests/test_real_time_controller.py | ul-gaul/Avionique_Software | e131936de4878d6b71a7168de2212bd9a3a507c7 | [
"MIT"
] | 64 | 2016-12-05T23:34:20.000Z | 2020-10-05T23:57:43.000Z | BaseStation/tests/test_real_time_controller.py | ul-gaul/Avionique_Software | e131936de4878d6b71a7168de2212bd9a3a507c7 | [
"MIT"
] | 3 | 2017-01-11T06:14:14.000Z | 2020-10-05T20:57:37.000Z | import unittest
from unittest.mock import Mock, MagicMock, ANY
from PyQt5.QtCore import QTimer
from PyQt5.QtGui import QCloseEvent
from src.data_processing.consumer_factory import ConsumerFactory
from src.message_listener import MessageListener
from src.message_type import MessageType
from src.real_time_controller import RealTimeController
from src.realtime.serial_data_producer import SerialDataProducer, NoConnectedDeviceException
from src.save import SaveManager, SaveStatus
from src.ui.real_time_widget import RealTimeWidget
from src.ui.motor_widget import MotorWidget
from tests.builders.config_builder import ConfigBuilder
class RealTimeControllerTest(unittest.TestCase):
VALID_SAVE_FILE_NAME = "file.csv"
EMPTY_SAVE_FILE_NAME = ""
A_ROCKET_PACKET_VERSION = 2019
def setUp(self):
self.real_time_widget = Mock(spec=RealTimeWidget)
self.motor_widget = Mock(spec=MotorWidget)
self.serial_data_producer = Mock(spec=SerialDataProducer)
self.consumer_factory = MagicMock(spec=ConsumerFactory)
self.save_manager = Mock(spec=SaveManager)
self.event = Mock(spec=QCloseEvent)
self.config = ConfigBuilder().with_rocket_packet_version(self.A_ROCKET_PACKET_VERSION).build()
self.qtimer = Mock(spec=QTimer)
self.real_time_controller = RealTimeController(self.real_time_widget, self.motor_widget, self.serial_data_producer,
self.consumer_factory, self.save_manager, self.config,
self.qtimer)
self.real_time_controller.is_running = False
def test_real_time_button_callback_should_stop_timer_when_is_running(self):
self.real_time_controller.is_running = True
self.real_time_controller.real_time_button_callback()
self.qtimer.stop.assert_called_with()
self.serial_data_producer.stop.assert_called_with()
def test_real_time_button_callback_should_update_button_text_when_is_running(self):
self.real_time_controller.is_running = True
self.real_time_controller.real_time_button_callback()
self.real_time_widget.update_button_text.assert_called_with(False)
def test_real_time_button_callback_should_start_timer_when_is_not_running(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.real_time_controller.real_time_button_callback()
self.serial_data_producer.start.assert_called_with()
self.qtimer.start.assert_called_with(ANY)
def test_real_time_button_callback_should_update_button_text_when_is_not_running(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.real_time_controller.real_time_button_callback()
self.real_time_widget.update_button_text.assert_called_with(True)
def test_real_time_button_callback_should_create_new_consumer_when_is_not_running(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.SAVED
self.real_time_controller.real_time_button_callback()
self.consumer_factory.create.assert_called_with(self.serial_data_producer, self.A_ROCKET_PACKET_VERSION,
self.config)
def test_real_time_button_callback_should_reset_ui_when_is_not_running(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.SAVED
self.real_time_controller.real_time_button_callback()
self.real_time_widget.reset.assert_called_with()
def test_real_time_button_callback_should_do_nothing_when_unsaved_data_and_save_status_is_cancelled(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.CANCELLED
self.real_time_controller.real_time_button_callback()
self.consumer_factory.create.assert_not_called()
self.real_time_widget.reset.assert_not_called()
self.real_time_widget.update_button_text.assert_not_called()
self.serial_data_producer.start.assert_not_called()
self.qtimer.start.assert_not_called()
def test_real_time_button_callback_should_notify_message_listeners_when_data_producer_throws_exception(self):
error_message = "message"
self.serial_data_producer.start.side_effect = NoConnectedDeviceException(error_message)
self.serial_data_producer.has_unsaved_data.return_value = False
message_listener = Mock(spec=MessageListener)
self.real_time_controller.register_message_listener(message_listener)
self.real_time_controller.real_time_button_callback()
message_listener.notify.assert_called_with(error_message, MessageType.ERROR)
def test_on_close_should_stop_timer_if_is_running(self):
self.real_time_controller.is_running = True
self.serial_data_producer.has_unsaved_data.return_value = False
self.real_time_controller.on_close(self.event)
self.qtimer.stop.assert_called_with()
self.serial_data_producer.stop.assert_called_with()
def test_on_close_should_stop_timer_when_is_running_and_save_status_is_not_cancelled(self):
self.real_time_controller.is_running = True
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.SAVED
self.real_time_controller.on_close(self.event)
self.qtimer.stop.assert_called_with()
self.serial_data_producer.stop.assert_called_with()
def test_on_close_should_not_close_when_cancelled_save_status(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.CANCELLED
self.real_time_controller.on_close(self.event)
self.event.ignore.assert_called_with()
def test_on_close_should_not_stop_timer_when_cancelled_save_status(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.CANCELLED
self.real_time_controller.on_close(self.event)
self.serial_data_producer.save.assert_not_called()
self.qtimer.stop.assert_not_called()
def test_on_close_should_close_when_saved_save_status(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.SAVED
self.real_time_controller.on_close(self.event)
self.event.accept.assert_called_with()
def test_on_close_should_close_when_unsaved_save_status(self):
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.UNSAVED
self.real_time_controller.on_close(self.event)
self.event.accept.assert_called_with()
def test_on_close_should_close_when_no_unsaved_data(self):
self.serial_data_producer.has_unsaved_data.return_value = False
self.real_time_controller.on_close(self.event)
self.event.accept.assert_called_with()
def test_activate_should_update_button_text(self):
self.real_time_controller.activate("")
self.real_time_widget.update_button_text.assert_called_with(False)
def test_deactivate_should_stop_timer_when_is_running(self):
self.real_time_controller.is_running = True
self.serial_data_producer.has_unsaved_data.return_value = False
self.real_time_controller.deactivate()
self.qtimer.stop.assert_called_with()
self.serial_data_producer.stop.assert_called_with()
def test_deactivate_should_clear_data_producer(self):
self.real_time_controller.is_running = False
self.serial_data_producer.has_unsaved_data.return_value = False
self.real_time_controller.deactivate()
self.serial_data_producer.clear_rocket_packets.assert_called_with()
def test_deactivate_should_reset_data_widget(self):
self.real_time_controller.is_running = False
self.serial_data_producer.has_unsaved_data.return_value = False
self.real_time_controller.deactivate()
self.real_time_widget.reset.assert_called_with()
def test_deactivate_should_return_true_when_save_status_is_not_cancelled(self):
self.real_time_controller.is_running = False
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.SAVED
is_deactivated = self.real_time_controller.deactivate()
self.assertTrue(is_deactivated)
def test_deactivate_should_do_nothing_when_save_status_is_cancelled(self):
self.real_time_controller.is_running = True
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.CANCELLED
self.real_time_controller.deactivate()
self.serial_data_producer.clear_rocket_packets.assert_not_called()
self.real_time_widget.reset.assert_not_called()
self.qtimer.stop.assert_not_called()
self.serial_data_producer.stop.assert_not_called()
def test_deactivate_should_return_false_when_save_status_is_cancelled(self):
self.real_time_controller.is_running = True
self.serial_data_producer.has_unsaved_data.return_value = True
self.save_manager.save.return_value = SaveStatus.CANCELLED
is_deactivated = self.real_time_controller.deactivate()
self.assertFalse(is_deactivated)
| 42.307018 | 123 | 0.772548 | 1,278 | 9,646 | 5.348983 | 0.090767 | 0.073727 | 0.078994 | 0.112639 | 0.750293 | 0.715623 | 0.700995 | 0.649356 | 0.614248 | 0.598011 | 0 | 0.000743 | 0.162969 | 9,646 | 227 | 124 | 42.493392 | 0.845925 | 0 | 0 | 0.519481 | 0 | 0 | 0.001555 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.149351 | false | 0 | 0.084416 | 0 | 0.25974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8697abdefd8652c31a0d7fb14768965d46a23e5e | 1,302 | py | Python | sweeps/benchmarks/cortexsuite.py | TAKAKEYA/gem5-aladdin | 2e35169b13b2baf789056a70d1ade463a26727ea | [
"BSD-3-Clause"
] | 135 | 2016-10-21T03:31:49.000Z | 2022-03-25T01:22:20.000Z | sweeps/benchmarks/cortexsuite.py | TAKAKEYA/gem5-aladdin | 2e35169b13b2baf789056a70d1ade463a26727ea | [
"BSD-3-Clause"
] | 35 | 2017-03-10T17:57:46.000Z | 2022-02-18T17:34:16.000Z | sweeps/benchmarks/cortexsuite.py | TAKAKEYA/gem5-aladdin | 2e35169b13b2baf789056a70d1ade463a26727ea | [
"BSD-3-Clause"
] | 48 | 2016-12-08T12:03:13.000Z | 2022-02-16T09:16:13.000Z | # CortexSuite benchmark definitions.
from datatypes import *
from params import *
disparity = Benchmark("disparity", "disparity/src/c")
disparity.set_kernels(
["computeSAD",
"integralImage2D2D",
"finalSAD",
"findDisparity"])
# computeSAD
disparity.set_main_id(0x1f0)
disparity.add_loop("computeSAD", "outer")
disparity.add_loop("computeSAD", "inner")
disparity.add_array("Ileft", 29810, 4)
disparity.add_array("Iright_moved", 29810, 4)
disparity.add_array("SAD", 29810, 4)
# integralImage2D2D
disparity.add_loop("integralImage2D2D", "loop1")
disparity.add_loop("integralImage2D2D", "loop2_outer")
disparity.add_loop("integralImage2D2D", "loop2_inner")
disparity.add_loop("integralImage2D2D", "loop3_outer")
disparity.add_loop("integralImage2D2D", "loop3_inner")
disparity.add_array("integralImg", 29810, 4)
# finalSAD
disparity.add_loop("finalSAD", "outer")
disparity.add_loop("finalSAD", "inner")
disparity.add_array("retSAD", 27106, 4)
# findDisparity
disparity.add_loop("findDisparity", "outer")
disparity.add_loop("findDisparity", "inner")
disparity.add_array("minSAD", 27106, 4)
disparity.add_array("retDisp", 27106, 4)
disparity.add_required_files(["../../data/qcif/1.bmp", "../../data/qcif/2.bmp"])
disparity.set_exec_cmd("disparity-gem5-accel")
disparity.set_run_args(".")
| 34.263158 | 80 | 0.759601 | 156 | 1,302 | 6.134615 | 0.326923 | 0.238245 | 0.183908 | 0.109718 | 0.217346 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055648 | 0.075269 | 1,302 | 37 | 81 | 35.189189 | 0.739203 | 0.066052 | 0 | 0 | 0 | 0 | 0.339669 | 0.034711 | 0 | 0 | 0.004132 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
869ddb6474951dcedbb150bbe3541602d7d5b00a | 802 | py | Python | home/migrations/0003_auto_20180807_0803.py | higab85/drugsandme | 7db66d9687ac9a04132de94edda364f191d497d7 | [
"MIT"
] | 3 | 2016-10-10T10:07:39.000Z | 2018-10-29T19:57:52.000Z | home/migrations/0003_auto_20180807_0803.py | higab85/drugsandme | 7db66d9687ac9a04132de94edda364f191d497d7 | [
"MIT"
] | 12 | 2016-11-04T18:59:17.000Z | 2022-03-11T23:32:52.000Z | home/migrations/0003_auto_20180807_0803.py | higab85/drugsandme | 7db66d9687ac9a04132de94edda364f191d497d7 | [
"MIT"
] | 2 | 2016-09-29T22:48:26.000Z | 2019-10-01T19:55:14.000Z | # Generated by Django 2.0.7 on 2018-08-07 08:03
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20180807_0756'),
]
operations = [
migrations.AlterField(
model_name='indexblurb',
name='section_content',
field=wagtail.core.fields.StreamField([('text', wagtail.core.blocks.RichTextBlock()), ('partners', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('name', wagtail.core.blocks.CharBlock(blank=True, max_length=25)), ('link', wagtail.core.blocks.CharBlock(blank=True, max_length=255)), ('logo', wagtail.images.blocks.ImageChooserBlock())])))], blank=True),
),
]
| 36.454545 | 381 | 0.69202 | 94 | 802 | 5.829787 | 0.553191 | 0.160584 | 0.186131 | 0.094891 | 0.160584 | 0.160584 | 0.160584 | 0.160584 | 0 | 0 | 0 | 0.053333 | 0.158354 | 802 | 21 | 382 | 38.190476 | 0.758519 | 0.05611 | 0 | 0 | 1 | 0 | 0.100662 | 0.030464 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86a0b0165963fc96f15b6f39fa7e1daeafcad25a | 1,175 | py | Python | components/camera/app/streaming/forms.py | minhan74/UV-Robot | 52f5b643c376a91d8a34ffa0fca1c65c1110c47b | [
"MIT"
] | 1 | 2020-07-29T13:38:40.000Z | 2020-07-29T13:38:40.000Z | components/camera/app/streaming/forms.py | minhan74/UV-Robot | 52f5b643c376a91d8a34ffa0fca1c65c1110c47b | [
"MIT"
] | 6 | 2020-04-13T14:14:39.000Z | 2020-06-02T09:39:34.000Z | components/camera/app/streaming/forms.py | minhan74/UV-Robot | 52f5b643c376a91d8a34ffa0fca1c65c1110c47b | [
"MIT"
] | null | null | null | """------------------------------------------------------------*-
Form module for Flask server
Tested on: Raspberry Pi 3 B+
(c) Minh-An Dao 2019
(c) Miguel Grinberg 2018
version 1.00 - 19/10/2019
--------------------------------------------------------------
* Define the form for flask server to collect.
*
--------------------------------------------------------------"""
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import ValidationError, DataRequired
from app.models import User
class LoginForm(FlaskForm):
username = StringField('Username: ', validators=[DataRequired()])
password = StringField('Password: ', validators=[DataRequired()])
submit = SubmitField('Sign in')
# def validate_mssv(self, mssv):
# if len(mssv.data) != 8: # check length of the mssv typed in
# raise ValidationError('Wrong MSSV format. Please try again.')
# user = User.query.filter_by(mssv=mssv.data).first() # search in the database if this mssv is existed or not
# if user is not None:
# raise ValidationError('This MSSV existed!. Please try again.')
| 39.166667 | 118 | 0.578723 | 130 | 1,175 | 5.207692 | 0.6 | 0.023634 | 0.041359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021784 | 0.179574 | 1,175 | 29 | 119 | 40.517241 | 0.680498 | 0.635745 | 0 | 0 | 0 | 0 | 0.066502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
86aa88317b72a63fb3235e8f39b76819472b0762 | 1,143 | py | Python | setup.py | onuratakan/rsi_calculator | c89aa8b82c453ae69d2023f38c964ec5d9736f96 | [
"MIT"
] | 1 | 2022-01-09T14:23:21.000Z | 2022-01-09T14:23:21.000Z | setup.py | onuratakan/rsi_calculator | c89aa8b82c453ae69d2023f38c964ec5d9736f96 | [
"MIT"
] | null | null | null | setup.py | onuratakan/rsi_calculator | c89aa8b82c453ae69d2023f38c964ec5d9736f96 | [
"MIT"
] | 1 | 2022-01-09T14:23:24.000Z | 2022-01-09T14:23:24.000Z | from setuptools import setup
setup(name='rsi_calculator',
version='0.1.3',
description="""A library to calculating RSI.""",
long_description="""
# RSI Calculator
A library to calculating RSI.
# Install
```
pip3 install rsi-calculator
```
# Using
## In another script
```python
from rsi_calculator import rsi
# rsi(prices = None, periods = 14)
print(rsi([15, 20, 25, 30, 20, 15, 20, 25, 30, 20, 15, 20, 25, 30, 100]))
```
## In command line
```console
-h, --help show this help message and exit
-pr PRICES [PRICES ...], --prices PRICES [PRICES ...]
Prices
-pe PERIODS, --periods PERIODS
Periods
```
```console
rsi -pr 15 20 25 30 20 15 20 25 30 20 15 20 25 30 100
```
""",
long_description_content_type='text/markdown',
url='https://github.com/onuratakan/rsi_calculator',
author='Onur Atakan ULUSOY',
author_email='atadogan06@gmail.com',
license='MIT',
packages=["rsi_calculator"],
package_dir={'':'src'},
install_requires=[
"numpy==1.21.1"
],
entry_points = {
'console_scripts': ['rsi=rsi_calculator.rsi_calculator:arguments'],
},
python_requires=">= 3",
zip_safe=False) | 24.319149 | 73 | 0.659668 | 158 | 1,143 | 4.664557 | 0.493671 | 0.141113 | 0.048847 | 0.065129 | 0.1981 | 0.084125 | 0.084125 | 0.084125 | 0.084125 | 0.084125 | 0 | 0.079702 | 0.176728 | 1,143 | 47 | 74 | 24.319149 | 0.703507 | 0 | 0 | 0.155556 | 0 | 0.022222 | 0.722028 | 0.037587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.044444 | 0 | 0.044444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86acd78d63ff518c64cbe5a7cf7ef5dbc55ea17f | 252 | py | Python | primitive_divide.py | krishnasai21/ELEMENTS-OF-PROGRAMMING-INTERVIEWS-IN-pyhton | c30176cdba882db4141d3e1a26cde50edac84f2d | [
"MIT"
] | 2 | 2020-08-05T20:08:59.000Z | 2021-05-13T06:46:09.000Z | primitive_divide.py | krishnasai21/ELEMENTS-OF-PROGRAMMING-INTERVIEWS-IN-pyhton | c30176cdba882db4141d3e1a26cde50edac84f2d | [
"MIT"
] | null | null | null | primitive_divide.py | krishnasai21/ELEMENTS-OF-PROGRAMMING-INTERVIEWS-IN-pyhton | c30176cdba882db4141d3e1a26cde50edac84f2d | [
"MIT"
] | null | null | null | def divide(x: int, y: int) -> int:
result, power = 0, 32
y_power = y << power
while x >= y:
while y_power > x:
y_power >>=1
power -=1
result += 1<<power
x -= y_power
return result | 25.2 | 35 | 0.448413 | 35 | 252 | 3.114286 | 0.342857 | 0.275229 | 0.12844 | 0.220183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041958 | 0.43254 | 252 | 10 | 36 | 25.2 | 0.72028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86ba7818821e320816eb63c407ab06d4fcd29dae | 767 | py | Python | CrowdCop_test/crowdcop/crowdcop_web/migrations/0006_auto_20160316_1926.py | bocaaust/CrowdCop | 8234855d7a3405623828db6c6c966298ede45737 | [
"Apache-2.0"
] | 2 | 2016-03-01T21:31:38.000Z | 2016-04-17T01:12:11.000Z | CrowdCop_test/crowdcop/crowdcop_web/migrations/0006_auto_20160316_1926.py | bocaaust/CrowdCop | 8234855d7a3405623828db6c6c966298ede45737 | [
"Apache-2.0"
] | 43 | 2016-02-23T20:51:27.000Z | 2022-03-11T23:12:51.000Z | CrowdCop_test/crowdcop/crowdcop_web/migrations/0006_auto_20160316_1926.py | bocaaust/CrowdCop | 8234855d7a3405623828db6c6c966298ede45737 | [
"Apache-2.0"
] | 3 | 2015-09-22T20:23:34.000Z | 2017-02-24T16:01:21.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-17 00:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crowdcop_web', '0005_auto_20160316_1656'),
]
operations = [
migrations.AlterField(
model_name='campaign',
name='stat_1',
field=models.CharField(max_length=25),
),
migrations.AlterField(
model_name='campaign',
name='stat_2',
field=models.CharField(max_length=25),
),
migrations.AlterField(
model_name='campaign',
name='stat_3',
field=models.CharField(max_length=25),
),
]
| 24.741935 | 52 | 0.578879 | 80 | 767 | 5.325 | 0.55 | 0.140845 | 0.176056 | 0.204225 | 0.535211 | 0.535211 | 0.462441 | 0.356808 | 0.356808 | 0.356808 | 0 | 0.076923 | 0.305085 | 767 | 30 | 53 | 25.566667 | 0.722326 | 0.087353 | 0 | 0.521739 | 1 | 0 | 0.110473 | 0.032999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86bfc5e1b4c6956aa1523efaca2ccbb28f7976c6 | 57 | py | Python | t-range.py | iSteveyang/Python-100-learning | 2b06940127296b7d2e6e75f44a5d497e842a4ead | [
"MIT"
] | null | null | null | t-range.py | iSteveyang/Python-100-learning | 2b06940127296b7d2e6e75f44a5d497e842a4ead | [
"MIT"
] | null | null | null | t-range.py | iSteveyang/Python-100-learning | 2b06940127296b7d2e6e75f44a5d497e842a4ead | [
"MIT"
] | null | null | null | sum = 0
for x in range(10):
sum = sum + x
print(sum)
| 11.4 | 19 | 0.561404 | 12 | 57 | 2.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.298246 | 57 | 4 | 20 | 14.25 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86c046ed8a3eef8ac6ac3f38a2649388ad12d367 | 4,384 | py | Python | openff/evaluator/forcefield/gradients.py | lilyminium/openff-evaluator | 21da54363009d83110b54d57e4416ae31df3868b | [
"MIT"
] | null | null | null | openff/evaluator/forcefield/gradients.py | lilyminium/openff-evaluator | 21da54363009d83110b54d57e4416ae31df3868b | [
"MIT"
] | null | null | null | openff/evaluator/forcefield/gradients.py | lilyminium/openff-evaluator | 21da54363009d83110b54d57e4416ae31df3868b | [
"MIT"
] | null | null | null | import numpy
import pint.compat
from openff.evaluator import unit
class ParameterGradientKey:
@property
def tag(self):
return self._tag
@property
def smirks(self):
return self._smirks
@property
def attribute(self):
return self._attribute
def __init__(self, tag=None, smirks=None, attribute=None):
self._tag = tag
self._smirks = smirks
self._attribute = attribute
def __getstate__(self):
return {"tag": self._tag, "smirks": self._smirks, "attribute": self._attribute}
def __setstate__(self, state):
self._tag = state["tag"]
self._smirks = state["smirks"]
self._attribute = state["attribute"]
def __str__(self):
return f"tag={self._tag} smirks={self._smirks} attribute={self._attribute}"
def __repr__(self):
return f"<ParameterGradientKey {str(self)}>"
def __hash__(self):
return hash((self._tag, self._smirks, self._attribute))
def __eq__(self, other):
return (
isinstance(other, ParameterGradientKey)
and self._tag == other._tag
and self._smirks == other._smirks
and self._attribute == other._attribute
)
def __ne__(self, other):
return not self.__eq__(other)
class ParameterGradient:
@property
def key(self):
return self._key
@property
def value(self):
return self._value
def __init__(self, key=None, value=None):
self._key = key
self._value = value
def __getstate__(self):
return {
"key": self._key,
"value": self._value,
}
def __setstate__(self, state):
self._key = state["key"]
self._value = state["value"]
def __str__(self):
return f"key=({self._key}) value={self._value}"
def __repr__(self):
return f"<ParameterGradient key={self._key} value={self._value}>"
def __add__(self, other):
"""
Parameters
----------
other: ParameterGradient
"""
if not isinstance(other, ParameterGradient):
raise ValueError("Only ParameterGradient objects can be added together.")
elif other.key != self.key:
raise ValueError(
"Only ParameterGradient objects with the same key can be added together."
)
return ParameterGradient(self.key, self.value + other.value)
def __sub__(self, other):
"""
Parameters
----------
other: ParameterGradient
"""
if not isinstance(other, ParameterGradient):
raise ValueError("Only ParameterGradient objects can be subtracted.")
elif other.key != self.key:
raise ValueError(
"Only ParameterGradient objects with the same key can be subtracted."
)
return ParameterGradient(self.key, self.value - other.value)
def __mul__(self, other):
"""
Parameters
----------
other: float, int, openff.evaluator.unit.Quantity
"""
if (
not isinstance(other, float)
and not isinstance(other, int)
and not isinstance(other, unit.Quantity)
):
raise ValueError(
"ParameterGradient objects can only be multiplied by int's, "
"float's or Quantity objects."
)
return ParameterGradient(self.key, self.value * other)
def __rmul__(self, other):
return self.__mul__(other)
def __truediv__(self, other):
"""
Parameters
----------
other: float, int, openff.evaluator.unit.Quantity
"""
if (
not isinstance(other, float)
and not isinstance(other, int)
and not isinstance(other, unit.Quantity)
):
raise ValueError(
"ParameterGradient objects can only be divided by int's, "
"float's or Quantity objects."
)
return ParameterGradient(self.key, self.value / other)
def __eq__(self, other):
return (
isinstance(other, ParameterGradient)
and self.key == other.key
and numpy.allclose(self.value, other.value)
)
pint.compat.upcast_types.append(ParameterGradient)
| 25.051429 | 89 | 0.57573 | 447 | 4,384 | 5.375839 | 0.149888 | 0.040782 | 0.059925 | 0.03995 | 0.58427 | 0.540158 | 0.540158 | 0.478568 | 0.478568 | 0.435289 | 0 | 0 | 0.319343 | 4,384 | 174 | 90 | 25.195402 | 0.805295 | 0.05406 | 0 | 0.345794 | 0 | 0 | 0.16391 | 0.017293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.224299 | false | 0 | 0.028037 | 0.149533 | 0.457944 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
86d349944e1204479cc7bf496f99385e0bc7a1e2 | 767 | py | Python | 20.py | smahs/euler-py | d8855d8db7336ebcdb38e8841aab6a379b766f0d | [
"MIT"
] | null | null | null | 20.py | smahs/euler-py | d8855d8db7336ebcdb38e8841aab6a379b766f0d | [
"MIT"
] | null | null | null | 20.py | smahs/euler-py | d8855d8db7336ebcdb38e8841aab6a379b766f0d | [
"MIT"
] | null | null | null | #!/usr/bin/python2
"""
Statement:
n! means n x (n - 1) x ... x 3 x 2 x 1
For example, 10! = 10 x 9 x ... x 3 x 2 x 1 = 3628800,
and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.
Find the sum of the digits in the number 100!
"""
from unittest import TestCase, main
class Problem20(object):
def __init__(self, bound):
self.bound = bound
def fn(self):
return sum(map(int, str(reduce(lambda i, j: i*j,
xrange(*self.bound)))))
class TestProblem20(TestCase):
def setUp(self):
self.bound = (1, 100)
self.answer = 648
def test_main(self):
self.assertEqual(Problem20(self.bound).fn(), self.answer)
if __name__ == '__main__':
main()
| 19.175 | 78 | 0.569752 | 121 | 767 | 3.504132 | 0.487603 | 0.106132 | 0.014151 | 0.018868 | 0.165094 | 0.165094 | 0.165094 | 0.132075 | 0 | 0 | 0 | 0.087361 | 0.298566 | 767 | 39 | 79 | 19.666667 | 0.700743 | 0.325945 | 0 | 0 | 0 | 0 | 0.015717 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.266667 | false | 0 | 0.066667 | 0.066667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
86da6a01a2793770bca0b43135c3b1a789f9587c | 413 | py | Python | env/lib/python3.4/site-packages/django_extensions/management/signals.py | dj-amadeous/deficit | cd086acd2165c96d3d0ed9c53fbc98da33afa83d | [
"MIT"
] | 11 | 2019-03-20T07:38:35.000Z | 2021-06-18T09:42:46.000Z | env/lib/python3.4/site-packages/django_extensions/management/signals.py | dj-amadeous/deficit | cd086acd2165c96d3d0ed9c53fbc98da33afa83d | [
"MIT"
] | null | null | null | env/lib/python3.4/site-packages/django_extensions/management/signals.py | dj-amadeous/deficit | cd086acd2165c96d3d0ed9c53fbc98da33afa83d | [
"MIT"
] | 5 | 2019-06-29T03:13:02.000Z | 2020-04-23T04:47:11.000Z | """
signals we use to trigger regular batch jobs
"""
from django.dispatch import Signal
run_minutely_jobs = Signal()
run_quarter_hourly_jobs = Signal()
run_hourly_jobs = Signal()
run_daily_jobs = Signal()
run_weekly_jobs = Signal()
run_monthly_jobs = Signal()
run_yearly_jobs = Signal()
pre_command = Signal(providing_args=["args", "kwargs"])
post_command = Signal(providing_args=["args", "kwargs", "outcome"])
| 25.8125 | 67 | 0.760291 | 57 | 413 | 5.175439 | 0.491228 | 0.213559 | 0.264407 | 0.128814 | 0.244068 | 0.244068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11138 | 413 | 15 | 68 | 27.533333 | 0.803815 | 0.106538 | 0 | 0 | 0 | 0 | 0.074792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86da90662ea5c8cf0e2aa704ad7f0096678bd395 | 20,809 | py | Python | sdk/python/pulumi_azure_native/network/v20200301/network_virtual_appliance.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20200301/network_virtual_appliance.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20200301/network_virtual_appliance.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** 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 ._enums import *
from ._inputs import *
__all__ = ['NetworkVirtualApplianceArgs', 'NetworkVirtualAppliance']
@pulumi.input_type
class NetworkVirtualApplianceArgs:
def __init__(__self__, *,
resource_group_name: pulumi.Input[str],
boot_strap_configuration_blob: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
cloud_init_configuration_blob: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
identity: Optional[pulumi.Input['ManagedServiceIdentityArgs']] = None,
location: Optional[pulumi.Input[str]] = None,
network_virtual_appliance_name: Optional[pulumi.Input[str]] = None,
sku: Optional[pulumi.Input['VirtualApplianceSkuPropertiesArgs']] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
virtual_appliance_asn: Optional[pulumi.Input[float]] = None,
virtual_hub: Optional[pulumi.Input['SubResourceArgs']] = None):
"""
The set of arguments for constructing a NetworkVirtualAppliance resource.
:param pulumi.Input[str] resource_group_name: The name of the resource group.
:param pulumi.Input[Sequence[pulumi.Input[str]]] boot_strap_configuration_blob: BootStrapConfigurationBlob storage URLs.
:param pulumi.Input[Sequence[pulumi.Input[str]]] cloud_init_configuration_blob: CloudInitConfigurationBlob storage URLs.
:param pulumi.Input[str] id: Resource ID.
:param pulumi.Input['ManagedServiceIdentityArgs'] identity: The service principal that has read access to cloud-init and config blob.
:param pulumi.Input[str] location: Resource location.
:param pulumi.Input[str] network_virtual_appliance_name: The name of Network Virtual Appliance.
:param pulumi.Input['VirtualApplianceSkuPropertiesArgs'] sku: Network Virtual Appliance SKU.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags.
:param pulumi.Input[float] virtual_appliance_asn: VirtualAppliance ASN.
:param pulumi.Input['SubResourceArgs'] virtual_hub: The Virtual Hub where Network Virtual Appliance is being deployed.
"""
pulumi.set(__self__, "resource_group_name", resource_group_name)
if boot_strap_configuration_blob is not None:
pulumi.set(__self__, "boot_strap_configuration_blob", boot_strap_configuration_blob)
if cloud_init_configuration_blob is not None:
pulumi.set(__self__, "cloud_init_configuration_blob", cloud_init_configuration_blob)
if id is not None:
pulumi.set(__self__, "id", id)
if identity is not None:
pulumi.set(__self__, "identity", identity)
if location is not None:
pulumi.set(__self__, "location", location)
if network_virtual_appliance_name is not None:
pulumi.set(__self__, "network_virtual_appliance_name", network_virtual_appliance_name)
if sku is not None:
pulumi.set(__self__, "sku", sku)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if virtual_appliance_asn is not None:
pulumi.set(__self__, "virtual_appliance_asn", virtual_appliance_asn)
if virtual_hub is not None:
pulumi.set(__self__, "virtual_hub", virtual_hub)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Input[str]:
"""
The name of the resource group.
"""
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="bootStrapConfigurationBlob")
def boot_strap_configuration_blob(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
BootStrapConfigurationBlob storage URLs.
"""
return pulumi.get(self, "boot_strap_configuration_blob")
@boot_strap_configuration_blob.setter
def boot_strap_configuration_blob(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "boot_strap_configuration_blob", value)
@property
@pulumi.getter(name="cloudInitConfigurationBlob")
def cloud_init_configuration_blob(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
CloudInitConfigurationBlob storage URLs.
"""
return pulumi.get(self, "cloud_init_configuration_blob")
@cloud_init_configuration_blob.setter
def cloud_init_configuration_blob(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "cloud_init_configuration_blob", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Resource ID.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def identity(self) -> Optional[pulumi.Input['ManagedServiceIdentityArgs']]:
"""
The service principal that has read access to cloud-init and config blob.
"""
return pulumi.get(self, "identity")
@identity.setter
def identity(self, value: Optional[pulumi.Input['ManagedServiceIdentityArgs']]):
pulumi.set(self, "identity", value)
@property
@pulumi.getter
def location(self) -> Optional[pulumi.Input[str]]:
"""
Resource location.
"""
return pulumi.get(self, "location")
@location.setter
def location(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "location", value)
@property
@pulumi.getter(name="networkVirtualApplianceName")
def network_virtual_appliance_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of Network Virtual Appliance.
"""
return pulumi.get(self, "network_virtual_appliance_name")
@network_virtual_appliance_name.setter
def network_virtual_appliance_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "network_virtual_appliance_name", value)
@property
@pulumi.getter
def sku(self) -> Optional[pulumi.Input['VirtualApplianceSkuPropertiesArgs']]:
"""
Network Virtual Appliance SKU.
"""
return pulumi.get(self, "sku")
@sku.setter
def sku(self, value: Optional[pulumi.Input['VirtualApplianceSkuPropertiesArgs']]):
pulumi.set(self, "sku", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
Resource tags.
"""
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="virtualApplianceAsn")
def virtual_appliance_asn(self) -> Optional[pulumi.Input[float]]:
"""
VirtualAppliance ASN.
"""
return pulumi.get(self, "virtual_appliance_asn")
@virtual_appliance_asn.setter
def virtual_appliance_asn(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "virtual_appliance_asn", value)
@property
@pulumi.getter(name="virtualHub")
def virtual_hub(self) -> Optional[pulumi.Input['SubResourceArgs']]:
"""
The Virtual Hub where Network Virtual Appliance is being deployed.
"""
return pulumi.get(self, "virtual_hub")
@virtual_hub.setter
def virtual_hub(self, value: Optional[pulumi.Input['SubResourceArgs']]):
pulumi.set(self, "virtual_hub", value)
class NetworkVirtualAppliance(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
boot_strap_configuration_blob: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
cloud_init_configuration_blob: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
identity: Optional[pulumi.Input[pulumi.InputType['ManagedServiceIdentityArgs']]] = None,
location: Optional[pulumi.Input[str]] = None,
network_virtual_appliance_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
sku: Optional[pulumi.Input[pulumi.InputType['VirtualApplianceSkuPropertiesArgs']]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
virtual_appliance_asn: Optional[pulumi.Input[float]] = None,
virtual_hub: Optional[pulumi.Input[pulumi.InputType['SubResourceArgs']]] = None,
__props__=None):
"""
NetworkVirtualAppliance Resource.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Sequence[pulumi.Input[str]]] boot_strap_configuration_blob: BootStrapConfigurationBlob storage URLs.
:param pulumi.Input[Sequence[pulumi.Input[str]]] cloud_init_configuration_blob: CloudInitConfigurationBlob storage URLs.
:param pulumi.Input[str] id: Resource ID.
:param pulumi.Input[pulumi.InputType['ManagedServiceIdentityArgs']] identity: The service principal that has read access to cloud-init and config blob.
:param pulumi.Input[str] location: Resource location.
:param pulumi.Input[str] network_virtual_appliance_name: The name of Network Virtual Appliance.
:param pulumi.Input[str] resource_group_name: The name of the resource group.
:param pulumi.Input[pulumi.InputType['VirtualApplianceSkuPropertiesArgs']] sku: Network Virtual Appliance SKU.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags.
:param pulumi.Input[float] virtual_appliance_asn: VirtualAppliance ASN.
:param pulumi.Input[pulumi.InputType['SubResourceArgs']] virtual_hub: The Virtual Hub where Network Virtual Appliance is being deployed.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: NetworkVirtualApplianceArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
NetworkVirtualAppliance Resource.
:param str resource_name: The name of the resource.
:param NetworkVirtualApplianceArgs 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(NetworkVirtualApplianceArgs, 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,
boot_strap_configuration_blob: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
cloud_init_configuration_blob: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
identity: Optional[pulumi.Input[pulumi.InputType['ManagedServiceIdentityArgs']]] = None,
location: Optional[pulumi.Input[str]] = None,
network_virtual_appliance_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
sku: Optional[pulumi.Input[pulumi.InputType['VirtualApplianceSkuPropertiesArgs']]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
virtual_appliance_asn: Optional[pulumi.Input[float]] = None,
virtual_hub: Optional[pulumi.Input[pulumi.InputType['SubResourceArgs']]] = 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__ = NetworkVirtualApplianceArgs.__new__(NetworkVirtualApplianceArgs)
__props__.__dict__["boot_strap_configuration_blob"] = boot_strap_configuration_blob
__props__.__dict__["cloud_init_configuration_blob"] = cloud_init_configuration_blob
__props__.__dict__["id"] = id
__props__.__dict__["identity"] = identity
__props__.__dict__["location"] = location
__props__.__dict__["network_virtual_appliance_name"] = network_virtual_appliance_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
__props__.__dict__["sku"] = sku
__props__.__dict__["tags"] = tags
__props__.__dict__["virtual_appliance_asn"] = virtual_appliance_asn
__props__.__dict__["virtual_hub"] = virtual_hub
__props__.__dict__["etag"] = None
__props__.__dict__["name"] = None
__props__.__dict__["provisioning_state"] = None
__props__.__dict__["type"] = None
__props__.__dict__["virtual_appliance_nics"] = None
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:network/v20200301:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network/v20191201:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network/v20191201:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network/v20200401:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network/v20200401:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network/v20200501:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network/v20200501:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network/v20200601:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network/v20200601:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network/v20200701:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network/v20200701:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network/v20200801:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network/v20200801:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-native:network/v20201101:NetworkVirtualAppliance"), pulumi.Alias(type_="azure-nextgen:network/v20201101:NetworkVirtualAppliance")])
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
super(NetworkVirtualAppliance, __self__).__init__(
'azure-native:network/v20200301:NetworkVirtualAppliance',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'NetworkVirtualAppliance':
"""
Get an existing NetworkVirtualAppliance 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.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = NetworkVirtualApplianceArgs.__new__(NetworkVirtualApplianceArgs)
__props__.__dict__["boot_strap_configuration_blob"] = None
__props__.__dict__["cloud_init_configuration_blob"] = None
__props__.__dict__["etag"] = None
__props__.__dict__["identity"] = None
__props__.__dict__["location"] = None
__props__.__dict__["name"] = None
__props__.__dict__["provisioning_state"] = None
__props__.__dict__["sku"] = None
__props__.__dict__["tags"] = None
__props__.__dict__["type"] = None
__props__.__dict__["virtual_appliance_asn"] = None
__props__.__dict__["virtual_appliance_nics"] = None
__props__.__dict__["virtual_hub"] = None
return NetworkVirtualAppliance(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="bootStrapConfigurationBlob")
def boot_strap_configuration_blob(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
BootStrapConfigurationBlob storage URLs.
"""
return pulumi.get(self, "boot_strap_configuration_blob")
@property
@pulumi.getter(name="cloudInitConfigurationBlob")
def cloud_init_configuration_blob(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
CloudInitConfigurationBlob storage URLs.
"""
return pulumi.get(self, "cloud_init_configuration_blob")
@property
@pulumi.getter
def etag(self) -> pulumi.Output[str]:
"""
A unique read-only string that changes whenever the resource is updated.
"""
return pulumi.get(self, "etag")
@property
@pulumi.getter
def identity(self) -> pulumi.Output[Optional['outputs.ManagedServiceIdentityResponse']]:
"""
The service principal that has read access to cloud-init and config blob.
"""
return pulumi.get(self, "identity")
@property
@pulumi.getter
def location(self) -> pulumi.Output[Optional[str]]:
"""
Resource location.
"""
return pulumi.get(self, "location")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Resource name.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="provisioningState")
def provisioning_state(self) -> pulumi.Output[str]:
"""
The provisioning state of the resource.
"""
return pulumi.get(self, "provisioning_state")
@property
@pulumi.getter
def sku(self) -> pulumi.Output[Optional['outputs.VirtualApplianceSkuPropertiesResponse']]:
"""
Network Virtual Appliance SKU.
"""
return pulumi.get(self, "sku")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
"""
Resource tags.
"""
return pulumi.get(self, "tags")
@property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
"""
Resource type.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter(name="virtualApplianceAsn")
def virtual_appliance_asn(self) -> pulumi.Output[Optional[float]]:
"""
VirtualAppliance ASN.
"""
return pulumi.get(self, "virtual_appliance_asn")
@property
@pulumi.getter(name="virtualApplianceNics")
def virtual_appliance_nics(self) -> pulumi.Output[Sequence['outputs.VirtualApplianceNicPropertiesResponse']]:
"""
List of Virtual Appliance Network Interfaces.
"""
return pulumi.get(self, "virtual_appliance_nics")
@property
@pulumi.getter(name="virtualHub")
def virtual_hub(self) -> pulumi.Output[Optional['outputs.SubResourceResponse']]:
"""
The Virtual Hub where Network Virtual Appliance is being deployed.
"""
return pulumi.get(self, "virtual_hub")
| 47.185941 | 1,368 | 0.675717 | 2,191 | 20,809 | 6.106801 | 0.084436 | 0.083034 | 0.073842 | 0.034081 | 0.750673 | 0.694544 | 0.615695 | 0.509417 | 0.46435 | 0.40852 | 0 | 0.007915 | 0.216781 | 20,809 | 440 | 1,369 | 47.293182 | 0.813045 | 0.189437 | 0 | 0.417582 | 1 | 0 | 0.190595 | 0.143761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150183 | false | 0.003663 | 0.029304 | 0 | 0.278388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86f2328da926796087fba43e954bd40ac06b435e | 263,446 | py | Python | env/lib/python3.10/site-packages/AVFoundation/_metadata.py | Arcfrost/MyBlog---TextToSpeech | 861db3881fde00397a9b826c900fa96f5c5d9ae4 | [
"MIT"
] | null | null | null | env/lib/python3.10/site-packages/AVFoundation/_metadata.py | Arcfrost/MyBlog---TextToSpeech | 861db3881fde00397a9b826c900fa96f5c5d9ae4 | [
"MIT"
] | null | null | null | env/lib/python3.10/site-packages/AVFoundation/_metadata.py | Arcfrost/MyBlog---TextToSpeech | 861db3881fde00397a9b826c900fa96f5c5d9ae4 | [
"MIT"
] | null | null | null | # This file is generated by objective.metadata
#
# Last update: Mon Nov 22 22:46:22 2021
#
# flake8: noqa
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
if objc.arch == "arm64":
def selAorI(a, b):
return a
else:
def selAorI(a, b):
return b
misc = {}
misc.update(
{
"AVAudio3DPoint": objc.createStructType(
"AVAudio3DPoint", b"{AVAudio3DPoint=fff}", ["x", "y", "z"]
),
"AVAudioConverterPrimeInfo": objc.createStructType(
"AVAudioConverterPrimeInfo",
b"{AVAudioConverterPrimeInfo=II}",
["leadingFrames", "trailingFrames"],
),
"AVSampleCursorSyncInfo": objc.createStructType(
"AVSampleCursorSyncInfo",
b"{_AVSampleCursorSyncInfo=ZZZ}",
["sampleIsFullSync", "sampleIsPartialSync", "sampleIsDroppable"],
),
"AVCaptureWhiteBalanceChromaticityValues": objc.createStructType(
"AVCaptureWhiteBalanceChromaticityValues",
b"{_AVCaptureWhiteBalanceChromaticityValues=ff}",
["x", "y"],
),
"AVAudio3DVectorOrientation": objc.createStructType(
"AVAudio3DVectorOrientation",
b"{AVAudio3DVectorOrientation={AVAudio3DPoint=fff}{AVAudio3DPoint=fff}}",
["forward", "up"],
),
"AVCaptionDimension": objc.createStructType(
"AVCaptionDimension", b"{AVCaptionDimension=dq}", ["value", "units"]
),
"AVPixelAspectRatio": objc.createStructType(
"AVPixelAspectRatio",
b"{_AVPixelAspectRatio=qq}",
["horizontalSpacing", "verticalSpacing"],
),
"AVCaptureWhiteBalanceTemperatureAndTintValues": objc.createStructType(
"AVCaptureWhiteBalanceTemperatureAndTintValues",
b"{_AVCaptureWhiteBalanceTemperatureAndTintValues=ff}",
["temperature", "tint"],
),
"AVAudio3DAngularOrientation": objc.createStructType(
"AVAudio3DAngularOrientation",
b"{AVAudio3DAngularOrientation=fff}",
["yaw", "pitch", "roll"],
),
"AVSampleCursorStorageRange": objc.createStructType(
"AVSampleCursorStorageRange",
b"{_AVSampleCursorStorageRange=qq}",
["offset", "length"],
),
"AVSampleCursorDependencyInfo": objc.createStructType(
"AVSampleCursorDependencyInfo",
b"{_AVSampleCursorDependencyInfo=ZZZZZZ}",
[
"sampleIndicatesWhetherItHasDependentSamples",
"sampleHasDependentSamples",
"sampleIndicatesWhetherItDependsOnOthers",
"sampleDependsOnOthers",
"sampleIndicatesWhetherItHasRedundantCoding",
"sampleHasRedundantCoding",
],
),
"AVCaptionPoint": objc.createStructType(
"AVCaptionPoint",
b"{AVCaptionPoint={AVCaptionDimension=dq}{AVCaptionDimension=dq}}",
["x", "y"],
),
"AVBeatRange": objc.createStructType(
"AVBeatRange", b"{_AVBeatRange=dd}", ["start", "length"]
),
"AVSampleCursorChunkInfo": objc.createStructType(
"AVSampleCursorChunkInfo",
b"{_AVSampleCursorChunkInfo=qZZZ}",
[
"chunkSampleCount",
"chunkHasUniformSampleSizes",
"chunkHasUniformSampleDurations",
"chunkHasUniformFormatDescriptions",
],
),
"AVEdgeWidths": objc.createStructType(
"AVEdgeWidths", b"{_AVEdgeWidths=dddd}", ["left", "top", "right", "bottom"]
),
"AVSampleCursorAudioDependencyInfo": objc.createStructType(
"AVSampleCursorAudioDependencyInfo",
b"{_AVSampleCursorAudioDependencyInfo=Zq}",
["audioSampleIsIndependentlyDecodable", "audioSamplePacketRefreshCount"],
),
"AVCaptureWhiteBalanceGains": objc.createStructType(
"AVCaptureWhiteBalanceGains",
b"{_AVCaptureWhiteBalanceGains=fff}",
["redGain", "greenGain", "blueGain"],
),
"AVCaptionSize": objc.createStructType(
"AVCaptionSize",
b"{AVCaptionSize={AVCaptionDimension=dq}{AVCaptionDimension=dq}}",
["width", "height"],
),
}
)
constants = """$AVAssetChapterMetadataGroupsDidChangeNotification$AVAssetContainsFragmentsDidChangeNotification$AVAssetDownloadTaskMediaSelectionKey$AVAssetDownloadTaskMediaSelectionPrefersMultichannelKey$AVAssetDownloadTaskMinimumRequiredMediaBitrateKey$AVAssetDownloadTaskMinimumRequiredPresentationSizeKey$AVAssetDownloadTaskPrefersHDRKey$AVAssetDownloadTaskPrefersLosslessAudioKey$AVAssetDownloadedAssetEvictionPriorityDefault$AVAssetDownloadedAssetEvictionPriorityImportant$AVAssetDurationDidChangeNotification$AVAssetExportPreset1280x720$AVAssetExportPreset1920x1080$AVAssetExportPreset3840x2160$AVAssetExportPreset640x480$AVAssetExportPreset960x540$AVAssetExportPresetAppleM4A$AVAssetExportPresetAppleM4V1080pHD$AVAssetExportPresetAppleM4V480pSD$AVAssetExportPresetAppleM4V720pHD$AVAssetExportPresetAppleM4VAppleTV$AVAssetExportPresetAppleM4VCellular$AVAssetExportPresetAppleM4VWiFi$AVAssetExportPresetAppleM4ViPod$AVAssetExportPresetAppleProRes422LPCM$AVAssetExportPresetAppleProRes4444LPCM$AVAssetExportPresetHEVC1920x1080$AVAssetExportPresetHEVC1920x1080WithAlpha$AVAssetExportPresetHEVC3840x2160$AVAssetExportPresetHEVC3840x2160WithAlpha$AVAssetExportPresetHEVC7680x4320$AVAssetExportPresetHEVCHighestQuality$AVAssetExportPresetHEVCHighestQualityWithAlpha$AVAssetExportPresetHighestQuality$AVAssetExportPresetLowQuality$AVAssetExportPresetMediumQuality$AVAssetExportPresetPassthrough$AVAssetImageGeneratorApertureModeCleanAperture$AVAssetImageGeneratorApertureModeEncodedPixels$AVAssetImageGeneratorApertureModeProductionAperture$AVAssetMediaSelectionGroupsDidChangeNotification$AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey$AVAssetTrackSegmentsDidChangeNotification$AVAssetTrackTimeRangeDidChangeNotification$AVAssetTrackTrackAssociationsDidChangeNotification$AVAssetWasDefragmentedNotification$AVAssetWriterInputMediaDataLocationBeforeMainMediaDataNotInterleaved$AVAssetWriterInputMediaDataLocationInterleavedWithMainMediaData$AVAudioBitRateStrategy_Constant$AVAudioBitRateStrategy_LongTermAverage$AVAudioBitRateStrategy_Variable$AVAudioBitRateStrategy_VariableConstrained$AVAudioEngineConfigurationChangeNotification$AVAudioFileTypeKey$AVAudioSessionCategoryAmbient$AVAudioSessionCategoryAudioProcessing$AVAudioSessionCategoryMultiRoute$AVAudioSessionCategoryPlayAndRecord$AVAudioSessionCategoryPlayback$AVAudioSessionCategoryRecord$AVAudioSessionCategorySoloAmbient$AVAudioSessionInterruptionNotification$AVAudioSessionInterruptionOptionKey$AVAudioSessionInterruptionTypeKey$AVAudioSessionInterruptionWasSuspendedKey$AVAudioSessionLocationLower$AVAudioSessionLocationUpper$AVAudioSessionMediaServicesWereLostNotification$AVAudioSessionMediaServicesWereResetNotification$AVAudioSessionModeDefault$AVAudioSessionModeGameChat$AVAudioSessionModeMeasurement$AVAudioSessionModeMoviePlayback$AVAudioSessionModeSpokenAudio$AVAudioSessionModeVideoChat$AVAudioSessionModeVideoRecording$AVAudioSessionModeVoiceChat$AVAudioSessionModeVoicePrompt$AVAudioSessionOrientationBack$AVAudioSessionOrientationBottom$AVAudioSessionOrientationFront$AVAudioSessionOrientationLeft$AVAudioSessionOrientationRight$AVAudioSessionOrientationTop$AVAudioSessionPolarPatternCardioid$AVAudioSessionPolarPatternOmnidirectional$AVAudioSessionPolarPatternStereo$AVAudioSessionPolarPatternSubcardioid$AVAudioSessionPortAVB$AVAudioSessionPortAirPlay$AVAudioSessionPortBluetoothA2DP$AVAudioSessionPortBluetoothHFP$AVAudioSessionPortBluetoothLE$AVAudioSessionPortBuiltInMic$AVAudioSessionPortBuiltInReceiver$AVAudioSessionPortBuiltInSpeaker$AVAudioSessionPortCarAudio$AVAudioSessionPortDisplayPort$AVAudioSessionPortFireWire$AVAudioSessionPortHDMI$AVAudioSessionPortHeadphones$AVAudioSessionPortHeadsetMic$AVAudioSessionPortLineIn$AVAudioSessionPortLineOut$AVAudioSessionPortPCI$AVAudioSessionPortThunderbolt$AVAudioSessionPortUSBAudio$AVAudioSessionPortVirtual$AVAudioSessionRouteChangeNotification$AVAudioSessionRouteChangePreviousRouteKey$AVAudioSessionRouteChangeReasonKey$AVAudioSessionSilenceSecondaryAudioHintNotification$AVAudioSessionSilenceSecondaryAudioHintTypeKey$AVAudioTimePitchAlgorithmLowQualityZeroLatency$AVAudioTimePitchAlgorithmSpectral$AVAudioTimePitchAlgorithmTimeDomain$AVAudioTimePitchAlgorithmVarispeed$AVAudioUnitComponentManagerRegistrationsChangedNotification$AVAudioUnitComponentTagsDidChangeNotification$AVAudioUnitManufacturerNameApple$AVAudioUnitTypeEffect$AVAudioUnitTypeFormatConverter$AVAudioUnitTypeGenerator$AVAudioUnitTypeMIDIProcessor$AVAudioUnitTypeMixer$AVAudioUnitTypeMusicDevice$AVAudioUnitTypeMusicEffect$AVAudioUnitTypeOfflineEffect$AVAudioUnitTypeOutput$AVAudioUnitTypePanner$AVCaptionConversionAdjustmentTypeTimeRange$AVCaptionConversionWarningTypeExcessMediaData$AVCaptionMediaSubTypeKey$AVCaptionMediaTypeKey$AVCaptionTimeCodeFrameDurationKey$AVCaptionUseDropFrameTimeCodeKey$AVCaptureDeviceSubjectAreaDidChangeNotification$AVCaptureDeviceTypeBuiltInDualCamera$AVCaptureDeviceTypeBuiltInDualWideCamera$AVCaptureDeviceTypeBuiltInDuoCamera$AVCaptureDeviceTypeBuiltInMicrophone$AVCaptureDeviceTypeBuiltInTelephotoCamera$AVCaptureDeviceTypeBuiltInTripleCamera$AVCaptureDeviceTypeBuiltInTrueDepthCamera$AVCaptureDeviceTypeBuiltInUltraWideCamera$AVCaptureDeviceTypeBuiltInWideAngleCamera$AVCaptureDeviceTypeExternalUnknown$AVCaptureDeviceWasConnectedNotification$AVCaptureDeviceWasDisconnectedNotification$AVCaptureExposureDurationCurrent@{_CMTime=qiIq}$AVCaptureExposureTargetBiasCurrent@f$AVCaptureISOCurrent@f$AVCaptureInputPortFormatDescriptionDidChangeNotification$AVCaptureLensPositionCurrent@f$AVCaptureMaxAvailableTorchLevel@f$AVCaptureSessionDidStartRunningNotification$AVCaptureSessionDidStopRunningNotification$AVCaptureSessionErrorKey$AVCaptureSessionInterruptionEndedNotification$AVCaptureSessionInterruptionReasonKey$AVCaptureSessionInterruptionSystemPressureStateKey$AVCaptureSessionPreset1280x720$AVCaptureSessionPreset1920x1080$AVCaptureSessionPreset320x240$AVCaptureSessionPreset352x288$AVCaptureSessionPreset3840x2160$AVCaptureSessionPreset640x480$AVCaptureSessionPreset960x540$AVCaptureSessionPresetHigh$AVCaptureSessionPresetInputPriority$AVCaptureSessionPresetLow$AVCaptureSessionPresetMedium$AVCaptureSessionPresetPhoto$AVCaptureSessionPresetiFrame1280x720$AVCaptureSessionPresetiFrame960x540$AVCaptureSessionRuntimeErrorNotification$AVCaptureSessionWasInterruptedNotification$AVCaptureSystemPressureLevelCritical$AVCaptureSystemPressureLevelFair$AVCaptureSystemPressureLevelNominal$AVCaptureSystemPressureLevelSerious$AVCaptureSystemPressureLevelShutdown$AVCaptureWhiteBalanceGainsCurrent@{_AVCaptureWhiteBalanceGains=fff}$AVChannelLayoutKey$AVContentKeyRequestProtocolVersionsKey$AVContentKeyRequestRequiresValidationDataInSecureTokenKey$AVContentKeyRequestRetryReasonReceivedObsoleteContentKey$AVContentKeyRequestRetryReasonReceivedResponseWithExpiredLease$AVContentKeyRequestRetryReasonTimedOut$AVContentKeySessionServerPlaybackContextOptionProtocolVersions$AVContentKeySessionServerPlaybackContextOptionServerChallenge$AVContentKeySystemAuthorizationToken$AVContentKeySystemClearKey$AVContentKeySystemFairPlayStreaming$AVCoordinatedPlaybackSuspensionReasonAudioSessionInterrupted$AVCoordinatedPlaybackSuspensionReasonCoordinatedPlaybackNotPossible$AVCoordinatedPlaybackSuspensionReasonPlayingInterstitial$AVCoordinatedPlaybackSuspensionReasonStallRecovery$AVCoordinatedPlaybackSuspensionReasonUserActionRequired$AVCoordinatedPlaybackSuspensionReasonUserIsChangingCurrentTime$AVCoreAnimationBeginTimeAtZero@d$AVEncoderAudioQualityForVBRKey$AVEncoderAudioQualityKey$AVEncoderBitDepthHintKey$AVEncoderBitRateKey$AVEncoderBitRatePerChannelKey$AVEncoderBitRateStrategyKey$AVErrorDeviceKey$AVErrorDiscontinuityFlagsKey$AVErrorFileSizeKey$AVErrorFileTypeKey$AVErrorMediaSubTypeKey$AVErrorMediaTypeKey$AVErrorPIDKey$AVErrorPersistentTrackIDKey$AVErrorPresentationTimeStampKey$AVErrorRecordingSuccessfullyFinishedKey$AVErrorTimeKey$AVFileType3GPP$AVFileType3GPP2$AVFileTypeAC3$AVFileTypeAIFC$AVFileTypeAIFF$AVFileTypeAMR$AVFileTypeAVCI$AVFileTypeAppleM4A$AVFileTypeAppleM4V$AVFileTypeAppleiTT$AVFileTypeCoreAudioFormat$AVFileTypeDNG$AVFileTypeEnhancedAC3$AVFileTypeHEIC$AVFileTypeHEIF$AVFileTypeJPEG$AVFileTypeMPEG4$AVFileTypeMPEGLayer3$AVFileTypeProfileMPEG4AppleHLS$AVFileTypeProfileMPEG4CMAFCompliant$AVFileTypeQuickTimeMovie$AVFileTypeSCC$AVFileTypeSunAU$AVFileTypeTIFF$AVFileTypeWAVE$AVFormatIDKey$AVFoundationErrorDomain$AVFragmentedMovieContainsMovieFragmentsDidChangeNotification$AVFragmentedMovieDurationDidChangeNotification$AVFragmentedMovieTrackSegmentsDidChangeNotification$AVFragmentedMovieTrackTimeRangeDidChangeNotification$AVFragmentedMovieTrackTotalSampleDataLengthDidChangeNotification$AVFragmentedMovieWasDefragmentedNotification$AVLayerVideoGravityResize$AVLayerVideoGravityResizeAspect$AVLayerVideoGravityResizeAspectFill$AVLinearPCMBitDepthKey$AVLinearPCMIsBigEndianKey$AVLinearPCMIsFloatKey$AVLinearPCMIsNonInterleaved$AVMediaCharacteristicAudible$AVMediaCharacteristicContainsAlphaChannel$AVMediaCharacteristicContainsHDRVideo$AVMediaCharacteristicContainsOnlyForcedSubtitles$AVMediaCharacteristicDescribesMusicAndSoundForAccessibility$AVMediaCharacteristicDescribesVideoForAccessibility$AVMediaCharacteristicDubbedTranslation$AVMediaCharacteristicEasyToRead$AVMediaCharacteristicFrameBased$AVMediaCharacteristicIsAuxiliaryContent$AVMediaCharacteristicIsMainProgramContent$AVMediaCharacteristicIsOriginalContent$AVMediaCharacteristicLanguageTranslation$AVMediaCharacteristicLegible$AVMediaCharacteristicTranscribesSpokenDialogForAccessibility$AVMediaCharacteristicUsesWideGamutColorSpace$AVMediaCharacteristicVisual$AVMediaCharacteristicVoiceOverTranslation$AVMediaTypeAudio$AVMediaTypeClosedCaption$AVMediaTypeDepthData$AVMediaTypeMetadata$AVMediaTypeMetadataObject$AVMediaTypeMuxed$AVMediaTypeSubtitle$AVMediaTypeText$AVMediaTypeTimecode$AVMediaTypeVideo$AVMetadata3GPUserDataKeyAlbumAndTrack$AVMetadata3GPUserDataKeyAuthor$AVMetadata3GPUserDataKeyCollection$AVMetadata3GPUserDataKeyCopyright$AVMetadata3GPUserDataKeyDescription$AVMetadata3GPUserDataKeyGenre$AVMetadata3GPUserDataKeyKeywordList$AVMetadata3GPUserDataKeyLocation$AVMetadata3GPUserDataKeyMediaClassification$AVMetadata3GPUserDataKeyMediaRating$AVMetadata3GPUserDataKeyPerformer$AVMetadata3GPUserDataKeyRecordingYear$AVMetadata3GPUserDataKeyThumbnail$AVMetadata3GPUserDataKeyTitle$AVMetadata3GPUserDataKeyUserRating$AVMetadataCommonIdentifierAccessibilityDescription$AVMetadataCommonIdentifierAlbumName$AVMetadataCommonIdentifierArtist$AVMetadataCommonIdentifierArtwork$AVMetadataCommonIdentifierAssetIdentifier$AVMetadataCommonIdentifierAuthor$AVMetadataCommonIdentifierContributor$AVMetadataCommonIdentifierCopyrights$AVMetadataCommonIdentifierCreationDate$AVMetadataCommonIdentifierCreator$AVMetadataCommonIdentifierDescription$AVMetadataCommonIdentifierFormat$AVMetadataCommonIdentifierLanguage$AVMetadataCommonIdentifierLastModifiedDate$AVMetadataCommonIdentifierLocation$AVMetadataCommonIdentifierMake$AVMetadataCommonIdentifierModel$AVMetadataCommonIdentifierPublisher$AVMetadataCommonIdentifierRelation$AVMetadataCommonIdentifierSoftware$AVMetadataCommonIdentifierSource$AVMetadataCommonIdentifierSubject$AVMetadataCommonIdentifierTitle$AVMetadataCommonIdentifierType$AVMetadataCommonKeyAccessibilityDescription$AVMetadataCommonKeyAlbumName$AVMetadataCommonKeyArtist$AVMetadataCommonKeyArtwork$AVMetadataCommonKeyAuthor$AVMetadataCommonKeyContributor$AVMetadataCommonKeyCopyrights$AVMetadataCommonKeyCreationDate$AVMetadataCommonKeyCreator$AVMetadataCommonKeyDescription$AVMetadataCommonKeyFormat$AVMetadataCommonKeyIdentifier$AVMetadataCommonKeyLanguage$AVMetadataCommonKeyLastModifiedDate$AVMetadataCommonKeyLocation$AVMetadataCommonKeyMake$AVMetadataCommonKeyModel$AVMetadataCommonKeyPublisher$AVMetadataCommonKeyRelation$AVMetadataCommonKeySoftware$AVMetadataCommonKeySource$AVMetadataCommonKeySubject$AVMetadataCommonKeyTitle$AVMetadataCommonKeyType$AVMetadataExtraAttributeBaseURIKey$AVMetadataExtraAttributeInfoKey$AVMetadataExtraAttributeValueURIKey$AVMetadataFormatHLSMetadata$AVMetadataFormatID3Metadata$AVMetadataFormatISOUserData$AVMetadataFormatQuickTimeMetadata$AVMetadataFormatQuickTimeUserData$AVMetadataFormatUnknown$AVMetadataFormatiTunesMetadata$AVMetadataID3MetadataKeyAlbumSortOrder$AVMetadataID3MetadataKeyAlbumTitle$AVMetadataID3MetadataKeyAttachedPicture$AVMetadataID3MetadataKeyAudioEncryption$AVMetadataID3MetadataKeyAudioSeekPointIndex$AVMetadataID3MetadataKeyBand$AVMetadataID3MetadataKeyBeatsPerMinute$AVMetadataID3MetadataKeyComments$AVMetadataID3MetadataKeyCommercial$AVMetadataID3MetadataKeyCommercialInformation$AVMetadataID3MetadataKeyCommerical$AVMetadataID3MetadataKeyComposer$AVMetadataID3MetadataKeyConductor$AVMetadataID3MetadataKeyContentGroupDescription$AVMetadataID3MetadataKeyContentType$AVMetadataID3MetadataKeyCopyright$AVMetadataID3MetadataKeyCopyrightInformation$AVMetadataID3MetadataKeyDate$AVMetadataID3MetadataKeyEncodedBy$AVMetadataID3MetadataKeyEncodedWith$AVMetadataID3MetadataKeyEncodingTime$AVMetadataID3MetadataKeyEncryption$AVMetadataID3MetadataKeyEqualization$AVMetadataID3MetadataKeyEqualization2$AVMetadataID3MetadataKeyEventTimingCodes$AVMetadataID3MetadataKeyFileOwner$AVMetadataID3MetadataKeyFileType$AVMetadataID3MetadataKeyGeneralEncapsulatedObject$AVMetadataID3MetadataKeyGroupIdentifier$AVMetadataID3MetadataKeyInitialKey$AVMetadataID3MetadataKeyInternationalStandardRecordingCode$AVMetadataID3MetadataKeyInternetRadioStationName$AVMetadataID3MetadataKeyInternetRadioStationOwner$AVMetadataID3MetadataKeyInvolvedPeopleList_v23$AVMetadataID3MetadataKeyInvolvedPeopleList_v24$AVMetadataID3MetadataKeyLanguage$AVMetadataID3MetadataKeyLeadPerformer$AVMetadataID3MetadataKeyLength$AVMetadataID3MetadataKeyLink$AVMetadataID3MetadataKeyLyricist$AVMetadataID3MetadataKeyMPEGLocationLookupTable$AVMetadataID3MetadataKeyMediaType$AVMetadataID3MetadataKeyModifiedBy$AVMetadataID3MetadataKeyMood$AVMetadataID3MetadataKeyMusicCDIdentifier$AVMetadataID3MetadataKeyMusicianCreditsList$AVMetadataID3MetadataKeyOfficialArtistWebpage$AVMetadataID3MetadataKeyOfficialAudioFileWebpage$AVMetadataID3MetadataKeyOfficialAudioSourceWebpage$AVMetadataID3MetadataKeyOfficialInternetRadioStationHomepage$AVMetadataID3MetadataKeyOfficialPublisherWebpage$AVMetadataID3MetadataKeyOriginalAlbumTitle$AVMetadataID3MetadataKeyOriginalArtist$AVMetadataID3MetadataKeyOriginalFilename$AVMetadataID3MetadataKeyOriginalLyricist$AVMetadataID3MetadataKeyOriginalReleaseTime$AVMetadataID3MetadataKeyOriginalReleaseYear$AVMetadataID3MetadataKeyOwnership$AVMetadataID3MetadataKeyPartOfASet$AVMetadataID3MetadataKeyPayment$AVMetadataID3MetadataKeyPerformerSortOrder$AVMetadataID3MetadataKeyPlayCounter$AVMetadataID3MetadataKeyPlaylistDelay$AVMetadataID3MetadataKeyPopularimeter$AVMetadataID3MetadataKeyPositionSynchronization$AVMetadataID3MetadataKeyPrivate$AVMetadataID3MetadataKeyProducedNotice$AVMetadataID3MetadataKeyPublisher$AVMetadataID3MetadataKeyRecommendedBufferSize$AVMetadataID3MetadataKeyRecordingDates$AVMetadataID3MetadataKeyRecordingTime$AVMetadataID3MetadataKeyRelativeVolumeAdjustment$AVMetadataID3MetadataKeyRelativeVolumeAdjustment2$AVMetadataID3MetadataKeyReleaseTime$AVMetadataID3MetadataKeyReverb$AVMetadataID3MetadataKeySeek$AVMetadataID3MetadataKeySetSubtitle$AVMetadataID3MetadataKeySignature$AVMetadataID3MetadataKeySize$AVMetadataID3MetadataKeySubTitle$AVMetadataID3MetadataKeySynchronizedLyric$AVMetadataID3MetadataKeySynchronizedTempoCodes$AVMetadataID3MetadataKeyTaggingTime$AVMetadataID3MetadataKeyTermsOfUse$AVMetadataID3MetadataKeyTime$AVMetadataID3MetadataKeyTitleDescription$AVMetadataID3MetadataKeyTitleSortOrder$AVMetadataID3MetadataKeyTrackNumber$AVMetadataID3MetadataKeyUniqueFileIdentifier$AVMetadataID3MetadataKeyUnsynchronizedLyric$AVMetadataID3MetadataKeyUserText$AVMetadataID3MetadataKeyUserURL$AVMetadataID3MetadataKeyYear$AVMetadataISOUserDataKeyAccessibilityDescription$AVMetadataISOUserDataKeyCopyright$AVMetadataISOUserDataKeyDate$AVMetadataISOUserDataKeyTaggedCharacteristic$AVMetadataIcyMetadataKeyStreamTitle$AVMetadataIcyMetadataKeyStreamURL$AVMetadataIdentifier3GPUserDataAlbumAndTrack$AVMetadataIdentifier3GPUserDataAuthor$AVMetadataIdentifier3GPUserDataCollection$AVMetadataIdentifier3GPUserDataCopyright$AVMetadataIdentifier3GPUserDataDescription$AVMetadataIdentifier3GPUserDataGenre$AVMetadataIdentifier3GPUserDataKeywordList$AVMetadataIdentifier3GPUserDataLocation$AVMetadataIdentifier3GPUserDataMediaClassification$AVMetadataIdentifier3GPUserDataMediaRating$AVMetadataIdentifier3GPUserDataPerformer$AVMetadataIdentifier3GPUserDataRecordingYear$AVMetadataIdentifier3GPUserDataThumbnail$AVMetadataIdentifier3GPUserDataTitle$AVMetadataIdentifier3GPUserDataUserRating$AVMetadataIdentifierID3MetadataAlbumSortOrder$AVMetadataIdentifierID3MetadataAlbumTitle$AVMetadataIdentifierID3MetadataAttachedPicture$AVMetadataIdentifierID3MetadataAudioEncryption$AVMetadataIdentifierID3MetadataAudioSeekPointIndex$AVMetadataIdentifierID3MetadataBand$AVMetadataIdentifierID3MetadataBeatsPerMinute$AVMetadataIdentifierID3MetadataComments$AVMetadataIdentifierID3MetadataCommercial$AVMetadataIdentifierID3MetadataCommercialInformation$AVMetadataIdentifierID3MetadataCommerical$AVMetadataIdentifierID3MetadataComposer$AVMetadataIdentifierID3MetadataConductor$AVMetadataIdentifierID3MetadataContentGroupDescription$AVMetadataIdentifierID3MetadataContentType$AVMetadataIdentifierID3MetadataCopyright$AVMetadataIdentifierID3MetadataCopyrightInformation$AVMetadataIdentifierID3MetadataDate$AVMetadataIdentifierID3MetadataEncodedBy$AVMetadataIdentifierID3MetadataEncodedWith$AVMetadataIdentifierID3MetadataEncodingTime$AVMetadataIdentifierID3MetadataEncryption$AVMetadataIdentifierID3MetadataEqualization$AVMetadataIdentifierID3MetadataEqualization2$AVMetadataIdentifierID3MetadataEventTimingCodes$AVMetadataIdentifierID3MetadataFileOwner$AVMetadataIdentifierID3MetadataFileType$AVMetadataIdentifierID3MetadataGeneralEncapsulatedObject$AVMetadataIdentifierID3MetadataGroupIdentifier$AVMetadataIdentifierID3MetadataInitialKey$AVMetadataIdentifierID3MetadataInternationalStandardRecordingCode$AVMetadataIdentifierID3MetadataInternetRadioStationName$AVMetadataIdentifierID3MetadataInternetRadioStationOwner$AVMetadataIdentifierID3MetadataInvolvedPeopleList_v23$AVMetadataIdentifierID3MetadataInvolvedPeopleList_v24$AVMetadataIdentifierID3MetadataLanguage$AVMetadataIdentifierID3MetadataLeadPerformer$AVMetadataIdentifierID3MetadataLength$AVMetadataIdentifierID3MetadataLink$AVMetadataIdentifierID3MetadataLyricist$AVMetadataIdentifierID3MetadataMPEGLocationLookupTable$AVMetadataIdentifierID3MetadataMediaType$AVMetadataIdentifierID3MetadataModifiedBy$AVMetadataIdentifierID3MetadataMood$AVMetadataIdentifierID3MetadataMusicCDIdentifier$AVMetadataIdentifierID3MetadataMusicianCreditsList$AVMetadataIdentifierID3MetadataOfficialArtistWebpage$AVMetadataIdentifierID3MetadataOfficialAudioFileWebpage$AVMetadataIdentifierID3MetadataOfficialAudioSourceWebpage$AVMetadataIdentifierID3MetadataOfficialInternetRadioStationHomepage$AVMetadataIdentifierID3MetadataOfficialPublisherWebpage$AVMetadataIdentifierID3MetadataOriginalAlbumTitle$AVMetadataIdentifierID3MetadataOriginalArtist$AVMetadataIdentifierID3MetadataOriginalFilename$AVMetadataIdentifierID3MetadataOriginalLyricist$AVMetadataIdentifierID3MetadataOriginalReleaseTime$AVMetadataIdentifierID3MetadataOriginalReleaseYear$AVMetadataIdentifierID3MetadataOwnership$AVMetadataIdentifierID3MetadataPartOfASet$AVMetadataIdentifierID3MetadataPayment$AVMetadataIdentifierID3MetadataPerformerSortOrder$AVMetadataIdentifierID3MetadataPlayCounter$AVMetadataIdentifierID3MetadataPlaylistDelay$AVMetadataIdentifierID3MetadataPopularimeter$AVMetadataIdentifierID3MetadataPositionSynchronization$AVMetadataIdentifierID3MetadataPrivate$AVMetadataIdentifierID3MetadataProducedNotice$AVMetadataIdentifierID3MetadataPublisher$AVMetadataIdentifierID3MetadataRecommendedBufferSize$AVMetadataIdentifierID3MetadataRecordingDates$AVMetadataIdentifierID3MetadataRecordingTime$AVMetadataIdentifierID3MetadataRelativeVolumeAdjustment$AVMetadataIdentifierID3MetadataRelativeVolumeAdjustment2$AVMetadataIdentifierID3MetadataReleaseTime$AVMetadataIdentifierID3MetadataReverb$AVMetadataIdentifierID3MetadataSeek$AVMetadataIdentifierID3MetadataSetSubtitle$AVMetadataIdentifierID3MetadataSignature$AVMetadataIdentifierID3MetadataSize$AVMetadataIdentifierID3MetadataSubTitle$AVMetadataIdentifierID3MetadataSynchronizedLyric$AVMetadataIdentifierID3MetadataSynchronizedTempoCodes$AVMetadataIdentifierID3MetadataTaggingTime$AVMetadataIdentifierID3MetadataTermsOfUse$AVMetadataIdentifierID3MetadataTime$AVMetadataIdentifierID3MetadataTitleDescription$AVMetadataIdentifierID3MetadataTitleSortOrder$AVMetadataIdentifierID3MetadataTrackNumber$AVMetadataIdentifierID3MetadataUniqueFileIdentifier$AVMetadataIdentifierID3MetadataUnsynchronizedLyric$AVMetadataIdentifierID3MetadataUserText$AVMetadataIdentifierID3MetadataUserURL$AVMetadataIdentifierID3MetadataYear$AVMetadataIdentifierISOUserDataAccessibilityDescription$AVMetadataIdentifierISOUserDataCopyright$AVMetadataIdentifierISOUserDataDate$AVMetadataIdentifierISOUserDataTaggedCharacteristic$AVMetadataIdentifierIcyMetadataStreamTitle$AVMetadataIdentifierIcyMetadataStreamURL$AVMetadataIdentifierQuickTimeMetadataAccessibilityDescription$AVMetadataIdentifierQuickTimeMetadataAlbum$AVMetadataIdentifierQuickTimeMetadataArranger$AVMetadataIdentifierQuickTimeMetadataArtist$AVMetadataIdentifierQuickTimeMetadataArtwork$AVMetadataIdentifierQuickTimeMetadataAuthor$AVMetadataIdentifierQuickTimeMetadataAutoLivePhoto$AVMetadataIdentifierQuickTimeMetadataCameraFrameReadoutTime$AVMetadataIdentifierQuickTimeMetadataCameraIdentifier$AVMetadataIdentifierQuickTimeMetadataCollectionUser$AVMetadataIdentifierQuickTimeMetadataComment$AVMetadataIdentifierQuickTimeMetadataComposer$AVMetadataIdentifierQuickTimeMetadataContentIdentifier$AVMetadataIdentifierQuickTimeMetadataCopyright$AVMetadataIdentifierQuickTimeMetadataCreationDate$AVMetadataIdentifierQuickTimeMetadataCredits$AVMetadataIdentifierQuickTimeMetadataDescription$AVMetadataIdentifierQuickTimeMetadataDetectedCatBody$AVMetadataIdentifierQuickTimeMetadataDetectedDogBody$AVMetadataIdentifierQuickTimeMetadataDetectedFace$AVMetadataIdentifierQuickTimeMetadataDetectedHumanBody$AVMetadataIdentifierQuickTimeMetadataDetectedSalientObject$AVMetadataIdentifierQuickTimeMetadataDirectionFacing$AVMetadataIdentifierQuickTimeMetadataDirectionMotion$AVMetadataIdentifierQuickTimeMetadataDirector$AVMetadataIdentifierQuickTimeMetadataDisplayName$AVMetadataIdentifierQuickTimeMetadataEncodedBy$AVMetadataIdentifierQuickTimeMetadataGenre$AVMetadataIdentifierQuickTimeMetadataInformation$AVMetadataIdentifierQuickTimeMetadataIsMontage$AVMetadataIdentifierQuickTimeMetadataKeywords$AVMetadataIdentifierQuickTimeMetadataLivePhotoVitalityScore$AVMetadataIdentifierQuickTimeMetadataLivePhotoVitalityScoringVersion$AVMetadataIdentifierQuickTimeMetadataLocationBody$AVMetadataIdentifierQuickTimeMetadataLocationDate$AVMetadataIdentifierQuickTimeMetadataLocationHorizontalAccuracyInMeters$AVMetadataIdentifierQuickTimeMetadataLocationISO6709$AVMetadataIdentifierQuickTimeMetadataLocationName$AVMetadataIdentifierQuickTimeMetadataLocationNote$AVMetadataIdentifierQuickTimeMetadataLocationRole$AVMetadataIdentifierQuickTimeMetadataMake$AVMetadataIdentifierQuickTimeMetadataModel$AVMetadataIdentifierQuickTimeMetadataOriginalArtist$AVMetadataIdentifierQuickTimeMetadataPerformer$AVMetadataIdentifierQuickTimeMetadataPhonogramRights$AVMetadataIdentifierQuickTimeMetadataPreferredAffineTransform$AVMetadataIdentifierQuickTimeMetadataProducer$AVMetadataIdentifierQuickTimeMetadataPublisher$AVMetadataIdentifierQuickTimeMetadataRatingUser$AVMetadataIdentifierQuickTimeMetadataSoftware$AVMetadataIdentifierQuickTimeMetadataSpatialOverCaptureQualityScore$AVMetadataIdentifierQuickTimeMetadataSpatialOverCaptureQualityScoringVersion$AVMetadataIdentifierQuickTimeMetadataTitle$AVMetadataIdentifierQuickTimeMetadataVideoOrientation$AVMetadataIdentifierQuickTimeMetadataYear$AVMetadataIdentifierQuickTimeMetadataiXML$AVMetadataIdentifierQuickTimeUserDataAccessibilityDescription$AVMetadataIdentifierQuickTimeUserDataAlbum$AVMetadataIdentifierQuickTimeUserDataArranger$AVMetadataIdentifierQuickTimeUserDataArtist$AVMetadataIdentifierQuickTimeUserDataAuthor$AVMetadataIdentifierQuickTimeUserDataChapter$AVMetadataIdentifierQuickTimeUserDataComment$AVMetadataIdentifierQuickTimeUserDataComposer$AVMetadataIdentifierQuickTimeUserDataCopyright$AVMetadataIdentifierQuickTimeUserDataCreationDate$AVMetadataIdentifierQuickTimeUserDataCredits$AVMetadataIdentifierQuickTimeUserDataDescription$AVMetadataIdentifierQuickTimeUserDataDirector$AVMetadataIdentifierQuickTimeUserDataDisclaimer$AVMetadataIdentifierQuickTimeUserDataEncodedBy$AVMetadataIdentifierQuickTimeUserDataFullName$AVMetadataIdentifierQuickTimeUserDataGenre$AVMetadataIdentifierQuickTimeUserDataHostComputer$AVMetadataIdentifierQuickTimeUserDataInformation$AVMetadataIdentifierQuickTimeUserDataKeywords$AVMetadataIdentifierQuickTimeUserDataLocationISO6709$AVMetadataIdentifierQuickTimeUserDataMake$AVMetadataIdentifierQuickTimeUserDataModel$AVMetadataIdentifierQuickTimeUserDataOriginalArtist$AVMetadataIdentifierQuickTimeUserDataOriginalFormat$AVMetadataIdentifierQuickTimeUserDataOriginalSource$AVMetadataIdentifierQuickTimeUserDataPerformers$AVMetadataIdentifierQuickTimeUserDataPhonogramRights$AVMetadataIdentifierQuickTimeUserDataProducer$AVMetadataIdentifierQuickTimeUserDataProduct$AVMetadataIdentifierQuickTimeUserDataPublisher$AVMetadataIdentifierQuickTimeUserDataSoftware$AVMetadataIdentifierQuickTimeUserDataSpecialPlaybackRequirements$AVMetadataIdentifierQuickTimeUserDataTaggedCharacteristic$AVMetadataIdentifierQuickTimeUserDataTrack$AVMetadataIdentifierQuickTimeUserDataTrackName$AVMetadataIdentifierQuickTimeUserDataURLLink$AVMetadataIdentifierQuickTimeUserDataWarning$AVMetadataIdentifierQuickTimeUserDataWriter$AVMetadataIdentifieriTunesMetadataAccountKind$AVMetadataIdentifieriTunesMetadataAcknowledgement$AVMetadataIdentifieriTunesMetadataAlbum$AVMetadataIdentifieriTunesMetadataAlbumArtist$AVMetadataIdentifieriTunesMetadataAppleID$AVMetadataIdentifieriTunesMetadataArranger$AVMetadataIdentifieriTunesMetadataArtDirector$AVMetadataIdentifieriTunesMetadataArtist$AVMetadataIdentifieriTunesMetadataArtistID$AVMetadataIdentifieriTunesMetadataAuthor$AVMetadataIdentifieriTunesMetadataBeatsPerMin$AVMetadataIdentifieriTunesMetadataComposer$AVMetadataIdentifieriTunesMetadataConductor$AVMetadataIdentifieriTunesMetadataContentRating$AVMetadataIdentifieriTunesMetadataCopyright$AVMetadataIdentifieriTunesMetadataCoverArt$AVMetadataIdentifieriTunesMetadataCredits$AVMetadataIdentifieriTunesMetadataDescription$AVMetadataIdentifieriTunesMetadataDirector$AVMetadataIdentifieriTunesMetadataDiscCompilation$AVMetadataIdentifieriTunesMetadataDiscNumber$AVMetadataIdentifieriTunesMetadataEQ$AVMetadataIdentifieriTunesMetadataEncodedBy$AVMetadataIdentifieriTunesMetadataEncodingTool$AVMetadataIdentifieriTunesMetadataExecProducer$AVMetadataIdentifieriTunesMetadataGenreID$AVMetadataIdentifieriTunesMetadataGrouping$AVMetadataIdentifieriTunesMetadataLinerNotes$AVMetadataIdentifieriTunesMetadataLyrics$AVMetadataIdentifieriTunesMetadataOnlineExtras$AVMetadataIdentifieriTunesMetadataOriginalArtist$AVMetadataIdentifieriTunesMetadataPerformer$AVMetadataIdentifieriTunesMetadataPhonogramRights$AVMetadataIdentifieriTunesMetadataPlaylistID$AVMetadataIdentifieriTunesMetadataPredefinedGenre$AVMetadataIdentifieriTunesMetadataProducer$AVMetadataIdentifieriTunesMetadataPublisher$AVMetadataIdentifieriTunesMetadataRecordCompany$AVMetadataIdentifieriTunesMetadataReleaseDate$AVMetadataIdentifieriTunesMetadataSoloist$AVMetadataIdentifieriTunesMetadataSongID$AVMetadataIdentifieriTunesMetadataSongName$AVMetadataIdentifieriTunesMetadataSoundEngineer$AVMetadataIdentifieriTunesMetadataThanks$AVMetadataIdentifieriTunesMetadataTrackNumber$AVMetadataIdentifieriTunesMetadataTrackSubTitle$AVMetadataIdentifieriTunesMetadataUserComment$AVMetadataIdentifieriTunesMetadataUserGenre$AVMetadataKeySpaceAudioFile$AVMetadataKeySpaceCommon$AVMetadataKeySpaceHLSDateRange$AVMetadataKeySpaceID3$AVMetadataKeySpaceISOUserData$AVMetadataKeySpaceIcy$AVMetadataKeySpaceQuickTimeMetadata$AVMetadataKeySpaceQuickTimeUserData$AVMetadataKeySpaceiTunes$AVMetadataObjectTypeAztecCode$AVMetadataObjectTypeCatBody$AVMetadataObjectTypeCode128Code$AVMetadataObjectTypeCode39Code$AVMetadataObjectTypeCode39Mod43Code$AVMetadataObjectTypeCode93Code$AVMetadataObjectTypeDataMatrixCode$AVMetadataObjectTypeDogBody$AVMetadataObjectTypeEAN13Code$AVMetadataObjectTypeEAN8Code$AVMetadataObjectTypeFace$AVMetadataObjectTypeHumanBody$AVMetadataObjectTypeITF14Code$AVMetadataObjectTypeInterleaved2of5Code$AVMetadataObjectTypePDF417Code$AVMetadataObjectTypeQRCode$AVMetadataObjectTypeSalientObject$AVMetadataObjectTypeUPCECode$AVMetadataQuickTimeMetadataKeyAccessibilityDescription$AVMetadataQuickTimeMetadataKeyAlbum$AVMetadataQuickTimeMetadataKeyArranger$AVMetadataQuickTimeMetadataKeyArtist$AVMetadataQuickTimeMetadataKeyArtwork$AVMetadataQuickTimeMetadataKeyAuthor$AVMetadataQuickTimeMetadataKeyCameraFrameReadoutTime$AVMetadataQuickTimeMetadataKeyCameraIdentifier$AVMetadataQuickTimeMetadataKeyCollectionUser$AVMetadataQuickTimeMetadataKeyComment$AVMetadataQuickTimeMetadataKeyComposer$AVMetadataQuickTimeMetadataKeyContentIdentifier$AVMetadataQuickTimeMetadataKeyCopyright$AVMetadataQuickTimeMetadataKeyCreationDate$AVMetadataQuickTimeMetadataKeyCredits$AVMetadataQuickTimeMetadataKeyDescription$AVMetadataQuickTimeMetadataKeyDirectionFacing$AVMetadataQuickTimeMetadataKeyDirectionMotion$AVMetadataQuickTimeMetadataKeyDirector$AVMetadataQuickTimeMetadataKeyDisplayName$AVMetadataQuickTimeMetadataKeyEncodedBy$AVMetadataQuickTimeMetadataKeyGenre$AVMetadataQuickTimeMetadataKeyInformation$AVMetadataQuickTimeMetadataKeyIsMontage$AVMetadataQuickTimeMetadataKeyKeywords$AVMetadataQuickTimeMetadataKeyLocationBody$AVMetadataQuickTimeMetadataKeyLocationDate$AVMetadataQuickTimeMetadataKeyLocationISO6709$AVMetadataQuickTimeMetadataKeyLocationName$AVMetadataQuickTimeMetadataKeyLocationNote$AVMetadataQuickTimeMetadataKeyLocationRole$AVMetadataQuickTimeMetadataKeyMake$AVMetadataQuickTimeMetadataKeyModel$AVMetadataQuickTimeMetadataKeyOriginalArtist$AVMetadataQuickTimeMetadataKeyPerformer$AVMetadataQuickTimeMetadataKeyPhonogramRights$AVMetadataQuickTimeMetadataKeyProducer$AVMetadataQuickTimeMetadataKeyPublisher$AVMetadataQuickTimeMetadataKeyRatingUser$AVMetadataQuickTimeMetadataKeySoftware$AVMetadataQuickTimeMetadataKeyTitle$AVMetadataQuickTimeMetadataKeyYear$AVMetadataQuickTimeMetadataKeyiXML$AVMetadataQuickTimeUserDataKeyAccessibilityDescription$AVMetadataQuickTimeUserDataKeyAlbum$AVMetadataQuickTimeUserDataKeyArranger$AVMetadataQuickTimeUserDataKeyArtist$AVMetadataQuickTimeUserDataKeyAuthor$AVMetadataQuickTimeUserDataKeyChapter$AVMetadataQuickTimeUserDataKeyComment$AVMetadataQuickTimeUserDataKeyComposer$AVMetadataQuickTimeUserDataKeyCopyright$AVMetadataQuickTimeUserDataKeyCreationDate$AVMetadataQuickTimeUserDataKeyCredits$AVMetadataQuickTimeUserDataKeyDescription$AVMetadataQuickTimeUserDataKeyDirector$AVMetadataQuickTimeUserDataKeyDisclaimer$AVMetadataQuickTimeUserDataKeyEncodedBy$AVMetadataQuickTimeUserDataKeyFullName$AVMetadataQuickTimeUserDataKeyGenre$AVMetadataQuickTimeUserDataKeyHostComputer$AVMetadataQuickTimeUserDataKeyInformation$AVMetadataQuickTimeUserDataKeyKeywords$AVMetadataQuickTimeUserDataKeyLocationISO6709$AVMetadataQuickTimeUserDataKeyMake$AVMetadataQuickTimeUserDataKeyModel$AVMetadataQuickTimeUserDataKeyOriginalArtist$AVMetadataQuickTimeUserDataKeyOriginalFormat$AVMetadataQuickTimeUserDataKeyOriginalSource$AVMetadataQuickTimeUserDataKeyPerformers$AVMetadataQuickTimeUserDataKeyPhonogramRights$AVMetadataQuickTimeUserDataKeyProducer$AVMetadataQuickTimeUserDataKeyProduct$AVMetadataQuickTimeUserDataKeyPublisher$AVMetadataQuickTimeUserDataKeySoftware$AVMetadataQuickTimeUserDataKeySpecialPlaybackRequirements$AVMetadataQuickTimeUserDataKeyTaggedCharacteristic$AVMetadataQuickTimeUserDataKeyTrack$AVMetadataQuickTimeUserDataKeyTrackName$AVMetadataQuickTimeUserDataKeyURLLink$AVMetadataQuickTimeUserDataKeyWarning$AVMetadataQuickTimeUserDataKeyWriter$AVMetadataiTunesMetadataKeyAccountKind$AVMetadataiTunesMetadataKeyAcknowledgement$AVMetadataiTunesMetadataKeyAlbum$AVMetadataiTunesMetadataKeyAlbumArtist$AVMetadataiTunesMetadataKeyAppleID$AVMetadataiTunesMetadataKeyArranger$AVMetadataiTunesMetadataKeyArtDirector$AVMetadataiTunesMetadataKeyArtist$AVMetadataiTunesMetadataKeyArtistID$AVMetadataiTunesMetadataKeyAuthor$AVMetadataiTunesMetadataKeyBeatsPerMin$AVMetadataiTunesMetadataKeyComposer$AVMetadataiTunesMetadataKeyConductor$AVMetadataiTunesMetadataKeyContentRating$AVMetadataiTunesMetadataKeyCopyright$AVMetadataiTunesMetadataKeyCoverArt$AVMetadataiTunesMetadataKeyCredits$AVMetadataiTunesMetadataKeyDescription$AVMetadataiTunesMetadataKeyDirector$AVMetadataiTunesMetadataKeyDiscCompilation$AVMetadataiTunesMetadataKeyDiscNumber$AVMetadataiTunesMetadataKeyEQ$AVMetadataiTunesMetadataKeyEncodedBy$AVMetadataiTunesMetadataKeyEncodingTool$AVMetadataiTunesMetadataKeyExecProducer$AVMetadataiTunesMetadataKeyGenreID$AVMetadataiTunesMetadataKeyGrouping$AVMetadataiTunesMetadataKeyLinerNotes$AVMetadataiTunesMetadataKeyLyrics$AVMetadataiTunesMetadataKeyOnlineExtras$AVMetadataiTunesMetadataKeyOriginalArtist$AVMetadataiTunesMetadataKeyPerformer$AVMetadataiTunesMetadataKeyPhonogramRights$AVMetadataiTunesMetadataKeyPlaylistID$AVMetadataiTunesMetadataKeyPredefinedGenre$AVMetadataiTunesMetadataKeyProducer$AVMetadataiTunesMetadataKeyPublisher$AVMetadataiTunesMetadataKeyRecordCompany$AVMetadataiTunesMetadataKeyReleaseDate$AVMetadataiTunesMetadataKeySoloist$AVMetadataiTunesMetadataKeySongID$AVMetadataiTunesMetadataKeySongName$AVMetadataiTunesMetadataKeySoundEngineer$AVMetadataiTunesMetadataKeyThanks$AVMetadataiTunesMetadataKeyTrackNumber$AVMetadataiTunesMetadataKeyTrackSubTitle$AVMetadataiTunesMetadataKeyUserComment$AVMetadataiTunesMetadataKeyUserGenre$AVMovieReferenceRestrictionsKey$AVMovieShouldSupportAliasDataReferencesKey$AVNumberOfChannelsKey$AVOutputSettingsPreset1280x720$AVOutputSettingsPreset1920x1080$AVOutputSettingsPreset3840x2160$AVOutputSettingsPreset640x480$AVOutputSettingsPreset960x540$AVOutputSettingsPresetHEVC1920x1080$AVOutputSettingsPresetHEVC1920x1080WithAlpha$AVOutputSettingsPresetHEVC3840x2160$AVOutputSettingsPresetHEVC3840x2160WithAlpha$AVOutputSettingsPresetHEVC7680x4320$AVPlaybackCoordinatorOtherParticipantsDidChangeNotification$AVPlaybackCoordinatorSuspensionReasonsDidChangeNotification$AVPlayerAvailableHDRModesDidChangeNotification$AVPlayerEligibleForHDRPlaybackDidChangeNotification$AVPlayerInterstitialEventMonitorCurrentEventDidChangeNotification$AVPlayerInterstitialEventMonitorEventsDidChangeNotification$AVPlayerInterstitialEventObserverCurrentEventDidChangeNotification$AVPlayerItemDidPlayToEndTimeNotification$AVPlayerItemFailedToPlayToEndTimeErrorKey$AVPlayerItemFailedToPlayToEndTimeNotification$AVPlayerItemLegibleOutputTextStylingResolutionDefault$AVPlayerItemLegibleOutputTextStylingResolutionSourceAndRulesOnly$AVPlayerItemMediaSelectionDidChangeNotification$AVPlayerItemNewAccessLogEntryNotification$AVPlayerItemNewErrorLogEntryNotification$AVPlayerItemPlaybackStalledNotification$AVPlayerItemRecommendedTimeOffsetFromLiveDidChangeNotification$AVPlayerItemTimeJumpedNotification$AVPlayerItemTimeJumpedOriginatingParticipantKey$AVPlayerItemTrackVideoFieldModeDeinterlaceFields$AVPlayerRateDidChangeNotification$AVPlayerRateDidChangeOriginatingParticipantKey$AVPlayerRateDidChangeReasonAppBackgrounded$AVPlayerRateDidChangeReasonAudioSessionInterrupted$AVPlayerRateDidChangeReasonKey$AVPlayerRateDidChangeReasonSetRateCalled$AVPlayerRateDidChangeReasonSetRateFailed$AVPlayerWaitingDuringInterstitialEventReason$AVPlayerWaitingForCoordinatedPlaybackReason$AVPlayerWaitingToMinimizeStallsReason$AVPlayerWaitingWhileEvaluatingBufferingRateReason$AVPlayerWaitingWithNoItemToPlayReason$AVRouteDetectorMultipleRoutesDetectedDidChangeNotification$AVSampleBufferAudioRendererFlushTimeKey$AVSampleBufferAudioRendererOutputConfigurationDidChangeNotification$AVSampleBufferAudioRendererWasFlushedAutomaticallyNotification$AVSampleBufferDisplayLayerFailedToDecodeNotification$AVSampleBufferDisplayLayerFailedToDecodeNotificationErrorKey$AVSampleBufferDisplayLayerOutputObscuredDueToInsufficientExternalProtectionDidChangeNotification$AVSampleBufferDisplayLayerRequiresFlushToResumeDecodingDidChangeNotification$AVSampleBufferRenderSynchronizerRateDidChangeNotification$AVSampleRateConverterAlgorithmKey$AVSampleRateConverterAlgorithm_Mastering$AVSampleRateConverterAlgorithm_MinimumPhase$AVSampleRateConverterAlgorithm_Normal$AVSampleRateConverterAudioQualityKey$AVSampleRateKey$AVSemanticSegmentationMatteTypeGlasses$AVSemanticSegmentationMatteTypeHair$AVSemanticSegmentationMatteTypeSkin$AVSemanticSegmentationMatteTypeTeeth$AVSpeechSynthesisIPANotationAttribute$AVSpeechSynthesisVoiceIdentifierAlex$AVSpeechUtteranceDefaultSpeechRate@f$AVSpeechUtteranceMaximumSpeechRate@f$AVSpeechUtteranceMinimumSpeechRate@f$AVStreamingKeyDeliveryContentKeyType$AVStreamingKeyDeliveryPersistentContentKeyType$AVTrackAssociationTypeAudioFallback$AVTrackAssociationTypeChapterList$AVTrackAssociationTypeForcedSubtitlesOnly$AVTrackAssociationTypeMetadataReferent$AVTrackAssociationTypeSelectionFollower$AVTrackAssociationTypeTimecode$AVURLAssetAllowsCellularAccessKey$AVURLAssetAllowsConstrainedNetworkAccessKey$AVURLAssetAllowsExpensiveNetworkAccessKey$AVURLAssetHTTPCookiesKey$AVURLAssetPreferPreciseDurationAndTimingKey$AVURLAssetReferenceRestrictionsKey$AVURLAssetShouldSupportAliasDataReferencesKey$AVURLAssetURLRequestAttributionKey$AVVideoAllowFrameReorderingKey$AVVideoAllowWideColorKey$AVVideoApertureModeCleanAperture$AVVideoApertureModeEncodedPixels$AVVideoApertureModeProductionAperture$AVVideoAppleProRAWBitDepthKey$AVVideoAverageBitRateKey$AVVideoAverageNonDroppableFrameRateKey$AVVideoCleanApertureHeightKey$AVVideoCleanApertureHorizontalOffsetKey$AVVideoCleanApertureKey$AVVideoCleanApertureVerticalOffsetKey$AVVideoCleanApertureWidthKey$AVVideoCodecAppleProRes422$AVVideoCodecAppleProRes4444$AVVideoCodecH264$AVVideoCodecHEVC$AVVideoCodecJPEG$AVVideoCodecKey$AVVideoCodecTypeAppleProRes422$AVVideoCodecTypeAppleProRes422HQ$AVVideoCodecTypeAppleProRes422LT$AVVideoCodecTypeAppleProRes422Proxy$AVVideoCodecTypeAppleProRes4444$AVVideoCodecTypeH264$AVVideoCodecTypeHEVC$AVVideoCodecTypeHEVCWithAlpha$AVVideoCodecTypeJPEG$AVVideoColorPrimariesKey$AVVideoColorPrimaries_EBU_3213$AVVideoColorPrimaries_ITU_R_2020$AVVideoColorPrimaries_ITU_R_709_2$AVVideoColorPrimaries_P3_D65$AVVideoColorPrimaries_SMPTE_C$AVVideoColorPropertiesKey$AVVideoCompressionPropertiesKey$AVVideoDecompressionPropertiesKey$AVVideoEncoderSpecificationKey$AVVideoExpectedSourceFrameRateKey$AVVideoH264EntropyModeCABAC$AVVideoH264EntropyModeCAVLC$AVVideoH264EntropyModeKey$AVVideoHeightKey$AVVideoMaxKeyFrameIntervalDurationKey$AVVideoMaxKeyFrameIntervalKey$AVVideoPixelAspectRatioHorizontalSpacingKey$AVVideoPixelAspectRatioKey$AVVideoPixelAspectRatioVerticalSpacingKey$AVVideoProfileLevelH264Baseline30$AVVideoProfileLevelH264Baseline31$AVVideoProfileLevelH264Baseline41$AVVideoProfileLevelH264BaselineAutoLevel$AVVideoProfileLevelH264High40$AVVideoProfileLevelH264High41$AVVideoProfileLevelH264HighAutoLevel$AVVideoProfileLevelH264Main30$AVVideoProfileLevelH264Main31$AVVideoProfileLevelH264Main32$AVVideoProfileLevelH264Main41$AVVideoProfileLevelH264MainAutoLevel$AVVideoProfileLevelKey$AVVideoQualityKey$AVVideoRangeHLG$AVVideoRangePQ$AVVideoRangeSDR$AVVideoScalingModeFit$AVVideoScalingModeKey$AVVideoScalingModeResize$AVVideoScalingModeResizeAspect$AVVideoScalingModeResizeAspectFill$AVVideoTransferFunctionKey$AVVideoTransferFunction_ITU_R_2100_HLG$AVVideoTransferFunction_ITU_R_709_2$AVVideoTransferFunction_SMPTE_240M_1995$AVVideoTransferFunction_SMPTE_ST_2084_PQ$AVVideoWidthKey$AVVideoYCbCrMatrixKey$AVVideoYCbCrMatrix_ITU_R_2020$AVVideoYCbCrMatrix_ITU_R_601_4$AVVideoYCbCrMatrix_ITU_R_709_2$AVVideoYCbCrMatrix_SMPTE_240M_1995$"""
enums = """$AVAUDIOENGINE_HAVE_AUAUDIOUNIT@1$AVAUDIOENGINE_HAVE_MUSICPLAYER@1$AVAUDIOFORMAT_HAVE_CMFORMATDESCRIPTION@1$AVAUDIOIONODE_HAVE_AUDIOUNIT@1$AVAUDIONODE_HAVE_AUAUDIOUNIT@1$AVAUDIOUNITCOMPONENT_HAVE_AUDIOCOMPONENT@1$AVAUDIOUNIT_HAVE_AUDIOUNIT@1$AVAssetExportSessionStatusCancelled@5$AVAssetExportSessionStatusCompleted@3$AVAssetExportSessionStatusExporting@2$AVAssetExportSessionStatusFailed@4$AVAssetExportSessionStatusUnknown@0$AVAssetExportSessionStatusWaiting@1$AVAssetImageGeneratorCancelled@2$AVAssetImageGeneratorFailed@1$AVAssetImageGeneratorSucceeded@0$AVAssetReaderStatusCancelled@4$AVAssetReaderStatusCompleted@2$AVAssetReaderStatusFailed@3$AVAssetReaderStatusReading@1$AVAssetReaderStatusUnknown@0$AVAssetReferenceRestrictionDefaultPolicy@2$AVAssetReferenceRestrictionForbidAll@65535$AVAssetReferenceRestrictionForbidCrossSiteReference@4$AVAssetReferenceRestrictionForbidLocalReferenceToLocal@8$AVAssetReferenceRestrictionForbidLocalReferenceToRemote@2$AVAssetReferenceRestrictionForbidNone@0$AVAssetReferenceRestrictionForbidRemoteReferenceToLocal@1$AVAssetSegmentTypeInitialization@1$AVAssetSegmentTypeSeparable@2$AVAssetWriterStatusCancelled@4$AVAssetWriterStatusCompleted@2$AVAssetWriterStatusFailed@3$AVAssetWriterStatusUnknown@0$AVAssetWriterStatusWriting@1$AVAudio3DMixingPointSourceInHeadModeBypass@1$AVAudio3DMixingPointSourceInHeadModeMono@0$AVAudio3DMixingRenderingAlgorithmAuto@7$AVAudio3DMixingRenderingAlgorithmEqualPowerPanning@0$AVAudio3DMixingRenderingAlgorithmHRTF@2$AVAudio3DMixingRenderingAlgorithmHRTFHQ@6$AVAudio3DMixingRenderingAlgorithmSoundField@3$AVAudio3DMixingRenderingAlgorithmSphericalHead@1$AVAudio3DMixingRenderingAlgorithmStereoPassThrough@5$AVAudio3DMixingSourceModeAmbienceBed@3$AVAudio3DMixingSourceModeBypass@1$AVAudio3DMixingSourceModePointSource@2$AVAudio3DMixingSourceModeSpatializeIfMono@0$AVAudioConverterInputStatus_EndOfStream@2$AVAudioConverterInputStatus_HaveData@0$AVAudioConverterInputStatus_NoDataNow@1$AVAudioConverterOutputStatus_EndOfStream@2$AVAudioConverterOutputStatus_Error@3$AVAudioConverterOutputStatus_HaveData@0$AVAudioConverterOutputStatus_InputRanDry@1$AVAudioConverterPrimeMethod_None@2$AVAudioConverterPrimeMethod_Normal@1$AVAudioConverterPrimeMethod_Pre@0$AVAudioEngineManualRenderingErrorInitialized@-80801$AVAudioEngineManualRenderingErrorInvalidMode@-80800$AVAudioEngineManualRenderingErrorNotRunning@-80802$AVAudioEngineManualRenderingModeOffline@0$AVAudioEngineManualRenderingModeRealtime@1$AVAudioEngineManualRenderingStatusCannotDoInCurrentContext@2$AVAudioEngineManualRenderingStatusError@-1$AVAudioEngineManualRenderingStatusInsufficientDataFromInputNode@1$AVAudioEngineManualRenderingStatusSuccess@0$AVAudioEnvironmentDistanceAttenuationModelExponential@1$AVAudioEnvironmentDistanceAttenuationModelInverse@2$AVAudioEnvironmentDistanceAttenuationModelLinear@3$AVAudioEnvironmentOutputTypeAuto@0$AVAudioEnvironmentOutputTypeBuiltInSpeakers@2$AVAudioEnvironmentOutputTypeExternalSpeakers@3$AVAudioEnvironmentOutputTypeHeadphones@1$AVAudioOtherFormat@0$AVAudioPCMFormatFloat32@1$AVAudioPCMFormatFloat64@2$AVAudioPCMFormatInt16@3$AVAudioPCMFormatInt32@4$AVAudioPlayerNodeBufferInterrupts@2$AVAudioPlayerNodeBufferInterruptsAtLoop@4$AVAudioPlayerNodeBufferLoops@1$AVAudioPlayerNodeCompletionDataConsumed@0$AVAudioPlayerNodeCompletionDataPlayedBack@2$AVAudioPlayerNodeCompletionDataRendered@1$AVAudioQualityHigh@96$AVAudioQualityLow@32$AVAudioQualityMax@127$AVAudioQualityMedium@64$AVAudioQualityMin@0$AVAudioRoutingArbitrationCategoryPlayAndRecord@1$AVAudioRoutingArbitrationCategoryPlayAndRecordVoice@2$AVAudioRoutingArbitrationCategoryPlayback@0$AVAudioSessionActivationOptionNone@0$AVAudioSessionCategoryOptionAllowAirPlay@64$AVAudioSessionCategoryOptionAllowBluetooth@4$AVAudioSessionCategoryOptionAllowBluetoothA2DP@32$AVAudioSessionCategoryOptionDefaultToSpeaker@8$AVAudioSessionCategoryOptionDuckOthers@2$AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers@17$AVAudioSessionCategoryOptionMixWithOthers@1$AVAudioSessionIOTypeAggregated@1$AVAudioSessionIOTypeNotSpecified@0$AVAudioSessionInterruptionFlags_ShouldResume@1$AVAudioSessionInterruptionOptionShouldResume@1$AVAudioSessionInterruptionTypeBegan@1$AVAudioSessionInterruptionTypeEnded@0$AVAudioSessionPortOverrideNone@0$AVAudioSessionPortOverrideSpeaker@1936747378$AVAudioSessionPromptStyleNone@1852796517$AVAudioSessionPromptStyleNormal@1852992876$AVAudioSessionPromptStyleShort@1936224884$AVAudioSessionRecordPermissionDenied@1684369017$AVAudioSessionRecordPermissionGranted@1735552628$AVAudioSessionRecordPermissionUndetermined@1970168948$AVAudioSessionRouteChangeReasonCategoryChange@3$AVAudioSessionRouteChangeReasonNewDeviceAvailable@1$AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory@7$AVAudioSessionRouteChangeReasonOldDeviceUnavailable@2$AVAudioSessionRouteChangeReasonOverride@4$AVAudioSessionRouteChangeReasonRouteConfigurationChange@8$AVAudioSessionRouteChangeReasonUnknown@0$AVAudioSessionRouteChangeReasonWakeFromSleep@6$AVAudioSessionRouteSharingPolicyDefault@0$AVAudioSessionRouteSharingPolicyIndependent@2$AVAudioSessionRouteSharingPolicyLongForm@1$AVAudioSessionRouteSharingPolicyLongFormAudio@1$AVAudioSessionRouteSharingPolicyLongFormVideo@3$AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation@1$AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation@1$AVAudioSessionSilenceSecondaryAudioHintTypeBegin@1$AVAudioSessionSilenceSecondaryAudioHintTypeEnd@0$AVAudioSpatializationFormatMonoAndStereo@3$AVAudioSpatializationFormatMonoStereoAndMultichannel@7$AVAudioSpatializationFormatMultichannel@4$AVAudioSpatializationFormatNone@0$AVAudioStereoOrientationLandscapeLeft@4$AVAudioStereoOrientationLandscapeRight@3$AVAudioStereoOrientationNone@0$AVAudioStereoOrientationPortrait@1$AVAudioStereoOrientationPortraitUpsideDown@2$AVAudioUnitDistortionPresetDrumsBitBrush@0$AVAudioUnitDistortionPresetDrumsBufferBeats@1$AVAudioUnitDistortionPresetDrumsLoFi@2$AVAudioUnitDistortionPresetMultiBrokenSpeaker@3$AVAudioUnitDistortionPresetMultiCellphoneConcert@4$AVAudioUnitDistortionPresetMultiDecimated1@5$AVAudioUnitDistortionPresetMultiDecimated2@6$AVAudioUnitDistortionPresetMultiDecimated3@7$AVAudioUnitDistortionPresetMultiDecimated4@8$AVAudioUnitDistortionPresetMultiDistortedCubed@10$AVAudioUnitDistortionPresetMultiDistortedFunk@9$AVAudioUnitDistortionPresetMultiDistortedSquared@11$AVAudioUnitDistortionPresetMultiEcho1@12$AVAudioUnitDistortionPresetMultiEcho2@13$AVAudioUnitDistortionPresetMultiEchoTight1@14$AVAudioUnitDistortionPresetMultiEchoTight2@15$AVAudioUnitDistortionPresetMultiEverythingIsBroken@16$AVAudioUnitDistortionPresetSpeechAlienChatter@17$AVAudioUnitDistortionPresetSpeechCosmicInterference@18$AVAudioUnitDistortionPresetSpeechGoldenPi@19$AVAudioUnitDistortionPresetSpeechRadioTower@20$AVAudioUnitDistortionPresetSpeechWaves@21$AVAudioUnitEQFilterTypeBandPass@5$AVAudioUnitEQFilterTypeBandStop@6$AVAudioUnitEQFilterTypeHighPass@2$AVAudioUnitEQFilterTypeHighShelf@8$AVAudioUnitEQFilterTypeLowPass@1$AVAudioUnitEQFilterTypeLowShelf@7$AVAudioUnitEQFilterTypeParametric@0$AVAudioUnitEQFilterTypeResonantHighPass@4$AVAudioUnitEQFilterTypeResonantHighShelf@10$AVAudioUnitEQFilterTypeResonantLowPass@3$AVAudioUnitEQFilterTypeResonantLowShelf@9$AVAudioUnitReverbPresetCathedral@8$AVAudioUnitReverbPresetLargeChamber@7$AVAudioUnitReverbPresetLargeHall@4$AVAudioUnitReverbPresetLargeHall2@12$AVAudioUnitReverbPresetLargeRoom@2$AVAudioUnitReverbPresetLargeRoom2@9$AVAudioUnitReverbPresetMediumChamber@6$AVAudioUnitReverbPresetMediumHall@3$AVAudioUnitReverbPresetMediumHall2@10$AVAudioUnitReverbPresetMediumHall3@11$AVAudioUnitReverbPresetMediumRoom@1$AVAudioUnitReverbPresetPlate@5$AVAudioUnitReverbPresetSmallRoom@0$AVAuthorizationStatusAuthorized@3$AVAuthorizationStatusDenied@2$AVAuthorizationStatusNotDetermined@0$AVAuthorizationStatusRestricted@1$AVCaptionAnimationCharacterReveal@1$AVCaptionAnimationNone@0$AVCaptionConversionValidatorStatusCompleted@2$AVCaptionConversionValidatorStatusStopped@3$AVCaptionConversionValidatorStatusUnknown@0$AVCaptionConversionValidatorStatusValidating@1$AVCaptionDecorationLineThrough@2$AVCaptionDecorationNone@0$AVCaptionDecorationOverline@4$AVCaptionDecorationUnderline@1$AVCaptionFontStyleItalic@2$AVCaptionFontStyleNormal@1$AVCaptionFontStyleUnknown@0$AVCaptionFontWeightBold@2$AVCaptionFontWeightNormal@1$AVCaptionFontWeightUnknown@0$AVCaptionRegionDisplayAlignmentAfter@2$AVCaptionRegionDisplayAlignmentBefore@0$AVCaptionRegionDisplayAlignmentCenter@1$AVCaptionRegionScrollNone@0$AVCaptionRegionScrollRollUp@1$AVCaptionRegionWritingModeLeftToRightAndTopToBottom@0$AVCaptionRegionWritingModeTopToBottomAndRightToLeft@2$AVCaptionRubyAlignmentCenter@1$AVCaptionRubyAlignmentDistributeSpaceAround@3$AVCaptionRubyAlignmentDistributeSpaceBetween@2$AVCaptionRubyAlignmentStart@0$AVCaptionRubyPositionAfter@1$AVCaptionRubyPositionBefore@0$AVCaptionTextAlignmentCenter@2$AVCaptionTextAlignmentEnd@1$AVCaptionTextAlignmentLeft@3$AVCaptionTextAlignmentRight@4$AVCaptionTextAlignmentStart@0$AVCaptionTextCombineAll@-1$AVCaptionTextCombineFourDigits@4$AVCaptionTextCombineNone@0$AVCaptionTextCombineOneDigit@1$AVCaptionTextCombineThreeDigits@3$AVCaptionTextCombineTwoDigits@2$AVCaptionUnitsTypeCells@1$AVCaptionUnitsTypePercent@2$AVCaptionUnitsTypeUnspecified@0$AVCaptureAutoFocusRangeRestrictionFar@2$AVCaptureAutoFocusRangeRestrictionNear@1$AVCaptureAutoFocusRangeRestrictionNone@0$AVCaptureAutoFocusSystemContrastDetection@1$AVCaptureAutoFocusSystemNone@0$AVCaptureAutoFocusSystemPhaseDetection@2$AVCaptureCenterStageControlModeApp@1$AVCaptureCenterStageControlModeCooperative@2$AVCaptureCenterStageControlModeUser@0$AVCaptureColorSpace_HLG_BT2020@2$AVCaptureColorSpace_P3_D65@1$AVCaptureColorSpace_sRGB@0$AVCaptureDevicePositionBack@1$AVCaptureDevicePositionFront@2$AVCaptureDevicePositionUnspecified@0$AVCaptureDeviceTransportControlsNotPlayingMode@0$AVCaptureDeviceTransportControlsPlayingMode@1$AVCaptureExposureModeAutoExpose@1$AVCaptureExposureModeContinuousAutoExposure@2$AVCaptureExposureModeCustom@3$AVCaptureExposureModeLocked@0$AVCaptureFlashModeAuto@2$AVCaptureFlashModeOff@0$AVCaptureFlashModeOn@1$AVCaptureFocusModeAutoFocus@1$AVCaptureFocusModeContinuousAutoFocus@2$AVCaptureFocusModeLocked@0$AVCaptureLensStabilizationStatusActive@2$AVCaptureLensStabilizationStatusOff@1$AVCaptureLensStabilizationStatusOutOfRange@3$AVCaptureLensStabilizationStatusUnavailable@4$AVCaptureLensStabilizationStatusUnsupported@0$AVCaptureMicrophoneModeStandard@0$AVCaptureMicrophoneModeVoiceIsolation@2$AVCaptureMicrophoneModeWideSpectrum@1$AVCaptureOutputDataDroppedReasonDiscontinuity@3$AVCaptureOutputDataDroppedReasonLateData@1$AVCaptureOutputDataDroppedReasonNone@0$AVCaptureOutputDataDroppedReasonOutOfBuffers@2$AVCapturePhotoQualityPrioritizationBalanced@2$AVCapturePhotoQualityPrioritizationQuality@3$AVCapturePhotoQualityPrioritizationSpeed@1$AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionExposureModeChanged@4$AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionFocusModeChanged@2$AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone@0$AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionVideoZoomChanged@1$AVCapturePrimaryConstituentDeviceSwitchingBehaviorAuto@1$AVCapturePrimaryConstituentDeviceSwitchingBehaviorLocked@3$AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted@2$AVCapturePrimaryConstituentDeviceSwitchingBehaviorUnsupported@0$AVCaptureSessionInterruptionReasonAudioDeviceInUseByAnotherClient@2$AVCaptureSessionInterruptionReasonVideoDeviceInUseByAnotherClient@3$AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure@5$AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground@1$AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps@4$AVCaptureSystemPressureFactorDepthModuleTemperature@4$AVCaptureSystemPressureFactorNone@0$AVCaptureSystemPressureFactorPeakPower@2$AVCaptureSystemPressureFactorSystemTemperature@1$AVCaptureSystemUserInterfaceMicrophoneModes@2$AVCaptureSystemUserInterfaceVideoEffects@1$AVCaptureTorchModeAuto@2$AVCaptureTorchModeOff@0$AVCaptureTorchModeOn@1$AVCaptureVideoOrientationLandscapeLeft@4$AVCaptureVideoOrientationLandscapeRight@3$AVCaptureVideoOrientationPortrait@1$AVCaptureVideoOrientationPortraitUpsideDown@2$AVCaptureVideoStabilizationModeAuto@-1$AVCaptureVideoStabilizationModeCinematic@2$AVCaptureVideoStabilizationModeCinematicExtended@3$AVCaptureVideoStabilizationModeOff@0$AVCaptureVideoStabilizationModeStandard@1$AVCaptureWhiteBalanceModeAutoWhiteBalance@1$AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance@2$AVCaptureWhiteBalanceModeLocked@0$AVContentAuthorizationBusy@4$AVContentAuthorizationCancelled@2$AVContentAuthorizationCompleted@1$AVContentAuthorizationNotAvailable@5$AVContentAuthorizationNotPossible@6$AVContentAuthorizationTimedOut@3$AVContentAuthorizationUnknown@0$AVContentKeyRequestStatusCancelled@4$AVContentKeyRequestStatusFailed@5$AVContentKeyRequestStatusReceivedResponse@1$AVContentKeyRequestStatusRenewed@2$AVContentKeyRequestStatusRequestingResponse@0$AVContentKeyRequestStatusRetried@3$AVDelegatingPlaybackCoordinatorRateChangeOptionPlayImmediately@1$AVDelegatingPlaybackCoordinatorSeekOptionResumeImmediately@1$AVDepthDataAccuracyAbsolute@1$AVDepthDataAccuracyRelative@0$AVDepthDataQualityHigh@1$AVDepthDataQualityLow@0$AVErrorAirPlayControllerRequiresInternet@-11856$AVErrorAirPlayReceiverRequiresInternet@-11857$AVErrorApplicationIsNotAuthorized@-11836$AVErrorApplicationIsNotAuthorizedToUseDevice@-11852$AVErrorCompositionTrackSegmentsNotContiguous@-11824$AVErrorContentIsNotAuthorized@-11835$AVErrorContentIsProtected@-11831$AVErrorContentIsUnavailable@-11863$AVErrorContentKeyRequestCancelled@-11879$AVErrorContentNotUpdated@-11866$AVErrorCreateContentKeyRequestFailed@-11860$AVErrorDecodeFailed@-11821$AVErrorDecoderNotFound@-11833$AVErrorDecoderTemporarilyUnavailable@-11839$AVErrorDeviceAlreadyUsedByAnotherSession@-11804$AVErrorDeviceInUseByAnotherApplication@-11815$AVErrorDeviceLockedForConfigurationByAnotherProcess@-11817$AVErrorDeviceNotConnected@-11814$AVErrorDeviceWasDisconnected@-11808$AVErrorDiskFull@-11807$AVErrorDisplayWasDisabled@-11845$AVErrorEncoderNotFound@-11834$AVErrorEncoderTemporarilyUnavailable@-11840$AVErrorExportFailed@-11820$AVErrorExternalPlaybackNotSupportedForAsset@-11870$AVErrorFailedToLoadMediaData@-11849$AVErrorFailedToParse@-11853$AVErrorFileAlreadyExists@-11823$AVErrorFileFailedToParse@-11829$AVErrorFileFormatNotRecognized@-11828$AVErrorFileTypeDoesNotSupportSampleReferences@-11854$AVErrorFormatUnsupported@-11864$AVErrorIncompatibleAsset@-11848$AVErrorIncorrectlyConfigured@-11875$AVErrorInvalidCompositionTrackSegmentDuration@-11825$AVErrorInvalidCompositionTrackSegmentSourceDuration@-11827$AVErrorInvalidCompositionTrackSegmentSourceStartTime@-11826$AVErrorInvalidOutputURLPathExtension@-11843$AVErrorInvalidSourceMedia@-11822$AVErrorInvalidVideoComposition@-11841$AVErrorMalformedDepth@-11865$AVErrorMaximumDurationReached@-11810$AVErrorMaximumFileSizeReached@-11811$AVErrorMaximumNumberOfSamplesForFileFormatReached@-11813$AVErrorMaximumStillImageCaptureRequestsExceeded@-11830$AVErrorMediaChanged@-11809$AVErrorMediaDiscontinuity@-11812$AVErrorNoCompatibleAlternatesForExternalDisplay@-11868$AVErrorNoDataCaptured@-11805$AVErrorNoImageAtTime@-11832$AVErrorNoLongerPlayable@-11867$AVErrorNoSourceTrack@-11869$AVErrorOperationCancelled@-11878$AVErrorOperationNotAllowed@-11862$AVErrorOperationNotSupportedForAsset@-11838$AVErrorOperationNotSupportedForPreset@-11871$AVErrorOutOfMemory@-11801$AVErrorRecordingAlreadyInProgress@-11859$AVErrorReferenceForbiddenByReferencePolicy@-11842$AVErrorRosettaNotInstalled@-11877$AVErrorScreenCaptureFailed@-11844$AVErrorSegmentStartedWithNonSyncSample@-11876$AVErrorServerIncorrectlyConfigured@-11850$AVErrorSessionConfigurationChanged@-11806$AVErrorSessionHardwareCostOverage@-11872$AVErrorSessionNotRunning@-11803$AVErrorTorchLevelUnavailable@-11846$AVErrorUndecodableMediaData@-11855$AVErrorUnknown@-11800$AVErrorUnsupportedDeviceActiveFormat@-11873$AVErrorUnsupportedOutputSettings@-11861$AVErrorVideoCompositorFailed@-11858$AVKeyValueStatusCancelled@4$AVKeyValueStatusFailed@3$AVKeyValueStatusLoaded@2$AVKeyValueStatusLoading@1$AVKeyValueStatusUnknown@0$AVMovieWritingAddMovieHeaderToDestination@0$AVMovieWritingTruncateDestinationToMovieHeaderOnly@1$AVMusicSequenceLoadSMF_ChannelsToTracks@1$AVMusicSequenceLoadSMF_PreserveTracks@0$AVMusicTrackLoopCountForever@-1$AVPlayerActionAtItemEndAdvance@0$AVPlayerActionAtItemEndNone@2$AVPlayerActionAtItemEndPause@1$AVPlayerAudiovisualBackgroundPlaybackPolicyAutomatic@1$AVPlayerAudiovisualBackgroundPlaybackPolicyContinuesIfPossible@3$AVPlayerAudiovisualBackgroundPlaybackPolicyPauses@2$AVPlayerHDRModeDolbyVision@4$AVPlayerHDRModeHDR10@2$AVPlayerHDRModeHLG@1$AVPlayerInterstitialEventRestrictionConstrainsSeekingForwardInPrimaryContent@1$AVPlayerInterstitialEventRestrictionDefaultPolicy@0$AVPlayerInterstitialEventRestrictionNone@0$AVPlayerInterstitialEventRestrictionRequiresPlaybackAtPreferredRateForAdvancement@4$AVPlayerItemStatusFailed@2$AVPlayerItemStatusReadyToPlay@1$AVPlayerItemStatusUnknown@0$AVPlayerLooperStatusCancelled@3$AVPlayerLooperStatusFailed@2$AVPlayerLooperStatusReady@1$AVPlayerLooperStatusUnknown@0$AVPlayerStatusFailed@2$AVPlayerStatusReadyToPlay@1$AVPlayerStatusUnknown@0$AVPlayerTimeControlStatusPaused@0$AVPlayerTimeControlStatusPlaying@2$AVPlayerTimeControlStatusWaitingToPlayAtSpecifiedRate@1$AVQueuedSampleBufferRenderingStatusFailed@2$AVQueuedSampleBufferRenderingStatusRendering@1$AVQueuedSampleBufferRenderingStatusUnknown@0$AVSampleBufferRequestDirectionForward@1$AVSampleBufferRequestDirectionNone@0$AVSampleBufferRequestDirectionReverse@-1$AVSampleBufferRequestModeImmediate@0$AVSampleBufferRequestModeOpportunistic@2$AVSampleBufferRequestModeScheduled@1$AVSpeechBoundaryImmediate@0$AVSpeechBoundaryWord@1$AVSpeechSynthesisVoiceGenderFemale@2$AVSpeechSynthesisVoiceGenderMale@1$AVSpeechSynthesisVoiceGenderUnspecified@0$AVSpeechSynthesisVoiceQualityDefault@1$AVSpeechSynthesisVoiceQualityEnhanced@2$AVVariantPreferenceNone@0$AVVariantPreferenceScalabilityToLosslessAudio@1$AVVideoFieldModeBoth@0$AVVideoFieldModeBottomOnly@2$AVVideoFieldModeDeinterlace@3$AVVideoFieldModeTopOnly@1$"""
misc.update({})
functions = {
"AVMakeBeatRange": (b"{_AVBeatRange=dd}dd", "", {"inline": True}),
"AVAudioMake3DPoint": (b"{AVAudio3DPoint=fff}fff",),
"AVMakeRectWithAspectRatioInsideRect": (
b"{CGRect={CGPoint=dd}{CGSize=dd}}{CGSize=dd}{CGRect={CGPoint=dd}{CGSize=dd}}",
),
"AVCaptionPointMake": (
b"{AVCaptionPoint={AVCaptionDimension=dq}{AVCaptionDimension=dq}}{AVCaptionDimension=dq}{AVCaptionDimension=dq}",
),
"AVAudioMake3DVector": (b"{AVAudio3DPoint=fff}fff",),
"AVAudioMake3DVectorOrientation": (
b"{AVAudio3DVectorOrientation={AVAudio3DPoint=fff}{AVAudio3DPoint=fff}}{AVAudio3DPoint=fff}{AVAudio3DPoint=fff}",
),
"AVCaptionDimensionMake": (b"{AVCaptionDimension=dq}dq",),
"AVSampleBufferAttachContentKey": (
b"Z^{opaqueCMSampleBuffer=}@^@",
"",
{"arguments": {2: {"type_modifier": "o"}}},
),
"AVAudioMake3DAngularOrientation": (b"{AVAudio3DAngularOrientation=fff}fff",),
"AVCaptionSizeMake": (
b"{AVCaptionSize={AVCaptionDimension=dq}{AVCaptionDimension=dq}}{AVCaptionDimension=dq}{AVCaptionDimension=dq}",
),
}
aliases = {
"AVAudioSessionRouteSharingPolicyLongForm": "AVAudioSessionRouteSharingPolicyLongFormAudio",
"AVAudio3DVector": "AVAudio3DPoint",
"AVLinearPCMIsNonInterleavedKey": "AVLinearPCMIsNonInterleaved",
"AVAssetReferenceRestrictionDefaultPolicy": "AVAssetReferenceRestrictionForbidLocalReferenceToRemote",
"AVPlayerInterstitialEventRestrictionDefaultPolicy": "AVPlayerInterstitialEventRestrictionNone",
}
r = objc.registerMetaDataForSelector
objc._updatingMetadata(True)
try:
r(b"AVAsset", b"canContainFragments", {"retval": {"type": "Z"}})
r(b"AVAsset", b"containsFragments", {"retval": {"type": "Z"}})
r(b"AVAsset", b"copyCGImageAtTime:actualTime:error:", {"retval": {"type": "Z"}})
r(b"AVAsset", b"duration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVAsset",
b"findCompatibleTrackForCompositionTrack:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAsset",
b"findUnusedTrackIDWithCompletionHandler:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"i"},
2: {"type": b"@"},
},
}
}
}
},
)
r(b"AVAsset", b"hasProtectedContent", {"retval": {"type": b"Z"}})
r(b"AVAsset", b"isCompatibleWithAirPlayVideo", {"retval": {"type": "Z"}})
r(b"AVAsset", b"isCompatibleWithSavedPhotosAlbum", {"retval": {"type": b"Z"}})
r(b"AVAsset", b"isComposable", {"retval": {"type": b"Z"}})
r(b"AVAsset", b"isExportable", {"retval": {"type": b"Z"}})
r(b"AVAsset", b"isPlayable", {"retval": {"type": b"Z"}})
r(b"AVAsset", b"isReadable", {"retval": {"type": b"Z"}})
r(
b"AVAsset",
b"loadChapterMetadataGroupsBestMatchingPreferredLanguages:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAsset",
b"loadChapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAsset",
b"loadMediaSelectionGroupForMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAsset",
b"loadMetadataForFormat:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAsset",
b"loadTrackWithTrackID:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAsset",
b"loadTracksWithMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAsset",
b"loadTracksWithMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(b"AVAsset", b"minimumTimeOffsetFromLive", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVAsset", b"overallDurationHint", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVAsset", b"providesPreciseDurationAndTiming", {"retval": {"type": b"Z"}})
r(b"AVAssetCache", b"isPlayableOffline", {"retval": {"type": b"Z"}})
r(
b"AVAssetDownloadConfiguration",
b"optimizesAuxiliaryContentConfigurations",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetDownloadConfiguration",
b"setOptimizesAuxiliaryContentConfigurations:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetDownloadURLSession",
b"dataTaskWithRequest:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetDownloadURLSession",
b"dataTaskWithURL:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetDownloadURLSession",
b"downloadTaskWithRequest:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetDownloadURLSession",
b"downloadTaskWithResumeData:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetDownloadURLSession",
b"downloadTaskWithURL:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetDownloadURLSession",
b"uploadTaskWithRequest:fromData:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetDownloadURLSession",
b"uploadTaskWithRequest:fromFile:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetExportSession",
b"canPerformMultiplePassesOverSourceMediaData",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetExportSession",
b"determineCompatibilityOfExportPreset:withAsset:outputFileType:completionHandler:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
},
"type": "@?",
}
}
},
)
r(
b"AVAssetExportSession",
b"determineCompatibleFileTypesWithCompletionHandler:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
},
"type": "@?",
}
}
},
)
r(
b"AVAssetExportSession",
b"estimateMaximumDurationWithCompletionHandler:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetExportSession",
b"estimateOutputFileLengthWithCompletionHandler:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"Q"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetExportSession",
b"exportAsynchronouslyWithCompletionHandler:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": "@?",
}
}
},
)
r(b"AVAssetExportSession", b"maxDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVAssetExportSession",
b"setCanPerformMultiplePassesOverSourceMediaData:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetExportSession",
b"setShouldOptimizeForNetworkUse:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetExportSession",
b"setTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVAssetExportSession",
b"shouldOptimizeForNetworkUse",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetExportSession",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVAssetImageGenerator",
b"appliesPreferredTrackTransform",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetImageGenerator",
b"copyCGImageAtTime:actualTime:error:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type": b"^{_CMTime=qiIq}"},
4: {"type_modifier": b"o"},
}
},
)
r(
b"AVAssetImageGenerator",
b"generateCGImagesAsynchronouslyForTimes:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
2: {"type": b"^{__CGImage}"},
3: {"type": b"{_CMTime=qiIq}"},
4: {"type": sel32or64(b"i", b"q")},
},
}
}
}
},
)
r(
b"AVAssetImageGenerator",
b"requestedTimeToleranceAfter",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVAssetImageGenerator",
b"requestedTimeToleranceBefore",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVAssetImageGenerator",
b"setAppliesPreferredTrackTransform:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetImageGenerator",
b"setRequestedTimeToleranceAfter:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetImageGenerator",
b"setRequestedTimeToleranceBefore:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetReader",
b"assetReaderWithAsset:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(b"AVAssetReader", b"canAddOutput:", {"retval": {"type": b"Z"}})
r(
b"AVAssetReader",
b"initWithAsset:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAssetReader",
b"setTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(b"AVAssetReader", b"startReading", {"retval": {"type": b"Z"}})
r(
b"AVAssetReader",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(b"AVAssetReaderOutput", b"alwaysCopiesSampleData", {"retval": {"type": b"Z"}})
r(
b"AVAssetReaderOutput",
b"setAlwaysCopiesSampleData:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetReaderOutput",
b"setSupportsRandomAccess:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVAssetReaderOutput", b"supportsRandomAccess", {"retval": {"type": b"Z"}})
r(
b"AVAssetResourceLoader",
b"preloadsEligibleContentKeys",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetResourceLoader",
b"setPreloadsEligibleContentKeys:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetResourceLoadingContentInformationRequest",
b"isByteRangeAccessSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetResourceLoadingContentInformationRequest",
b"setByteRangeAccessSupported:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetResourceLoadingDataRequest",
b"requestsAllDataToEndOfResource",
{"retval": {"type": b"Z"}},
)
r(b"AVAssetResourceLoadingRequest", b"isCancelled", {"retval": {"type": b"Z"}})
r(b"AVAssetResourceLoadingRequest", b"isFinished", {"retval": {"type": b"Z"}})
r(
b"AVAssetResourceLoadingRequest",
b"persistentContentKeyFromKeyVendorResponse:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAssetResourceLoadingRequest",
b"streamingContentKeyRequestDataForApp:contentIdentifier:options:error:",
{"arguments": {5: {"type_modifier": b"o"}}},
)
r(
b"AVAssetResourceLoadingRequestor",
b"providesExpiredSessionReports",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetSegmentReportSampleInformation",
b"isSyncSample",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetSegmentReportSampleInformation",
b"presentationTimeStamp",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVAssetSegmentTrackReport",
b"duration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVAssetSegmentTrackReport",
b"earliestPresentationTimeStamp",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVAssetTrack", b"canProvideSampleCursors", {"retval": {"type": b"Z"}})
r(b"AVAssetTrack", b"hasAudioSampleDependencies", {"retval": {"type": b"Z"}})
r(b"AVAssetTrack", b"hasMediaCharacteristic:", {"retval": {"type": b"Z"}})
r(b"AVAssetTrack", b"isDecodable", {"retval": {"type": b"Z"}})
r(b"AVAssetTrack", b"isEnabled", {"retval": {"type": b"Z"}})
r(b"AVAssetTrack", b"isPlayable", {"retval": {"type": b"Z"}})
r(b"AVAssetTrack", b"isSelfContained", {"retval": {"type": b"Z"}})
r(
b"AVAssetTrack",
b"loadAssociatedTracksOfType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetTrack",
b"loadMetadataForFormat:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAssetTrack",
b"loadSamplePresentationTimeForTrackTime:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
2: {"type": b"@"},
},
}
},
}
},
)
r(
b"AVAssetTrack",
b"loadSegmentForTrackTime:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
},
}
},
)
r(
b"AVAssetTrack",
b"makeSampleCursorWithPresentationTimeStamp:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVAssetTrack", b"minFrameDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVAssetTrack", b"requiresFrameReordering", {"retval": {"type": b"Z"}})
r(
b"AVAssetTrack",
b"samplePresentationTimeForTrackTime:",
{
"retval": {"type": b"{_CMTime=qiIq}"},
"arguments": {2: {"type": b"{_CMTime=qiIq}"}},
},
)
r(
b"AVAssetTrack",
b"segmentForTrackTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetTrack",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(b"AVAssetTrackSegment", b"isEmpty", {"retval": {"type": b"Z"}})
r(
b"AVAssetTrackSegment",
b"timeMapping",
{
"retval": {
"type": b"{_CMTimeMapping={_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}}"
}
},
)
r(
b"AVAssetWriter",
b"assetWriterWithURL:fileType:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVAssetWriter", b"canAddInput:", {"retval": {"type": b"Z"}})
r(b"AVAssetWriter", b"canAddInputGroup:", {"retval": {"type": b"Z"}})
r(
b"AVAssetWriter",
b"canApplyOutputSettings:forMediaType:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetWriter",
b"endSessionAtSourceTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVAssetWriter", b"finishWriting", {"retval": {"type": b"Z"}})
r(
b"AVAssetWriter",
b"finishWritingWithCompletionHandler:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVAssetWriter",
b"initWithURL:fileType:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAssetWriter",
b"initialSegmentStartTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVAssetWriter",
b"movieFragmentInterval",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVAssetWriter", b"overallDurationHint", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVAssetWriter",
b"preferredOutputSegmentInterval",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVAssetWriter", b"producesCombinableFragments", {"retval": {"type": b"Z"}})
r(
b"AVAssetWriter",
b"setInitialSegmentStartTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetWriter",
b"setMovieFragmentInterval:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetWriter",
b"setOverallDurationHint:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetWriter",
b"setPreferredOutputSegmentInterval:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetWriter",
b"setProducesCombinableFragments:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetWriter",
b"setShouldOptimizeForNetworkUse:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVAssetWriter", b"shouldOptimizeForNetworkUse", {"retval": {"type": b"Z"}})
r(
b"AVAssetWriter",
b"startSessionAtSourceTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVAssetWriter", b"startWriting", {"retval": {"type": b"Z"}})
r(b"AVAssetWriterInput", b"appendSampleBuffer:", {"retval": {"type": b"Z"}})
r(
b"AVAssetWriterInput",
b"canAddTrackAssociationWithTrackOfInput:type:",
{"retval": {"type": b"Z"}},
)
r(b"AVAssetWriterInput", b"canPerformMultiplePasses", {"retval": {"type": b"Z"}})
r(b"AVAssetWriterInput", b"expectsMediaDataInRealTime", {"retval": {"type": b"Z"}})
r(b"AVAssetWriterInput", b"isReadyForMoreMediaData", {"retval": {"type": b"Z"}})
r(b"AVAssetWriterInput", b"marksOutputTrackAsEnabled", {"retval": {"type": b"Z"}})
r(
b"AVAssetWriterInput",
b"performsMultiPassEncodingIfSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetWriterInput",
b"preferredMediaChunkDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVAssetWriterInput",
b"requestMediaDataWhenReadyOnQueue:usingBlock:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVAssetWriterInput",
b"respondToEachPassDescriptionOnQueue:usingBlock:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVAssetWriterInput",
b"setExpectsMediaDataInRealTime:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetWriterInput",
b"setMarksOutputTrackAsEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetWriterInput",
b"setPerformsMultiPassEncodingIfSupported:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAssetWriterInput",
b"setPreferredMediaChunkDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAssetWriterInputCaptionAdaptor",
b"appendCaption:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetWriterInputCaptionAdaptor",
b"appendCaptionGroup:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetWriterInputMetadataAdaptor",
b"appendTimedMetadataGroup:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAssetWriterInputPixelBufferAdaptor",
b"appendPixelBuffer:withPresentationTime:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVAsynchronousCIImageFilteringRequest",
b"compositionTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVAsynchronousVideoCompositionRequest",
b"compositionTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVAudioBuffer", b"data", {"retval": {"c_array_of_variable_length": True}})
r(
b"AVAudioBuffer",
b"packetDescriptions",
{"retval": {"c_array_of_variable_length": True}},
)
r(b"AVAudioChannelLayout", b"isEqual:", {"retval": {"type": b"Z"}})
r(
b"AVAudioConverter",
b"convertToBuffer:error:withInputFromBlock:",
{
"arguments": {
3: {"type_modifier": b"o"},
4: {
"callable": {
"retval": {"type": b"@"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"I"},
2: {"type": sel32or64(b"o^i", b"o^q")},
},
}
},
}
},
)
r(
b"AVAudioConverter",
b"convertToBuffer:fromBuffer:error:",
{"retval": {"type": b"Z"}, "arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVAudioConverter", b"dither", {"retval": {"type": b"Z"}})
r(b"AVAudioConverter", b"downmix", {"retval": {"type": b"Z"}})
r(b"AVAudioConverter", b"setDither:", {"arguments": {2: {"type": b"Z"}}})
r(b"AVAudioConverter", b"setDownmix:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVAudioEngine",
b"connectMIDI:to:format:block:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"i"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"q"},
2: {"type": b"C"},
3: {"type": sel32or64(b"i", b"q")},
4: {"type": b"n^v", "c_array_length_in_arg": 3},
},
}
}
}
},
)
r(
b"AVAudioEngine",
b"connectMIDI:toNodes:format:block:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"i"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"q"},
2: {"type": b"C"},
3: {"type": sel32or64(b"i", b"q")},
4: {"type": b"n^v", "c_array_length_in_arg": 3},
},
}
}
}
},
)
r(
b"AVAudioEngine",
b"enableManualRenderingMode:format:maximumFrameCount:error:",
{"retval": {"type": b"Z"}, "arguments": {5: {"type_modifier": b"o"}}},
)
r(b"AVAudioEngine", b"isAutoShutdownEnabled", {"retval": {"type": b"Z"}})
r(b"AVAudioEngine", b"isInManualRenderingMode", {"retval": {"type": b"Z"}})
r(b"AVAudioEngine", b"isRunning", {"retval": {"type": b"Z"}})
r(
b"AVAudioEngine",
b"manualRenderingBlock",
{
"retval": {
"callable": {
"retval": {"type": sel32or64(b"i", b"q")},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"I"},
2: {"type": b"o^{AudioBufferList=L[1{AudioBuffer=LL^v}]}"},
3: {"type": b"o^i"},
},
}
}
},
)
r(
b"AVAudioEngine",
b"renderOffline:toBuffer:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVAudioEngine", b"setAutoShutdownEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVAudioEngine",
b"startAndReturnError:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type_modifier": b"o"}}},
)
r(b"AVAudioEnvironmentReverbParameters", b"enable", {"retval": {"type": b"Z"}})
r(
b"AVAudioEnvironmentReverbParameters",
b"setEnable:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAudioFile",
b"initForReading:commonFormat:interleaved:error:",
{"arguments": {4: {"type": b"Z"}, 5: {"type_modifier": b"o"}}},
)
r(
b"AVAudioFile",
b"initForReading:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioFile",
b"initForWriting:settings:commonFormat:interleaved:error:",
{"arguments": {5: {"type": b"Z"}, 6: {"type_modifier": b"o"}}},
)
r(
b"AVAudioFile",
b"initForWriting:settings:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAudioFile",
b"readIntoBuffer:error:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioFile",
b"readIntoBuffer:frameCount:error:",
{"retval": {"type": b"Z"}, "arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAudioFile",
b"writeFromBuffer:error:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioFormat",
b"initWithCommonFormat:sampleRate:channels:interleaved:",
{"arguments": {5: {"type": b"Z"}}},
)
r(
b"AVAudioFormat",
b"initWithCommonFormat:sampleRate:interleaved:channelLayout:",
{"arguments": {4: {"type": b"Z"}}},
)
r(
b"AVAudioFormat",
b"initWithStreamDescription:",
{"arguments": {2: {"type_modifier": b"n"}}},
)
r(
b"AVAudioFormat",
b"initWithStreamDescription:channelLayout:",
{"arguments": {2: {"type_modifier": b"n"}}},
)
r(b"AVAudioFormat", b"isEqual:", {"retval": {"type": b"Z"}})
r(b"AVAudioFormat", b"isInterleaved", {"retval": {"type": b"Z"}})
r(b"AVAudioFormat", b"isStandard", {"retval": {"type": b"Z"}})
r(
b"AVAudioFormat",
b"streamDescription",
{"retval": {"c_array_of_fixed_length": 1}},
)
r(b"AVAudioIONode", b"isVoiceProcessingEnabled", {"retval": {"type": b"Z"}})
r(
b"AVAudioIONode",
b"setVoiceProcessingEnabled:error:",
{
"retval": {"type": b"Z"},
"arguments": {2: {"type": b"Z"}, 3: {"type_modifier": b"o"}},
},
)
r(b"AVAudioInputNode", b"isVoiceProcessingAGCEnabled", {"retval": {"type": b"Z"}})
r(b"AVAudioInputNode", b"isVoiceProcessingBypassed", {"retval": {"type": b"Z"}})
r(b"AVAudioInputNode", b"isVoiceProcessingInputMuted", {"retval": {"type": b"Z"}})
r(
b"AVAudioInputNode",
b"setManualRenderingInputPCMFormat:inputBlock:",
{
"retval": {"type": b"Z"},
"arguments": {
3: {
"callable": {
"retval": {
"type": b"^{AudioBufferList=L[1{AudioBuffer=LL^v}]}"
},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"I"}},
}
}
},
},
)
r(
b"AVAudioInputNode",
b"setVoiceProcessingAGCEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAudioInputNode",
b"setVoiceProcessingBypassed:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAudioInputNode",
b"setVoiceProcessingInputMuted:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAudioMixInputParameters",
b"getVolumeRampForTime:startVolume:endVolume:timeRange:",
{
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type_modifier": b"o"},
4: {"type_modifier": b"o"},
5: {
"type": b"^{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}",
"type_modifier": b"o",
},
},
},
)
r(
b"AVAudioNode",
b"installTapOnBus:bufferSize:format:block:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAudioPCMBuffer",
b"initWithPCMFormat:bufferListNoCopy:deallocator:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"^{AudioBufferList=I[1{AudioBuffer=II^v}]}"},
},
}
}
}
},
)
r(b"AVAudioPlayer", b"enableRate", {"retval": {"type": b"Z"}})
r(
b"AVAudioPlayer",
b"initWithContentsOfURL:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioPlayer",
b"initWithContentsOfURL:fileTypeHint:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAudioPlayer",
b"initWithData:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioPlayer",
b"initWithData:fileTypeHint:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVAudioPlayer", b"isMeteringEnabled", {"retval": {"type": b"Z"}})
r(b"AVAudioPlayer", b"isPlaying", {"retval": {"type": b"Z"}})
r(b"AVAudioPlayer", b"play", {"retval": {"type": b"Z"}})
r(b"AVAudioPlayer", b"playAtTime:", {"retval": {"type": b"Z"}})
r(b"AVAudioPlayer", b"prepareToPlay", {"retval": {"type": b"Z"}})
r(b"AVAudioPlayer", b"setEnableRate:", {"arguments": {2: {"type": b"Z"}}})
r(b"AVAudioPlayer", b"setMeteringEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(b"AVAudioPlayerNode", b"isPlaying", {"retval": {"type": b"Z"}})
r(
b"AVAudioPlayerNode",
b"loadFromURL:options:error:",
{"retval": {"type": "Z"}, "arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAudioPlayerNode",
b"scheduleBuffer:atTime:options:completionCallbackType:completionHandler:",
{
"arguments": {
6: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": sel32or64(b"i", b"q")},
},
}
}
}
},
)
r(
b"AVAudioPlayerNode",
b"scheduleBuffer:atTime:options:completionHandler:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVAudioPlayerNode",
b"scheduleBuffer:completionCallbackType:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": sel32or64(b"i", b"q")},
},
}
}
}
},
)
r(
b"AVAudioPlayerNode",
b"scheduleBuffer:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVAudioPlayerNode",
b"scheduleFile:atTime:completionCallbackType:completionHandler:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": sel32or64(b"i", b"q")},
},
}
}
}
},
)
r(
b"AVAudioPlayerNode",
b"scheduleFile:atTime:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVAudioPlayerNode",
b"scheduleSegment:startingFrame:frameCount:atTime:completionCallbackType:completionHandler:",
{
"arguments": {
7: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": sel32or64(b"i", b"q")},
},
}
}
}
},
)
r(
b"AVAudioPlayerNode",
b"scheduleSegment:startingFrame:frameCount:atTime:completionHandler:",
{
"arguments": {
6: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(b"AVAudioRecorder", b"deleteRecording", {"retval": {"type": b"Z"}})
r(
b"AVAudioRecorder",
b"initWithURL:format:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAudioRecorder",
b"initWithURL:settings:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVAudioRecorder", b"isMeteringEnabled", {"retval": {"type": b"Z"}})
r(b"AVAudioRecorder", b"isRecording", {"retval": {"type": b"Z"}})
r(b"AVAudioRecorder", b"prepareToRecord", {"retval": {"type": b"Z"}})
r(b"AVAudioRecorder", b"record", {"retval": {"type": b"Z"}})
r(b"AVAudioRecorder", b"recordAtTime:", {"retval": {"type": b"Z"}})
r(b"AVAudioRecorder", b"recordAtTime:forDuration:", {"retval": {"type": b"Z"}})
r(b"AVAudioRecorder", b"recordForDuration:", {"retval": {"type": b"Z"}})
r(b"AVAudioRecorder", b"setMeteringEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVAudioRoutingArbiter",
b"beginArbitrationWithCategory:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"Z"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAudioSequencer",
b"beatsForHostTime:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioSequencer",
b"dataWithSMPTEResolution:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioSequencer",
b"hostTimeForBeats:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(b"AVAudioSequencer", b"isPlaying", {"retval": {"type": "Z"}})
r(
b"AVAudioSequencer",
b"loadFromData:options:error:",
{"retval": {"type": "Z"}, "arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAudioSequencer",
b"loadFromURL:options:error:",
{"retval": {"type": "Z"}, "arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVAudioSequencer",
b"startAndReturnError:",
{"retval": {"type": "Z"}, "arguments": {2: {"type_modifier": b"o"}}},
)
r(
b"AVAudioSequencer",
b"writeToURL:SMPTEResolution:replaceExisting:error:",
{
"retval": {"type": "Z"},
"arguments": {4: {"type": "Z"}, 5: {"type_modifier": b"o"}},
},
)
r(
b"AVAudioSession",
b"activateWithOptions:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"Z"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAudioSession",
b"allowHapticsAndSystemSoundsDuringRecording",
{"retval": {"type": b"Z"}},
)
r(b"AVAudioSession", b"inputIsAvailable", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"isInputAvailable", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"isInputGainSettable", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"isOtherAudioPlaying", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"overrideOutputAudioPort:error:", {"retval": {"type": b"Z"}})
r(
b"AVAudioSession",
b"requestRecordPermission:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
}
}
}
},
)
r(
b"AVAudioSession",
b"secondaryAudioShouldBeSilencedHint",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSession",
b"setActive:error:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAudioSession",
b"setActive:withFlags:error:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAudioSession",
b"setActive:withOptions:error:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type": b"Z"}}},
)
r(
b"AVAudioSession",
b"setAggregatedIOPreference:error:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSession",
b"setAllowHapticsAndSystemSoundsDuringRecording:error:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type": b"Z"}}},
)
r(b"AVAudioSession", b"setCategory:error:", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"setCategory:mode:options:error:", {"retval": {"type": b"Z"}})
r(
b"AVAudioSession",
b"setCategory:mode:routeSharingPolicy:options:error:",
{"retval": {"type": b"Z"}},
)
r(b"AVAudioSession", b"setCategory:withOptions:error:", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"setInputDataSource:error:", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"setInputGain:error:", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"setMode:error:", {"retval": {"type": b"Z"}})
r(b"AVAudioSession", b"setOutputDataSource:error:", {"retval": {"type": b"Z"}})
r(
b"AVAudioSession",
b"setPreferredHardwareSampleRate:error:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSession",
b"setPreferredIOBufferDuration:error:",
{"retval": {"type": b"Z"}},
)
r(b"AVAudioSession", b"setPreferredInput:error:", {"retval": {"type": b"Z"}})
r(
b"AVAudioSession",
b"setPreferredInputNumberOfChannels:error:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSession",
b"setPreferredInputOrientation:error:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSession",
b"setPreferredOutputNumberOfChannels:error:",
{"retval": {"type": b"Z"}},
)
r(b"AVAudioSession", b"setPreferredSampleRate:error:", {"retval": {"type": b"Z"}})
r(
b"AVAudioSessionDataSourceDescription",
b"setPreferredPolarPattern:error:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSessionPortDescription",
b"hasHardwareVoiceCallProcessing",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSessionPortDescription",
b"setPreferredDataSource:error:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioSinkNode",
b"initWithReceiverBlock:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"i"},
"arguments": {
0: {"type": b"^v"},
1: {
"type": b"n^{AudioTimeStamp=dQdQ{SMPTETime=ssIIIssss}II}"
},
2: {"type": b"I"},
3: {"type": b"n^^{AudioBufferList=I[1{AudioBuffer=II^v}]}"},
},
}
}
}
},
)
r(
b"AVAudioSourceNode",
b"initWithFormat:renderBlock:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"@?"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVAudioSourceNode",
b"initWithRenderBlock:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"i"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"o^Z"},
2: {
"type": b"n^^{AudioTimeStamp=dQdQ{SMPTETime=ssIIIssss}II}"
},
3: {"type": b"I"},
4: {"type": b"o^{AudioBufferList=I[1{AudioBuffer=II^v}]}"},
},
}
}
}
},
)
r(
b"AVAudioTime",
b"initWithAudioTimeStamp:sampleRate:",
{"arguments": {2: {"type_modifier": b"n"}}},
)
r(b"AVAudioTime", b"isHostTimeValid", {"retval": {"type": b"Z"}})
r(b"AVAudioTime", b"isSampleTimeValid", {"retval": {"type": b"Z"}})
r(
b"AVAudioTime",
b"timeWithAudioTimeStamp:sampleRate:",
{"arguments": {2: {"type_modifier": b"n"}}},
)
r(
b"AVAudioUnit",
b"instantiateWithComponentDescription:options:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVAudioUnit",
b"loadAudioUnitPresetAtURL:error:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
)
r(b"AVAudioUnitComponent", b"hasCustomView", {"retval": {"type": b"Z"}})
r(b"AVAudioUnitComponent", b"hasMIDIInput", {"retval": {"type": b"Z"}})
r(b"AVAudioUnitComponent", b"hasMIDIOutput", {"retval": {"type": b"Z"}})
r(b"AVAudioUnitComponent", b"isSandboxSafe", {"retval": {"type": b"Z"}})
r(b"AVAudioUnitComponent", b"passesAUVal", {"retval": {"type": b"Z"}})
r(
b"AVAudioUnitComponent",
b"supportsNumberInputChannels:outputChannels:",
{"retval": {"type": b"Z"}},
)
r(
b"AVAudioUnitComponentManager",
b"componentsPassingTest:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"Z"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"o^Z"},
},
},
"type": "@?",
}
}
},
)
r(b"AVAudioUnitEQFilterParameters", b"bypass", {"retval": {"type": b"Z"}})
r(
b"AVAudioUnitEQFilterParameters",
b"setBypass:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVAudioUnitEffect", b"bypass", {"retval": {"type": b"Z"}})
r(b"AVAudioUnitEffect", b"setBypass:", {"arguments": {2: {"type": b"Z"}}})
r(b"AVAudioUnitGenerator", b"bypass", {"retval": {"type": b"Z"}})
r(b"AVAudioUnitGenerator", b"setBypass:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVAudioUnitSampler",
b"loadAudioFilesAtURLs:error:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioUnitSampler",
b"loadInstrumentAtURL:error:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVAudioUnitSampler",
b"loadSoundBankInstrumentAtURL:program:bankMSB:bankLSB:error:",
{"retval": {"type": b"Z"}, "arguments": {6: {"type_modifier": b"o"}}},
)
r(b"AVAudioUnitTimeEffect", b"bypass", {"retval": {"type": b"Z"}})
r(b"AVAudioUnitTimeEffect", b"setBypass:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVCameraCalibrationData",
b"extrinsicMatrix",
{"retval": {"type": b"{_matrix_float4x3=?}"}},
)
r(
b"AVCameraCalibrationData",
b"intrinsicMatrix",
{"retval": {"type": b"{_matrix_float3x3=?}"}},
)
r(
b"AVCaption",
b"backgroundColorAtIndex:range:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaption",
b"decorationAtIndex:range:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaption",
b"fontStyleAtIndex:range:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaption",
b"fontWeightAtIndex:range:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaption",
b"initWithText:timeRange:",
{"arguments": {3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(b"AVCaption", b"rubyAtIndex:range:", {"arguments": {3: {"type_modifier": b"o"}}})
r(
b"AVCaption",
b"textColorAtIndex:range:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaption",
b"textCombineAtIndex:range:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaption",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVCaptionConversionTimeRangeAdjustment",
b"durationOffset",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptionConversionTimeRangeAdjustment",
b"startTimeOffset",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptionConversionValidator",
b"captionConversionValidatorWithCaptions:timeRange:conversionSettings:",
{"arguments": {3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVCaptionConversionValidator",
b"initWithCaptions:timeRange:conversionSettings:",
{"arguments": {3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVCaptionConversionValidator",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVCaptionConversionValidator",
b"validateCaptionConversionWithWarningHandler:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
}
}
}
},
)
r(
b"AVCaptionFormatConformer",
b"conformedCaptionForCaption:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaptionFormatConformer",
b"conformsCaptionsToTimeRange",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptionFormatConformer",
b"setConformsCaptionsToTimeRange:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptionGroup",
b"initWithCaptions:timeRange:",
{"arguments": {3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVCaptionGroup",
b"initWithTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVCaptionGroup",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVCaptionGrouper",
b"flushAddedCaptionsIntoGroupsUpToTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptionRenderer",
b"captionSceneChangesInRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVCaptionRenderer",
b"renderInContext:forTime:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVCaptionRendererScene", b"hasActiveCaptions", {"retval": {"type": b"Z"}})
r(b"AVCaptionRendererScene", b"needsPeriodicRefresh", {"retval": {"type": b"Z"}})
r(
b"AVCaptionRendererScene",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(b"AVCaptureAudioChannel", b"isEnabled", {"retval": {"type": b"Z"}})
r(b"AVCaptureAudioChannel", b"setEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVCaptureConnection",
b"automaticallyAdjustsVideoMirroring",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureConnection",
b"enablesVideoStabilizationWhenAvailable",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureConnection", b"isActive", {"retval": {"type": b"Z"}})
r(
b"AVCaptureConnection",
b"isCameraIntrinsicMatrixDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureConnection",
b"isCameraIntrinsicMatrixDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureConnection", b"isEnabled", {"retval": {"type": b"Z"}})
r(b"AVCaptureConnection", b"isVideoFieldModeSupported", {"retval": {"type": b"Z"}})
r(
b"AVCaptureConnection",
b"isVideoMaxFrameDurationSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureConnection",
b"isVideoMinFrameDurationSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureConnection", b"isVideoMirrored", {"retval": {"type": b"Z"}})
r(b"AVCaptureConnection", b"isVideoMirroringSupported", {"retval": {"type": b"Z"}})
r(
b"AVCaptureConnection",
b"isVideoOrientationSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureConnection",
b"isVideoStabilizationEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureConnection",
b"isVideoStabilizationSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureConnection",
b"setAutomaticallyAdjustsVideoMirroring:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureConnection",
b"setCameraIntrinsicMatrixDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVCaptureConnection", b"setEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVCaptureConnection",
b"setEnablesVideoStabilizationWhenAvailable:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureConnection",
b"setVideoMaxFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureConnection",
b"setVideoMinFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVCaptureConnection", b"setVideoMirrored:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVCaptureConnection",
b"videoMaxFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureConnection",
b"videoMinFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureDepthDataOutput",
b"alwaysDiscardsLateDepthData",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDepthDataOutput", b"isFilteringEnabled", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDepthDataOutput",
b"setAlwaysDiscardsLateDepthData:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDepthDataOutput",
b"setFilteringEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDevice",
b"activeDepthDataMinFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureDevice",
b"activeMaxExposureDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureDevice",
b"activeVideoMaxFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureDevice",
b"activeVideoMinFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureDevice",
b"automaticallyAdjustsVideoHDREnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDevice",
b"automaticallyEnablesLowLightBoostWhenAvailable",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDevice",
b"chromaticityValuesForDeviceWhiteBalanceGains:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceChromaticityValues=ff}"},
"arguments": {2: {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
},
)
r(
b"AVCaptureDevice",
b"deviceWhiteBalanceGains",
{"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
)
r(
b"AVCaptureDevice",
b"deviceWhiteBalanceGainsForChromaticityValues:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"},
"arguments": {
2: {"type": b"{_AVCaptureWhiteBalanceChromaticityValues=ff}"}
},
},
)
r(
b"AVCaptureDevice",
b"deviceWhiteBalanceGainsForTemperatureAndTintValues:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"},
"arguments": {
2: {"type": b"{_AVCaptureWhiteBalanceTemperatureAndTintValues=ff}"}
},
},
)
r(b"AVCaptureDevice", b"exposureDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVCaptureDevice",
b"grayWorldDeviceWhiteBalanceGains",
{"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
)
r(b"AVCaptureDevice", b"hasFlash", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"hasMediaType:", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"hasTorch", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isAdjustingExposure", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isAdjustingFocus", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isAdjustingWhiteBalance", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDevice",
b"isAutoFocusRangeRestrictionSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDevice", b"isConnected", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isExposureModeSupported:", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDevice",
b"isExposurePointOfInterestSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDevice", b"isFlashActive", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isFlashAvailable", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isFlashModeSupported:", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isFocusModeSupported:", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDevice",
b"isFocusPointOfInterestSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDevice",
b"isGeometricDistortionCorrectionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDevice",
b"isGeometricDistortionCorrectionSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDevice", b"isGlobalToneMappingEnabled", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isInUseByAnotherApplication", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDevice",
b"isLockingFocusWithCustomLensPositionSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDevice",
b"isLockingWhiteBalanceWithCustomDeviceGainsSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDevice", b"isLowLightBoostEnabled", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isLowLightBoostSupported", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isPortraitEffectActive", {"retval": {"type": "Z"}})
r(b"AVCaptureDevice", b"isPortraitEffectEnabled", {"retval": {"type": "Z"}})
r(b"AVCaptureDevice", b"isRampingVideoZoom", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isSmoothAutoFocusEnabled", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isSmoothAutoFocusSupported", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDevice",
b"isSubjectAreaChangeMonitoringEnabled",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDevice", b"isSuspended", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isTorchActive", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isTorchAvailable", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isTorchModeSupported:", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isVideoHDREnabled", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isVirtualDevice", {"retval": {"type": b"Z"}})
r(b"AVCaptureDevice", b"isWhiteBalanceModeSupported:", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDevice",
b"lockForConfiguration:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type_modifier": b"o"}}},
)
r(
b"AVCaptureDevice",
b"requestAccessForMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
}
}
}
},
)
r(
b"AVCaptureDevice",
b"setActiveDepthDataMinFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureDevice",
b"setActiveMaxExposureDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureDevice",
b"setActiveVideoMaxFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureDevice",
b"setActiveVideoMinFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureDevice",
b"setAutomaticallyAdjustsVideoHDREnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDevice",
b"setAutomaticallyEnablesLowLightBoostWhenAvailable:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDevice",
b"setExposureModeCustomWithDuration:ISO:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
},
}
},
)
r(
b"AVCaptureDevice",
b"setExposureTargetBias:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
}
}
},
)
r(
b"AVCaptureDevice",
b"setFocusModeLockedWithLensPosition:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
}
}
},
)
r(
b"AVCaptureDevice",
b"setGeometricDistortionCorrectionEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDevice",
b"setGlobalToneMappingEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDevice",
b"setSmoothAutoFocusEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDevice",
b"setSubjectAreaChangeMonitoringEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDevice",
b"setTorchModeOnWithLevel:error:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
)
r(b"AVCaptureDevice", b"setVideoHDREnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVCaptureDevice",
b"setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:",
{
"arguments": {
2: {"type": b"{_AVCaptureWhiteBalanceGains=fff}"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
},
}
},
)
r(
b"AVCaptureDevice",
b"supportsAVCaptureSessionPreset:",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDevice",
b"temperatureAndTintValuesForDeviceWhiteBalanceGains:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceTemperatureAndTintValues=ff}"},
"arguments": {2: {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
},
)
r(b"AVCaptureDevice", b"transportControlsSupported", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDeviceFormat",
b"highResolutionStillImageDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureDeviceFormat",
b"isGlobalToneMappingSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDeviceFormat",
b"isHighPhotoQualitySupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDeviceFormat",
b"isHighestPhotoQualitySupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDeviceFormat", b"isMultiCamSupported", {"retval": {"type": b"Z"}})
r(b"AVCaptureDeviceFormat", b"isPortraitEffectSupported", {"retval": {"type": "Z"}})
r(
b"AVCaptureDeviceFormat",
b"isPortraitEffectsMatteStillImageDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureDeviceFormat", b"isVideoBinned", {"retval": {"type": b"Z"}})
r(b"AVCaptureDeviceFormat", b"isVideoHDRSupported", {"retval": {"type": b"Z"}})
r(
b"AVCaptureDeviceFormat",
b"isVideoStabilizationModeSupported:",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDeviceFormat",
b"isVideoStabilizationSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDeviceFormat",
b"maxExposureDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureDeviceFormat",
b"minExposureDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureDeviceInput",
b"deviceInputWithDevice:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaptureDeviceInput",
b"initWithDevice:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVCaptureDeviceInput",
b"setUnifiedAutoExposureDefaultsEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureDeviceInput",
b"setVideoMinFrameDurationOverride:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureDeviceInput",
b"unifiedAutoExposureDefaultsEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureDeviceInput",
b"videoMinFrameDurationOverride",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVCaptureFileOutput", b"isRecording", {"retval": {"type": b"Z"}})
r(b"AVCaptureFileOutput", b"isRecordingPaused", {"retval": {"type": b"Z"}})
r(
b"AVCaptureFileOutput",
b"maxRecordedDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureFileOutput",
b"recordedDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureFileOutput",
b"setMaxRecordedDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVCaptureInputPort", b"isEnabled", {"retval": {"type": b"Z"}})
r(b"AVCaptureInputPort", b"setEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVCaptureManualExposureBracketedStillImageSettings",
b"exposureDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureManualExposureBracketedStillImageSettings",
b"manualExposureSettingsWithExposureDuration:ISO:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureMetadataInput",
b"appendTimedMetadataGroup:error:",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureMovieFileOutput",
b"isPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureMovieFileOutput",
b"movieFragmentInterval",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureMovieFileOutput",
b"recordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection:",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureMovieFileOutput",
b"setMovieFragmentInterval:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureMovieFileOutput",
b"setPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureMovieFileOutput",
b"setRecordsVideoOrientationAndMirroringChanges:asMetadataTrackForConnection:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVCaptureMultiCamSession", b"isMultiCamSupported", {"retval": {"type": b"Z"}})
r(b"AVCapturePhoto", b"isRawPhoto", {"retval": {"type": b"Z"}})
r(b"AVCapturePhoto", b"timestamp", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVCapturePhotoBracketSettings",
b"isLensStabilizationEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoBracketSettings",
b"setLensStabilizationEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVCapturePhotoOutput", b"isAppleProRAWEnabled", {"retval": {"type": b"Z"}})
r(b"AVCapturePhotoOutput", b"isAppleProRAWPixelFormat:", {"retval": {"type": b"Z"}})
r(b"AVCapturePhotoOutput", b"isAppleProRAWSupported", {"retval": {"type": b"Z"}})
r(
b"AVCapturePhotoOutput",
b"isAutoRedEyeReductionSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCapturePhotoOutput", b"isBayerRAWPixelFormat:", {"retval": {"type": b"Z"}})
r(
b"AVCapturePhotoOutput",
b"isCameraCalibrationDataDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isContentAwareDistortionCorrectionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isContentAwareDistortionCorrectionSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isDepthDataDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isDepthDataDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isDualCameraDualPhotoDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isDualCameraDualPhotoDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isDualCameraFusionSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCapturePhotoOutput", b"isFlashScene", {"retval": {"type": b"Z"}})
r(
b"AVCapturePhotoOutput",
b"isHighResolutionCaptureEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isLensStabilizationDuringBracketedCaptureSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isLivePhotoAutoTrimmingEnabled",
{"retval": {"type": b"Z"}},
)
r(b"AVCapturePhotoOutput", b"isLivePhotoCaptureEnabled", {"retval": {"type": b"Z"}})
r(
b"AVCapturePhotoOutput",
b"isLivePhotoCaptureSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isLivePhotoCaptureSuspended",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isPortraitEffectsMatteDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isPortraitEffectsMatteDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isStillImageStabilizationScene",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isStillImageStabilizationSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isVirtualDeviceConstituentPhotoDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isVirtualDeviceConstituentPhotoDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"isVirtualDeviceFusionSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoOutput",
b"setAppleProRAWEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setContentAwareDistortionCorrectionEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setDepthDataDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setDualCameraDualPhotoDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setHighResolutionCaptureEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setLivePhotoAutoTrimmingEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setLivePhotoCaptureEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setLivePhotoCaptureSuspended:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setPortraitEffectsMatteDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoOutput",
b"setPreparedPhotoSettingsArray:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"Z"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVCapturePhotoOutput",
b"setVirtualDeviceConstituentPhotoDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVCapturePhotoSettings", b"embedsDepthDataInPhoto", {"retval": {"type": b"Z"}})
r(
b"AVCapturePhotoSettings",
b"embedsPortraitEffectsMatteInPhoto",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"embedsSemanticSegmentationMattesInPhoto",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isAutoContentAwareDistortionCorrectionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isAutoDualCameraFusionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isAutoRedEyeReductionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isAutoStillImageStabilizationEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isAutoVirtualDeviceFusionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isCameraCalibrationDataDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isDepthDataDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(b"AVCapturePhotoSettings", b"isDepthDataFiltered", {"retval": {"type": b"Z"}})
r(
b"AVCapturePhotoSettings",
b"isDualCameraDualPhotoDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isHighResolutionPhotoEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"isPortraitEffectsMatteDeliveryEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCapturePhotoSettings",
b"setAutoContentAwareDistortionCorrectionEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setAutoDualCameraFusionEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setAutoRedEyeReductionEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setAutoStillImageStabilizationEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setAutoVirtualDeviceFusionEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setCameraCalibrationDataDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setDepthDataDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setDepthDataFiltered:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setDualCameraDualPhotoDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setEmbedsDepthDataInPhoto:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setEmbedsPortraitEffectsMatteInPhoto:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setEmbedsSemanticSegmentationMattesInPhoto:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setHighResolutionPhotoEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCapturePhotoSettings",
b"setPortraitEffectsMatteDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"dimensionsForSemanticSegmentationMatteOfType:",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"embeddedThumbnailDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"isContentAwareDistortionCorrectionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"isDualCameraFusionEnabled",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureResolvedPhotoSettings", b"isFlashEnabled", {"retval": {"type": b"Z"}})
r(
b"AVCaptureResolvedPhotoSettings",
b"isRedEyeReductionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"isStillImageStabilizationEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"isVirtualDeviceFusionEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"livePhotoMovieDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"photoDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"photoProcessingTimeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"portraitEffectsMatteDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"previewDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"rawEmbeddedThumbnailDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(
b"AVCaptureResolvedPhotoSettings",
b"rawPhotoDimensions",
{"retval": {"type": b"{_CMVideoDimensions=ii}"}},
)
r(b"AVCaptureScreenInput", b"capturesCursor", {"retval": {"type": b"Z"}})
r(b"AVCaptureScreenInput", b"capturesMouseClicks", {"retval": {"type": b"Z"}})
r(
b"AVCaptureScreenInput",
b"minFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVCaptureScreenInput", b"removesDuplicateFrames", {"retval": {"type": b"Z"}})
r(
b"AVCaptureScreenInput",
b"setCapturesCursor:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureScreenInput",
b"setCapturesMouseClicks:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureScreenInput",
b"setMinFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureScreenInput",
b"setRemovesDuplicateFrames:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureSession",
b"automaticallyConfiguresApplicationAudioSession",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureSession",
b"automaticallyConfiguresCaptureDeviceForWideColor",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureSession", b"canAddConnection:", {"retval": {"type": b"Z"}})
r(b"AVCaptureSession", b"canAddInput:", {"retval": {"type": b"Z"}})
r(b"AVCaptureSession", b"canAddOutput:", {"retval": {"type": b"Z"}})
r(b"AVCaptureSession", b"canSetSessionPreset:", {"retval": {"type": b"Z"}})
r(b"AVCaptureSession", b"isInterrupted", {"retval": {"type": b"Z"}})
r(b"AVCaptureSession", b"isRunning", {"retval": {"type": b"Z"}})
r(
b"AVCaptureSession",
b"setAutomaticallyConfiguresApplicationAudioSession:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureSession",
b"setAutomaticallyConfiguresCaptureDeviceForWideColor:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureSession",
b"setUsesApplicationAudioSession:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVCaptureSession", b"usesApplicationAudioSession", {"retval": {"type": b"Z"}})
r(
b"AVCaptureStillImageOutput",
b"automaticallyEnablesStillImageStabilizationWhenAvailable",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureStillImageOutput",
b"captureStillImageAsynchronouslyFromConnection:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"^{opaqueCMSampleBuffer=}"},
2: {"type": b"@"},
},
},
"type": "@?",
}
}
},
)
r(
b"AVCaptureStillImageOutput",
b"captureStillImageBracketAsynchronouslyFromConnection:withSettingsArray:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"^{opaqueCMSampleBuffer=}"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVCaptureStillImageOutput",
b"isCapturingStillImage",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureStillImageOutput",
b"isHighResolutionStillImageOutputEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureStillImageOutput",
b"isLensStabilizationDuringBracketedCaptureEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureStillImageOutput",
b"isLensStabilizationDuringBracketedCaptureSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureStillImageOutput",
b"isStillImageStabilizationActive",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureStillImageOutput",
b"isStillImageStabilizationSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureStillImageOutput",
b"prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"Z"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVCaptureStillImageOutput",
b"setAutomaticallyEnablesStillImageStabilizationWhenAvailable:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureStillImageOutput",
b"setHighResolutionStillImageOutputEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureStillImageOutput",
b"setLensStabilizationDuringBracketedCaptureEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureSynchronizedData",
b"timestamp",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureSynchronizedDepthData",
b"depthDataWasDropped",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureSynchronizedSampleBufferData",
b"sampleBufferWasDropped",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureVideoDataOutput",
b"alwaysDiscardsLateVideoFrames",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureVideoDataOutput",
b"automaticallyConfiguresOutputBufferDimensions",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureVideoDataOutput",
b"deliversPreviewSizedOutputBuffers",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureVideoDataOutput",
b"minFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVCaptureVideoDataOutput",
b"setAlwaysDiscardsLateVideoFrames:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureVideoDataOutput",
b"setAutomaticallyConfiguresOutputBufferDimensions:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureVideoDataOutput",
b"setDeliversPreviewSizedOutputBuffers:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureVideoDataOutput",
b"setMinFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCaptureVideoPreviewLayer",
b"automaticallyAdjustsMirroring",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureVideoPreviewLayer", b"isMirrored", {"retval": {"type": b"Z"}})
r(
b"AVCaptureVideoPreviewLayer",
b"isMirroringSupported",
{"retval": {"type": b"Z"}},
)
r(
b"AVCaptureVideoPreviewLayer",
b"isOrientationSupported",
{"retval": {"type": b"Z"}},
)
r(b"AVCaptureVideoPreviewLayer", b"isPreviewing", {"retval": {"type": b"Z"}})
r(
b"AVCaptureVideoPreviewLayer",
b"setAutomaticallyAdjustsMirroring:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVCaptureVideoPreviewLayer",
b"setMirrored:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVComposition",
b"loadTrackWithTrackID:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVComposition",
b"loadTracksWithMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVComposition",
b"loadTracksWithMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVCompositionTrack",
b"segmentForTrackTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVCompositionTrackSegment",
b"compositionTrackSegmentWithTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVCompositionTrackSegment",
b"compositionTrackSegmentWithURL:trackID:sourceTimeRange:targetTimeRange:",
{
"arguments": {
4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
5: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
}
},
)
r(
b"AVCompositionTrackSegment",
b"initWithTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVCompositionTrackSegment",
b"initWithURL:trackID:sourceTimeRange:targetTimeRange:",
{
"arguments": {
4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
5: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
}
},
)
r(b"AVCompositionTrackSegment", b"isEmpty", {"retval": {"type": b"Z"}})
r(
b"AVContentKeyRequest",
b"canProvidePersistableContentKey",
{"retval": {"type": b"Z"}},
)
r(
b"AVContentKeyRequest",
b"makeStreamingContentKeyRequestDataForApp:contentIdentifier:options:completionHandler:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVContentKeyRequest",
b"persistableContentKeyFromKeyVendorResponse:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVContentKeyRequest", b"renewsExpiringResponseData", {"retval": {"type": b"Z"}})
r(
b"AVContentKeyRequest",
b"respondByRequestingPersistableContentKeyRequestAndReturnError:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type_modifier": b"o"}}},
)
r(
b"AVContentKeySession",
b"invalidateAllPersistableContentKeysForApp:options:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVContentKeySession",
b"invalidatePersistableContentKey:options:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVContentKeySession",
b"makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(b"AVCoordinatedPlaybackParticipant", b"isReadyToPlay", {"retval": {"type": b"Z"}})
r(
b"AVCoordinatedPlaybackSuspension",
b"endProposingNewTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVDelegatingPlaybackCoordinator",
b"coordinateSeekToTime:options:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVDelegatingPlaybackCoordinatorPauseCommand",
b"shouldBufferInAnticipationOfPlayback",
{"retval": {"type": b"Z"}},
)
r(
b"AVDelegatingPlaybackCoordinatorPlayCommand",
b"hostClockTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVDelegatingPlaybackCoordinatorPlayCommand",
b"itemTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVDelegatingPlaybackCoordinatorSeekCommand",
b"itemTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVDelegatingPlaybackCoordinatorSeekCommand",
b"shouldBufferInAnticipationOfPlayback",
{"retval": {"type": b"Z"}},
)
r(
b"AVDepthData",
b"depthDataByReplacingDepthDataMapWithPixelBuffer:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVDepthData",
b"depthDataFromDictionaryRepresentation:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVDepthData",
b"dictionaryRepresentationForAuxiliaryDataType:",
{"arguments": {2: {"type_modifier": b"o"}}},
)
r(b"AVDepthData", b"isDepthDataFiltered", {"retval": {"type": b"Z"}})
r(
b"AVFragmentedAsset",
b"loadTrackWithTrackID:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVFragmentedAsset",
b"loadTracksWithMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVFragmentedAsset",
b"loadTracksWithMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVFragmentedMovie",
b"loadTrackWithTrackID:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVFragmentedMovie",
b"loadTracksWithMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVFragmentedMovie",
b"loadTracksWithMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(b"AVFrameRateRange", b"maxFrameDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVFrameRateRange", b"minFrameDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVMIDIPlayer",
b"initWithContentsOfURL:soundBankURL:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMIDIPlayer",
b"initWithData:soundBankURL:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVMIDIPlayer", b"isPlaying", {"retval": {"type": b"Z"}})
r(
b"AVMIDIPlayer",
b"play:",
{
"arguments": {
2: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": "@?",
}
}
},
)
r(
b"AVMediaSelection",
b"mediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup:",
{"retval": {"type": "Z"}},
)
r(b"AVMediaSelectionGroup", b"allowsEmptySelection", {"retval": {"type": b"Z"}})
r(b"AVMediaSelectionOption", b"hasMediaCharacteristic:", {"retval": {"type": b"Z"}})
r(b"AVMediaSelectionOption", b"isPlayable", {"retval": {"type": b"Z"}})
r(b"AVMetadataFaceObject", b"hasRollAngle", {"retval": {"type": b"Z"}})
r(b"AVMetadataFaceObject", b"hasYawAngle", {"retval": {"type": b"Z"}})
r(b"AVMetadataItem", b"duration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVMetadataItem",
b"loadValuesAsynchronouslyForKeys:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVMetadataItem",
b"metadataItemWithPropertiesOfMetadataItem:valueLoadingHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
},
"type": "@?",
}
}
},
)
r(
b"AVMetadataItem",
b"statusOfValueForKey:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(b"AVMetadataItem", b"time", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVMetadataObject", b"duration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVMetadataObject", b"time", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVMovie", b"canContainMovieFragments", {"retval": {"type": b"Z"}})
r(b"AVMovie", b"containsMovieFragments", {"retval": {"type": "Z"}})
r(b"AVMovie", b"isCompatibleWithFileType:", {"retval": {"type": b"Z"}})
r(
b"AVMovie",
b"loadTrackWithTrackID:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMovie",
b"loadTracksWithMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMovie",
b"loadTracksWithMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMovie",
b"movieHeaderWithFileType:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVMovie",
b"writeMovieHeaderToURL:fileType:options:error:",
{"retval": {"type": "Z"}, "arguments": {5: {"type_modifier": b"o"}}},
)
r(
b"AVMovieTrack",
b"mediaDecodeTimeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVMovieTrack",
b"mediaPresentationTimeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(b"AVMusicTrack", b"isLoopingEnabled", {"retval": {"type": "Z"}})
r(b"AVMusicTrack", b"isMuted", {"retval": {"type": "Z"}})
r(b"AVMusicTrack", b"isSoloed", {"retval": {"type": "Z"}})
r(b"AVMusicTrack", b"setLoopingEnabled:", {"arguments": {2: {"type": "Z"}}})
r(b"AVMusicTrack", b"setMuted:", {"arguments": {2: {"type": "Z"}}})
r(b"AVMusicTrack", b"setSoloed:", {"arguments": {2: {"type": "Z"}}})
r(
b"AVMutableAudioMixInputParameters",
b"setVolume:atTime:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVMutableAudioMixInputParameters",
b"setVolumeRampFromStartVolume:toEndVolume:timeRange:",
{"arguments": {4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableCaption",
b"setTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableCaption",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVMutableComposition",
b"insertEmptyTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableComposition",
b"insertTimeRange:ofAsset:atTime:error:",
{
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
4: {"type": b"{_CMTime=qiIq}"},
5: {"type_modifier": b"o"},
},
},
)
r(
b"AVMutableComposition",
b"loadTrackWithTrackID:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMutableComposition",
b"loadTracksWithMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMutableComposition",
b"loadTracksWithMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMutableComposition",
b"removeTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableComposition",
b"scaleTimeRange:toDuration:",
{
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
3: {"type": b"{_CMTime=qiIq}"},
}
},
)
r(
b"AVMutableCompositionTrack",
b"insertEmptyTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableCompositionTrack",
b"insertTimeRange:ofTrack:atTime:error:",
{
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
4: {"type": b"{_CMTime=qiIq}"},
5: {"type_modifier": b"o"},
},
},
)
r(
b"AVMutableCompositionTrack",
b"insertTimeRanges:ofTracks:atTime:error:",
{
"retval": {"type": b"Z"},
"arguments": {4: {"type": b"{_CMTime=qiIq}"}, 5: {"type_modifier": b"o"}},
},
)
r(b"AVMutableCompositionTrack", b"isEnabled", {"retval": {"type": b"Z"}})
r(
b"AVMutableCompositionTrack",
b"removeTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableCompositionTrack",
b"scaleTimeRange:toDuration:",
{
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
3: {"type": b"{_CMTime=qiIq}"},
}
},
)
r(b"AVMutableCompositionTrack", b"setEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVMutableCompositionTrack",
b"validateTrackSegments:error:",
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
)
r(b"AVMutableMetadataItem", b"duration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVMutableMetadataItem",
b"setDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVMutableMetadataItem",
b"setTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVMutableMetadataItem", b"time", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVMutableMovie",
b"initWithData:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMutableMovie",
b"initWithSettingsFromMovie:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMutableMovie",
b"initWithURL:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMutableMovie",
b"insertEmptyTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableMovie",
b"insertTimeRange:ofAsset:atTime:copySampleData:error:",
{
"retval": {"type": "Z"},
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
4: {"type": b"{_CMTime=qiIq}"},
5: {"type": "Z"},
6: {"type_modifier": b"o"},
},
},
)
r(b"AVMutableMovie", b"interleavingPeriod", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVMutableMovie", b"isModified", {"retval": {"type": "Z"}})
r(
b"AVMutableMovie",
b"loadTrackWithTrackID:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMutableMovie",
b"loadTracksWithMediaCharacteristic:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMutableMovie",
b"loadTracksWithMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVMutableMovie",
b"movieWithData:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMutableMovie",
b"movieWithSettingsFromMovie:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMutableMovie",
b"movieWithURL:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMutableMovie",
b"removeTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableMovie",
b"scaleTimeRange:toDuration:",
{
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
3: {"type": b"{_CMTime=qiIq}"},
}
},
)
r(
b"AVMutableMovie",
b"setInterleavingPeriod:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVMutableMovie", b"setModified:", {"arguments": {2: {"type": "Z"}}})
r(
b"AVMutableMovieTrack",
b"appendSampleBuffer:decodeTime:presentationTime:error:",
{
"retval": {"type": b"Z"},
"arguments": {
3: {"type": b"^{_CMTime=qiIq}", "type_modifier": b"o"},
4: {"type": b"^{_CMTime=qiIq}", "type_modifier": b"o"},
5: {"type_modifier": b"o"},
},
},
)
r(b"AVMutableMovieTrack", b"hasProtectedContent", {"retval": {"type": "Z"}})
r(
b"AVMutableMovieTrack",
b"insertEmptyTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableMovieTrack",
b"insertMediaTimeRange:intoTimeRange:",
{
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
},
},
)
r(
b"AVMutableMovieTrack",
b"insertTimeRange:ofTrack:atTime:copySampleData:error:",
{
"retval": {"type": "Z"},
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
4: {"type": b"{_CMTime=qiIq}"},
5: {"type": "Z"},
6: {"type_modifier": b"o"},
},
},
)
r(b"AVMutableMovieTrack", b"isEnabled", {"retval": {"type": "Z"}})
r(b"AVMutableMovieTrack", b"isModified", {"retval": {"type": "Z"}})
r(
b"AVMutableMovieTrack",
b"movieWithURL:options:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(
b"AVMutableMovieTrack",
b"preferredMediaChunkDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVMutableMovieTrack",
b"removeTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableMovieTrack",
b"scaleTimeRange:toDuration:",
{
"arguments": {
2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
3: {"type": b"{_CMTime=qiIq}"},
}
},
)
r(b"AVMutableMovieTrack", b"setEnabled:", {"arguments": {2: {"type": "Z"}}})
r(b"AVMutableMovieTrack", b"setModified:", {"arguments": {2: {"type": "Z"}}})
r(
b"AVMutableMovieTrack",
b"setPreferredMediaChunkDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVMutableTimedMetadataGroup",
b"setTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableTimedMetadataGroup",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVMutableVideoComposition",
b"frameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVMutableVideoComposition",
b"setFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVMutableVideoComposition",
b"videoCompositionWithAsset:applyingCIFiltersWithHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
}
}
}
},
)
r(
b"AVMutableVideoCompositionInstruction",
b"enablePostProcessing",
{"retval": {"type": b"Z"}},
)
r(
b"AVMutableVideoCompositionInstruction",
b"setEnablePostProcessing:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVMutableVideoCompositionInstruction",
b"setTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableVideoCompositionInstruction",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVMutableVideoCompositionLayerInstruction",
b"setCropRectangle:atTime:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVMutableVideoCompositionLayerInstruction",
b"setCropRectangleRampFromStartCropRectangle:toEndCropRectangle:timeRange:",
{"arguments": {4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableVideoCompositionLayerInstruction",
b"setOpacity:atTime:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVMutableVideoCompositionLayerInstruction",
b"setOpacityRampFromStartOpacity:toEndOpacity:timeRange:",
{"arguments": {4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVMutableVideoCompositionLayerInstruction",
b"setTransform:atTime:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVMutableVideoCompositionLayerInstruction",
b"setTransformRampFromStartTransform:toEndTransform:timeRange:",
{"arguments": {4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVOutputSettingsAssistant",
b"setSourceVideoAverageFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVOutputSettingsAssistant",
b"setSourceVideoMinFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVOutputSettingsAssistant",
b"sourceVideoAverageFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVOutputSettingsAssistant",
b"sourceVideoMinFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVPlaybackCoordinator",
b"expectedItemTimeAtHostTime:",
{
"retval": {"type": b"{_CMTime=qiIq}"},
"arguments": {2: {"type": b"{_CMTime=qiIq}"}},
},
)
r(
b"AVPlaybackCoordinator",
b"pauseSnapsToMediaTimeOfOriginator",
{"retval": {"type": b"Z"}},
)
r(
b"AVPlaybackCoordinator",
b"setPauseSnapsToMediaTimeOfOriginator:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayer",
b"addBoundaryTimeObserverForTimes:queue:usingBlock:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVPlayer",
b"addPeriodicTimeObserverForInterval:queue:usingBlock:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
},
}
},
)
r(b"AVPlayer", b"allowsExternalPlayback", {"retval": {"type": "Z"}})
r(
b"AVPlayer",
b"appliesMediaSelectionCriteriaAutomatically",
{"retval": {"type": b"Z"}},
)
r(b"AVPlayer", b"automaticallyWaitsToMinimizeStalling", {"retval": {"type": b"Z"}})
r(b"AVPlayer", b"currentTime", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVPlayer", b"eligibleForHDRPlayback", {"retval": {"type": b"Z"}})
r(b"AVPlayer", b"isClosedCaptionDisplayEnabled", {"retval": {"type": b"Z"}})
r(b"AVPlayer", b"isExternalPlaybackActive", {"retval": {"type": "Z"}})
r(b"AVPlayer", b"isMuted", {"retval": {"type": b"Z"}})
r(
b"AVPlayer",
b"outputObscuredDueToInsufficientExternalProtection",
{"retval": {"type": b"Z"}},
)
r(
b"AVPlayer",
b"prerollAtRate:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
},
"type": "@?",
}
}
},
)
r(
b"AVPlayer",
b"preventsDisplaySleepDuringVideoPlayback",
{"retval": {"type": b"Z"}},
)
r(
b"AVPlayer",
b"seekToDate:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
},
"type": "@?",
}
}
},
)
r(b"AVPlayer", b"seekToTime:", {"arguments": {2: {"type": b"{_CMTime=qiIq}"}}})
r(
b"AVPlayer",
b"seekToTime:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
},
"type": "@?",
},
}
},
)
r(
b"AVPlayer",
b"seekToTime:toleranceBefore:toleranceAfter:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type": b"{_CMTime=qiIq}"},
4: {"type": b"{_CMTime=qiIq}"},
}
},
)
r(
b"AVPlayer",
b"seekToTime:toleranceBefore:toleranceAfter:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type": b"{_CMTime=qiIq}"},
4: {"type": b"{_CMTime=qiIq}"},
5: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
},
"type": "@?",
},
}
},
)
r(b"AVPlayer", b"setAllowsExternalPlayback:", {"arguments": {2: {"type": "Z"}}})
r(
b"AVPlayer",
b"setAppliesMediaSelectionCriteriaAutomatically:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayer",
b"setAutomaticallyWaitsToMinimizeStalling:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayer",
b"setClosedCaptionDisplayEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVPlayer", b"setMuted:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVPlayer",
b"setPreventsDisplaySleepDuringVideoPlayback:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayer",
b"setRate:time:atHostTime:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}, 4: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVPlayer",
b"setUsesExternalPlaybackWhileExternalScreenIsActive:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayer",
b"usesExternalPlaybackWhileExternalScreenIsActive",
{"retval": {"type": b"Z"}},
)
r(
b"AVPlayerInterstitialEvent",
b"interstitialEventWithPrimaryItem:identifier:date:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:",
{"arguments": {7: {"type": b"{_CMTime=qiIq}"}, 8: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVPlayerInterstitialEvent",
b"interstitialEventWithPrimaryItem:identifier:time:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:",
{
"arguments": {
4: {"type": b"{_CMTime=qiIq}"},
7: {"type": b"{_CMTime=qiIq}"},
8: {"type": b"{_CMTime=qiIq}"},
}
},
)
r(
b"AVPlayerInterstitialEvent",
b"playoutLimit",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVPlayerInterstitialEvent",
b"resumptionOffset",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVPlayerInterstitialEvent", b"time", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVPlayerInterstitialEventController",
b"cancelCurrentEventWithResumptionOffset:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVPlayerItem", b"appliesPerFrameHDRDisplayMetadata", {"retval": {"type": b"Z"}})
r(
b"AVPlayerItem",
b"automaticallyHandlesInterstitialEvents",
{"retval": {"type": "Z"}},
)
r(
b"AVPlayerItem",
b"automaticallyPreservesTimeOffsetFromLive",
{"retval": {"type": b"Z"}},
)
r(b"AVPlayerItem", b"canPlayFastForward", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"canPlayFastReverse", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"canPlayReverse", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"canPlaySlowForward", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"canPlaySlowReverse", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"canStepBackward", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"canStepForward", {"retval": {"type": b"Z"}})
r(
b"AVPlayerItem",
b"canUseNetworkResourcesForLiveStreamingWhilePaused",
{"retval": {"type": "Z"}},
)
r(
b"AVPlayerItem",
b"configuredTimeOffsetFromLive",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVPlayerItem", b"currentTime", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"AVPlayerItem", b"duration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVPlayerItem",
b"forwardPlaybackEndTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVPlayerItem",
b"isApplicationAuthorizedForPlayback",
{"retval": {"type": b"Z"}},
)
r(b"AVPlayerItem", b"isAudioSpatializationAllowed", {"retval": {"type": b"Z"}})
r(
b"AVPlayerItem",
b"isAuthorizationRequiredForPlayback",
{"retval": {"type": b"Z"}},
)
r(b"AVPlayerItem", b"isContentAuthorizedForPlayback", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"isPlaybackBufferEmpty", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"isPlaybackBufferFull", {"retval": {"type": b"Z"}})
r(b"AVPlayerItem", b"isPlaybackLikelyToKeepUp", {"retval": {"type": b"Z"}})
r(
b"AVPlayerItem",
b"recommendedTimeOffsetFromLive",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVPlayerItem",
b"requestContentAuthorizationAsynchronouslyWithTimeoutInterval:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVPlayerItem",
b"reversePlaybackEndTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"AVPlayerItem", b"seekToDate:", {"retval": {"type": b"Z"}})
r(
b"AVPlayerItem",
b"seekToDate:completionHandler:",
{
"retval": {"type": b"Z"},
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
},
"type": "@?",
}
},
},
)
r(b"AVPlayerItem", b"seekToTime:", {"arguments": {2: {"type": b"{_CMTime=qiIq}"}}})
r(
b"AVPlayerItem",
b"seekToTime:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
},
"type": "@?",
},
}
},
)
r(
b"AVPlayerItem",
b"seekToTime:toleranceBefore:toleranceAfter:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type": b"{_CMTime=qiIq}"},
4: {"type": b"{_CMTime=qiIq}"},
}
},
)
r(
b"AVPlayerItem",
b"seekToTime:toleranceBefore:toleranceAfter:completionHandler:",
{
"arguments": {
5: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
}
}
}
},
)
r(
b"AVPlayerItem",
b"seekingWaitsForVideoCompositionRendering",
{"retval": {"type": b"Z"}},
)
r(
b"AVPlayerItem",
b"setAppliesPerFrameHDRDisplayMetadata:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayerItem",
b"setAudioSpatializationAllowed:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayerItem",
b"setAutomaticallyHandlesInterstitialEvents:",
{"arguments": {2: {"type": "Z"}}},
)
r(
b"AVPlayerItem",
b"setAutomaticallyPreservesTimeOffsetFromLive:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayerItem",
b"setCanUseNetworkResourcesForLiveStreamingWhilePaused:",
{"arguments": {2: {"type": "Z"}}},
)
r(
b"AVPlayerItem",
b"setConfiguredTimeOffsetFromLive:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVPlayerItem",
b"setForwardPlaybackEndTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVPlayerItem",
b"setReversePlaybackEndTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVPlayerItem",
b"setSeekingWaitsForVideoCompositionRendering:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVPlayerItem",
b"setStartsOnFirstEligibleVariant:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVPlayerItem", b"startsOnFirstEligibleVariant", {"retval": {"type": b"Z"}})
r(
b"AVPlayerItemOutput",
b"itemTimeForCVTimeStamp:",
{
"retval": {"type": b"{_CMTime=qiIq}"},
"arguments": {
2: {"type": b"{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}"}
},
},
)
r(
b"AVPlayerItemOutput",
b"itemTimeForHostTime:",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVPlayerItemOutput",
b"itemTimeForMachAbsoluteTime:",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVPlayerItemOutput",
b"setSuppressesPlayerRendering:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVPlayerItemOutput", b"suppressesPlayerRendering", {"retval": {"type": b"Z"}})
r(b"AVPlayerItemTrack", b"isEnabled", {"retval": {"type": b"Z"}})
r(b"AVPlayerItemTrack", b"setEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVPlayerItemVideoOutput",
b"copyPixelBufferForItemTime:itemTimeForDisplay:",
{
"retval": {"already_cfretained": True},
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type": b"^{_CMTime=qiIq}", "type_modifier": b"o"},
},
},
)
r(
b"AVPlayerItemVideoOutput",
b"hasNewPixelBufferForItemTime:",
{"retval": {"type": b"Z"}, "arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(b"AVPlayerLayer", b"isReadyForDisplay", {"retval": {"type": b"Z"}})
r(
b"AVPlayerLooper",
b"initWithPlayer:templateItem:timeRange:",
{"arguments": {4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVPlayerLooper",
b"playerLooperWithPlayer:templateItem:timeRange:",
{"arguments": {4: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVPortraitEffectsMatte",
b"dictionaryRepresentationForAuxiliaryDataType:",
{"arguments": {2: {"type_modifier": b"o"}}},
)
r(
b"AVPortraitEffectsMatte",
b"portraitEffectsMatteByReplacingPortraitEffectsMatteWithPixelBuffer:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVPortraitEffectsMatte",
b"portraitEffectsMatteFromDictionaryRepresentation:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(b"AVQueuePlayer", b"canInsertItem:afterItem:", {"retval": {"type": b"Z"}})
r(b"AVRouteDetector", b"isRouteDetectionEnabled", {"retval": {"type": "Z"}})
r(b"AVRouteDetector", b"multipleRoutesDetected", {"retval": {"type": "Z"}})
r(
b"AVRouteDetector",
b"setRouteDetectionEnabled:",
{"arguments": {2: {"type": "Z"}}},
)
r(
b"AVSampleBufferAudioRenderer",
b"flushFromSourceTime:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
}
},
}
},
)
r(b"AVSampleBufferAudioRenderer", b"isMuted", {"retval": {"type": b"Z"}})
r(b"AVSampleBufferAudioRenderer", b"setMuted:", {"arguments": {2: {"type": b"Z"}}})
r(
b"AVSampleBufferDisplayLayer",
b"isReadyForMoreMediaData",
{"retval": {"type": b"Z"}},
)
r(
b"AVSampleBufferDisplayLayer",
b"outputObscuredDueToInsufficientExternalProtection",
{"retval": {"type": "Z"}},
)
r(b"AVSampleBufferDisplayLayer", b"preventsCapture", {"retval": {"type": "Z"}})
r(
b"AVSampleBufferDisplayLayer",
b"preventsDisplaySleepDuringVideoPlayback",
{"retval": {"type": b"Z"}},
)
r(
b"AVSampleBufferDisplayLayer",
b"requestMediaDataWhenReadyOnQueue:usingBlock:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVSampleBufferDisplayLayer",
b"requiresFlushToResumeDecoding",
{"retval": {"type": b"Z"}},
)
r(
b"AVSampleBufferDisplayLayer",
b"setOutputObscuredDueToInsufficientExternalProtection:",
{"arguments": {2: {"type": "Z"}}},
)
r(
b"AVSampleBufferDisplayLayer",
b"setPreventsCapture:",
{"arguments": {2: {"type": "Z"}}},
)
r(
b"AVSampleBufferDisplayLayer",
b"setPreventsDisplaySleepDuringVideoPlayback:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVSampleBufferGenerator",
b"notifyOfDataReadyForSampleBuffer:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"Z"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"addBoundaryTimeObserverForTimes:queue:usingBlock:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
}
}
}
},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"addPeriodicTimeObserverForInterval:queue:usingBlock:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
},
}
},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"currentTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"delaysRateChangeUntilHasSufficientMediaData",
{"retval": {"type": "Z"}},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"removeRenderer:atTime:completionHandler:",
{
"arguments": {
3: {"type": b"{_CMTime=qiIq}"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
}
},
}
},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"setDelaysRateChangeUntilHasSufficientMediaData:",
{"arguments": {2: {"type": "Z"}}},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"setRate:time:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVSampleBufferRenderSynchronizer",
b"setRate:time:atHostTime:",
{"arguments": {3: {"type": b"{_CMTime=qiIq}"}, 4: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVSampleBufferRequest",
b"overrideTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVSampleBufferRequest",
b"setOverrideTime:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"AVSampleCursor",
b"currentChunkInfo",
{"retval": {"type": b"{_AVSampleCursorChunkInfo=qZZZ}"}},
)
r(
b"AVSampleCursor",
b"currentChunkStorageRange",
{"retval": {"type": b"{_AVSampleCursorStorageRange=qq}"}},
)
r(
b"AVSampleCursor",
b"currentSampleAudioDependencyInfo",
{"retval": {"type": b"{_AVSampleCursorAudioDependencyInfo=Zq}"}},
)
r(
b"AVSampleCursor",
b"currentSampleDependencyInfo",
{"retval": {"type": b"{_AVSampleCursorDependencyInfo=ZZZZZZ}"}},
)
r(
b"AVSampleCursor",
b"currentSampleDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVSampleCursor",
b"currentSampleStorageRange",
{"retval": {"type": b"{_AVSampleCursorStorageRange=qq}"}},
)
r(
b"AVSampleCursor",
b"currentSampleSyncInfo",
{"retval": {"type": b"{_AVSampleCursorSyncInfo=ZZZ}"}},
)
r(b"AVSampleCursor", b"decodeTimeStamp", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVSampleCursor",
b"presentationTimeStamp",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVSampleCursor",
b"samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor:",
{"retval": {"type": b"Z"}},
)
r(
b"AVSampleCursor",
b"samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor:",
{"retval": {"type": b"Z"}},
)
r(
b"AVSampleCursor",
b"stepByDecodeTime:wasPinned:",
{
"retval": {"type": b"{_CMTime=qiIq}"},
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type": b"^Z", "type_modifier": b"o"},
},
},
)
r(
b"AVSampleCursor",
b"stepByPresentationTime:wasPinned:",
{
"retval": {"type": b"{_CMTime=qiIq}"},
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type": b"^Z", "type_modifier": b"o"},
},
},
)
r(
b"AVSemanticSegmentationMatte",
b"semanticSegmentationMatteByReplacingSemanticSegmentationMatteWithPixelBuffer:error:",
{"arguments": {3: {"type_modifier": b"o"}}},
)
r(
b"AVSemanticSegmentationMatte",
b"semanticSegmentationMatteFromImageSourceAuxiliaryDataType:dictionaryRepresentation:error:",
{"arguments": {4: {"type_modifier": b"o"}}},
)
r(b"AVSpeechSynthesizer", b"continueSpeaking", {"retval": {"type": "Z"}})
r(b"AVSpeechSynthesizer", b"isPaused", {"retval": {"type": "Z"}})
r(b"AVSpeechSynthesizer", b"isSpeaking", {"retval": {"type": "Z"}})
r(
b"AVSpeechSynthesizer",
b"makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(b"AVSpeechSynthesizer", b"mixToTelephonyUplink", {"retval": {"type": b"Z"}})
r(b"AVSpeechSynthesizer", b"pauseSpeakingAtBoundary:", {"retval": {"type": "Z"}})
r(
b"AVSpeechSynthesizer",
b"setMixToTelephonyUplink:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVSpeechSynthesizer", b"setPaused:", {"arguments": {2: {"type": "Z"}}})
r(b"AVSpeechSynthesizer", b"setSpeaking:", {"arguments": {2: {"type": "Z"}}})
r(
b"AVSpeechSynthesizer",
b"setUsesApplicationAudioSession:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"AVSpeechSynthesizer", b"stopSpeakingAtBoundary:", {"retval": {"type": "Z"}})
r(
b"AVSpeechSynthesizer",
b"usesApplicationAudioSession",
{"retval": {"type": b"Z"}},
)
r(
b"AVSpeechSynthesizer",
b"writeUtterance:toBufferCallback:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
}
}
}
},
)
r(
b"AVSpeechUtterance",
b"prefersAssistiveTechnologySettings",
{"retval": {"type": b"Z"}},
)
r(
b"AVSpeechUtterance",
b"setPrefersAssistiveTechnologySettings:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"AVTimedMetadataGroup",
b"initWithItems:timeRange:",
{"arguments": {3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"AVTimedMetadataGroup",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVURLAsset",
b"findCompatibleTrackForCompositionTrack:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"@"},
2: {"type": b"@"},
},
}
}
}
},
)
r(b"AVURLAsset", b"isPlayableExtendedMIMEType:", {"retval": {"type": b"Z"}})
r(
b"AVURLAsset",
b"mayRequireContentKeysForMediaDataProcessing",
{"retval": {"type": b"Z"}},
)
r(b"AVVideoComposition", b"frameDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"AVVideoComposition",
b"isValidForAsset:timeRange:validationDelegate:",
{
"retval": {"type": b"Z"},
"arguments": {3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
},
)
r(
b"AVVideoComposition",
b"videoCompositionWithAsset:applyingCIFiltersWithHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
}
}
}
},
)
r(
b"AVVideoCompositionInstruction",
b"enablePostProcessing",
{"retval": {"type": b"Z"}},
)
r(
b"AVVideoCompositionInstruction",
b"timeRange",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"AVVideoCompositionLayerInstruction",
b"getCropRectangleRampForTime:startCropRectangle:endCropRectangle:timeRange:",
{
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type_modifier": b"o"},
4: {"type_modifier": b"o"},
5: {
"type": b"^{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}",
"type_modifier": b"o",
},
},
},
)
r(
b"AVVideoCompositionLayerInstruction",
b"getOpacityRampForTime:startOpacity:endOpacity:timeRange:",
{
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type_modifier": b"o"},
4: {"type_modifier": b"o"},
5: {
"type": b"^{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}",
"type_modifier": b"o",
},
},
},
)
r(
b"AVVideoCompositionLayerInstruction",
b"getTransformRampForTime:startTransform:endTransform:timeRange:",
{
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
3: {"type_modifier": b"o"},
4: {"type_modifier": b"o"},
5: {
"type": b"^{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}",
"type_modifier": b"o",
},
},
},
)
r(
b"AVVideoCompositionRenderContext",
b"edgeWidths",
{"retval": {"type": b"{_AVEdgeWidths=dddd}"}},
)
r(
b"AVVideoCompositionRenderContext",
b"highQualityRendering",
{"retval": {"type": b"Z"}},
)
r(
b"AVVideoCompositionRenderContext",
b"pixelAspectRatio",
{"retval": {"type": b"{_AVPixelAspectRatio=qq}"}},
)
r(
b"AVVideoCompositionRenderHint",
b"endCompositionTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(
b"AVVideoCompositionRenderHint",
b"startCompositionTime",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"NSCoder", b"decodeCMTimeForKey:", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"NSCoder",
b"decodeCMTimeMappingForKey:",
{
"retval": {
"type": b"{_CMTimeMapping={_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}}"
}
},
)
r(
b"NSCoder",
b"decodeCMTimeRangeForKey:",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(
b"NSCoder",
b"encodeCMTime:forKey:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"NSCoder",
b"encodeCMTimeMapping:forKey:",
{
"arguments": {
2: {
"type": b"{_CMTimeMapping={_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}}"
}
}
},
)
r(
b"NSCoder",
b"encodeCMTimeRange:forKey:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"NSObject",
b"URLSession:aggregateAssetDownloadTask:didCompleteForMediaSelection:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"URLSession:aggregateAssetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:forMediaSelection:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": "{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
5: {"type": b"@"},
6: {"type": "{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
7: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"URLSession:aggregateAssetDownloadTask:willDownloadToURL:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"URLSession:assetDownloadTask:didFinishDownloadingToURL:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"URLSession:assetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": "{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
5: {"type": b"@"},
6: {"type": "{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
},
},
)
r(
b"NSObject",
b"URLSession:assetDownloadTask:didResolveMediaSelection:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"URLSession:assetDownloadTask:willDownloadVariants:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"anticipateRenderingUsingHint:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"assetWriter:didOutputSegmentData:segmentType:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"q"}},
},
)
r(
b"NSObject",
b"assetWriter:didOutputSegmentData:segmentType:segmentReport:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"q"},
5: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"audioPlayerDecodeErrorDidOccur:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"audioPlayerDidFinishPlaying:successfully:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"Z"}},
},
)
r(
b"NSObject",
b"audioRecorderDidFinishRecording:successfully:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"Z"}},
},
)
r(
b"NSObject",
b"audioRecorderEncodeErrorDidOccur:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(b"NSObject", b"beginInterruption", {"required": False, "retval": {"type": b"v"}})
r(
b"NSObject",
b"canConformColorOfSourceFrames",
{"required": False, "retval": {"type": b"Z"}},
)
r(
b"NSObject",
b"cancelAllPendingVideoCompositionRequests",
{"required": False, "retval": {"type": b"v"}},
)
r(
b"NSObject",
b"captionAdaptor:didVendCaption:skippingUnsupportedSourceSyntaxElements:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didCapturePhotoForResolvedSettings:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didDropSampleBuffer:fromConnection:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"^{opaqueCMSampleBuffer=}"},
4: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"captureOutput:didFinishCaptureForResolvedSettings:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didFinishProcessingLivePhotoToMovieFileAtURL:duration:photoDisplayTime:resolvedSettings:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"{_CMTime=qiIq}"},
5: {"type": b"{_CMTime=qiIq}"},
6: {"type": b"@"},
7: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"captureOutput:didFinishProcessingPhoto:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"^{opaqueCMSampleBuffer=}"},
4: {"type": b"^{opaqueCMSampleBuffer=}"},
5: {"type": b"@"},
6: {"type": b"@"},
7: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"captureOutput:didFinishProcessingRawPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"^{opaqueCMSampleBuffer=}"},
4: {"type": b"^{opaqueCMSampleBuffer=}"},
5: {"type": b"@"},
6: {"type": b"@"},
7: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"captureOutput:didFinishRecordingLivePhotoMovieForEventualFileAtURL:resolvedSettings:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"@"},
5: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"captureOutput:didOutputMetadataObjects:fromConnection:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didOutputSampleBuffer:fromConnection:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"^{opaqueCMSampleBuffer=}"},
4: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"captureOutput:didPauseRecordingToOutputFileAtURL:fromConnections:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didResumeRecordingToOutputFileAtURL:fromConnections:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:didStartRecordingToOutputFileAtURL:fromConnections:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:willBeginCaptureForResolvedSettings:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:willCapturePhotoForResolvedSettings:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"captureOutput:willFinishRecordingToOutputFileAtURL:fromConnections:error:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"@"},
5: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"captureOutputShouldProvideSampleAccurateRecordingStart:",
{"required": True, "retval": {"type": b"Z"}, "arguments": {2: {"type": b"@"}}},
)
r(b"NSObject", b"containsTweening", {"required": True, "retval": {"type": b"Z"}})
r(
b"NSObject",
b"contentKeySession:contentKeyRequest:didFailWithError:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySession:contentKeyRequestDidSucceed:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySession:didProvideContentKey:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySession:didProvideContentKeyRequest:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySession:didProvidePersistableContentKeyRequest:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySession:didProvideRenewingContentKeyRequest:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySession:shouldRetryContentKeyRequest:reason:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(
b"NSObject",
b"contentKeySessionContentProtectionSessionIdentifierDidChange:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"contentKeySessionDidGenerateExpiredSessionReport:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"dataOutputSynchronizer:didOutputSynchronizedDataCollection:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"depthDataOutput:didDropDepthData:timestamp:connection:reason:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"{_CMTime=qiIq}"},
5: {"type": b"@"},
6: {"type": b"q"},
},
},
)
r(
b"NSObject",
b"depthDataOutput:didOutputDepthData:timestamp:connection:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"{_CMTime=qiIq}"},
5: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"destinationForMixer:bus:",
{
"required": True,
"retval": {"type": b"@"},
"arguments": {2: {"type": b"@"}, 3: {"type": sel32or64(b"I", b"Q")}},
},
)
r(
b"NSObject",
b"enablePostProcessing",
{"required": True, "retval": {"type": b"Z"}},
)
r(b"NSObject", b"endInterruption", {"required": False, "retval": {"type": b"v"}})
r(
b"NSObject",
b"endInterruptionWithFlags:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"Q"}}},
)
r(
b"NSObject",
b"enqueueSampleBuffer:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"^{opaqueCMSampleBuffer=}"}},
},
)
r(b"NSObject", b"flush", {"required": True, "retval": {"type": b"v"}})
r(
b"NSObject",
b"hasSufficientMediaDataForReliablePlaybackStart",
{"required": True, "retval": {"type": "Z"}},
)
r(
b"NSObject",
b"inputIsAvailableChanged:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"Z"}}},
)
r(
b"NSObject",
b"isAssociatedWithFragmentMinder",
{"required": True, "retval": {"type": "Z"}},
)
r(
b"NSObject",
b"isReadyForMoreMediaData",
{"required": True, "retval": {"type": b"Z"}},
)
r(
b"NSObject",
b"legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"@"},
5: {"type": b"{_CMTime=qiIq}"},
},
},
)
r(
b"NSObject",
b"loadValuesAsynchronouslyForKeys:completionHandler:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": b"@?",
},
},
},
)
r(
b"NSObject",
b"mayRequireContentKeysForMediaDataProcessing",
{"required": True, "retval": {"type": b"Z"}},
)
r(
b"NSObject",
b"metadataCollector:didCollectDateRangeMetadataGroups:indexesOfNewGroups:indexesOfModifiedGroups:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"@"},
5: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"metadataOutput:didOutputTimedMetadataGroups:fromPlayerItemTrack:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
},
)
r(b"NSObject", b"obstruction", {"required": True, "retval": {"type": b"f"}})
r(b"NSObject", b"occlusion", {"required": True, "retval": {"type": b"f"}})
r(
b"NSObject",
b"outputMediaDataWillChange:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"outputSequenceWasFlushed:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(b"NSObject", b"pan", {"required": True, "retval": {"type": b"f"}})
r(b"NSObject", b"passthroughTrackID", {"required": True, "retval": {"type": b"i"}})
r(
b"NSObject",
b"playbackCoordinator:didIssueBufferingCommand:completionHandler:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": b"@?",
},
},
},
)
r(
b"NSObject",
b"playbackCoordinator:didIssuePauseCommand:completionHandler:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": b"@?",
},
},
},
)
r(
b"NSObject",
b"playbackCoordinator:didIssuePlayCommand:completionHandler:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": b"@?",
},
},
},
)
r(
b"NSObject",
b"playbackCoordinator:didIssueSeekCommand:completionHandler:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": b"@?",
},
},
},
)
r(
b"NSObject",
b"playbackCoordinator:identifierForPlayerItem:",
{
"required": False,
"retval": {"type": b"@"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"pointSourceInHeadMode",
{"required": True, "retval": {"type": b"q"}},
)
r(
b"NSObject",
b"position",
{"required": True, "retval": {"type": b"{AVAudio3DPoint=fff}"}},
)
r(
b"NSObject",
b"prerollForRenderingUsingHint:",
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(b"NSObject", b"rate", {"required": True, "retval": {"type": b"f"}})
r(
b"NSObject",
b"renderContextChanged:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(b"NSObject", b"renderingAlgorithm", {"required": True, "retval": {"type": b"q"}})
r(
b"NSObject",
b"replacementAppleProRAWCompressionSettingsForPhoto:defaultSettings:maximumBitDepth:",
{
"required": False,
"retval": {"type": b"@"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"q"}},
},
)
r(
b"NSObject",
b"replacementDepthDataForPhoto:",
{"required": False, "retval": {"type": b"@"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"replacementEmbeddedThumbnailPixelBufferWithPhotoFormat:forPhoto:",
{
"required": False,
"retval": {"type": b"^{__CVBuffer=}"},
"arguments": {2: {"type": b"^@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"replacementMetadataForPhoto:",
{"required": False, "retval": {"type": b"@"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"replacementPortraitEffectsMatteForPhoto:",
{"required": False, "retval": {"type": b"@"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"replacementSemanticSegmentationMatteOfType:forPhoto:",
{
"required": False,
"retval": {"type": b"@"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"requestMediaDataWhenReadyOnQueue:usingBlock:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}},
},
"type": b"@?",
},
},
},
)
r(
b"NSObject",
b"requiredPixelBufferAttributesForRenderContext",
{"required": True, "retval": {"type": b"@"}},
)
r(
b"NSObject",
b"requiredSourceSampleDataTrackIDs",
{"required": False, "retval": {"type": b"@"}},
)
r(
b"NSObject",
b"requiredSourceTrackIDs",
{"required": True, "retval": {"type": b"@"}},
)
r(
b"NSObject",
b"resourceLoader:didCancelAuthenticationChallenge:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"resourceLoader:didCancelLoadingRequest:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"resourceLoader:shouldWaitForLoadingOfRequestedResource:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"resourceLoader:shouldWaitForRenewalOfRequestedResource:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"resourceLoader:shouldWaitForResponseToAuthenticationChallenge:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(b"NSObject", b"reverbBlend", {"required": True, "retval": {"type": b"f"}})
r(
b"NSObject",
b"setObstruction:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"f"}}},
)
r(
b"NSObject",
b"setOcclusion:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"f"}}},
)
r(
b"NSObject",
b"setPan:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"f"}}},
)
r(
b"NSObject",
b"setPointSourceInHeadMode:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"q"}}},
)
r(
b"NSObject",
b"setPosition:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"{AVAudio3DPoint=fff}"}},
},
)
r(
b"NSObject",
b"setRate:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"f"}}},
)
r(
b"NSObject",
b"setRenderingAlgorithm:",
{
"required": True,
"retval": {"type": b"v"},
"arguments": {2: {"type": sel32or64(b"i", b"q")}},
},
)
r(
b"NSObject",
b"setReverbBlend:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"f"}}},
)
r(
b"NSObject",
b"setSourceMode:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"q"}}},
)
r(
b"NSObject",
b"setVolume:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"f"}}},
)
r(b"NSObject", b"sourceMode", {"required": True, "retval": {"type": b"q"}})
r(
b"NSObject",
b"sourcePixelBufferAttributes",
{"required": True, "retval": {"type": b"@"}},
)
r(
b"NSObject",
b"speechSynthesizer:didCancelSpeechUtterance:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"speechSynthesizer:didContinueSpeechUtterance:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"speechSynthesizer:didFinishSpeechUtterance:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"speechSynthesizer:didPauseSpeechUtterance:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"speechSynthesizer:didStartSpeechUtterance:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"speechSynthesizer:willSpeakRangeOfSpeechString:utterance:",
{
"required": False,
"retval": {"type": b"v"},
"arguments": {
2: {"type": b"@"},
3: {"type": sel32or64(b"{_NSRange=II}", b"{_NSRange=QQ}")},
4: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"startVideoCompositionRequest:",
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
)
r(
b"NSObject",
b"statusOfValueForKey:error:",
{
"required": True,
"retval": {"type": b"q"},
"arguments": {2: {"type": b"@"}, 3: {"type": "^@", "type_modifier": b"o"}},
},
)
r(
b"NSObject",
b"stopRequestingMediaData",
{"required": True, "retval": {"type": b"v"}},
)
r(
b"NSObject",
b"supportsHDRSourceFrames",
{"required": False, "retval": {"type": b"Z"}},
)
r(
b"NSObject",
b"supportsWideColorSourceFrames",
{"required": False, "retval": {"type": b"Z"}},
)
r(
b"NSObject",
b"timeRange",
{
"required": True,
"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
},
)
r(
b"NSObject",
b"timebase",
{"required": True, "retval": {"type": b"^{OpaqueCMTimebase=}"}},
)
r(
b"NSObject",
b"videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"},
},
},
)
r(
b"NSObject",
b"videoComposition:shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(
b"NSObject",
b"videoComposition:shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:layerInstruction:asset:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {
2: {"type": b"@"},
3: {"type": b"@"},
4: {"type": b"@"},
5: {"type": b"@"},
},
},
)
r(
b"NSObject",
b"videoComposition:shouldContinueValidatingAfterFindingInvalidValueForKey:",
{
"required": False,
"retval": {"type": b"Z"},
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
},
)
r(b"NSObject", b"volume", {"required": True, "retval": {"type": b"f"}})
r(
b"NSValue",
b"CMTimeMappingValue",
{
"retval": {
"type": b"{_CMTimeMapping={_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}}"
}
},
)
r(
b"NSValue",
b"CMTimeRangeValue",
{"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
)
r(b"NSValue", b"CMTimeValue", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"NSValue", b"valueWithCMTime:", {"arguments": {2: {"type": b"{_CMTime=qiIq}"}}})
r(
b"NSValue",
b"valueWithCMTimeMapping:",
{
"arguments": {
2: {
"type": b"{_CMTimeMapping={_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}}"
}
}
},
)
r(
b"NSValue",
b"valueWithCMTimeRange:",
{"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
)
r(
b"null",
b"activeDepthDataMinFrameDuration",
{"retval": {"type": b"{_CMTime=qiIq}"}},
)
r(b"null", b"activeMaxExposureDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(b"null", b"automaticallyAdjustsVideoHDREnabled", {"retval": {"type": b"Z"}})
r(
b"null",
b"automaticallyEnablesLowLightBoostWhenAvailable",
{"retval": {"type": b"Z"}},
)
r(
b"null",
b"captureStillImageBracketAsynchronouslyFromConnection:withSettingsArray:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"^{opaqueCMSampleBuffer=}"},
2: {"type": b"@"},
3: {"type": b"@"},
},
}
}
}
},
)
r(
b"null",
b"chromaticityValuesForDeviceWhiteBalanceGains:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceChromaticityValues=ff}"},
"arguments": {2: {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
},
)
r(
b"null",
b"deviceWhiteBalanceGains",
{"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
)
r(
b"null",
b"deviceWhiteBalanceGainsForChromaticityValues:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"},
"arguments": {
2: {"type": b"{_AVCaptureWhiteBalanceChromaticityValues=ff}"}
},
},
)
r(
b"null",
b"deviceWhiteBalanceGainsForTemperatureAndTintValues:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"},
"arguments": {
2: {"type": b"{_AVCaptureWhiteBalanceTemperatureAndTintValues=ff}"}
},
},
)
r(b"null", b"exposureDuration", {"retval": {"type": b"{_CMTime=qiIq}"}})
r(
b"null",
b"grayWorldDeviceWhiteBalanceGains",
{"retval": {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
)
r(b"null", b"hasFlash", {"retval": {"type": b"Z"}})
r(b"null", b"hasTorch", {"retval": {"type": b"Z"}})
r(b"null", b"isAdjustingExposure", {"retval": {"type": b"Z"}})
r(b"null", b"isAdjustingFocus", {"retval": {"type": b"Z"}})
r(b"null", b"isAdjustingWhiteBalance", {"retval": {"type": b"Z"}})
r(b"null", b"isAutoFocusRangeRestrictionSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isCenterStageActive", {"retval": {"type": b"Z"}})
r(b"null", b"isCenterStageEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isCenterStageSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isDepthDataDeliveryEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isDepthDataDeliverySupported", {"retval": {"type": b"Z"}})
r(b"null", b"isExposureModeSupported:", {"retval": {"type": b"Z"}})
r(b"null", b"isExposurePointOfInterestSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isFlashActive", {"retval": {"type": b"Z"}})
r(b"null", b"isFlashAvailable", {"retval": {"type": b"Z"}})
r(b"null", b"isFlashModeSupported:", {"retval": {"type": b"Z"}})
r(b"null", b"isFocusModeSupported:", {"retval": {"type": b"Z"}})
r(b"null", b"isFocusPointOfInterestSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isGeometricDistortionCorrectionEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isGeometricDistortionCorrectionSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isGlobalToneMappingEnabled", {"retval": {"type": b"Z"}})
r(
b"null",
b"isLensStabilizationDuringBracketedCaptureEnabled",
{"retval": {"type": b"Z"}},
)
r(
b"null",
b"isLensStabilizationDuringBracketedCaptureSupported",
{"retval": {"type": b"Z"}},
)
r(
b"null",
b"isLockingFocusWithCustomLensPositionSupported",
{"retval": {"type": b"Z"}},
)
r(
b"null",
b"isLockingWhiteBalanceWithCustomDeviceGainsSupported",
{"retval": {"type": b"Z"}},
)
r(b"null", b"isLowLightBoostEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isLowLightBoostSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isMultiCamSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isPortraitEffectActive", {"retval": {"type": b"Z"}})
r(b"null", b"isPortraitEffectEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isPortraitEffectSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isPortraitEffectsMatteDeliveryEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isPortraitEffectsMatteDeliverySupported", {"retval": {"type": b"Z"}})
r(
b"null",
b"isPortraitEffectsMatteStillImageDeliverySupported",
{"retval": {"type": b"Z"}},
)
r(b"null", b"isRampingVideoZoom", {"retval": {"type": b"Z"}})
r(b"null", b"isSmoothAutoFocusEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isSmoothAutoFocusSupported", {"retval": {"type": b"Z"}})
r(b"null", b"isSubjectAreaChangeMonitoringEnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isTorchActive", {"retval": {"type": b"Z"}})
r(b"null", b"isTorchAvailable", {"retval": {"type": b"Z"}})
r(b"null", b"isTorchModeSupported:", {"retval": {"type": b"Z"}})
r(b"null", b"isVideoHDREnabled", {"retval": {"type": b"Z"}})
r(b"null", b"isVirtualDevice", {"retval": {"type": b"Z"}})
r(b"null", b"isWhiteBalanceModeSupported:", {"retval": {"type": b"Z"}})
r(
b"null",
b"mayRequireContentKeysForMediaDataProcessing",
{"retval": {"type": b"Z"}},
)
r(
b"null",
b"prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler:",
{
"arguments": {
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"Z"},
2: {"type": b"@"},
},
}
}
}
},
)
r(
b"null",
b"requestAccessForMediaType:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
}
}
}
},
)
r(
b"null",
b"setActiveDepthDataMinFrameDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"null",
b"setActiveMaxExposureDuration:",
{"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
)
r(
b"null",
b"setAutomaticallyAdjustsVideoHDREnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"null",
b"setAutomaticallyEnablesLowLightBoostWhenAvailable:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"null", b"setCenterStageEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(b"null", b"setDepthDataDeliveryEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"null",
b"setExposureModeCustomWithDuration:ISO:completionHandler:",
{
"arguments": {
2: {"type": b"{_CMTime=qiIq}"},
4: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
},
}
},
)
r(
b"null",
b"setExposureTargetBias:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
}
}
},
)
r(
b"null",
b"setFocusModeLockedWithLensPosition:completionHandler:",
{
"arguments": {
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
}
}
},
)
r(
b"null",
b"setGeometricDistortionCorrectionEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"null", b"setGlobalToneMappingEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"null",
b"setLensStabilizationDuringBracketedCaptureEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(
b"null",
b"setPortraitEffectsMatteDeliveryEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"null", b"setSmoothAutoFocusEnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"null",
b"setSubjectAreaChangeMonitoringEnabled:",
{"arguments": {2: {"type": b"Z"}}},
)
r(b"null", b"setTorchModeOnWithLevel:error:", {"retval": {"type": b"Z"}})
r(b"null", b"setVideoHDREnabled:", {"arguments": {2: {"type": b"Z"}}})
r(
b"null",
b"setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:",
{
"arguments": {
2: {"type": b"{_AVCaptureWhiteBalanceGains=fff}"},
3: {
"callable": {
"retval": {"type": b"v"},
"arguments": {
0: {"type": b"^v"},
1: {"type": b"{_CMTime=qiIq}"},
},
}
},
}
},
)
r(
b"null",
b"temperatureAndTintValuesForDeviceWhiteBalanceGains:",
{
"retval": {"type": b"{_AVCaptureWhiteBalanceTemperatureAndTintValues=ff}"},
"arguments": {2: {"type": b"{_AVCaptureWhiteBalanceGains=fff}"}},
},
)
r(b"null", b"transportControlsSupported", {"retval": {"type": b"Z"}})
finally:
objc._updatingMetadata(False)
expressions = {}
# END OF FILE
| 40.59886 | 40,209 | 0.561872 | 17,263 | 263,446 | 8.532179 | 0.170191 | 0.054586 | 0.059223 | 0.024665 | 0.431316 | 0.424466 | 0.409835 | 0.39071 | 0.282244 | 0.218554 | 0 | 0.014461 | 0.286028 | 263,446 | 6,488 | 40,210 | 40.605117 | 0.768614 | 0.000406 | 0 | 0.554044 | 1 | 0.001237 | 0.554141 | 0.395356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000619 | false | 0.003247 | 0.000309 | 0.000619 | 0.001546 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86f516f58e615cc7049505e6cb2c98a8f2219640 | 641 | py | Python | src/RequestsLibrary/__init__.py | andreagubellini/robotframework-requests | fd556f4868be012b72d7bb0a81b6d3d724b02362 | [
"MIT"
] | null | null | null | src/RequestsLibrary/__init__.py | andreagubellini/robotframework-requests | fd556f4868be012b72d7bb0a81b6d3d724b02362 | [
"MIT"
] | null | null | null | src/RequestsLibrary/__init__.py | andreagubellini/robotframework-requests | fd556f4868be012b72d7bb0a81b6d3d724b02362 | [
"MIT"
] | null | null | null | from .DeprecatedKeywords import DeprecatedKeywords
from .RequestsOnSessionKeywords import RequestsOnSessionKeywords
from .version import VERSION
"""
** Inheritance structure **
RequestsKeywords (common requests and sessionless keywords)
|_ SessionKeywords (session creation and data)
|_ DeprecatedKeywords (old keywords that need sessions)
|_ RequestsOnSessionKeywords (new keywords that use sessions)
RequestsLibrary (extends RequestsOnSessionKeywords, DeprecatedKeywords)
"""
class RequestsLibrary(RequestsOnSessionKeywords, DeprecatedKeywords):
__version__ = VERSION
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
| 33.736842 | 71 | 0.794072 | 51 | 641 | 9.803922 | 0.588235 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151326 | 641 | 18 | 72 | 35.611111 | 0.919118 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
86fa5f72a4045f52e3f642fc0745548134a3f403 | 277 | py | Python | Exer 3.py | GuilhermeFariasn7/exercicios_LP_1B | 21ed1489da22393367a03554e7e614725642b09b | [
"MIT"
] | null | null | null | Exer 3.py | GuilhermeFariasn7/exercicios_LP_1B | 21ed1489da22393367a03554e7e614725642b09b | [
"MIT"
] | null | null | null | Exer 3.py | GuilhermeFariasn7/exercicios_LP_1B | 21ed1489da22393367a03554e7e614725642b09b | [
"MIT"
] | null | null | null | """ Exer 3 """
mes = input("Digite o mês do seu nascimento: ")
ano = int(input("Digite o ano do seu nascimento: "))
trab = input("Trabaha em que cargo?")
print("{},nascido no mês de {} e no ano de {}, trabalha de {}. data formada: {}/{}".format(nome,mes,ano,trab,mes,ano))
| 27.7 | 118 | 0.628159 | 45 | 277 | 3.866667 | 0.6 | 0.126437 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.173285 | 277 | 9 | 119 | 30.777778 | 0.755459 | 0.021661 | 0 | 0 | 0 | 0 | 0.608365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86fdccb29a5dea3c272bda6ffbc1be9cb90c8ad7 | 1,067 | py | Python | projectreport/analyzer/ts/base.py | nickderobertis/project-report | 881e2cb0c37ad1e1b03d6a2f13703c8ff125cf38 | [
"MIT"
] | null | null | null | projectreport/analyzer/ts/base.py | nickderobertis/project-report | 881e2cb0c37ad1e1b03d6a2f13703c8ff125cf38 | [
"MIT"
] | 15 | 2020-03-24T17:57:44.000Z | 2022-03-12T01:04:25.000Z | projectreport/analyzer/ts/base.py | nickderobertis/project-report | 881e2cb0c37ad1e1b03d6a2f13703c8ff125cf38 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import List, Dict, Union, Callable, Any, Sequence
from github.Repository import Repository
from projectreport.analyzer.ts.types import DictList
class TimeSeriesAnalysis:
analysis_attrs: Sequence[str] = tuple()
def get_event_data(self, item: str, **kwargs) -> DictList:
func = self.event_functions[item]
return func(*self.analysis_items, **kwargs)
def get_counts(self, item: str, freq: str, **kwargs) -> DictList:
event_data = self.get_event_data(item)
func = self.count_functions[item]
return func(event_data, freq, **kwargs)
@property
def event_functions(self) -> Dict[str, Callable]:
raise NotImplementedError
@property
def count_functions(self) -> Dict[str, Callable]:
raise NotImplementedError
@property
def analysis_items(self) -> List[Any]:
return [getattr(self, attr) for attr in self.analysis_attrs]
@property
def supported_items(self) -> List[str]:
return list(self.event_functions.keys())
| 29.638889 | 69 | 0.691659 | 130 | 1,067 | 5.546154 | 0.353846 | 0.049931 | 0.033287 | 0.0638 | 0.174757 | 0.174757 | 0.174757 | 0.174757 | 0.174757 | 0 | 0 | 0 | 0.206186 | 1,067 | 35 | 70 | 30.485714 | 0.85124 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0.08 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
86feb790265d0a1e0c8f8f317582186e3ec4e3b0 | 1,424 | py | Python | maths/3n_plus_1.py | anand722000/Python | 6191fd4585d27dd65fafe45e44ede0a083ebf4fa | [
"MIT"
] | null | null | null | maths/3n_plus_1.py | anand722000/Python | 6191fd4585d27dd65fafe45e44ede0a083ebf4fa | [
"MIT"
] | 1 | 2020-10-01T06:01:55.000Z | 2020-10-01T06:01:55.000Z | maths/3n_plus_1.py | anand722000/Python | 6191fd4585d27dd65fafe45e44ede0a083ebf4fa | [
"MIT"
] | null | null | null | from __future__ import annotations
def n31(a: int) -> tuple[list[int], int]:
"""
Returns the Collatz sequence and its length of any positive integer.
>>> n31(4)
([4, 2, 1], 3)
"""
if not isinstance(a, int):
raise TypeError("Must be int, not {}".format(type(a).__name__))
if a < 1:
raise ValueError(f"Given integer must be greater than 1, not {a}")
path = [a]
while a != 1:
if a % 2 == 0:
a = a // 2
else:
a = 3 * a + 1
path += [a]
return path, len(path)
def test_n31():
"""
>>> test_n31()
"""
assert n31(4) == ([4, 2, 1], 3)
assert n31(11) == ([11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1], 15)
assert n31(31) == ([31,94,47,142,71,214,322,161,484,242,121,364,182,91,274,137,412,206,103,310,155,466,233,700,350,175,526,263,790,395,1186,593,1780,890,
445,1336,668,334,167,502,251,754,377,1132,566,283,850,425,1276,638,319,958,479,1438,719,2158,1079,3238,1619,4858,2429,7288,3644,1822,911,
2734,1367,4102,2051,6154,3077,9232,4616,2308,1154,577,1732,866,433,1300,650,325,976,488,244,122,61,184,92,46,23,70,35,106,53,160,80,40,
20,10,5,16,8,4,2,1,],107)
if __name__ == "__main__":
num = 4
path, length = n31(num)
print(f"The Collatz sequence of {num} took {length} steps. \nPath: {path}")
| 34.731707 | 160 | 0.54986 | 244 | 1,424 | 3.135246 | 0.67623 | 0.010458 | 0.015686 | 0.015686 | 0.054902 | 0.054902 | 0.033987 | 0.033987 | 0.033987 | 0 | 0 | 0.368923 | 0.263343 | 1,424 | 40 | 161 | 35.6 | 0.360343 | 0.076545 | 0 | 0 | 0 | 0 | 0.107367 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.16 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
810a6e54a773f45ac66b9eeaccf271785ea41e05 | 437 | py | Python | test_nn.py | eric93/sceneparsing | 4d4f5cb19c9eafbf2eda5030001678e4d16d29da | [
"MIT"
] | null | null | null | test_nn.py | eric93/sceneparsing | 4d4f5cb19c9eafbf2eda5030001678e4d16d29da | [
"MIT"
] | null | null | null | test_nn.py | eric93/sceneparsing | 4d4f5cb19c9eafbf2eda5030001678e4d16d29da | [
"MIT"
] | null | null | null | import run
import scipy.misc
import matplotlib.pyplot as plt
import numpy as np
im = scipy.misc.imread("sampleData/images/ADE_val_00000003.jpg")
ima = scipy.misc.imread("sampleData/annotations/ADE_val_00000003.png")
imnn = run.run_nn(im)
#imnn = run.run_nn_full(im)
print np.sum(imnn == ima),"/",len(ima) * len(ima[0])
plt.subplot(2,1,1)
run.display_annotation(imnn)
plt.subplot(2,1,2)
run.display_annotation(ima - 1)
plt.show()
| 19 | 70 | 0.741419 | 76 | 437 | 4.144737 | 0.447368 | 0.085714 | 0.095238 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.102975 | 437 | 22 | 71 | 19.863636 | 0.742347 | 0.059497 | 0 | 0 | 0 | 0 | 0.200489 | 0.198044 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.307692 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
811ff1ed7e5a21fd1e2ed831b8ae2dbd11358842 | 1,568 | py | Python | post-processors/jianshu/main.py | kingking888/SearchEngine | 83729fcc4e872277c7eaeb6d26ce2c3e425ef6a2 | [
"MIT"
] | 6 | 2019-07-05T02:47:54.000Z | 2021-05-03T08:33:28.000Z | post-processors/jianshu/main.py | SpanockLau/SearchEngine | 83729fcc4e872277c7eaeb6d26ce2c3e425ef6a2 | [
"MIT"
] | 8 | 2020-08-06T03:34:38.000Z | 2022-02-26T15:22:28.000Z | post-processors/jianshu/main.py | SpanockLau/SearchEngine | 83729fcc4e872277c7eaeb6d26ce2c3e425ef6a2 | [
"MIT"
] | 4 | 2019-07-05T08:03:51.000Z | 2019-10-05T06:48:24.000Z | import sys
sys.path.append('/Users/huangyifei/projects/SearchEngine/post-processors/')
from common.DataFilterHandler import DataFilterHandler
from jianshu.AutoSummaryHandler import AutoSummaryHandler
from jianshu.TimeProcessHandler import TimeProcessHandler
from common.Config import MongoConfig
from common.AutoTransferHandler import AutoTransferHandler
if __name__ == '__main__':
# first filter the data
# filter = DataFilterHandler(database_name='TechHub', collection_name='jianshu', use_localhost=False)
# filter.start()
# summary_handler = AutoSummaryHandler()
# time_handler = TimeProcessHandler()
# config = MongoConfig(database_name='TechHub', collection_name='jianshu')
# cursor = config.GetMongoCursor()
# count = 0
#
# for document in cursor.find({'summary':''}, no_cursor_timeout=True):
# content = document['content']
# url = document['url']
# if(document['summary'] != ''):
# print('Done before for {}'.format(count))
# count += 1
# continue
# summary = summary_handler.GetSummary(content)
#
# new_time = time_handler.process(document['date'])
# cursor.update_one({'url' : url}, {'$set' : {'summary' : summary, 'date' : new_time}})
# print('Finish update document {}'.format(count))
# count += 1
#
# config.CloseConnection()
handler = AutoTransferHandler(database_name='TechHub', collection_name_from='jianshu',
collection_name_to='infos')
handler.start()
| 39.2 | 105 | 0.666454 | 151 | 1,568 | 6.741722 | 0.437086 | 0.05501 | 0.055992 | 0.085462 | 0.111002 | 0.078585 | 0 | 0 | 0 | 0 | 0 | 0.002419 | 0.209184 | 1,568 | 39 | 106 | 40.205128 | 0.818548 | 0.55102 | 0 | 0 | 0 | 0 | 0.122239 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
812182c9e383adb10c60a27526b3ce91edd162e8 | 229 | py | Python | fake_event_generator.py | yogurt-company/streamming_lab | a967cb55f2e486abfa31e6740065528f41054295 | [
"Apache-2.0"
] | null | null | null | fake_event_generator.py | yogurt-company/streamming_lab | a967cb55f2e486abfa31e6740065528f41054295 | [
"Apache-2.0"
] | null | null | null | fake_event_generator.py | yogurt-company/streamming_lab | a967cb55f2e486abfa31e6740065528f41054295 | [
"Apache-2.0"
] | null | null | null | from kafka import KafkaProducer, KafkaAdminClient
producer = KafkaProducer(bootstrap_servers='localhost:9092')
producer.send('sample', b'Hello, World!')
producer.send('sample', key=b'message-two', value=b'This is Kafka-Python') | 38.166667 | 74 | 0.781659 | 30 | 229 | 5.933333 | 0.733333 | 0.134831 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.074236 | 229 | 6 | 74 | 38.166667 | 0.820755 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
813a5b8f807d34e4eac5637407475f609fd329b9 | 1,032 | py | Python | source/01_preprocess/xyz2mol_jo.py | toshi-k/kaggle-champs-scalar-coupling | b0f6a99bbb23328030ee3ce5a6a416b84fa8ed60 | [
"Apache-2.0"
] | 27 | 2019-08-31T17:51:41.000Z | 2021-06-18T08:35:12.000Z | source/01_preprocess/xyz2mol_jo.py | toshi-k/kaggle-champs-scalar-coupling | b0f6a99bbb23328030ee3ce5a6a416b84fa8ed60 | [
"Apache-2.0"
] | null | null | null | source/01_preprocess/xyz2mol_jo.py | toshi-k/kaggle-champs-scalar-coupling | b0f6a99bbb23328030ee3ce5a6a416b84fa8ed60 | [
"Apache-2.0"
] | 2 | 2019-09-03T06:57:31.000Z | 2019-12-06T16:55:21.000Z | """
This script is fork from Jo's public notebook
https://www.kaggle.com/sunhwan/using-rdkit-for-atomic-feature-and-visualization
Thank you !
"""
# rdkit & xyz2mol
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem.Draw.MolDrawing import MolDrawing, DrawingOptions # Only needed if modifying defaults
from rdkit.Chem.rdmolops import SanitizeFlags
# https://github.com/jensengroup/xyz2mol
from xyz2mol import xyz2mol, xyz2AC, AC2mol, read_xyz_file
from pathlib import Path
CACHEDIR = Path('./')
def chiral_stereo_check(mol):
# avoid sanitization error e.g., dsgdb9nsd_037900.xyz
Chem.SanitizeMol(mol, SanitizeFlags.SANITIZE_ALL - SanitizeFlags.SANITIZE_PROPERTIES)
Chem.DetectBondStereochemistry(mol, -1)
return mol
def xyz2mol(atomicNumList, charge, xyz_coordinates, charged_fragments, quick):
AC, mol = xyz2AC(atomicNumList, xyz_coordinates)
new_mol = AC2mol(mol, AC, atomicNumList, charge, charged_fragments, quick)
new_mol = chiral_stereo_check(new_mol)
return new_mol
| 31.272727 | 102 | 0.778101 | 136 | 1,032 | 5.779412 | 0.544118 | 0.045802 | 0.049618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019016 | 0.133721 | 1,032 | 32 | 103 | 32.25 | 0.860179 | 0.270349 | 0 | 0 | 0 | 0 | 0.002695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
813a97830238d507e54d885505def82c08de8925 | 4,260 | py | Python | RPi/GPIO.py | shrinivas93/doorman-app | 59fa8f7911e302899ca670d8c61ed93350ac102a | [
"MIT"
] | 1 | 2019-04-10T14:43:46.000Z | 2019-04-10T14:43:46.000Z | RPi/GPIO.py | shrinivas93/doorman-app | 59fa8f7911e302899ca670d8c61ed93350ac102a | [
"MIT"
] | null | null | null | RPi/GPIO.py | shrinivas93/doorman-app | 59fa8f7911e302899ca670d8c61ed93350ac102a | [
"MIT"
] | null | null | null | import random
__author__ = 'Tiago'
__documentation__ = 'http://sourceforge.net/p/raspberry-gpio-python/wiki/Examples/'
RPI_REVISION = 1
VERSION = 1
BOARD = 0
BCM = 1
IN = 0
OUT = 1
INPUT = 0
OUTPUT = 1
SPI = 2
I2C = 3
HARD_PWM = 4
SERIAL = 5
UNKNOWN = -1
PUD_DOWN = 0
PUD_UP = 1
PUD_OFF = -1
LOW = 0
HIGH = 1
FALLING = 0
RISING = 1
BOTH = 2
_setup_mode = BOARD
_warnings = False
def setmode(mode):
"""
There are two ways of numbering the IO pins on a Raspberry Pi within RPi.GPIO. The first is using the BOARD numbering system. This refers to the pin numbers on the P1 header of the Raspberry Pi board. The advantage of using this numbering system is that your hardware will always work, regardless of the board revision of the RPi. You will not need to rewire your connector or change your code.
The second numbering system is the BCM numbers. This is a lower level way of working - it refers to the channel numbers on the Broadcom SOC. You have to always work with a diagram of which channel number goes to which pin on the RPi board. Your script could break between revisions of Raspberry Pi boards.
To specify which you are using using (mandatory):
:param mode:
:return:
"""
_setup_mode = mode
def setwarnings(mode):
"""
It is possible that you have more than one script/circuit on the GPIO of your Raspberry Pi.
As a result of this, if RPi.GPIO detects that a pin has been configured to something other than the default (input),
you get a warning when you try to configure a script. To disable these warnings:
:param mode:
:return:
"""
_warnings = mode
def setup(channel, mode, initial=None, pull_up_down=None):
"""
You need to set up every channel you are using as an input or an output. To configure a channel as an input:
:param channel:
:param mode:
:param initial:
:param pull_up_down:
:return:
"""
pass
def gpio_function(pin):
"""
Shows the function of a GPIO channel.
will return a value from: GPIO.INPUT, GPIO.OUTPUT, GPIO.SPI, GPIO.I2C, GPIO.HARD_PWM, GPIO.SERIAL, GPIO.UNKNOWN
:param pin:
:return: GPIO.INPUT, GPIO.OUTPUT, GPIO.SPI, GPIO.I2C, GPIO.HARD_PWM, GPIO.SERIAL, GPIO.UNKNOWN
"""
return None
def input(channel):
"""
To read the value of a GPIO pin:
:param channel:
:return:
"""
return LOW if random.random() < 0.5 else HIGH
def output(channel, state):
"""
To set the output state of a GPIO pin:
:param channel:
:return:
"""
return LOW
def PWM(channel, frequency):
"""
:param channel:
:param frequency:
To create a PWM instance:
:return:
"""
return None
def cleanup(channel=None):
"""
At the end any program, it is good practice to clean up any resources you might have used. This is no different with RPi.GPIO.
By returning all channels you have used back to inputs with no pull up/down, you can avoid accidental damage to your RPi by shorting out the pins.
Note that this will only clean up GPIO channels that your script has used.
:param channel: It is possible that you only want to clean up one channel, leaving some set up when your program exits
:return:
"""
pass
def wait_for_edge(channel, edge_type):
"""
The wait_for_edge() function is designed to block execution of your program until an edge is detected.
:param channel:
:param edge_type:
:return:
"""
pass
def add_event_detect(channel, edge_type, callback=None, bouncetime=0):
"""
The event_detected() function is designed to be used in a loop with other things, but unlike polling it is not going to miss the change in state of an input while the CPU is busy working on other things.
This could be useful when using something like Pygame or PyQt where there is a main loop listening and responding to GUI events in a timely basis.
:param channel:
:param edge_type:
:return:
"""
pass
def add_event_callback(channel, callback, bouncetime=0):
pass
def remove_event_detect(channel):
"""
If for some reason, your program no longer wishes to detect edge events, it is possible to stop them
:param channel:
:return:
"""
pass | 28.026316 | 398 | 0.692958 | 677 | 4,260 | 4.299852 | 0.338257 | 0.032978 | 0.02336 | 0.010993 | 0.114737 | 0.101683 | 0.101683 | 0.101683 | 0.101683 | 0.076262 | 0 | 0.008918 | 0.23662 | 4,260 | 152 | 399 | 28.026316 | 0.886224 | 0.671127 | 0 | 0.16 | 0 | 0 | 0.06044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.12 | 0.02 | 0 | 0.34 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
813de6898def7e039f552c7daeb5b7187ba77e74 | 17,591 | py | Python | extract_FAQ.py | Stadicus/user-guides | 5e54d5b9d1d2e592d72ec973166eedb45a15eed8 | [
"MIT"
] | 1 | 2020-06-08T10:20:16.000Z | 2020-06-08T10:20:16.000Z | extract_FAQ.py | Stadicus/user-guides | 5e54d5b9d1d2e592d72ec973166eedb45a15eed8 | [
"MIT"
] | 13 | 2020-05-06T10:53:46.000Z | 2021-03-29T09:10:43.000Z | extract_FAQ.py | Stadicus/user-guides | 5e54d5b9d1d2e592d72ec973166eedb45a15eed8 | [
"MIT"
] | 3 | 2020-04-06T09:05:13.000Z | 2021-01-05T09:56:38.000Z | json = {
"guide": {
"accountDescription": {
"text": "This is your account overview. It shows incoming and outgoing transactions. The balance is displayed for each account separately. Consult the guide in settings to learn more about the different account types.",
"title": "What is displayed here?"
},
"accountFiat": {
"text": "Yes, you can click on any ticker to rotate through several fiat currencies. You can also change the list of currencies in the settings.",
"title": "Can I display other conversion rates?"
},
"accountIncomingBalance": {
"text": "Incoming sums up the amounts that are being transferred to you but have not yet been confirmed by the network.",
"title": "What does incoming mean?"
},
"accountInfo": {
"xpub": {
"text": "An extended public key is a root key from which all receiving addresses of an account are derived.\nIt is provided here for advanced use and interoperability with watch-only wallets, such as Electrum or Sentinel.",
"title": "What is an extended public key?"
}
},
"accountLegacyConvert": {
"text": "Go to the Bitcoin account, select receive and copy the address. Go back to your legacy account, click send, paste the copied address and tick send all. Then sign and send to move all your coins in a single transaction.",
"title": "How can I move my coins out of the Legacy account?"
},
"accountRates": {
"link": {
"text": "www.cryptocompare.com",
"url": "https://www.cryptocompare.com"
},
"text": "The exchange rates are updated every minute from CryptoCompare.",
"title": "Which rates are used?"
},
"accountReload": {
"text": "All transaction information is updated automatically.",
"title": "How can I reload the transaction history?"
},
"accountSendDisabled": {
"text": "The ‘Send’ button is activated when your balance is more than zero.",
"title": "Why can't I send any {{unit}}?"
},
"accountTransactionAttributesBTC": {
"text": "Virtual size: Used to determine network fee. You have successfully saved on fees if it is smaller than the size of the transaction.\nSize: Actual transaction size in bytes when serialized according to the underlying blockchain.\nWeight: Introduced with Segwit, it is a new metric to evaluate transaction and block sizes. Each segregated witness byte counts as one, everything else as four weight units. Instead of one megabyte in actual size, the block size limit is now four million weight units.",
"title": "Bitcoin-related transaction details"
},
"accountTransactionAttributesGeneric": {
"text": "Confirmations: When your transaction is first broadcast it will be unconfirmed. You will need to wait for it to be included in to a block by a miner, after which it will have 1 confirmation. Each block broadcast on the network thereafter will add another confirmation to your transaction. Generally merchants and other network actors will only accept transactions with between 3-6 confirmations before considering the transaction as settled. \nTransaction ID: A unique identification number that can be used to lookup a transaction in a block explorer.\nFee: Miners are paid a transaction fee as an incentive to include transactions in the blocks they mine. To learn more, click on the send button.",
"title": "What is the information shown in the transaction details?"
},
"accountTransactionConfirmation": {
"text": "This is a transaction that has been broadcasted to the network and is waiting to be confirmed.",
"title": "What is a pending transaction?"
},
"accountTransactionLabel": {
"text": "It is the address where you received the coins or sent the coins to. An address encodes how (and thus by whom) the coins can be spent.",
"title": "Which address is displayed for each transaction?"
},
"accountTransactionTime": {
"text": "The time the transaction has been confirmed on the blockchain.",
"title": "What time is displayed?"
},
"appendix": {
"href": "https://shiftcrypto.ch/contact",
"link": "Contact us!",
"text": "Another question?"
},
"backups": {
"check": {
"text": "'Check Backup' allows you to verify that you have a working backup corresponding to your current wallet. It can also be used to verify that you still have the correct recovery password. You can check your main recovery password or your hidden recovery password.",
"title": "What is 'Check Backup'?"
},
"encrypt": {
"text": "No but your recovery password is required to derive the wallet from the stored seed.",
"title": "Can I encrypt the backup?"
},
"howOften": {
"text": "The backup is automatically generated when a new wallet is created. You only have to make a new backup if your micro SD card is lost or damaged, or if you want to use multiple micro SD cards as backups.\nYou do not need to create new backups after transaction activity. All your transaction data can be recreated by your single backup that was automatically generated for you.",
"title": "How often do I have to make a backup?"
},
"whatIsABackup": {
"text": "It is a copy of the seed on an micro SD card. The seed together with your recovery password generates your wallet.",
"title": "What is a backup?"
}
},
"backupsBB02": {
"check": {
"text": "'Check Backup' allows you to verify that you have a working backup corresponding to your current wallet.",
"title": "What is 'Check Backup'?"
},
"encrypt": {
"text": "No. Please keep the micro SD card safe, as it contains the unencrypted seed to recover your wallet.",
"title": "Can I encrypt the backup?"
},
"whatIsABackup": {
"text": "It is a copy of the seed on an micro SD card.",
"title": "What is a backup?"
}
},
"bitbox": {
"2FA": {
"text": "When 2FA is enabled, all transactions have to be approved on the paired mobile phone in order to spend coins. Under the hood, an encrypted single-use number is sent to the mobile app, decrypted there, and returned to the BitBox when pressing the Accept button. This communication with the device is done via the channel between the mobile phone and this desktop app established during pairing.\n\nBe sure to backup your wallet and pair the mobile app before enabling 2FA. Once enabled, the micro SD slot and mobile app pairing are disabled. They can be re-enabled by resetting the BitBox, which erases the device.",
"title": "How does Two Factor Authorization (2FA) work?"
},
"disable2FA": {
"text": "In order to disable 2FA, you need to reset your BitBox and then restore the wallet from its backup. Make sure that you still have the micro SD card with the backup and that you still remember the recovery password. Then press 'Reset Device'. Set a new device password and choose 'Or Restore a Backup'. Select the backup you have made from the wallet, click 'Restore' and enter the recovery password you used when creating the wallet.",
"title": "How can I disable Two Factor Authorization (2FA)?"
},
"ejectBitbox": {
"text": "You can unplug the BitBox at any time without having to eject it first.",
"title": "How can I eject the BitBox?"
},
"ejectSD": {
"text": "You can remove the micro SD card from the BitBox at any time as long as you are not in the process of creating or restoring a backup.",
"title": "How can I eject the micro SD card?"
},
"hiddenWallet": {
"text": "It is a second wallet on the same device protected by a different device password and recovery password, which you can use for plausible deniability. The same backup seed is used for both your normal and hidden wallet, so no additional backup is required.",
"title": "What is a hidden wallet?"
},
"legacyHiddenWallet": {
"text": "First click the button below (available if the BitBox is unlocked with the main device password and 2FA is disabled), then replug your Bitbox and unlock it with your hidden device password.",
"title": "How do I access the legacy hidden wallet?"
},
"pairing": {
"text": "After having downloaded our mobile app for either iOS or Android, you scan the displayed QR code, which sets up a secure channel between the mobile app and this application. Once scanned, follow the instructions in the mobile app.",
"title": "How to securely pair with your phone"
}
},
"receive": {
"address": {
"text": "Give it to others to send you some coins.\n(Try to independently verify the address, for example with a phone call.)",
"title": "What do I do with an address?"
},
"addressChange": {
"text": "As soon as an address is used in a transaction a new address is added to the list to replace it. There will always be 20 unused addresses available in the list.",
"title": "When do the addresses change?"
},
"howVerify": {
"text": "Click on the BitBox icon in the sidebar on the left and see the Pairing section. The guide will update and you can continue following the instructions from there.",
"title": "How can I verify an address securely?"
},
"whyMany": {
"text": "For privacy and security reasons, you should never hand out the same address twice. Click on 'Next' to get a new address for a different purpose. You can generate up to 20 addresses at a time. All addresses are derived from your single backup seed. (Think of addresses like invoice numbers.)",
"title": "Why are there many addresses?"
},
"whyVerify": {
"text": "One of the reasons for buying a hardware wallet like the BitBox is that you should not trust your computer due to its big attack surface. Consequently, you should not trust your computer to generate and display authentic addresses. The button to verify the address securely makes the BitBox send the address to a paired mobile phone, from which you can also scan and verify the QR code.",
"title": "Why should I verify the address securely?"
}
},
"send": {
"fee": {
"text": "The fee is based on the transaction data size and not its amount. The fee targets are calculated by Bitcoin Core's fee estimation algorithm for each network priority you chose. They are shown if they have a different value from the target below.\nEconomy: 24 blocks (around 4 hours for Bitcoin, 1 hour for Litecoin)\nLow: 12 blocks (around 2 hours for Bitcoin, 30 minutes for Litecoin)\nNormal: 6 blocks (around 1 hour for Bitcoin, 15 minutes for Litecoin)\nHigh: 2 blocks (around 20 minutes for Bitcoin, 5 minutes for Litecoin)\n(A block takes on average ten minutes for Bitcoin (2.5 minutes in Litecoin) to mine and the network load may vary considerably in the above periods.)",
"title": "How is the fee determined?"
},
"priority": {
"text": "The higher fee you are willing to pay, the faster your transaction is typically confirmed by the network.",
"title": "What is the network priority?"
},
"revert": {
"text": "Once a transaction is signed and sent (i.e. broadcasted to the network), it can no longer be reverted. Verify the transactions (including the fee) properly before signing!\nIf you know the recipient and he or she is willing to send the same amount (minus the transaction fees) back to you, you can send them a new receiving address.",
"title": "Can I revert a transaction?"
},
"whyFee": {
"text": "Transactions are competing to be confirmed by a miner. Miners choose transactions to be included in the blockchain based on their fee.\nMiners vote on the history of transactions. Since there is no trusted third party to enforce one vote per person (which is the whole point of blockchains), miners vote on transactions by sacrificing a costly resource like computing power. As a reward for their work, they can claim newly created coins and the fee of all the transactions they included.",
"title": "Why is there a network fee?"
}
},
"settings-electrum": {
"what": {
"text": "It is possible to power your wallet with your own full nodes instead of using Shift servers.",
"title": "What is this?"
}
},
"settings": {
"btc-p2pkh": {
"text": "This uses an old transaction format, which has been superseded by the Segwit address and transaction formats. If you used the BitBox with the old desktop app before, this is the account containing your coins currently. To save fees in the future transfer them to the Bitcoin account with a transaction to an address in the Bitcoin or Bitcoin bech32 account.",
"title": "What is Bitcoin Legacy?"
},
"btc-p2sh": {
"link": {
"text": "Segregated Witness Benefits",
"url": "https://bitcoincore.org/en/2016/01/26/segwit-benefits/"
},
"text": "This is a backwards compatible segwit account (p2sh-p2wpkh). It uses a new transaction format that saves you network fees. The address format is similar to legacy, and as such can be used with all existing Bitcoin wallets/exchanges/services.",
"title": "What is the Bitcoin account?"
},
"btc-p2wpkh": {
"link": {
"text": "Bech32 adoption",
"url": "https://en.bitcoin.it/wiki/Bech32_adoption"
},
"text": "To reap the full benefits of segwit's cheaper network fees, Bitcoin bech32 should be used. It uses a new address format called bech32, but this format is not accepted everywhere yet.",
"title": "What is Bitcoin bech32?"
},
"moreCoins": {
"text": "We will be integrating more altcoins besides Litecoin in the next few releases. If you are looking for a specific coin, leave us a suggestion at the contact below.",
"title": "Can you add more coins?"
},
"servers": {
"text": "This app communicates with servers of Shift Crypto to check for updates, load transactions, and send information to paired mobile apps.\nAdditionally, it retrieves the latest exchange rates from CryptoCompare. (The conversions are calculated locally, no amounts of yours are transmitted.)",
"title": "Which servers does this app talk to?"
},
"whyMultipleAccounts": {
"text": "Some cryptocurrencies have multiple address and transaction formats. These addresses are separated into extra accounts.",
"title": "Why are there multiple accounts for the same coin?"
}
},
"title": "Guide",
"unlock": {
"forgotDevicePassword": {
"text": "You have to reset the device and restore the wallet from a backup, using the recovery password.",
"title": "What do I do if I forgot the device password?"
},
"reset": {
"text": "Enter a wrong device password 15 times. The last few attempts require a long touch on the device.",
"title": "How do I reset the device?"
}
},
"waiting": {
"deviceNotRecognized": {
"text": "The device should blink once when inserted. Make sure that it is inserted the right way around. If you are having trouble, please contact us through the link below.",
"title": "My BitBox01 is not recognized"
},
"getDevice": {
"link": {
"text": "Order a BitBox",
"url": "https://shiftcrypto.ch/shop"
},
"text": "You can buy a BitBox in our online shop:",
"title": "How can I get a device?"
},
"internet": {
"text": "Yes, an internet connection is required to synchronize the wallet, send transactions and retrieve the latest exchange rates.",
"title": "Does this app require an internet connection?"
},
"lostDevice": {
"link": {
"text": "Backup Center",
"url": "https://shiftcrypto.ch/backup"
},
"text": "You can recover your accounts on a new BitBox or with our backup center.",
"title": "I lost my device. Now what?"
},
"useWithoutDevice": {
"text": "Unfortunately, this is not yet possible at the moment.",
"title": "Can I use the app without a device?"
},
"welcome": {
"text": "Thanks for using this app built by Shift Crypto in Switzerland. We appreciate any input you have to share. Please give feedback using the link at the bottom.",
"title": "Welcome to the BitBoxApp!"
}
}
}
}
def extract_values(obj, key):
"""Pull all values of specified key from nested JSON."""
arr = {}
def extract(obj, arr, key):
"""Recursively search for values of key in JSON tree."""
if isinstance(obj, dict):
for k, v in obj.items():
if isinstance(v, (dict, list)):
print("yes")
extract(v, arr, key)
elif k in key:
if k == "text":
string = k + ": "+ v
arr.append(string)
#elif isinstance(obj, list):
#for item in obj:
#extract(item, arr, key)
return arr
results = extract(obj, arr, key)
return results
results = extract_values(json, ["text", "title"])
#print(results)
| 62.379433 | 715 | 0.666022 | 2,457 | 17,591 | 4.767196 | 0.273504 | 0.013831 | 0.013148 | 0.007172 | 0.060616 | 0.048835 | 0.031589 | 0.031589 | 0.025613 | 0.025613 | 0 | 0.004918 | 0.248593 | 17,591 | 281 | 716 | 62.601423 | 0.881223 | 0.004548 | 0 | 0.062963 | 0 | 0.125926 | 0.788387 | 0.01213 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037037 | 0 | null | null | 0.003704 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d494674db8a7918745e757a1b131f98f768b26a1 | 6,153 | py | Python | apps/ngs_roi/tests/run_tests.py | JensUweUlrich/seqan | fa609a123d3dc5d8166c12f6849281813438dd39 | [
"BSD-3-Clause"
] | 409 | 2015-01-12T22:02:01.000Z | 2022-03-29T06:17:05.000Z | apps/ngs_roi/tests/run_tests.py | JensUweUlrich/seqan | fa609a123d3dc5d8166c12f6849281813438dd39 | [
"BSD-3-Clause"
] | 1,269 | 2015-01-02T22:42:25.000Z | 2022-03-08T13:31:46.000Z | apps/ngs_roi/tests/run_tests.py | JensUweUlrich/seqan | fa609a123d3dc5d8166c12f6849281813438dd39 | [
"BSD-3-Clause"
] | 193 | 2015-01-14T16:21:27.000Z | 2022-03-19T22:47:02.000Z | #!/usr/bin/env python2
"""Execute the tests for the roi_intersect program.
The golden test outputs are generated by the script generate_outputs.sh.
You have to give the root paths to the source and the binaries as arguments to
the program. These are the paths to the directory that contains the 'projects'
directory.
Usage: run_tests.py SOURCE_ROOT_PATH BINARY_ROOT_PATH
"""
import logging
import os.path
import sys
# Automagically add util/py_lib to PYTHONPATH environment variable.
path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..',
'..', '..', 'util', 'py_lib'))
sys.path.insert(0, path)
import seqan.app_tests as app_tests
def main(source_base, binary_base):
"""Main entry point of the script."""
print 'Executing test for roi_intersect'
print '================================'
print
ph = app_tests.TestPathHelper(
source_base, binary_base,
'apps/ngs_roi/tests') # tests dir
# ============================================================
# Auto-detect the binary path.
# ============================================================
path_to_project = app_tests.autolocateBinary(
binary_base, 'apps/ngs_roi', 'roi_feature_projection')
path_to_bam2roi = app_tests.autolocateBinary(
binary_base, 'apps/ngs_roi', 'bam2roi')
# ============================================================
# Built TestConf list.
# ============================================================
# Build list with TestConf objects, analoguely to how the output
# was generated in generate_outputs.sh.
conf_list = []
# We prepare a list of transforms to apply to the output files. This is
# used to strip the input/output paths from the programs' output to
# make it more canonical and host independent.
ph.outFile('-') # To ensure that the out path is set.
transforms = [
app_tests.ReplaceTransform(os.path.join(ph.source_base_path, 'apps/ngs_roi/tests') + os.sep, '', right=True),
app_tests.ReplaceTransform(ph.temp_dir + os.sep, '', right=True),
]
# ------------------------------------------------------------
# Projection: Intersect with BED or GFF/GTF in BED style.
# ------------------------------------------------------------
for mode in ['projection', 'union', 'difference', 'intersection']:
for fmt in ['bed', 'gff', 'gtf']:
for ss_flag, ss_name in [('-ss', '_ss'), ('', '')]:
conf = app_tests.TestConf(
program=path_to_project,
redir_stderr=ph.outFile('out_small_%s_m%s%s.stderr' % (fmt, mode, ss_name)),
redir_stdout=ph.outFile('out_small_%s_m%s%s.stdout' % (fmt, mode, ss_name)),
args=['-m', mode, ss_flag,
'-ir', ph.inFile('small.roi'),
'-if', ph.inFile('small.%s' % fmt),
'-or', ph.outFile('out_small_%s_m%s%s.roi' % (fmt, mode, ss_name))],
to_diff=[(ph.inFile('out_small_%s_m%s%s.stderr' % (fmt, mode, ss_name)),
ph.outFile('out_small_%s_m%s%s.stderr' % (fmt, mode, ss_name)),
transforms),
(ph.inFile('out_small_%s_m%s%s.stdout' % (fmt, mode, ss_name)),
ph.outFile('out_small_%s_m%s%s.stdout' % (fmt, mode, ss_name)),
transforms),
(ph.inFile('out_small_%s_m%s%s.roi' % (fmt, mode, ss_name)),
ph.outFile('out_small_%s_m%s%s.roi' % (fmt, mode, ss_name)),
transforms),
])
conf_list.append(conf)
# TODO(holtgrew): Test with projection to transcripts.
# ------------------------------------------------------------
# BAM to ROI Conversion
# ------------------------------------------------------------
conf = app_tests.TestConf(
program=path_to_bam2roi,
redir_stderr=ph.outFile('out_mrna_2l_ss.roi.stderr'),
redir_stdout=ph.outFile('out_mrna_2l_ss.roi.stdout'),
args=['--strand-specific', '-if', ph.inFile('micro_rna_sorted_2l.bam'),
'-of', ph.outFile('out_mrna_2l_ss.roi')],
to_diff=[(ph.inFile('out_mrna_2l_ss.roi.stderr'), ph.outFile('out_mrna_2l_ss.roi.stderr'), transforms),
(ph.inFile('out_mrna_2l_ss.roi.stdout'), ph.outFile('out_mrna_2l_ss.roi.stdout'), transforms),
(ph.inFile('out_mrna_2l_ss.roi'), ph.outFile('out_mrna_2l_ss.roi'))
])
conf_list.append(conf)
conf = app_tests.TestConf(
program=path_to_bam2roi,
redir_stderr=ph.outFile('out_mrna_2l.roi.stderr'),
redir_stdout=ph.outFile('out_mrna_2l.roi.stdout'),
args=['-if', ph.inFile('micro_rna_sorted_2l.bam'),
'-of', ph.outFile('out_mrna_2l.roi')],
to_diff=[(ph.inFile('out_mrna_2l.roi.stderr'), ph.outFile('out_mrna_2l.roi.stderr'), transforms),
(ph.inFile('out_mrna_2l.roi.stdout'), ph.outFile('out_mrna_2l.roi.stdout'), transforms),
(ph.inFile('out_mrna_2l.roi'), ph.outFile('out_mrna_2l.roi'))
])
conf_list.append(conf)
# TODO(holtgrew): Test with paired-end data with/without ignoring pairing.
# Execute the tests.
failures = 0
for conf in conf_list:
res = app_tests.runTest(conf)
# Output to the user.
print ' '.join([os.path.basename(conf.program)] + conf.args),
if res:
print 'OK'
else:
failures += 1
print 'FAILED'
# Cleanup.
ph.deleteTempDir()
print '=============================='
print ' total tests: %d' % len(conf_list)
print ' failed tests: %d' % failures
print 'successful tests: %d' % (len(conf_list) - failures)
print '=============================='
# Compute and return return code.
return failures != 0
if __name__ == '__main__':
sys.exit(app_tests.main(main))
| 42.729167 | 117 | 0.533073 | 742 | 6,153 | 4.195418 | 0.245283 | 0.054931 | 0.069386 | 0.061677 | 0.441696 | 0.40636 | 0.399615 | 0.376486 | 0.242531 | 0.191455 | 0 | 0.006313 | 0.253372 | 6,153 | 143 | 118 | 43.027972 | 0.67131 | 0.201203 | 0 | 0.186047 | 1 | 0 | 0.235595 | 0.146385 | 0 | 0 | 0 | 0.006993 | 0 | 0 | null | null | 0 | 0.046512 | null | null | 0.127907 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4954ea39c55d5e1eb404391d9b9f35a36d9d496 | 2,079 | py | Python | oldp/utils/test_utils.py | ImgBotApp/oldp | 575dc6f711dde3470d910e21c9440ee9b79a69ed | [
"MIT"
] | 3 | 2020-06-27T08:19:35.000Z | 2020-12-27T17:46:02.000Z | oldp/utils/test_utils.py | ImgBotApp/oldp | 575dc6f711dde3470d910e21c9440ee9b79a69ed | [
"MIT"
] | null | null | null | oldp/utils/test_utils.py | ImgBotApp/oldp | 575dc6f711dde3470d910e21c9440ee9b79a69ed | [
"MIT"
] | null | null | null | import logging
import os
from unittest import TestCase
from django.conf import settings
logger = logging.getLogger(__name__)
class TestCaseHelper(object):
resource_dir = None
@staticmethod
def get_app_root_dir():
return os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
def get_resource_dir(self):
# return os.path.join(os.path.dirname(os.path.realpath(__file__)), 'resources')
return self.resource_dir
def get_resource(self, file_name):
return os.path.join(self.get_resource_dir(), file_name)
def get_resource_as_string(self, file_name):
with open(self.get_resource(file_name), 'r') as f:
return f.read()
def assert_items_equal(self, expected, actual, msg, debug=False):
if debug:
logger.debug('Expected:\t%s\nActual:\t%s' % (sorted(expected), sorted(actual)))
TestCase().assertTrue(len(expected) == len(actual) and sorted(expected) == sorted(actual), msg)
# @staticmethod
# def get_log_level():
# return get_log_level_from_env('OLDP_TEST_LOG_LEVEL', 'debug')
def mysql_only_test(fn):
"""Use this decorator for tests (e.g. DataErrors, IntegrityErrors) that apply only with MySQL (not SQLite)"""
def modified_fn(x):
if settings.DATABASES['default']['ENGINE'] != 'django.db.backends.mysql':
logger.warning('Skip test (DB is not MySQL): %s' % fn.__name__)
else:
return fn(x)
return modified_fn
def web_test(fn):
"""Use this decorator for tests that interact with external websites"""
def modified_fn(x):
if not settings.TEST_WITH_WEB:
logger.warning('Skip test (without web): %s' % fn.__name__)
else:
return fn(x)
return modified_fn
def es_test(fn):
"""Use this decorator for tests that require Elasticsearch"""
def modified_fn(x):
if not settings.TEST_WITH_ES:
logger.warning('Skip test (without Elasticsearch): %s' % fn.__name__)
else:
return fn(x)
return modified_fn
| 29.7 | 113 | 0.658009 | 280 | 2,079 | 4.646429 | 0.335714 | 0.032283 | 0.027671 | 0.034589 | 0.329746 | 0.264412 | 0.264412 | 0.193697 | 0.14143 | 0.087625 | 0 | 0 | 0.226551 | 2,079 | 69 | 114 | 30.130435 | 0.80908 | 0.194805 | 0 | 0.285714 | 0 | 0 | 0.096073 | 0.030211 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.261905 | false | 0 | 0.095238 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d49adb90a1976e8ed1e91d1f80c4e033ec3053c5 | 4,771 | py | Python | sceneKit/sceneKitAudio.py | francois-baptiste/sceneKit-wrapper-for-Pythonista | 3f3ef368de92df6f58806f7e404c5593270f6d81 | [
"MIT"
] | 20 | 2019-09-22T00:37:36.000Z | 2022-01-16T01:47:24.000Z | sceneKit/sceneKitAudio.py | cclauss/sceneKit-wrapper-for-Pythonista | 8d882ab12dbac6008b5d68ba7f22cfa5b834d268 | [
"MIT"
] | 1 | 2019-09-22T12:03:18.000Z | 2019-09-22T12:03:18.000Z | sceneKit/sceneKitAudio.py | cclauss/sceneKit-wrapper-for-Pythonista | 8d882ab12dbac6008b5d68ba7f22cfa5b834d268 | [
"MIT"
] | 4 | 2019-09-22T00:16:26.000Z | 2021-03-10T14:18:53.000Z | '''audio modul, to be included in sceneKit'''
from objc_util import nsurl
import os
import sceneKit
from .sceneKitEnv import *
from .sceneKitNode import *
class AudioSource(CInst):
def __init__(self, url=None, fileName=None, named=None, ID=None):
if named is not None: fileName=named
if url is not None:
self.ID = SCNAudioSource.alloc().initWithURL_(nsurl(self.convertURL(url)))
elif fileName is not None:
self.ID = SCNAudioSource.audioSourceNamed_(fileName)
elif ID is not None:
self.ID = ID
else:
self.ID = SCNAudioSource.alloc()
# for Pythonista built-in sounds
def convertURL(self, url):
pythonistaSoundDir = os.path.abspath(os.path.join(os.__file__, '../../../..')+'/Media/Sounds/')
soundFileExtention = '.caf'
(root, ext) = os.path.splitext(url)
if len(ext) == 0:
root = root.replace(':', '/')
url = pythonistaSoundDir+'/'+root+soundFileExtention
return url
@classmethod
def audioSourceNamed(cls, fileName=None, named=None):
return cls(fileName=fileName, named=named)
def initWithFileNamed(self, name=None, fileNamed=None):
if fileNamed is not None: name=fileNamed
self.ID.initWithFileNamed_(name)
initWithFile = initWithFileNamed
def initWithURL(self, url=None):
return self.ID.initWithURL_(nsurl(self.convertURL(url)))
def setPositional(self, aBool):
self.ID.setPositional_(aBool)
def isPositional(self):
return self.ID.positional()
positional = property(isPositional, setPositional)
def load(self):
self.ID.load()
def setVolume(self, aVolume):
self.ID.setVolume_(aVolume)
def getVolume(self):
return self.ID.volume()
volume = property(getVolume, setVolume)
def setRate(self, aRate):
self.ID.setRate_(aRate)
def getRate(self):
return self.ID.rate()
rate = property(getRate, setRate)
def setReverbBlend(self, aReverbBlend):
self.ID.setReverbBlend_(aReverbBlend)
def getReverbBlend(self):
return self.ID.reverbBlend()
reverbBlend = property(getReverbBlend, setReverbBlend)
def setLoops(self, aBool):
self.ID.setLoops_(aBool)
def getLoops(self):
return self.ID.loops()
loops = property(getLoops, setLoops)
def setShouldStream(self, aBool):
self.ID.setShouldStream_(aBool)
def getShouldStream(self):
return self.ID.shouldStream()
shouldStream = property(getShouldStream, setShouldStream)
class AudioPlayer(CInst):
def __init__(self, source=None, audioNode=None, ID=None):
if source is not None:
self.ID = SCNAudioPlayer.audioPlayerWithSource_(source.ID)
elif audioNode is not None:
self.ID = SCNAudioPlayer.audioPlayerWithAVAudioNode_(audioNode)
elif ID is not None:
self.ID = ID
else:
self.ID = SCNAudioPlayer.alloc()
@classmethod
def audioPlayerWithSource(cls, source=None):
return cls(source=source)
@classmethod
def audioPlayerWithAVAudioNode(cls, audioNode=None, AVAudioNode=None, avAudioNode=None):
if AVAudioNode is not None: audioNode = AVAudioNode
if avAudioNode is not none: audioNode = avAudioNode
return cls(audioNode=audioNode)
def initWithSource(self, source=None):
self.ID.initWithSource_(source.ID)
def initWithAVAudioNode(self, audioNode=None, AVAudioNode=None, avAudioNode=None):
if AVAudioNode is not None: audioNode = AVAudioNode
if avAudioNode is not None: audioNode = avAudioNode
self.ID.initWithAVAudioNode_(audioNode)
def getAudioSource(self):
return sceneKit.AudioSource.outof(self.ID.audioSource())
audioSource = property(getAudioSource, None)
def getAudioNode(self):
return self.ID.audioNode()
audioNode = property(getAudioNode, None)
def setWillStartPlayback(self, aBlock):
self.audioSourceWillStartPlayback = AudioSourceWillStartStopPlaybackBlock(aBlock)
self.ID.setWillStartPlayback_(self.audioSourceWillStartPlayback.blockCode)
def getWillStartPlayback(self):
return self.audioSourceWillStartPlayback.pCode
willStartPlayback = property(getWillStartPlayback, setWillStartPlayback)
def setDidFinishPlayback(self, aBlock):
self.audioSourceDidFinishPlayback = AudioSourceWillStartStopPlaybackBlock(aBlock)
self.ID.setDidFinishPlayback_(self.audioSourceDidFinishPlayback.blockCode)
def getDidFinishPlayback(self):
return self.audioSourceDidFinishPlayback.pCode
didFinishPlayback = property(getDidFinishPlayback, setDidFinishPlayback)
class AudioSourceWillStartStopPlaybackBlock:
def __init__(self, block):
self.blockCode = ObjCBlock(self.blockInterface, restype=None, argtypes=[c_void_p])
self.pCode = block
def blockInterface(self, _cmd):
self.pCode()
| 33.598592 | 99 | 0.724586 | 510 | 4,771 | 6.707843 | 0.231373 | 0.050862 | 0.03157 | 0.032739 | 0.146741 | 0.127448 | 0.09354 | 0.09354 | 0.09354 | 0.09354 | 0 | 0.000254 | 0.176273 | 4,771 | 141 | 100 | 33.836879 | 0.870229 | 0.014882 | 0 | 0.097345 | 0 | 0 | 0.006817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.274336 | false | 0 | 0.044248 | 0.115044 | 0.575221 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d4ab5c22f0c20fffc54c009cb5664dcd2736ff1c | 2,301 | py | Python | TableModel/TableModel.py | SystemsCyber/CSU-RP1210 | 7539b8048e224f75476b9e97f2f44c6d471428f1 | [
"MIT"
] | 9 | 2018-06-04T16:48:41.000Z | 2021-09-18T03:53:14.000Z | TableModel/TableModel.py | SystemsCyber/CSU-RP1210 | 7539b8048e224f75476b9e97f2f44c6d471428f1 | [
"MIT"
] | 8 | 2018-01-29T21:34:28.000Z | 2018-06-04T22:38:08.000Z | TableModel/TableModel.py | SystemsCyber/CSU-RP1210 | 7539b8048e224f75476b9e97f2f44c6d471428f1 | [
"MIT"
] | 7 | 2017-04-17T16:27:27.000Z | 2022-02-27T16:30:34.000Z |
from PyQt5.QtCore import Qt, QAbstractTableModel, QSortFilterProxyModel, QVariant
from PyQt5.QtGui import QIcon
from collections import OrderedDict
class J1939TableModel(QAbstractTableModel):
''' data model for a J1939 Data class '''
def __init__(self):
super(J1939TableModel, self).__init__()
self.data_dict = OrderedDict()
self.header = []
self.table_rows = []
def setDataHeader(self, header):
self.header = header
self.header_len = len(self.header)
def setDataDict(self, new_dict):
self.data_dict = OrderedDict(new_dict)
self.table_rows = list(new_dict.keys())
def aboutToUpdate(self):
self.layoutAboutToBeChanged.emit()
def signalUpdate(self):
''' tell viewers to update their data (this is full update, not
efficient)'''
self.layoutChanged.emit()
def headerData(self, section, orientation = Qt.Horizontal, role=Qt.DisplayRole):
if orientation == Qt.Horizontal and role == Qt.DisplayRole:
return self.header[section]
elif orientation == Qt.Vertical and role == Qt.DisplayRole:
return section + 1
else:
return QVariant()
def data(self, index, role=Qt.DisplayRole):
if index.isValid() and role == Qt.DisplayRole:
key = self.table_rows[index.row()]
col_name = self.header[index.column()]
return str(self.data_dict[key][col_name])
else:
return QVariant()
def flags(self, index):
flags = super(J1939TableModel, self).flags(index)
flags |= ~Qt.ItemIsEditable
return flags
def setData(self, index, value, role = Qt.DisplayRole):
if role == Qt.DisplayRole and index.isValid():
self.dataChanged.emit(index, index)
return True
else:
return False
def rowCount(self, index=QVariant()):
return len(self.data_dict)
def columnCount(self, index=QVariant()):
return len(self.header)
class Proxy(QSortFilterProxyModel):
def __init__(self):
super(Proxy, self).__init__()
def headerData(self, section, orientation, role):
return self.sourceModel().headerData(section, orientation, role) | 32.871429 | 84 | 0.630161 | 253 | 2,301 | 5.616601 | 0.316206 | 0.056298 | 0.083744 | 0.040113 | 0.128079 | 0.042224 | 0 | 0 | 0 | 0 | 0 | 0.011276 | 0.26771 | 2,301 | 70 | 85 | 32.871429 | 0.832047 | 0.045632 | 0 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.057692 | 0.057692 | 0.557692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4b4639494e906c00e7b3e2c93dc24b62e23818d | 1,486 | py | Python | examples/sharding/__init__.py | ContextLogic/sqlalchemy | b7adfe5e4d9baa61169ba79aa5ba8f64f0ff7645 | [
"MIT"
] | 8 | 2017-07-18T18:35:10.000Z | 2022-02-01T19:52:57.000Z | examples/sharding/__init__.py | RetailArchitects/sqlalchemy | 399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e | [
"MIT"
] | null | null | null | examples/sharding/__init__.py | RetailArchitects/sqlalchemy | 399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e | [
"MIT"
] | 6 | 2017-07-26T08:51:10.000Z | 2021-03-04T10:16:37.000Z | """A basic example of using the SQLAlchemy Sharding API.
Sharding refers to horizontally scaling data across multiple
databases.
The basic components of a "sharded" mapping are:
* multiple databases, each assigned a 'shard id'
* a function which can return a single shard id, given an instance
to be saved; this is called "shard_chooser"
* a function which can return a list of shard ids which apply to a particular
instance identifier; this is called "id_chooser". If it returns all shard ids,
all shards will be searched.
* a function which can return a list of shard ids to try, given a particular
Query ("query_chooser"). If it returns all shard ids, all shards will be
queried and the results joined together.
In this example, four sqlite databases will store information about weather
data on a database-per-continent basis. We provide example shard_chooser,
id_chooser and query_chooser functions. The query_chooser illustrates
inspection of the SQL expression element in order to attempt to determine a
single shard being requested.
The construction of generic sharding routines is an ambitious approach
to the issue of organizing instances among multiple databases. For a
more plain-spoken alternative, the "distinct entity" approach
is a simple method of assigning objects to different tables (and potentially
database nodes) in an explicit way - described on the wiki at
`EntityName <http://www.sqlalchemy.org/trac/wiki/UsageRecipes/EntityName>`_.
"""
| 47.935484 | 81 | 0.792732 | 231 | 1,486 | 5.064935 | 0.510823 | 0.02735 | 0.035897 | 0.04359 | 0.160684 | 0.160684 | 0.140171 | 0.140171 | 0.140171 | 0.140171 | 0 | 0 | 0.163526 | 1,486 | 30 | 82 | 49.533333 | 0.941271 | 0.993943 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4b491f270011d01b85f1489a6b938a578d98988 | 217 | py | Python | assets/python/qr.py | 4restwilliams/4restwilliams.github.io | 71c094a1d9e2f499ad970c50a4e2301ceab614c3 | [
"MIT"
] | null | null | null | assets/python/qr.py | 4restwilliams/4restwilliams.github.io | 71c094a1d9e2f499ad970c50a4e2301ceab614c3 | [
"MIT"
] | null | null | null | assets/python/qr.py | 4restwilliams/4restwilliams.github.io | 71c094a1d9e2f499ad970c50a4e2301ceab614c3 | [
"MIT"
] | null | null | null | import qrcode
# example data
data = 'https://forrestfwilliams.github.io/2020-11-22-GSNZ'
# output file name
filename = 'gsnz_2020.png'
# generate qr code
img = qrcode.make(data)
# save img to a file
img.save(filename) | 24.111111 | 59 | 0.746544 | 35 | 217 | 4.6 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.129032 | 217 | 9 | 60 | 24.111111 | 0.78836 | 0.299539 | 0 | 0 | 1 | 0 | 0.425676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4bff6caae7b039e6abd4d12402c36866c7a79c7 | 1,779 | py | Python | Post-Exploitation/LaZagne/Linux/lazagne/softwares/wifi/wpa_supplicant.py | FOGSEC/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 5 | 2018-01-15T13:58:40.000Z | 2022-02-17T02:38:58.000Z | Post-Exploitation/LaZagne/Linux/lazagne/softwares/wifi/wpa_supplicant.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | null | null | null | Post-Exploitation/LaZagne/Linux/lazagne/softwares/wifi/wpa_supplicant.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 4 | 2019-06-21T07:51:11.000Z | 2020-11-04T05:20:09.000Z | #######################
#
# By rpesche
#
#######################
from lazagne.config.write_output import print_debug
from lazagne.config.moduleInfo import ModuleInfo
import re
import os
class Wpa_supplicant(ModuleInfo):
filestr = '/etc/wpa_supplicant/wpa_supplicant.conf'
def __init__(self):
options = {'command': '-wp', 'action': 'store_true', 'dest': 'wpa_supplicant', 'help': 'WPA Supplicant - Need root Privileges'}
ModuleInfo.__init__(self, 'wpa_supplicant', 'wifi', options)
def parse_file_network(self, fd):
password=None
ssid=None
for line in fd:
if re.match('^[ \t]*ssid=', line):
ssid=(line.split("\"")[1])
if re.match('^[ \t]*psk=', line):
password=line.split("\"")[1]
if re.match('^[ \t]*password=', line):
password=line.split("\"")[1]
if re.match('^[ \t]*}', line):
return (ssid, password)
def parse_file(self):
pwdFound = []
fd = None
try:
fd = open(self.filestr)
except Exception, e:
print_debug('DEBUG', '{0}'.format(e))
print_debug('INFO', 'Could not open the file: %s ' % self.filestr)
if fd:
for line in fd:
if "network=" in line:
values = {}
(ssid,password) = self.parse_file_network(fd)
if ssid and password:
values['Password'] = password
values['SSID'] = ssid
pwdFound.append(values)
fd.close()
return pwdFound;
def check_file_access(self):
if not os.path.exists(self.filestr):
print_debug('WARNING', 'The path "%s" does not exist' %(self.filestr))
return -1
return 0
def run(self, software_name = None):
if self.check_file_access():
return
# check root access
if os.getuid() != 0:
print_debug('INFO', 'You need more privileges (run it with sudo)\n')
return
pwdFound = self.parse_file()
return pwdFound
| 24.369863 | 129 | 0.630129 | 240 | 1,779 | 4.541667 | 0.354167 | 0.07156 | 0.033028 | 0.036697 | 0.100917 | 0.077064 | 0.077064 | 0.058716 | 0.058716 | 0 | 0 | 0.004848 | 0.188308 | 1,779 | 72 | 130 | 24.708333 | 0.75 | 0.015739 | 0 | 0.113208 | 0 | 0 | 0.197647 | 0.022941 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.150943 | 0.075472 | null | null | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4c891e1690935225c408968765c527316343f8b | 5,774 | py | Python | Trial1.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | Trial1.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | Trial1.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | import filestore
import time
import datetime
#############################################################################
#This is the function that is called at the beginning of the program
def postbank(): ###
print ("Welcome to PostBank, We care for you\n") ###
prompt=int(raw_input("""To open a new bank account, Press 1\n"""+ ###
"""To access your existing account & transact press 2\n""")) ###
if prompt==1: ###
cus=BankAccount()#creates a new customer profile ###
elif prompt==2: ###
cus=ReturnCustomer()#checks for existing customer ###
else: ###
print "You have pressed the wrong key, please try again" ###
postbank() ###
###########################################################################################
##class for creating an instance of a new back account and other default bank functions
class BankAccount:
"""Class for a bank account"""
type="Normal Account"
def __init__(self):
##calls functions in the module filestore
self.username, self.userpassword, self.balance=filestore.cusaccountcheck()
print ("Thank you %s, your account is set up and ready to use,\n a 100 pounds has been credited to your account" %self.username)
time.sleep(2)
self.userfunctions()
def userfunctions(self):
print("\n\nTo access any function below, enter the corresponding key")
print ("""To:
check Balance, press B.
deposit cash, press D.
withdraw cash, press W.
Delete account press X.
exit service, press E\n
:"""),
ans=raw_input("").lower()
if ans=='b':
##passcheck function confirms stored password with user input
self.passcheck()
self.checkbalance()
elif ans=='d':
self.passcheck()
self.depositcash()
elif ans=='w':
self.passcheck()
self.withdrawcash()
elif ans=='x':
print ("%s, your account is being deleted"%self.username)
time.sleep(1)
print ("Minions at work")
time.sleep(1)
filestore.deleteaccount(self.username)
print ("Your account has been successfuly deleted, goodbye")
elif ans=='e':
print ("Thank you for using PostBank Services")
time.sleep(1)
print ("Goodbye %s" %self.username)
exit()
else:
print "No function assigned to this key, please try again"
self.userfunctions()
def checkbalance(self):
date=datetime.date.today()
date=date.strftime('%d-%B-%Y')
self.working()
print ("Your account balance as at {} is {}").format(date, self.balance)
self.transact_again()
def withdrawcash(self):
amount=float(raw_input("::\n Please enter amount to withdraw\n: "))
self.balance-=amount
self.working()
print ("Your new account balance is %.2f" %self.balance)
print ("::\n")
filestore.balupdate(self.username, -amount)
self.transact_again()
def depositcash(self):
amount=float(raw_input("::\nPlease enter amount to be deposited\n: "))
self.balance+=amount
self.working()
print ("Your new account balance is %.2f" %self.balance)
print ("::\n")
filestore.balupdate(self.username, amount)
self.transact_again()
def transact_again(self):
ans=raw_input("Do you want to do any other transaction? (y/n)\n").lower()
self.working()
if ans=='y':
self.userfunctions()
elif ans=='n':
print ("Thank you for using PostBank we value you. Have a good day")
time.sleep(1)
print ("Goodbye {}").format(self.username)
exit()
elif ans!='y' and ans!='n':
print "Unknown key pressed, please choose either 'N' or 'Y'"
self.transact_again()
def working(self):
print("working"),
time.sleep(1)
print ("..")
time.sleep(1)
print("..")
time.sleep(1)
def passcheck(self):
"""prompts user for password with every transaction and counterchecks it with stored passwords"""
b=3
while b>0:
ans=raw_input("Please type in your password to continue with the transaction\n: ")
if ans==self.userpassword:
return True
else:
print "That is the wrong password"
b-=1
print ("%d more attempt(s) remaining" %b)
print ("Account has been freezed due to three wrong password attempts,\n contact your bank for help, bye bye")
time.sleep(1)
print ("...")
time.sleep(1)
print("...")
time.sleep(1)
exit()
class ReturnCustomer(BankAccount):
type="Normal Account"
def __init__(self):
self.username, self.userpassword, self.balance=filestore.oldcuscheck()
self.userfunctions()
postbank() ##calling the function to run the program
| 36.544304 | 137 | 0.497575 | 597 | 5,774 | 4.78057 | 0.296482 | 0.034688 | 0.035039 | 0.03679 | 0.225648 | 0.194114 | 0.15417 | 0.120533 | 0.120533 | 0.120533 | 0 | 0.006352 | 0.372878 | 5,774 | 157 | 138 | 36.77707 | 0.781828 | 0.074645 | 0 | 0.375 | 0 | 0.008333 | 0.260388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.025 | null | null | 0.225 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4d0dd4516e041bec1364a7b55f8b68f7d4ff7db | 46,411 | py | Python | pysnmp-with-texts/CISCO-IPSEC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-IPSEC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-IPSEC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IPSEC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IPSEC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:02:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint")
ciscoExperiment, = mibBuilder.importSymbols("CISCO-SMI", "ciscoExperiment")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
iso, Gauge32, NotificationType, Integer32, ModuleIdentity, ObjectIdentity, Bits, TimeTicks, Counter32, MibIdentifier, Counter64, IpAddress, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Gauge32", "NotificationType", "Integer32", "ModuleIdentity", "ObjectIdentity", "Bits", "TimeTicks", "Counter32", "MibIdentifier", "Counter64", "IpAddress", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TruthValue")
ciscoIPsecMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 10, 62))
if mibBuilder.loadTexts: ciscoIPsecMIB.setLastUpdated('200008071139Z')
if mibBuilder.loadTexts: ciscoIPsecMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoIPsecMIB.setContactInfo(' Cisco Systems Enterprise Business Management Unit Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-ipsecurity@cisco.com')
if mibBuilder.loadTexts: ciscoIPsecMIB.setDescription("The MIB module for modeling Cisco-specific IPsec attributes Overview of Cisco IPsec MIB MIB description This MIB models the Cisco implementation-specific attributes of a Cisco entity that implements IPsec. This MIB is complementary to the standard IPsec MIB proposed jointly by Tivoli and Cisco. The ciscoIPsec MIB provides the operational information on Cisco's IPsec tunnelling implementation. The following entities are managed: 1) ISAKMP Group: a) ISAKMP global parameters b) ISAKMP Policy Table 2) IPSec Group: a) IPSec Global Parameters b) IPSec Global Traffic Parameters c) Cryptomap Group - Cryptomap Set Table - Cryptomap Table - CryptomapSet Binding Table 3) System Capacity & Capability Group: a) Capacity Parameters b) Capability Parameters 4) Trap Control Group 5) Notifications Group")
class CIPsecLifetime(TextualConvention, Gauge32):
description = 'Value in units of seconds'
status = 'current'
subtypeSpec = Gauge32.subtypeSpec + ValueRangeConstraint(120, 86400)
class CIPsecLifesize(TextualConvention, Gauge32):
description = 'Value in units of kilobytes'
status = 'current'
subtypeSpec = Gauge32.subtypeSpec + ValueRangeConstraint(2560, 536870912)
class CIPsecNumCryptoMaps(TextualConvention, Gauge32):
description = 'Integral units representing count of cryptomaps'
status = 'current'
subtypeSpec = Gauge32.subtypeSpec + ValueRangeConstraint(0, 2147483647)
class CryptomapType(TextualConvention, Integer32):
description = 'The type of a cryptomap entry. Cryptomap is a unit of IOS IPSec policy specification.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))
namedValues = NamedValues(("cryptomapTypeNONE", 0), ("cryptomapTypeMANUAL", 1), ("cryptomapTypeISAKMP", 2), ("cryptomapTypeCET", 3), ("cryptomapTypeDYNAMIC", 4), ("cryptomapTypeDYNAMICDISCOVERY", 5))
class CryptomapSetBindStatus(TextualConvention, Integer32):
description = "The status of the binding of a cryptomap set to the specified interface. The value qhen queried is always 'attached'. When set to 'detached', the cryptomap set if detached from the specified interface. Setting the value to 'attached' will result in SNMP General Error."
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("unknown", 0), ("attached", 1), ("detached", 2))
class IPSIpAddress(TextualConvention, OctetString):
description = 'An IP V4 or V6 Address.'
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), )
class IkeHashAlgo(TextualConvention, Integer32):
description = 'The hash algorithm used in IPsec Phase-1 IKE negotiations.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("none", 1), ("md5", 2), ("sha", 3))
class IkeAuthMethod(TextualConvention, Integer32):
description = 'The authentication method used in IPsec Phase-1 IKE negotiations.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))
namedValues = NamedValues(("none", 1), ("preSharedKey", 2), ("rsaSig", 3), ("rsaEncrypt", 4), ("revPublicKey", 5))
class IkeIdentityType(TextualConvention, Integer32):
description = 'The type of identity used by the local entity to identity itself to the peer with which it performs IPSec Main Mode negotiations. This type decides the content of the Identification payload in the Main Mode of IPSec tunnel setup.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("isakmpIdTypeUNKNOWN", 0), ("isakmpIdTypeADDRESS", 1), ("isakmpIdTypeHOSTNAME", 2))
class DiffHellmanGrp(TextualConvention, Integer32):
description = 'The Diffie Hellman Group used in negotiations.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("none", 1), ("dhGroup1", 2), ("dhGroup2", 3))
class EncryptAlgo(TextualConvention, Integer32):
description = 'The encryption algorithm used in negotiations.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("none", 1), ("des", 2), ("des3", 3))
class TrapStatus(TextualConvention, Integer32):
description = 'The administrative status for sending a TRAP.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("enabled", 1), ("disabled", 2))
ciscoIPsecMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1))
ciscoIPsecMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 2))
ciscoIPsecMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 3))
cipsIsakmpGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1))
cipsIPsecGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2))
cipsIPsecGlobals = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 1))
cipsIPsecStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 2))
cipsCryptomapGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3))
cipsSysCapacityGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 3))
cipsTrapCntlGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4))
cipsIsakmpEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpEnabled.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpEnabled.setDescription('The value of this object is TRUE if ISAKMP has been enabled on the managed entity. Otherise the value of this object is FALSE.')
cipsIsakmpIdentity = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 2), IkeIdentityType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpIdentity.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpIdentity.setDescription('The value of this object is shows the type of identity used by the managed entity in ISAKMP negotiations with another peer.')
cipsIsakmpKeepaliveInterval = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 3600))).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpKeepaliveInterval.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpKeepaliveInterval.setDescription('The value of this object is time interval in seconds between successive ISAKMP keepalive heartbeats issued to the peers to which IKE tunnels have been setup.')
cipsNumIsakmpPolicies = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumIsakmpPolicies.setStatus('current')
if mibBuilder.loadTexts: cipsNumIsakmpPolicies.setDescription('The value of this object is the number of ISAKMP policies that have been configured on the managed entity.')
cipsIsakmpPolicyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5), )
if mibBuilder.loadTexts: cipsIsakmpPolicyTable.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolicyTable.setDescription('The table containing the list of all ISAKMP policy entries configured by the operator.')
cipsIsakmpPolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5, 1), ).setIndexNames((0, "CISCO-IPSEC-MIB", "cipsIsakmpPolPriority"))
if mibBuilder.loadTexts: cipsIsakmpPolicyEntry.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolicyEntry.setDescription('Each entry contains the attributes associated with a single ISAKMP Policy entry.')
cipsIsakmpPolPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: cipsIsakmpPolPriority.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolPriority.setDescription('The priotity of this ISAKMP Policy entry. This is also the index of this table.')
cipsIsakmpPolEncr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5, 1, 2), EncryptAlgo()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpPolEncr.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolEncr.setDescription('The encryption transform specified by this ISAKMP policy specification. The Internet Key Exchange (IKE) tunnels setup using this policy item would use the specified encryption transform to protect the ISAKMP PDUs.')
cipsIsakmpPolHash = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5, 1, 3), IkeHashAlgo()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpPolHash.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolHash.setDescription('The hash transform specified by this ISAKMP policy specification. The IKE tunnels setup using this policy item would use the specified hash transform to protect the ISAKMP PDUs.')
cipsIsakmpPolAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5, 1, 4), IkeAuthMethod()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpPolAuth.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolAuth.setDescription('The peer authentication mthod specified by this ISAKMP policy specification. If this policy entity is selected for negotiation with a peer, the local entity would authenticate the peer using the method specified by this object.')
cipsIsakmpPolGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5, 1, 5), DiffHellmanGrp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpPolGroup.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolGroup.setDescription('This object specifies the Oakley group used for Diffie Hellman exchange in the Main Mode. If this policy item is selected to negotiate Main Mode with an IKE peer, the local entity chooses the group specified by this object to perform Diffie Hellman exchange with the peer.')
cipsIsakmpPolLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 86400))).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsIsakmpPolLifetime.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolLifetime.setDescription('This object specifies the lifetime in seconds of the IKE tunnels generated using this policy specification.')
cipsSALifetime = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 1, 1), CIPsecLifetime()).setUnits('Seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsSALifetime.setStatus('current')
if mibBuilder.loadTexts: cipsSALifetime.setDescription('The default lifetime (in seconds) assigned to an SA as a global policy (maybe overridden in specific cryptomap definitions).')
cipsSALifesize = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 1, 2), CIPsecLifesize()).setUnits('KBytes').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsSALifesize.setStatus('current')
if mibBuilder.loadTexts: cipsSALifesize.setDescription('The default lifesize in KBytes assigned to an SA as a global policy (unless overridden in cryptomap definition)')
cipsNumStaticCryptomapSets = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 1, 3), CIPsecNumCryptoMaps()).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumStaticCryptomapSets.setStatus('current')
if mibBuilder.loadTexts: cipsNumStaticCryptomapSets.setDescription('The number of Cryptomap Sets that are are fully configured. Statically defined cryptomap sets are ones where the operator has fully specified all the parameters required set up IPSec Virtual Private Networks (VPNs).')
cipsNumCETCryptomapSets = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 1, 4), CIPsecNumCryptoMaps()).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumCETCryptomapSets.setStatus('current')
if mibBuilder.loadTexts: cipsNumCETCryptomapSets.setDescription('The number of static Cryptomap Sets that have at least one CET cryptomap element as a member of the set.')
cipsNumDynamicCryptomapSets = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 1, 5), CIPsecNumCryptoMaps()).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumDynamicCryptomapSets.setStatus('current')
if mibBuilder.loadTexts: cipsNumDynamicCryptomapSets.setDescription("The number of dynamic IPSec Policy templates (called 'dynamic cryptomap templates') configured on the managed entity.")
cipsNumTEDCryptomapSets = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 1, 6), CIPsecNumCryptoMaps()).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumTEDCryptomapSets.setStatus('current')
if mibBuilder.loadTexts: cipsNumTEDCryptomapSets.setDescription('The number of static Cryptomap Sets that have at least one dynamic cryptomap template bound to them which has the Tunnel Endpoint Discovery (TED) enabled.')
cipsNumTEDProbesReceived = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 2, 1), Counter32()).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumTEDProbesReceived.setStatus('current')
if mibBuilder.loadTexts: cipsNumTEDProbesReceived.setDescription('The number of TED probes that were received by this managed entity since bootup. Not affected by any CLI operation.')
cipsNumTEDProbesSent = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 2, 2), Counter32()).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumTEDProbesSent.setStatus('current')
if mibBuilder.loadTexts: cipsNumTEDProbesSent.setDescription('The number of TED probes that were dispatched by all the dynamic cryptomaps in this managed entity since bootup. Not affected by any CLI operation.')
cipsNumTEDFailures = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 2, 3), Counter32()).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsNumTEDFailures.setStatus('current')
if mibBuilder.loadTexts: cipsNumTEDFailures.setDescription('The number of TED probes that were dispatched by the local entity and that failed to locate crypto endpoint. Not affected by any CLI operation.')
cipsMaxSAs = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('Integral Units').setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsMaxSAs.setStatus('current')
if mibBuilder.loadTexts: cipsMaxSAs.setDescription('The maximum number of IPsec Security Associations that can be established on this managed entity. If no theoretical limit exists, this returns value 0. Not affected by any CLI operation.')
cips3DesCapable = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 3, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cips3DesCapable.setStatus('current')
if mibBuilder.loadTexts: cips3DesCapable.setDescription('The value of this object is TRUE if the managed entity has the hardware nad software features to support 3DES encryption algorithm. Not affected by any CLI operation.')
cipsStaticCryptomapSetTable = MibTable((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1), )
if mibBuilder.loadTexts: cipsStaticCryptomapSetTable.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetTable.setDescription('The table containing the list of all cryptomap sets that are fully specified and are not wild-carded. The operator may include different types of cryptomaps in such a set - manual, CET, ISAKMP or dynamic.')
cipsStaticCryptomapSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1), ).setIndexNames((0, "CISCO-IPSEC-MIB", "cipsStaticCryptomapSetName"))
if mibBuilder.loadTexts: cipsStaticCryptomapSetEntry.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetEntry.setDescription('Each entry contains the attributes associated with a single static cryptomap set.')
cipsStaticCryptomapSetName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 1), DisplayString())
if mibBuilder.loadTexts: cipsStaticCryptomapSetName.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetName.setDescription('The index of the static cryptomap table. The value of the string is the name string assigned by the operator in defining the cryptomap set.')
cipsStaticCryptomapSetSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapSetSize.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetSize.setDescription('The total number of cryptomap entries contained in this cryptomap set. ')
cipsStaticCryptomapSetNumIsakmp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 3), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumIsakmp.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumIsakmp.setDescription('The number of cryptomaps associated with this cryptomap set that use ISAKMP protocol to do key exchange.')
cipsStaticCryptomapSetNumManual = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 4), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumManual.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumManual.setDescription('The number of cryptomaps associated with this cryptomap set that require the operator to manually setup the keys and SPIs.')
cipsStaticCryptomapSetNumCET = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 5), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumCET.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumCET.setDescription("The number of cryptomaps of type 'ipsec-cisco' associated with this cryptomap set. Such cryptomap elements implement Cisco Encryption Technology based Virtual Private Networks.")
cipsStaticCryptomapSetNumDynamic = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 6), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumDynamic.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumDynamic.setDescription('The number of dynamic cryptomap templates linked to this cryptomap set.')
cipsStaticCryptomapSetNumDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 7), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumDisc.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumDisc.setDescription('The number of dynamic cryptomap templates linked to this cryptomap set that have Tunnel Endpoint Discovery (TED) enabled.')
cipsStaticCryptomapSetNumSAs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 1, 1, 8), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumSAs.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapSetNumSAs.setDescription('The number of and IPsec Security Associations that are active and were setup using this cryptomap. ')
cipsDynamicCryptomapSetTable = MibTable((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 2), )
if mibBuilder.loadTexts: cipsDynamicCryptomapSetTable.setStatus('current')
if mibBuilder.loadTexts: cipsDynamicCryptomapSetTable.setDescription('The table containing the list of all dynamic cryptomaps that use IKE, defined on the managed entity.')
cipsDynamicCryptomapSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 2, 1), ).setIndexNames((0, "CISCO-IPSEC-MIB", "cipsDynamicCryptomapSetName"))
if mibBuilder.loadTexts: cipsDynamicCryptomapSetEntry.setStatus('current')
if mibBuilder.loadTexts: cipsDynamicCryptomapSetEntry.setDescription('Each entry contains the attributes associated with a single dynamic cryptomap template.')
cipsDynamicCryptomapSetName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 2, 1, 1), DisplayString())
if mibBuilder.loadTexts: cipsDynamicCryptomapSetName.setStatus('current')
if mibBuilder.loadTexts: cipsDynamicCryptomapSetName.setDescription('The index of the dynamic cryptomap table. The value of the string is the one assigned by the operator in defining the cryptomap set.')
cipsDynamicCryptomapSetSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 2, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsDynamicCryptomapSetSize.setStatus('current')
if mibBuilder.loadTexts: cipsDynamicCryptomapSetSize.setDescription('The number of cryptomap entries in this cryptomap.')
cipsDynamicCryptomapSetNumAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 2, 1, 3), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsDynamicCryptomapSetNumAssoc.setStatus('current')
if mibBuilder.loadTexts: cipsDynamicCryptomapSetNumAssoc.setDescription('The number of static cryptomap sets with which this dynamic cryptomap is associated. ')
cipsStaticCryptomapTable = MibTable((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3), )
if mibBuilder.loadTexts: cipsStaticCryptomapTable.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapTable.setDescription('The table ilisting the member cryptomaps of the cryptomap sets that are configured on the managed entity.')
cipsStaticCryptomapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1), ).setIndexNames((0, "CISCO-IPSEC-MIB", "cipsStaticCryptomapSetName"), (0, "CISCO-IPSEC-MIB", "cipsStaticCryptomapPriority"))
if mibBuilder.loadTexts: cipsStaticCryptomapEntry.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapEntry.setDescription('Each entry contains the attributes associated with a single static (fully specified) cryptomap entry. This table does not include the members of dynamic cryptomap sets that may be linked with the parent static cryptomap set.')
cipsStaticCryptomapPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: cipsStaticCryptomapPriority.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapPriority.setDescription('The priority of the cryptomap entry in the cryptomap set. This is the second index component of this table.')
cipsStaticCryptomapType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 2), CryptomapType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapType.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapType.setDescription('The type of the cryptomap entry. This can be an ISAKMP cryptomap, CET or manual. Dynamic cryptomaps are not counted in this table.')
cipsStaticCryptomapDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapDescr.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapDescr.setDescription('The description string entered by the operatoir while creating this cryptomap. The string generally identifies a description and the purpose of this policy.')
cipsStaticCryptomapPeer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 4), IPSIpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapPeer.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapPeer.setDescription('The IP address of the current peer associated with this IPSec policy item. Traffic that is protected by this cryptomap is protected by a tunnel that terminates at the device whose IP address is specified by this object.')
cipsStaticCryptomapNumPeers = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapNumPeers.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapNumPeers.setDescription("The number of peers associated with this cryptomap entry. The peers other than the one identified by 'cipsStaticCryptomapPeer' are backup peers. Manual cryptomaps may have only one peer.")
cipsStaticCryptomapPfs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 6), DiffHellmanGrp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapPfs.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapPfs.setDescription('This object identifies if the tunnels instantiated due to this policy item should use Perfect Forward Secrecy (PFS) and if so, what group of Oakley they should use.')
cipsStaticCryptomapLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(120, 86400), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapLifetime.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapLifetime.setDescription('This object identifies the lifetime of the IPSec Security Associations (SA) created using this IPSec policy entry. If this value is zero, the lifetime assumes the value specified by the global lifetime parameter.')
cipsStaticCryptomapLifesize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2560, 536870912), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapLifesize.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapLifesize.setDescription('This object identifies the lifesize (maximum traffic in bytes that may be carried) of the IPSec SAs created using this IPSec policy entry. If this value is zero, the lifetime assumes the value specified by the global lifesize parameter.')
cipsStaticCryptomapLevelHost = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 3, 1, 9), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsStaticCryptomapLevelHost.setStatus('current')
if mibBuilder.loadTexts: cipsStaticCryptomapLevelHost.setDescription('This object identifies the granularity of the IPSec SAs created using this IPSec policy entry. If this value is TRUE, distinct SA bundles are created for distinct hosts at the end of the application traffic.')
cipsCryptomapSetIfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 4), )
if mibBuilder.loadTexts: cipsCryptomapSetIfTable.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapSetIfTable.setDescription('The table lists the binding of cryptomap sets to the interfaces of the managed entity.')
cipsCryptomapSetIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-IPSEC-MIB", "cipsStaticCryptomapSetName"))
if mibBuilder.loadTexts: cipsCryptomapSetIfEntry.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapSetIfEntry.setDescription('Each entry contains the record of the association between an interface and a cryptomap set (static) that is defined on the managed entity. Note that the cryptomap set identified in this binding must static. Dynamic cryptomaps cannot be bound to interfaces.')
cipsCryptomapSetIfVirtual = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 4, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cipsCryptomapSetIfVirtual.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapSetIfVirtual.setDescription('The value of this object identifies if the interface to which the cryptomap set is attached is a tunnel (such as a GRE or PPTP tunnel).')
cipsCryptomapSetIfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 2, 3, 4, 1, 2), CryptomapSetBindStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCryptomapSetIfStatus.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapSetIfStatus.setDescription("This object identifies the status of the binding of the specified cryptomap set with the specified interface. The value when queried is always 'attached'. When set to 'detached', the cryptomap set if detached from the specified interface. The effect of this is same as the CLI command config-if# no crypto map cryptomapSetName Setting the value to 'attached' will result in SNMP General Error.")
cipsCntlIsakmpPolicyAdded = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4, 1), TrapStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCntlIsakmpPolicyAdded.setStatus('current')
if mibBuilder.loadTexts: cipsCntlIsakmpPolicyAdded.setDescription('This object defines the administrative state of sending the IOS IPsec ISAKMP Policy Add trap.')
cipsCntlIsakmpPolicyDeleted = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4, 2), TrapStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCntlIsakmpPolicyDeleted.setStatus('current')
if mibBuilder.loadTexts: cipsCntlIsakmpPolicyDeleted.setDescription('This object defines the administrative state of sending the IOS IPsec ISAKMP Policy Delete trap.')
cipsCntlCryptomapAdded = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4, 3), TrapStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCntlCryptomapAdded.setStatus('current')
if mibBuilder.loadTexts: cipsCntlCryptomapAdded.setDescription('This object defines the administrative state of sending the IOS IPsec Cryptomap Add trap.')
cipsCntlCryptomapDeleted = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4, 4), TrapStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCntlCryptomapDeleted.setStatus('current')
if mibBuilder.loadTexts: cipsCntlCryptomapDeleted.setDescription('This object defines the administrative state of sending the IOS IPsec Cryptomap Delete trap.')
cipsCntlCryptomapSetAttached = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4, 5), TrapStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCntlCryptomapSetAttached.setStatus('current')
if mibBuilder.loadTexts: cipsCntlCryptomapSetAttached.setDescription('This object defines the administrative state of sending the IOS IPsec trap that is issued when a cryptomap set is attached to an interface.')
cipsCntlCryptomapSetDetached = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4, 6), TrapStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCntlCryptomapSetDetached.setStatus('current')
if mibBuilder.loadTexts: cipsCntlCryptomapSetDetached.setDescription('This object defines the administrative state of sending the IOS IPsec trap that is issued when a cryptomap set is detached from an interface. to which it was earlier bound.')
cipsCntlTooManySAs = MibScalar((1, 3, 6, 1, 4, 1, 9, 10, 62, 1, 4, 7), TrapStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipsCntlTooManySAs.setStatus('current')
if mibBuilder.loadTexts: cipsCntlTooManySAs.setDescription('This object defines the administrative state of sending the IOS IPsec trap that is issued when the number of SAs crosses the maximum number of SAs that may be supported on the managed entity.')
cipsMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0))
cipsIsakmpPolicyAdded = NotificationType((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0, 1)).setObjects(("CISCO-IPSEC-MIB", "cipsNumIsakmpPolicies"))
if mibBuilder.loadTexts: cipsIsakmpPolicyAdded.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolicyAdded.setDescription('This trap is generated when a new ISAKMP policy element is defined on the managed entity. The context of the event includes the updated number of ISAKMP policy elements currently available.')
cipsIsakmpPolicyDeleted = NotificationType((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0, 2)).setObjects(("CISCO-IPSEC-MIB", "cipsNumIsakmpPolicies"))
if mibBuilder.loadTexts: cipsIsakmpPolicyDeleted.setStatus('current')
if mibBuilder.loadTexts: cipsIsakmpPolicyDeleted.setDescription('This trap is generated when an existing ISAKMP policy element is deleted on the managed entity. The context of the event includes the updated number of ISAKMP policy elements currently available.')
cipsCryptomapAdded = NotificationType((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0, 3)).setObjects(("CISCO-IPSEC-MIB", "cipsStaticCryptomapType"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetSize"))
if mibBuilder.loadTexts: cipsCryptomapAdded.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapAdded.setDescription('This trap is generated when a new cryptomap is added to the specified cryptomap set.')
cipsCryptomapDeleted = NotificationType((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0, 4)).setObjects(("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetSize"))
if mibBuilder.loadTexts: cipsCryptomapDeleted.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapDeleted.setDescription('This trap is generated when a cryptomap is removed from the specified cryptomap set.')
cipsCryptomapSetAttached = NotificationType((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0, 5)).setObjects(("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetSize"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumIsakmp"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumDynamic"))
if mibBuilder.loadTexts: cipsCryptomapSetAttached.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapSetAttached.setDescription('A cryptomap set must be attached to an interface of the device in order for it to be operational. This trap is generated when the cryptomap set attached to an active interface of the managed entity. The context of the notification includes: Size of the attached cryptomap set, Number of ISAKMP cryptomaps in the set and Number of Dynamic cryptomaps in the set.')
cipsCryptomapSetDetached = NotificationType((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0, 6)).setObjects(("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetSize"))
if mibBuilder.loadTexts: cipsCryptomapSetDetached.setStatus('current')
if mibBuilder.loadTexts: cipsCryptomapSetDetached.setDescription('This trap is generated when a cryptomap set is detached from an interafce to which it was bound earlier. The context of the event identifies the size of the cryptomap set.')
cipsTooManySAs = NotificationType((1, 3, 6, 1, 4, 1, 9, 10, 62, 2, 0, 7)).setObjects(("CISCO-IPSEC-MIB", "cipsMaxSAs"))
if mibBuilder.loadTexts: cipsTooManySAs.setStatus('current')
if mibBuilder.loadTexts: cipsTooManySAs.setDescription('This trap is generated when a new SA is attempted to be setup while the number of currently active SAs equals the maximum configurable. The variables are: cipsMaxSAs')
cipsMIBConformances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 1))
cipsMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2))
cipsMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 1, 1)).setObjects(("CISCO-IPSEC-MIB", "cipsMIBConfIsakmpGroup"), ("CISCO-IPSEC-MIB", "cipsMIBConfIPSecGlobalsGroup"), ("CISCO-IPSEC-MIB", "cipsMIBConfCapacityGroup"), ("CISCO-IPSEC-MIB", "cipsMIBStaticCryptomapGroup"), ("CISCO-IPSEC-MIB", "cipsMIBMandatoryNotifCntlGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBCompliance = cipsMIBCompliance.setStatus('current')
if mibBuilder.loadTexts: cipsMIBCompliance.setDescription('The compliance statement for entities which implement the Cisco IPsec MIB')
cipsMIBConfIsakmpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2, 1)).setObjects(("CISCO-IPSEC-MIB", "cipsIsakmpEnabled"), ("CISCO-IPSEC-MIB", "cipsIsakmpIdentity"), ("CISCO-IPSEC-MIB", "cipsIsakmpKeepaliveInterval"), ("CISCO-IPSEC-MIB", "cipsNumIsakmpPolicies"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBConfIsakmpGroup = cipsMIBConfIsakmpGroup.setStatus('current')
if mibBuilder.loadTexts: cipsMIBConfIsakmpGroup.setDescription('A collection of objects providing Global ISAKMP policy monitoring capability to a Cisco IPsec capable VPN router.')
cipsMIBConfIPSecGlobalsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2, 2)).setObjects(("CISCO-IPSEC-MIB", "cipsSALifetime"), ("CISCO-IPSEC-MIB", "cipsSALifesize"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBConfIPSecGlobalsGroup = cipsMIBConfIPSecGlobalsGroup.setStatus('current')
if mibBuilder.loadTexts: cipsMIBConfIPSecGlobalsGroup.setDescription('A collection of objects providing Global IPSec policy monitoring capability to a Cisco IPsec capable VPN router.')
cipsMIBConfCapacityGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2, 3)).setObjects(("CISCO-IPSEC-MIB", "cipsMaxSAs"), ("CISCO-IPSEC-MIB", "cips3DesCapable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBConfCapacityGroup = cipsMIBConfCapacityGroup.setStatus('current')
if mibBuilder.loadTexts: cipsMIBConfCapacityGroup.setDescription('A collection of objects providing IPsec System Capacity monitoring capability to a Cisco IPsec capable VPN router.')
cipsMIBStaticCryptomapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2, 4)).setObjects(("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetSize"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumIsakmp"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumCET"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumSAs"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBStaticCryptomapGroup = cipsMIBStaticCryptomapGroup.setStatus('current')
if mibBuilder.loadTexts: cipsMIBStaticCryptomapGroup.setDescription('A collection of objects instrumenting the properties of the Static (fully specified) Cryptomap Sets on an IPsec-capable IOS router.')
cipsMIBManualCryptomapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2, 5)).setObjects(("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumManual"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBManualCryptomapGroup = cipsMIBManualCryptomapGroup.setStatus('current')
if mibBuilder.loadTexts: cipsMIBManualCryptomapGroup.setDescription('A collection of objects instrumenting the properties of the Manual Cryptomap entries on a Cisco IPsec capable IOS router.')
cipsMIBDynamicCryptomapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2, 6)).setObjects(("CISCO-IPSEC-MIB", "cipsNumTEDProbesReceived"), ("CISCO-IPSEC-MIB", "cipsNumTEDProbesSent"), ("CISCO-IPSEC-MIB", "cipsNumTEDFailures"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumDynamic"), ("CISCO-IPSEC-MIB", "cipsStaticCryptomapSetNumDisc"), ("CISCO-IPSEC-MIB", "cipsNumTEDCryptomapSets"), ("CISCO-IPSEC-MIB", "cipsDynamicCryptomapSetSize"), ("CISCO-IPSEC-MIB", "cipsDynamicCryptomapSetNumAssoc"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBDynamicCryptomapGroup = cipsMIBDynamicCryptomapGroup.setStatus('current')
if mibBuilder.loadTexts: cipsMIBDynamicCryptomapGroup.setDescription('A collection of objects instrumenting the properties of the Dynamic Cryptomap group on a Cisco IPsec capable IOS router.')
cipsMIBMandatoryNotifCntlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 62, 3, 2, 7)).setObjects(("CISCO-IPSEC-MIB", "cipsCntlIsakmpPolicyAdded"), ("CISCO-IPSEC-MIB", "cipsCntlIsakmpPolicyDeleted"), ("CISCO-IPSEC-MIB", "cipsCntlCryptomapAdded"), ("CISCO-IPSEC-MIB", "cipsCntlCryptomapDeleted"), ("CISCO-IPSEC-MIB", "cipsCntlCryptomapSetAttached"), ("CISCO-IPSEC-MIB", "cipsCntlCryptomapSetDetached"), ("CISCO-IPSEC-MIB", "cipsCntlTooManySAs"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cipsMIBMandatoryNotifCntlGroup = cipsMIBMandatoryNotifCntlGroup.setStatus('current')
if mibBuilder.loadTexts: cipsMIBMandatoryNotifCntlGroup.setDescription('A collection of objects providing IPsec Notification capability to a IPsec-capable IOS router. It is mandatory to implement this set of objects pertaining to IOS notifications about IPSec activity.')
mibBuilder.exportSymbols("CISCO-IPSEC-MIB", cipsIPsecGlobals=cipsIPsecGlobals, cipsCryptomapSetIfVirtual=cipsCryptomapSetIfVirtual, cipsStaticCryptomapSetNumManual=cipsStaticCryptomapSetNumManual, cipsStaticCryptomapDescr=cipsStaticCryptomapDescr, cipsIsakmpGroup=cipsIsakmpGroup, cipsDynamicCryptomapSetSize=cipsDynamicCryptomapSetSize, cipsCryptomapAdded=cipsCryptomapAdded, cipsTrapCntlGroup=cipsTrapCntlGroup, cipsCryptomapSetIfEntry=cipsCryptomapSetIfEntry, cipsMIBConfIPSecGlobalsGroup=cipsMIBConfIPSecGlobalsGroup, cipsStaticCryptomapSetNumIsakmp=cipsStaticCryptomapSetNumIsakmp, cipsMIBMandatoryNotifCntlGroup=cipsMIBMandatoryNotifCntlGroup, cipsNumTEDFailures=cipsNumTEDFailures, ciscoIPsecMIB=ciscoIPsecMIB, cipsStaticCryptomapPfs=cipsStaticCryptomapPfs, cipsStaticCryptomapSetSize=cipsStaticCryptomapSetSize, CryptomapSetBindStatus=CryptomapSetBindStatus, ciscoIPsecMIBNotificationPrefix=ciscoIPsecMIBNotificationPrefix, cipsNumCETCryptomapSets=cipsNumCETCryptomapSets, cipsNumStaticCryptomapSets=cipsNumStaticCryptomapSets, cipsIsakmpPolPriority=cipsIsakmpPolPriority, IkeHashAlgo=IkeHashAlgo, cipsCryptomapSetAttached=cipsCryptomapSetAttached, cipsMIBDynamicCryptomapGroup=cipsMIBDynamicCryptomapGroup, cips3DesCapable=cips3DesCapable, cipsIsakmpPolicyTable=cipsIsakmpPolicyTable, cipsStaticCryptomapPeer=cipsStaticCryptomapPeer, cipsSysCapacityGroup=cipsSysCapacityGroup, cipsStaticCryptomapLevelHost=cipsStaticCryptomapLevelHost, cipsIsakmpKeepaliveInterval=cipsIsakmpKeepaliveInterval, cipsMIBCompliance=cipsMIBCompliance, cipsNumDynamicCryptomapSets=cipsNumDynamicCryptomapSets, cipsIsakmpPolicyEntry=cipsIsakmpPolicyEntry, cipsStaticCryptomapType=cipsStaticCryptomapType, cipsDynamicCryptomapSetEntry=cipsDynamicCryptomapSetEntry, cipsIsakmpPolEncr=cipsIsakmpPolEncr, ciscoIPsecMIBObjects=ciscoIPsecMIBObjects, cipsMIBStaticCryptomapGroup=cipsMIBStaticCryptomapGroup, cipsStaticCryptomapSetName=cipsStaticCryptomapSetName, cipsNumTEDProbesSent=cipsNumTEDProbesSent, cipsMIBConfCapacityGroup=cipsMIBConfCapacityGroup, cipsCntlTooManySAs=cipsCntlTooManySAs, cipsIsakmpPolAuth=cipsIsakmpPolAuth, IPSIpAddress=IPSIpAddress, ciscoIPsecMIBConformance=ciscoIPsecMIBConformance, cipsMaxSAs=cipsMaxSAs, cipsDynamicCryptomapSetNumAssoc=cipsDynamicCryptomapSetNumAssoc, cipsIsakmpPolHash=cipsIsakmpPolHash, cipsStaticCryptomapTable=cipsStaticCryptomapTable, CryptomapType=CryptomapType, cipsMIBConformances=cipsMIBConformances, cipsStaticCryptomapNumPeers=cipsStaticCryptomapNumPeers, cipsNumTEDProbesReceived=cipsNumTEDProbesReceived, cipsCryptomapDeleted=cipsCryptomapDeleted, cipsStaticCryptomapSetNumSAs=cipsStaticCryptomapSetNumSAs, cipsStaticCryptomapSetNumDynamic=cipsStaticCryptomapSetNumDynamic, cipsStaticCryptomapLifesize=cipsStaticCryptomapLifesize, cipsCntlCryptomapAdded=cipsCntlCryptomapAdded, cipsIsakmpPolicyAdded=cipsIsakmpPolicyAdded, IkeIdentityType=IkeIdentityType, cipsIsakmpIdentity=cipsIsakmpIdentity, cipsCryptomapSetIfTable=cipsCryptomapSetIfTable, cipsDynamicCryptomapSetTable=cipsDynamicCryptomapSetTable, PYSNMP_MODULE_ID=ciscoIPsecMIB, cipsMIBManualCryptomapGroup=cipsMIBManualCryptomapGroup, cipsMIBNotifications=cipsMIBNotifications, cipsIsakmpEnabled=cipsIsakmpEnabled, cipsTooManySAs=cipsTooManySAs, cipsStaticCryptomapSetEntry=cipsStaticCryptomapSetEntry, cipsCntlCryptomapSetAttached=cipsCntlCryptomapSetAttached, cipsMIBConfIsakmpGroup=cipsMIBConfIsakmpGroup, CIPsecLifesize=CIPsecLifesize, cipsDynamicCryptomapSetName=cipsDynamicCryptomapSetName, cipsCryptomapGroup=cipsCryptomapGroup, cipsCntlCryptomapDeleted=cipsCntlCryptomapDeleted, TrapStatus=TrapStatus, cipsNumIsakmpPolicies=cipsNumIsakmpPolicies, cipsIsakmpPolicyDeleted=cipsIsakmpPolicyDeleted, cipsStaticCryptomapLifetime=cipsStaticCryptomapLifetime, cipsCntlCryptomapSetDetached=cipsCntlCryptomapSetDetached, EncryptAlgo=EncryptAlgo, cipsIPsecStatistics=cipsIPsecStatistics, cipsCntlIsakmpPolicyAdded=cipsCntlIsakmpPolicyAdded, IkeAuthMethod=IkeAuthMethod, cipsSALifetime=cipsSALifetime, cipsStaticCryptomapSetNumCET=cipsStaticCryptomapSetNumCET, cipsStaticCryptomapSetTable=cipsStaticCryptomapSetTable, cipsCntlIsakmpPolicyDeleted=cipsCntlIsakmpPolicyDeleted, cipsIsakmpPolLifetime=cipsIsakmpPolLifetime, cipsStaticCryptomapEntry=cipsStaticCryptomapEntry, DiffHellmanGrp=DiffHellmanGrp, cipsCryptomapSetDetached=cipsCryptomapSetDetached, cipsStaticCryptomapSetNumDisc=cipsStaticCryptomapSetNumDisc, CIPsecNumCryptoMaps=CIPsecNumCryptoMaps, cipsNumTEDCryptomapSets=cipsNumTEDCryptomapSets, cipsSALifesize=cipsSALifesize, cipsCryptomapSetIfStatus=cipsCryptomapSetIfStatus, CIPsecLifetime=CIPsecLifetime, cipsStaticCryptomapPriority=cipsStaticCryptomapPriority, cipsIsakmpPolGroup=cipsIsakmpPolGroup, cipsIPsecGroup=cipsIPsecGroup, cipsMIBGroups=cipsMIBGroups)
| 138.127976 | 4,764 | 0.791795 | 5,425 | 46,411 | 6.773456 | 0.118341 | 0.047679 | 0.083438 | 0.009688 | 0.448348 | 0.322756 | 0.289882 | 0.263158 | 0.209683 | 0.184319 | 0 | 0.042036 | 0.102476 | 46,411 | 335 | 4,765 | 138.540299 | 0.840115 | 0.006981 | 0 | 0.079114 | 0 | 0.155063 | 0.365033 | 0.025435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025316 | 0 | 0.202532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4d2df4ae765878f5103ba13065decd6d635cd09 | 986 | py | Python | ODIN_II/regression_test/script/odin_script_util.py | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 31 | 2016-02-15T02:57:28.000Z | 2021-06-02T10:40:25.000Z | ODIN_II/regression_test/script/odin_script_util.py | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 12 | 2015-06-26T19:47:14.000Z | 2015-07-06T17:29:29.000Z | ODIN_II/regression_test/script/odin_script_util.py | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 6 | 2017-02-08T21:51:51.000Z | 2021-06-02T10:40:40.000Z | #! /usr/bin/python
import re
import string
def isType(filename, filetype):
"""Return true if the filename as the filetype extension"""
return re.search("\." + filetype + "$", filename) != None
def isBlif(file):
"""Return true if the file has the .blif extension."""
return re.search("\.blif$", file) != None
def isBlifMV(file):
"""Return true if the file has the .mv extension."""
return re.search("\.mv$", file) != None
def isVerilog(file):
"""Return true if the file has the .v extension."""
return re.search("\.v$", file) != None
def isXML(file):
"""Return true if the file has the .xml extension."""
return re.search("\.xml$", file) != None
def isSoft(file):
return re.search("soft\.blif$", file) != None
def trimExtensions(filename):
"""return the string up until the first period."""
return filename[0:string.find(filename, "."):1]
def trimDotV(filename):
"""Trim the .v from a file name entry."""
return filename[0:string.find(filename, ".v"):1]
| 27.388889 | 60 | 0.663286 | 145 | 986 | 4.510345 | 0.303448 | 0.073395 | 0.12844 | 0.114679 | 0.278287 | 0.278287 | 0.17737 | 0.17737 | 0 | 0 | 0 | 0.004825 | 0.159229 | 986 | 36 | 61 | 27.388889 | 0.784077 | 0.346856 | 0 | 0 | 0 | 0 | 0.064039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.055556 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4d56e5f914ef575e70619b567576d5ca3830306 | 348 | py | Python | lego/apps/gallery/filters.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 45 | 2017-10-24T12:09:06.000Z | 2021-11-03T21:21:03.000Z | lego/apps/gallery/filters.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 980 | 2017-10-24T12:29:07.000Z | 2022-03-31T04:04:31.000Z | lego/apps/gallery/filters.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 23 | 2018-04-11T16:34:22.000Z | 2021-11-23T12:28:30.000Z | from django_filters import DateFilter, FilterSet
from lego.apps.gallery.models import Gallery
class GalleryFilterSet(FilterSet):
date_after = DateFilter("taken_at", lookup_expr="gte")
date_before = DateFilter("taken_at", lookup_expr="lte")
class Meta:
model = Gallery
fields = ("date_after", "date_before", "event")
| 26.769231 | 59 | 0.715517 | 42 | 348 | 5.714286 | 0.595238 | 0.075 | 0.141667 | 0.191667 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175287 | 348 | 12 | 60 | 29 | 0.836237 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4da6651eaa60ead25c4d44b2f69a592b2f35122 | 10,794 | py | Python | tests/model/test_game.py | jonashellmann/informaticup21-team-chillow | f2e519af0a5d9a9368d62556703cfb1066ebb58f | [
"MIT"
] | 3 | 2021-01-17T23:32:07.000Z | 2022-01-30T14:49:16.000Z | tests/model/test_game.py | jonashellmann/informaticup21-team-chillow | f2e519af0a5d9a9368d62556703cfb1066ebb58f | [
"MIT"
] | 2 | 2021-01-17T13:37:56.000Z | 2021-04-14T12:28:49.000Z | tests/model/test_game.py | jonashellmann/informaticup21-team-chillow | f2e519af0a5d9a9368d62556703cfb1066ebb58f | [
"MIT"
] | 2 | 2021-04-02T14:53:38.000Z | 2021-04-20T11:10:17.000Z | import unittest
from datetime import datetime, timezone
import tests
from chillow.model.cell import Cell
from chillow.model.direction import Direction
from chillow.model.game import Game
from chillow.model.player import Player
from chillow.exceptions import WrongGameWidthException, WrongGameHeightException, OwnPlayerMissingException, \
PlayerPositionException, PlayerWithGivenIdNotAvailableException
from chillow.service.data_loader import JSONDataLoader
class GameTest(unittest.TestCase):
def test_examines_your_player_after_creation(self):
player1 = Player(1, 0, 1, Direction.up, 0, True, "Name 1")
player2 = Player(2, 1, 0, Direction.up, 0, True, "Name 2")
player3 = Player(3, 0, 0, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [[Cell([player3]), Cell([player2])], [Cell([player1]), Cell()]]
game = Game(2, 2, cells, players, 2, True, datetime.now())
self.assertEqual(game.you, player2)
def test_raise_exception_on_non_existing_own_player(self):
player1 = Player(1, 0, 1, Direction.up, 0, True, "Name 1")
player3 = Player(3, 0, 0, Direction.up, 0, True, "Name 3")
players = [player1, player3]
cells = [[Cell([player3]), Cell([])], [Cell([player1]), Cell()]]
with self.assertRaises(OwnPlayerMissingException):
Game(2, 2, cells, players, 2, True, datetime.now())
def test_raise_exception_on_wrong_player_position(self):
player1 = Player(1, 1, 1, Direction.up, 0, True, "Name 1")
player2 = Player(2, 0, 0, Direction.up, 0, True, "Name 2")
player3 = Player(3, 0, 1, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [[Cell([player2]), Cell([player3])], [Cell(), Cell([player1])]]
with self.assertRaises(PlayerPositionException):
Game(2, 2, cells, players, 2, True, datetime.now())
def test_dont_raise_exception_on_wrong_inactive_player_position(self):
player1 = Player(1, 1, 1, Direction.up, 0, False, "Name 1")
player2 = Player(2, 1, 0, Direction.up, 0, True, "Name 2")
player3 = Player(3, 0, 1, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [[Cell([]), Cell([player2])], [Cell([player3]), Cell([player3])]]
game = Game(2, 2, cells, players, 2, True, datetime.now())
self.assertEqual(game.you, player2)
def test_raise_exception_on_wrong_width(self):
cells = [
[
Cell()
],
[
Cell(), Cell()
]
]
with self.assertRaises(WrongGameWidthException):
Game(2, 2, cells, [], 0, True, datetime.now())
def test_raise_exception_on_wrong_height(self):
cells = [
[
Cell(), Cell()
]
]
with self.assertRaises(WrongGameHeightException):
Game(2, 2, cells, [], 0, True, datetime.now())
def test_find_winner_in_ended_game(self):
player1 = Player(1, 0, 0, Direction.up, 0, False, "Name")
player2 = Player(1, 1, 0, Direction.up, 0, True, "Name")
cells = [[Cell([player1]), Cell([player2])]]
game = Game(2, 1, cells, [player1, player2], 1, False, datetime.now())
result = game.get_winner()
self.assertEqual(player2, result)
def test_raise_exception_for_winner_in_running_game(self):
player = Player(1, 0, 0, Direction.up, 0, True, "Name")
cells = [[Cell([player]), Cell()]]
game = Game(2, 1, cells, [player], 1, True, datetime.now())
with self.assertRaises(Exception):
game.get_winner()
def test_return_no_winner_in_ended_game(self):
player1 = Player(1, 0, 0, Direction.up, 0, False, "Name")
player2 = Player(1, 1, 0, Direction.up, 0, False, "Name")
cells = [[Cell([player1]), Cell([player2])]]
game = Game(2, 1, cells, [player1, player2], 1, False, datetime.now())
result = game.get_winner()
self.assertEqual(None, result)
def test_player_with_id_should_be_returned(self):
player1 = Player(1, 0, 0, Direction.up, 0, True, "Name")
player2 = Player(2, 1, 0, Direction.up, 0, True, "Name")
cells = [[Cell([player1]), Cell([player2])]]
game = Game(2, 1, cells, [player1, player2], 1, True, datetime.now())
self.assertEqual(player1, game.get_player_by_id(1))
def test_raise_exception_when_player_id_invalid(self):
player1 = Player(1, 1, 0, Direction.up, 0, True, "Name")
player2 = Player(2, 0, 0, Direction.up, 0, True, "Name")
cells = [[Cell([player2]), Cell([player1])]]
game = Game(2, 1, cells, [player1, player2], 1, True, datetime.now())
with self.assertRaises(PlayerWithGivenIdNotAvailableException):
game.get_player_by_id(100)
def test_return_all_other_players(self):
player1 = Player(1, 1, 1, Direction.up, 0, True, "Name 1")
player2 = Player(2, 1, 0, Direction.up, 0, True, "Name 2")
player3 = Player(3, 0, 0, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [[Cell([player3]), Cell([player2])], [Cell([]), Cell([player1])]]
game = Game(2, 2, cells, players, 2, True, datetime.now())
result = game.get_other_player_ids(player2)
self.assertEqual([1, 3], result)
def test_return_all_other_active_players(self):
player1 = Player(1, 1, 1, Direction.up, 0, True, "Name 1")
player2 = Player(2, 1, 0, Direction.up, 0, False, "Name 2")
player3 = Player(3, 0, 0, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [[Cell([player3]), Cell([player2])], [Cell([]), Cell([player1])]]
game = Game(2, 2, cells, players, 1, True, datetime.now())
result = game.get_other_player_ids(player1, check_active=True)
self.assertEqual([3], result)
def test_return_all_players_except_one_within_distance_1(self):
player1 = Player(1, 3, 3, Direction.up, 0, True, "Name 1")
player2 = Player(2, 1, 3, Direction.up, 0, True, "Name 2")
player3 = Player(3, 0, 0, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [
[Cell([player3]), Cell(), Cell(), Cell(), Cell()],
[Cell(), Cell(), Cell(), Cell(), Cell()],
[Cell(), Cell(), Cell(), Cell(), Cell()],
[Cell(), Cell([player2]), Cell(), Cell([player1]), Cell()],
[Cell(), Cell(), Cell(), Cell(), Cell()]
]
game = Game(5, 5, cells, players, 1, True, datetime.now())
result = game.get_other_player_ids(player1, 2)
self.assertEqual([2], result)
def test_return_all_players_except_one_within_distance_2(self):
player1 = Player(1, 4, 4, Direction.up, 0, True, "Name 1")
player2 = Player(2, 2, 3, Direction.up, 0, True, "Name 2")
player3 = Player(3, 1, 4, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [
[Cell(), Cell(), Cell(), Cell(), Cell()],
[Cell(), Cell(), Cell(), Cell(), Cell()],
[Cell(), Cell(), Cell(), Cell(), Cell()],
[Cell(), Cell(), Cell([player2]), Cell(), Cell()],
[Cell(), Cell([player3]), Cell([player2]), Cell(), Cell([player1])]
]
game = Game(5, 5, cells, players, 1, True, datetime.now())
result = game.get_other_player_ids(player1, 3)
self.assertEqual([2], result)
def test_return_no_player_who_is_not_reachable(self):
player1 = Player(1, 4, 4, Direction.up, 0, True, "Name 1")
player2 = Player(2, 2, 3, Direction.up, 0, True, "Name 2")
player3 = Player(3, 1, 4, Direction.up, 0, True, "Name 3")
players = [player1, player2, player3]
cells = [
[Cell(), Cell(), Cell([player2]), Cell(), Cell()],
[Cell(), Cell(), Cell([player2]), Cell(), Cell()],
[Cell(), Cell(), Cell([player2]), Cell(), Cell()],
[Cell(), Cell(), Cell([player2]), Cell(), Cell()],
[Cell(), Cell([player3]), Cell([player2]), Cell(), Cell([player1])]
]
game = Game(5, 5, cells, players, 1, True, datetime.now())
result = game.get_other_player_ids(player1, 3)
self.assertEqual([2], result)
def test_translate_cell_matrix_to_pathfinding_matrix_should_be_correct(self):
player1 = Player(1, 0, 0, Direction.up, 1, True, "")
player2 = Player(2, 0, 1, Direction.down, 3, True, "")
players = [player1, player2]
cells = [[Cell([player1]), Cell()],
[Cell([player2]), Cell()],
[Cell(), Cell()]]
game = Game(2, 3, cells, players, 2, True, datetime.now())
expected_matrix = [[0, 1],
[0, 1],
[1, 1]]
matrix = game.translate_cell_matrix_to_pathfinding_matrix()
self.assertEqual(matrix, expected_matrix)
def test_copying_a_game_should_return_same_game_but_different_identity(self):
player1 = Player(1, 1, 1, Direction.up, 0, True, "Name")
player2 = Player(2, 1, 0, Direction.up, 0, True, "Name2")
player3 = Player(3, 0, 0, Direction.up, 0, True, "Name3")
players = [player1, player2, player3]
cells = [[Cell([player3]), Cell([player2])], [Cell([]), Cell([player1])]]
game = Game(2, 2, cells, players, 2, True, datetime.now())
result = game.copy()
self.assertEqual(game, result)
self.assertNotEqual(id(game), id(result))
def test_normalize_game_deadline_1(self):
server_time = datetime(2020, 11, 20, 10, 33, 11, 0, timezone.utc)
own_time = datetime(2020, 11, 20, 10, 33, 12, 941748, timezone.utc)
game = JSONDataLoader().load(tests.read_test_file("model/game_1.json"))
game.deadline = datetime(2020, 11, 20, 10, 33, 18, 0, timezone.utc)
expected = datetime(2020, 11, 20, 10, 33, 19, 941748, timezone.utc)
game.normalize_deadline(server_time, own_time)
self.assertEqual(expected, game.deadline)
def test_normalize_game_deadline_2(self):
server_time = datetime(2020, 11, 20, 10, 33, 12, 941748, timezone.utc)
own_time = datetime(2020, 11, 20, 10, 33, 11, 0, timezone.utc)
game = JSONDataLoader().load(tests.read_test_file("model/game_1.json"))
game.deadline = datetime(2020, 11, 20, 10, 33, 18, 941748, timezone.utc)
expected = datetime(2020, 11, 20, 10, 33, 17, 0, timezone.utc)
game.normalize_deadline(server_time, own_time)
self.assertEqual(expected, game.deadline)
| 42.496063 | 110 | 0.592459 | 1,373 | 10,794 | 4.530954 | 0.09614 | 0.09259 | 0.096448 | 0.100305 | 0.776724 | 0.727536 | 0.692815 | 0.678669 | 0.673686 | 0.627873 | 0 | 0.066272 | 0.247916 | 10,794 | 253 | 111 | 42.664032 | 0.700049 | 0 | 0 | 0.454082 | 0 | 0 | 0.022235 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.102041 | false | 0 | 0.045918 | 0 | 0.153061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4dc51ef2eac35e3af42e89018e5bc644a8ca35f | 230 | py | Python | settings/urls.py | riggedCoinflip/mydjango | 9f30effc0dccd95916f59a3b65d7e02bdd2827b5 | [
"MIT"
] | null | null | null | settings/urls.py | riggedCoinflip/mydjango | 9f30effc0dccd95916f59a3b65d7e02bdd2827b5 | [
"MIT"
] | 1 | 2021-02-26T02:13:35.000Z | 2021-02-26T02:13:35.000Z | settings/urls.py | riggedCoinflip/mydjango | 9f30effc0dccd95916f59a3b65d7e02bdd2827b5 | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.urls import path
from .views import SettingsView
app_name = 'settings'
urlpatterns = [
path('', login_required(SettingsView.as_view()), name='index'),
]
| 20.909091 | 67 | 0.76087 | 29 | 230 | 5.896552 | 0.655172 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126087 | 230 | 10 | 68 | 23 | 0.850746 | 0 | 0 | 0 | 0 | 0 | 0.056522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d4eb1c87d710b4411f60b3daa1b70226e38365ba | 325 | py | Python | ex011.py | MarcosLazarin/Meu-curso-em-v-deo | afe7d061a6eb4162044a47d8453bf1930831e283 | [
"MIT"
] | null | null | null | ex011.py | MarcosLazarin/Meu-curso-em-v-deo | afe7d061a6eb4162044a47d8453bf1930831e283 | [
"MIT"
] | null | null | null | ex011.py | MarcosLazarin/Meu-curso-em-v-deo | afe7d061a6eb4162044a47d8453bf1930831e283 | [
"MIT"
] | null | null | null | l = float(input('Qual a largura da parede em metros: '))
a = float(input('Qual a altura da parede em metros: '))
ar = l * a
t = ar * 0.5
print('Considerando que usamos 1 litro de tinta para pintar uma parede de 2 metros quadrados! \nPara pintar uma área de {} metros quadrados é necessário {} litros de tinta'.format(ar, t))
| 54.166667 | 187 | 0.707692 | 58 | 325 | 3.965517 | 0.586207 | 0.086957 | 0.121739 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.184615 | 325 | 5 | 188 | 65 | 0.85283 | 0 | 0 | 0 | 0 | 0.2 | 0.723077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4ec6d7a6aa3a0da4cddb2710f28ac8de9177e72 | 2,047 | py | Python | src/consensus/blockchain_interface.py | barbem/chia-blockchain | c695fa14be7d2c319f3c4dd334c7a1e84d234a86 | [
"Apache-2.0"
] | null | null | null | src/consensus/blockchain_interface.py | barbem/chia-blockchain | c695fa14be7d2c319f3c4dd334c7a1e84d234a86 | [
"Apache-2.0"
] | 75 | 2020-07-24T23:03:34.000Z | 2022-03-22T14:01:18.000Z | src/consensus/blockchain_interface.py | jespino/chia-blockchain | 6518b2bf42d03b29e83d1701900dfb0ede52d5b0 | [
"Apache-2.0"
] | 1 | 2020-07-20T01:58:15.000Z | 2020-07-20T01:58:15.000Z | from typing import List, Optional, Dict
from src.consensus.block_record import BlockRecord
from src.types.header_block import HeaderBlock
from src.types.blockchain_format.sized_bytes import bytes32
from src.types.blockchain_format.sub_epoch_summary import SubEpochSummary
from src.types.weight_proof import SubEpochChallengeSegment
from src.util.ints import uint32
class BlockchainInterface:
def get_peak_height(self) -> Optional[uint32]:
pass
def block_record(self, header_hash: bytes32) -> BlockRecord:
pass
def height_to_block_record(self, height: uint32) -> BlockRecord:
pass
def get_ses_heights(self) -> List[uint32]:
pass
def get_ses(self, height: uint32) -> SubEpochSummary:
pass
def height_to_hash(self, height: uint32) -> Optional[bytes32]:
pass
def contains_block(self, header_hash: bytes32) -> bool:
pass
def remove_block_record(self, header_hash: bytes32):
pass
def add_block_record(self, block_record: BlockRecord):
pass
def contains_height(self, height: uint32) -> bool:
pass
async def warmup(self, fork_point: uint32):
pass
async def get_block_record_from_db(self, header_hash: bytes32) -> Optional[BlockRecord]:
pass
async def get_block_records_in_range(self, start: int, stop: int) -> Dict[bytes32, BlockRecord]:
pass
async def get_header_blocks_in_range(self, start: int, stop: int) -> Dict[bytes32, HeaderBlock]:
pass
def try_block_record(self, header_hash: bytes32) -> Optional[BlockRecord]:
if self.contains_block(header_hash):
return self.block_record(header_hash)
return None
async def persist_sub_epoch_challenge_segments(
self, sub_epoch_summary_height: uint32, segments: List[SubEpochChallengeSegment]
):
pass
async def get_sub_epoch_challenge_segments(
self,
sub_epoch_summary_height: uint32,
) -> Optional[List[SubEpochChallengeSegment]]:
pass
| 29.666667 | 100 | 0.708354 | 254 | 2,047 | 5.456693 | 0.251969 | 0.050505 | 0.054113 | 0.075758 | 0.334055 | 0.246032 | 0.134199 | 0.134199 | 0.134199 | 0.080808 | 0 | 0.023602 | 0.213483 | 2,047 | 68 | 101 | 30.102941 | 0.837267 | 0 | 0 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0.326531 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4ed3d7790999329269a87a83c948ba23c9d2999 | 202 | py | Python | python/us-opp/poglavlje12/test_indeksTM.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/us-opp/poglavlje12/test_indeksTM.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/us-opp/poglavlje12/test_indeksTM.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | # test index_tm
from indeks_tm import IndeksTM
ind1 = IndeksTM("Jovana Jovanovic", 18, 66, 178)
print("Indeks tjelesne mase za ", ind1.getIme(), \
" je ", ind1.getIndeksTM(), ind1.getStatus())
| 22.444444 | 51 | 0.683168 | 27 | 202 | 5.037037 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065868 | 0.173267 | 202 | 8 | 52 | 25.25 | 0.748503 | 0.064356 | 0 | 0 | 0 | 0 | 0.236559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4ed76bdca32e961746de8cd5c18f676073a8d96 | 730 | py | Python | sarpy/io/nitf/tres/unclass/PIATGA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/PIATGA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/PIATGA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class PIATGAType(TREElement):
def __init__(self, value):
super(PIATGAType, self).__init__()
self.add_field('TGTUTM', 's', 15, value)
self.add_field('PIATGAID', 's', 15, value)
self.add_field('PIACTRY', 's', 2, value)
self.add_field('PIACAT', 's', 5, value)
self.add_field('TGTGEO', 's', 15, value)
self.add_field('DATUM', 's', 3, value)
self.add_field('TGTNAME', 's', 38, value)
self.add_field('PERCOVER', 'd', 3, value)
class PIATGA(TREExtension):
_tag_value = 'PIATGA'
_data_type = PIATGAType
| 29.2 | 51 | 0.627397 | 90 | 730 | 4.766667 | 0.466667 | 0.130536 | 0.223776 | 0.277389 | 0.13986 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0.022569 | 0.210959 | 730 | 24 | 52 | 30.416667 | 0.722222 | 0.028767 | 0 | 0 | 0 | 0 | 0.135785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4f681ed8e95021dd3e520e7124e82d5e7b5f26c | 1,023 | py | Python | app3/serializers.py | wtianzi/sarwebpro | e67e5985eaa39fd57b1a56d12dbf598520b3a306 | [
"MIT"
] | null | null | null | app3/serializers.py | wtianzi/sarwebpro | e67e5985eaa39fd57b1a56d12dbf598520b3a306 | [
"MIT"
] | 9 | 2020-02-11T23:43:52.000Z | 2022-02-10T07:31:33.000Z | app3/serializers.py | wtianzi/sarwebpro | e67e5985eaa39fd57b1a56d12dbf598520b3a306 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User, Group
from .models import GPSData,ClueMedia,WaypointsData,GPShistoricalData
from rest_framework import serializers
class GPSDataSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = GPSData
fields = ('deviceid', 'taskid', 'gpsdata')
class WaypointsDataSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = WaypointsData
fields = ('deviceid', 'taskid','waypointsdata')
class GPShistoricalDataSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = GPShistoricalData
fields = ('deviceid', 'taskid','gpshistoricaldata')
class ClueMediaSerializer(serializers.HyperlinkedModelSerializer):
#photo = serializers.ImageField(max_length=None, allow_empty_file=True, use_url=True)
#doc = serializers.FileField(max_length=None, use_url=True)
class Meta:
model = ClueMedia
fields = ('id', 'name', 'longitude', 'latitude', 'photo', 'description')
| 37.888889 | 89 | 0.739003 | 93 | 1,023 | 8.053763 | 0.473118 | 0.197597 | 0.074766 | 0.184246 | 0.204272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160313 | 1,023 | 26 | 90 | 39.346154 | 0.871944 | 0.138807 | 0 | 0.210526 | 0 | 0 | 0.134243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4fc9e15dcab8d068942f966793bc4c575d328ba | 22,196 | py | Python | statsmodels/tsa/tests/test_holtwinters.py | haribharadwaj/statsmodels | 8675b890607fe6f116b1186dcba4c387c5e3778a | [
"BSD-3-Clause"
] | null | null | null | statsmodels/tsa/tests/test_holtwinters.py | haribharadwaj/statsmodels | 8675b890607fe6f116b1186dcba4c387c5e3778a | [
"BSD-3-Clause"
] | null | null | null | statsmodels/tsa/tests/test_holtwinters.py | haribharadwaj/statsmodels | 8675b890607fe6f116b1186dcba4c387c5e3778a | [
"BSD-3-Clause"
] | null | null | null | """
Author: Terence L van Zyl
Modified: Kevin Sheppard
"""
import os
import warnings
import numpy as np
import pandas as pd
import pytest
from numpy.testing import assert_almost_equal, assert_allclose
from statsmodels.tools.sm_exceptions import EstimationWarning
from statsmodels.tsa.holtwinters import (ExponentialSmoothing,
SimpleExpSmoothing, Holt, SMOOTHERS, PY_SMOOTHERS)
base, _ = os.path.split(os.path.abspath(__file__))
housing_data = pd.read_csv(os.path.join(base, 'results', 'housing-data.csv'))
housing_data = housing_data.set_index('DATE')
housing_data = housing_data.asfreq('MS')
SEASONALS = ('add', 'mul', None)
TRENDS = ('add', 'mul', None)
def _simple_dbl_exp_smoother(x, alpha, beta, l0, b0, nforecast=0):
"""
Simple, slow, direct implementation of double exp smoothing for testing
"""
n = x.shape[0]
l = np.zeros(n)
b = np.zeros(n)
xhat = np.zeros(n)
f = np.zeros(nforecast)
l[0] = l0
b[0] = b0
# Special case the 0 observations since index -1 is not available
xhat[0] = l0 + b0
l[0] = alpha * x[0] + (1 - alpha) * (l0 + b0)
b[0] = beta * (l[0] - l0) + (1 - beta) * b0
for t in range(1, n):
# Obs in index t is the time t forecast for t + 1
l[t] = alpha * x[t] + (1 - alpha) * (l[t - 1] + b[t - 1])
b[t] = beta * (l[t] - l[t - 1]) + (1 - beta) * b[t - 1]
xhat[1:] = l[0:-1] + b[0:-1]
f[:] = l[-1] + np.arange(1, nforecast + 1) * b[-1]
err = x - xhat
return l, b, f, err, xhat
class TestHoltWinters(object):
@classmethod
def setup_class(cls):
# Changed for backwards compatibility with pandas
# oildata_oil_json = '{"851990400000":446.6565229,"883526400000":454.4733065,"915062400000":455.662974,"946598400000":423.6322388,"978220800000":456.2713279,"1009756800000":440.5880501,"1041292800000":425.3325201,"1072828800000":485.1494479,"1104451200000":506.0481621,"1135987200000":526.7919833,"1167523200000":514.268889,"1199059200000":494.2110193}'
# oildata_oil = pd.read_json(oildata_oil_json, typ='Series').sort_index()
data = [446.65652290000003, 454.47330649999998, 455.66297400000002,
423.63223879999998, 456.27132790000002, 440.58805009999998,
425.33252010000001, 485.14944789999998, 506.04816210000001,
526.79198329999997, 514.26888899999994, 494.21101929999998]
index = ['1996-12-31 00:00:00', '1997-12-31 00:00:00', '1998-12-31 00:00:00',
'1999-12-31 00:00:00', '2000-12-31 00:00:00', '2001-12-31 00:00:00',
'2002-12-31 00:00:00', '2003-12-31 00:00:00', '2004-12-31 00:00:00',
'2005-12-31 00:00:00', '2006-12-31 00:00:00', '2007-12-31 00:00:00']
oildata_oil = pd.Series(data, index)
oildata_oil.index = pd.DatetimeIndex(oildata_oil.index,
freq=pd.infer_freq(oildata_oil.index))
cls.oildata_oil = oildata_oil
# air_ausair_json = '{"662601600000":17.5534,"694137600000":21.8601,"725760000000":23.8866,"757296000000":26.9293,"788832000000":26.8885,"820368000000":28.8314,"851990400000":30.0751,"883526400000":30.9535,"915062400000":30.1857,"946598400000":31.5797,"978220800000":32.577569,"1009756800000":33.477398,"1041292800000":39.021581,"1072828800000":41.386432,"1104451200000":41.596552}'
# air_ausair = pd.read_json(air_ausair_json, typ='Series').sort_index()
data = [17.5534, 21.860099999999999, 23.886600000000001,
26.929300000000001, 26.888500000000001, 28.831399999999999,
30.075099999999999, 30.953499999999998, 30.185700000000001,
31.579699999999999, 32.577568999999997, 33.477398000000001,
39.021580999999998, 41.386431999999999, 41.596552000000003]
index = ['1990-12-31 00:00:00', '1991-12-31 00:00:00', '1992-12-31 00:00:00',
'1993-12-31 00:00:00', '1994-12-31 00:00:00', '1995-12-31 00:00:00',
'1996-12-31 00:00:00', '1997-12-31 00:00:00', '1998-12-31 00:00:00',
'1999-12-31 00:00:00', '2000-12-31 00:00:00', '2001-12-31 00:00:00',
'2002-12-31 00:00:00', '2003-12-31 00:00:00', '2004-12-31 00:00:00']
air_ausair = pd.Series(data, index)
air_ausair.index = pd.DatetimeIndex(air_ausair.index,
freq=pd.infer_freq(air_ausair.index))
cls.air_ausair = air_ausair
# livestock2_livestock_json = '{"31449600000":263.917747,"62985600000":268.307222,"94608000000":260.662556,"126144000000":266.639419,"157680000000":277.515778,"189216000000":283.834045,"220838400000":290.309028,"252374400000":292.474198,"283910400000":300.830694,"315446400000":309.286657,"347068800000":318.331081,"378604800000":329.37239,"410140800000":338.883998,"441676800000":339.244126,"473299200000":328.600632,"504835200000":314.255385,"536371200000":314.459695,"567907200000":321.413779,"599529600000":329.789292,"631065600000":346.385165,"662601600000":352.297882,"694137600000":348.370515,"725760000000":417.562922,"757296000000":417.12357,"788832000000":417.749459,"820368000000":412.233904,"851990400000":411.946817,"883526400000":394.697075,"915062400000":401.49927,"946598400000":408.270468,"978220800000":414.2428}'
# livestock2_livestock = pd.read_json(livestock2_livestock_json, typ='Series').sort_index()
data = [263.91774700000002, 268.30722200000002, 260.662556,
266.63941899999998, 277.51577800000001, 283.834045,
290.30902800000001, 292.474198, 300.83069399999999,
309.28665699999999, 318.33108099999998, 329.37239,
338.88399800000002, 339.24412599999999, 328.60063200000002,
314.25538499999999, 314.45969500000001, 321.41377899999998,
329.78929199999999, 346.38516499999997, 352.29788200000002,
348.37051500000001, 417.56292200000001, 417.12356999999997,
417.749459, 412.233904, 411.94681700000001, 394.69707499999998,
401.49927000000002, 408.27046799999999, 414.24279999999999]
index = ['1970-12-31 00:00:00', '1971-12-31 00:00:00', '1972-12-31 00:00:00',
'1973-12-31 00:00:00', '1974-12-31 00:00:00', '1975-12-31 00:00:00',
'1976-12-31 00:00:00', '1977-12-31 00:00:00', '1978-12-31 00:00:00',
'1979-12-31 00:00:00', '1980-12-31 00:00:00', '1981-12-31 00:00:00',
'1982-12-31 00:00:00', '1983-12-31 00:00:00', '1984-12-31 00:00:00',
'1985-12-31 00:00:00', '1986-12-31 00:00:00', '1987-12-31 00:00:00',
'1988-12-31 00:00:00', '1989-12-31 00:00:00', '1990-12-31 00:00:00',
'1991-12-31 00:00:00', '1992-12-31 00:00:00', '1993-12-31 00:00:00',
'1994-12-31 00:00:00', '1995-12-31 00:00:00', '1996-12-31 00:00:00',
'1997-12-31 00:00:00', '1998-12-31 00:00:00', '1999-12-31 00:00:00',
'2000-12-31 00:00:00']
livestock2_livestock = pd.Series(data, index)
livestock2_livestock.index = pd.DatetimeIndex(
livestock2_livestock.index,
freq=pd.infer_freq(livestock2_livestock.index))
cls.livestock2_livestock = livestock2_livestock
# aust_json = '{"1104537600000":41.727458,"1112313600000":24.04185,"1120176000000":32.328103,"1128124800000":37.328708,"1136073600000":46.213153,"1143849600000":29.346326,"1151712000000":36.48291,"1159660800000":42.977719,"1167609600000":48.901525,"1175385600000":31.180221,"1183248000000":37.717881,"1191196800000":40.420211,"1199145600000":51.206863,"1207008000000":31.887228,"1214870400000":40.978263,"1222819200000":43.772491,"1230768000000":55.558567,"1238544000000":33.850915,"1246406400000":42.076383,"1254355200000":45.642292,"1262304000000":59.76678,"1270080000000":35.191877,"1277942400000":44.319737,"1285891200000":47.913736}'
# aust = pd.read_json(aust_json, typ='Series').sort_index()
data = [41.727457999999999, 24.04185, 32.328102999999999,
37.328707999999999, 46.213152999999998, 29.346326000000001,
36.482909999999997, 42.977719, 48.901524999999999,
31.180221, 37.717880999999998, 40.420211000000002,
51.206862999999998, 31.887228, 40.978262999999998,
43.772491000000002, 55.558566999999996, 33.850915000000001,
42.076383, 45.642291999999998, 59.766779999999997,
35.191876999999998, 44.319737000000003, 47.913736]
index = ['2005-03-01 00:00:00', '2005-06-01 00:00:00', '2005-09-01 00:00:00',
'2005-12-01 00:00:00', '2006-03-01 00:00:00', '2006-06-01 00:00:00',
'2006-09-01 00:00:00', '2006-12-01 00:00:00', '2007-03-01 00:00:00',
'2007-06-01 00:00:00', '2007-09-01 00:00:00', '2007-12-01 00:00:00',
'2008-03-01 00:00:00', '2008-06-01 00:00:00', '2008-09-01 00:00:00',
'2008-12-01 00:00:00', '2009-03-01 00:00:00', '2009-06-01 00:00:00',
'2009-09-01 00:00:00', '2009-12-01 00:00:00', '2010-03-01 00:00:00',
'2010-06-01 00:00:00', '2010-09-01 00:00:00', '2010-12-01 00:00:00']
aust = pd.Series(data, index)
aust.index = pd.DatetimeIndex(aust.index,
freq=pd.infer_freq(aust.index))
cls.aust = aust
def test_predict(self):
fit1 = ExponentialSmoothing(self.aust, seasonal_periods=4, trend='add',
seasonal='mul').fit()
fit2 = ExponentialSmoothing(self.aust, seasonal_periods=4, trend='add',
seasonal='mul').fit()
# fit3 = ExponentialSmoothing(self.aust, seasonal_periods=4, trend='add',
# seasonal='mul').fit(remove_bias=True, use_basinhopping=True)
assert_almost_equal(fit1.predict('2011-03-01 00:00:00',
'2011-12-01 00:00:00'),
[61.3083, 37.3730, 46.9652, 51.5578], 3)
assert_almost_equal(fit2.predict(end='2011-12-01 00:00:00'),
[61.3083, 37.3730, 46.9652, 51.5578], 3)
# assert_almost_equal(fit3.predict('2010-10-01 00:00:00', '2010-10-01 00:00:00'), [49.087], 3)
def test_ndarray(self):
fit1 = ExponentialSmoothing(self.aust.values, seasonal_periods=4,
trend='add', seasonal='mul').fit()
assert_almost_equal(fit1.forecast(4), [61.3083, 37.3730, 46.9652, 51.5578], 3)
@pytest.mark.xfail(reason='Optimizer does not converge')
def test_forecast(self):
fit1 = ExponentialSmoothing(self.aust, seasonal_periods=4, trend='add',
seasonal='add').fit()
assert_almost_equal(fit1.forecast(steps=4),
[60.9542, 36.8505, 46.1628, 50.1272], 3)
def test_simple_exp_smoothing(self):
fit1 = SimpleExpSmoothing(self.oildata_oil).fit(0.2, optimized=False)
fit2 = SimpleExpSmoothing(self.oildata_oil).fit(0.6, optimized=False)
fit3 = SimpleExpSmoothing(self.oildata_oil).fit()
assert_almost_equal(fit1.forecast(1), [484.802468], 4)
assert_almost_equal(fit1.level,
[446.65652290, 448.21987962, 449.7084985,
444.49324656, 446.84886283, 445.59670028,
441.54386424, 450.26498098, 461.4216172,
474.49569042, 482.45033014, 484.80246797], 4)
assert_almost_equal(fit2.forecast(1), [501.837461], 4)
assert_almost_equal(fit3.forecast(1), [496.493543], 4)
assert_almost_equal(fit3.params['smoothing_level'], 0.891998, 4)
# has to be 3 for old python2.7 scipy versions
assert_almost_equal(fit3.params['initial_level'], 447.478440, 3)
def test_holt(self):
fit1 = Holt(self.air_ausair).fit(smoothing_level=0.8,
smoothing_slope=0.2, optimized=False)
fit2 = Holt(self.air_ausair, exponential=True).fit(
smoothing_level=0.8, smoothing_slope=0.2,
optimized=False)
fit3 = Holt(self.air_ausair, damped=True).fit(smoothing_level=0.8,
smoothing_slope=0.2)
assert_almost_equal(fit1.forecast(5), [43.76, 45.59, 47.43, 49.27, 51.10], 2)
assert_almost_equal(fit1.slope,
[3.617628, 3.59006512, 3.33438212, 3.23657639, 2.69263502,
2.46388914, 2.2229097, 1.95959226, 1.47054601, 1.3604894,
1.28045881, 1.20355193, 1.88267152, 2.09564416, 1.83655482], 4)
assert_almost_equal(fit1.fittedfcast,
[21.8601, 22.032368, 25.48461872, 27.54058587,
30.28813356, 30.26106173, 31.58122149, 32.599234,
33.24223906, 32.26755382, 33.07776017, 33.95806605,
34.77708354, 40.05535303, 43.21586036, 43.75696849], 4)
assert_almost_equal(fit2.forecast(5),
[44.60, 47.24, 50.04, 53.01, 56.15], 2)
assert_almost_equal(fit3.forecast(5),
[42.85, 43.81, 44.66, 45.41, 46.06], 2)
def test_holt_damp(self):
fit1 = SimpleExpSmoothing(self.livestock2_livestock).fit()
mod4 = Holt(self.livestock2_livestock, damped=True)
fit4 = mod4.fit(damping_slope=0.98)
mod5 = Holt(self.livestock2_livestock, exponential=True, damped=True)
fit5 = mod5.fit()
# We accept the below values as we getting a better SSE than text book
assert_almost_equal(fit1.params['smoothing_level'], 1.00, 2)
assert_almost_equal(fit1.params['smoothing_slope'], np.NaN, 2)
assert_almost_equal(fit1.params['damping_slope'], np.NaN, 2)
assert_almost_equal(fit1.params['initial_level'], 263.92, 2)
assert_almost_equal(fit1.params['initial_slope'], np.NaN, 2)
assert_almost_equal(fit1.sse, 6761.35, 2) # 6080.26
assert_almost_equal(fit4.params['smoothing_level'], 0.98, 2)
assert_almost_equal(fit4.params['smoothing_slope'], 0.00, 2)
assert_almost_equal(fit4.params['damping_slope'], 0.98, 2)
assert_almost_equal(fit4.params['initial_level'], 257.36, 2)
assert_almost_equal(fit4.params['initial_slope'], 6.51, 2)
assert_almost_equal(fit4.sse, 6036.56, 2) # 6080.26
assert_almost_equal(fit5.params['smoothing_level'], 0.97, 2)
assert_almost_equal(fit5.params['smoothing_slope'], 0.00, 2)
assert_almost_equal(fit5.params['damping_slope'], 0.98, 2)
assert_almost_equal(fit5.params['initial_level'], 258.95, 2)
assert_almost_equal(fit5.params['initial_slope'], 1.02, 2)
assert_almost_equal(fit5.sse, 6082.00, 2) # 6100.11
def test_hw_seasonal(self):
fit1 = ExponentialSmoothing(self.aust, seasonal_periods=4,
trend='additive',
seasonal='additive').fit(use_boxcox=True)
fit2 = ExponentialSmoothing(self.aust, seasonal_periods=4, trend='add',
seasonal='mul').fit(use_boxcox=True)
assert_almost_equal(fit1.forecast(8),
[61.34, 37.24, 46.84, 51.01, 64.47, 39.78, 49.64, 53.90],
2)
assert_almost_equal(fit2.forecast(8),
[60.97, 36.99, 46.71, 51.48, 64.46, 39.02, 49.29, 54.32],
2)
fit5 = ExponentialSmoothing(self.aust, seasonal_periods=4,
trend='mul', seasonal='add'
).fit(use_boxcox='log')
fit6 = ExponentialSmoothing(self.aust, seasonal_periods=4,
trend='multiplicative',
seasonal='multiplicative'
).fit(use_boxcox='log')
# Skip since estimator is unstable
# assert_almost_equal(fit5.forecast(1), [60.60], 2)
# assert_almost_equal(fit6.forecast(1), [61.47], 2)
@pytest.mark.xpass(reason='Optimizer does not converge')
def test_hw_seasonal_buggy(self):
fit3 = ExponentialSmoothing(self.aust, seasonal_periods=4,
seasonal='add').fit(use_boxcox=True)
assert_almost_equal(fit3.forecast(8),
[59.91, 35.71, 44.64, 47.62, 59.91, 35.71, 44.64, 47.62],
2)
fit4 = ExponentialSmoothing(self.aust, seasonal_periods=4,
seasonal='mul').fit(use_boxcox=True)
assert_almost_equal(fit4.forecast(8),
[60.71, 35.70, 44.63, 47.55, 60.71, 35.70, 44.63, 47.55],
2)
@pytest.mark.parametrize('trend_seasonal', (('mul', None), (None, 'mul'), ('mul', 'mul')))
def test_negative_multipliative(trend_seasonal):
trend, seasonal = trend_seasonal
y = -np.ones(100)
with pytest.raises(ValueError):
ExponentialSmoothing(y, trend=trend, seasonal=seasonal, seasonal_periods=10)
@pytest.mark.parametrize('seasonal', SEASONALS)
def test_dampen_no_trend(seasonal):
y = -np.ones(100)
with pytest.raises(ValueError):
ExponentialSmoothing(housing_data, trend=False, seasonal=seasonal, damped=True,
seasonal_periods=10)
@pytest.mark.parametrize('seasonal', ('add', 'mul'))
def test_invalid_seasonal(seasonal):
y = pd.Series(-np.ones(100),index=pd.date_range('2000-1-1', periods=100, freq='MS'))
with pytest.raises(ValueError):
ExponentialSmoothing(y, seasonal=seasonal, seasonal_periods=1)
def test_2d_data():
with pytest.raises(ValueError):
ExponentialSmoothing(pd.concat([housing_data, housing_data], 1)).fit()
def test_infer_freq():
hd2 = housing_data.copy()
hd2.index = list(hd2.index)
with warnings.catch_warnings(record=True) as w:
mod = ExponentialSmoothing(hd2, trend='add', seasonal='add')
assert len(w) == 1
assert 'ValueWarning' in str(w[0])
assert mod.seasonal_periods == 12
@pytest.mark.parametrize('trend', TRENDS)
@pytest.mark.parametrize('seasonal', SEASONALS)
def test_start_params(trend, seasonal):
mod = ExponentialSmoothing(housing_data, trend='add', seasonal='add')
res = mod.fit()
res2 = mod.fit(start_params=res.mle_retvals.x)
assert res2.sse <= res.sse
def test_no_params_to_optimize():
mod = ExponentialSmoothing(housing_data)
with pytest.warns(EstimationWarning):
mod.fit(smoothing_level=0.5, initial_level=housing_data.iloc[0])
def test_invalid_start_param_length():
mod = ExponentialSmoothing(housing_data)
with pytest.raises(ValueError):
mod.fit(start_params=np.array([0.5]))
def test_basin_hopping():
mod = ExponentialSmoothing(housing_data, trend='add')
res = mod.fit()
res2 = mod.fit(use_basinhopping=True)
assert res2.sse <= res.sse
def test_debiased():
mod = ExponentialSmoothing(housing_data, trend='add')
res = mod.fit()
res2 = mod.fit(remove_bias=True)
assert np.any(res.fittedvalues != res2.fittedvalues)
@pytest.mark.parametrize('trend', TRENDS)
@pytest.mark.parametrize('seasonal', SEASONALS)
def test_float_boxcox_smoke(trend, seasonal):
res = ExponentialSmoothing(housing_data, trend=trend, seasonal=seasonal).fit(use_boxcox=0.5)
assert_allclose(res.params['use_boxcox'], 0.5)
@pytest.mark.parametrize('trend', TRENDS)
@pytest.mark.parametrize('seasonal', SEASONALS)
def test_equivalence_cython_python(trend, seasonal):
mod = ExponentialSmoothing(housing_data, trend=trend, seasonal=seasonal)
res = mod.fit()
res.summary() # Smoke test
params = res.params
nobs = housing_data.shape[0]
y = np.squeeze(np.asarray(housing_data))
m = 12 if seasonal else 0
l = np.zeros(nobs)
b = np.zeros(nobs)
s = np.zeros(nobs + m - 1)
p = np.zeros(6 + m)
max_seen = np.finfo(np.double).max
alpha = params['smoothing_level']
beta = params['smoothing_slope']
gamma = params['smoothing_seasonal']
phi = params['damping_slope']
phi = 1.0 if np.isnan(phi) else phi
l0 = params['initial_level']
b0 = params['initial_slope']
p[:6] = alpha, beta, gamma, l0, b0, phi
if seasonal:
p[6:] = params['initial_seasons']
xi = np.ones_like(p).astype(np.uint8)
py_func = PY_SMOOTHERS[(seasonal, trend)]
cy_func = SMOOTHERS[(seasonal, trend)]
p_copy = p.copy()
sse_cy = cy_func(p, xi, p_copy, y, l, b, s, m, nobs, max_seen)
sse_py = py_func(p, xi, p_copy, y, l, b, s, m, nobs, max_seen)
assert_allclose(sse_py, sse_cy)
def test_direct_holt_add():
mod = SimpleExpSmoothing(housing_data)
res = mod.fit()
x = np.squeeze(np.asarray(mod.endog))
alpha = res.params['smoothing_level']
l, b, f, err, xhat = _simple_dbl_exp_smoother(x, alpha, beta=0.0,
l0=res.params['initial_level'], b0=0.0,
nforecast=5)
assert_allclose(l, res.level)
assert_allclose(f, res.level.iloc[-1] * np.ones(5))
assert_allclose(f, res.forecast(5))
mod = ExponentialSmoothing(housing_data, trend='add')
res = mod.fit()
x = np.squeeze(np.asarray(mod.endog))
alpha = res.params['smoothing_level']
beta = res.params['smoothing_slope']
l, b, f, err, xhat = _simple_dbl_exp_smoother(x, alpha, beta=beta,
l0=res.params['initial_level'],
b0=res.params['initial_slope'], nforecast=5)
assert_allclose(xhat, res.fittedvalues)
assert_allclose(l + b, res.level + res.slope)
assert_allclose(l, res.level)
assert_allclose(b, res.slope)
assert_allclose(f, res.level.iloc[-1] + res.slope.iloc[-1] * np.array([1, 2, 3, 4, 5]))
assert_allclose(f, res.forecast(5))
| 53.743341 | 839 | 0.617589 | 2,955 | 22,196 | 4.527242 | 0.237902 | 0.052026 | 0.039019 | 0.034684 | 0.402527 | 0.313575 | 0.258634 | 0.183062 | 0.170429 | 0.137988 | 0 | 0.313763 | 0.23725 | 22,196 | 412 | 840 | 53.873786 | 0.476432 | 0.147819 | 0 | 0.158683 | 0 | 0 | 0.125225 | 0 | 0 | 0 | 0 | 0 | 0.164671 | 1 | 0.068862 | false | 0.002994 | 0.023952 | 0 | 0.098802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be017ae5e75bc30e8b6fbd22ba14844958a007a4 | 912 | py | Python | src/File.py | jordicea/image-size-classifier | e36c99bb1c3638665d7dc84db593c7cc82b0bd03 | [
"MIT"
] | 2 | 2020-05-19T07:12:04.000Z | 2020-07-14T21:14:32.000Z | src/File.py | jordicea/image-size-classifier | e36c99bb1c3638665d7dc84db593c7cc82b0bd03 | [
"MIT"
] | null | null | null | src/File.py | jordicea/image-size-classifier | e36c99bb1c3638665d7dc84db593c7cc82b0bd03 | [
"MIT"
] | 1 | 2020-06-15T10:24:39.000Z | 2020-06-15T10:24:39.000Z | from os import path
class File:
def __init__(self, file_path):
self.__path = file_path
self.__name = path.basename(self.__path)
self.__size = path.getsize(self.__path)
self.__jpg_name = ''
self.__jpg_size = 0
self.__jpg_percent = 0
def get_path(self) -> str:
return self.__path
def get_name(self) -> str:
return self.__name
def get_size(self) -> int:
return self.__size
def set_jpg(self, path_name: str):
self.__jpg_name = path_name
self.__jpg_size = path.getsize(self.__jpg_name)
def get_jpg_name(self) -> str:
return path.basename(self.__jpg_name)
def get_jpg_size(self) -> int:
return self.__jpg_size
def set_jpg_percent(self, jpg_percent: float):
self.__jpg_percent = jpg_percent
def get_jpg_percent(self) -> float:
return self.__jpg_percent
| 24.648649 | 55 | 0.635965 | 127 | 912 | 4.031496 | 0.173228 | 0.150391 | 0.085938 | 0.074219 | 0.160156 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0.003003 | 0.269737 | 912 | 36 | 56 | 25.333333 | 0.765766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346154 | false | 0 | 0.038462 | 0.230769 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
be10f4b2ca8fe76d36de29a0f36bd06bf6117226 | 1,870 | py | Python | faas_form/payloads.py | benkehoe/faas-form | afcd6cba00d77d903969023492e1f56b3792a76f | [
"Apache-2.0"
] | 10 | 2018-04-01T14:45:34.000Z | 2019-08-13T21:53:07.000Z | faas_form/payloads.py | benkehoe/faas-form | afcd6cba00d77d903969023492e1f56b3792a76f | [
"Apache-2.0"
] | 2 | 2018-04-02T13:09:29.000Z | 2018-04-02T13:10:13.000Z | faas_form/payloads.py | benkehoe/faas-form | afcd6cba00d77d903969023492e1f56b3792a76f | [
"Apache-2.0"
] | 1 | 2018-04-13T18:34:37.000Z | 2018-04-13T18:34:37.000Z | """
Created on Mar 31, 2018
@author: bkehoe
"""
from __future__ import absolute_import, print_function
class MissingSchemaError(Exception):
pass
PAYLOAD_TYPE_KEY = 'x-faas-form-payload'
SCHEMA_PAYLOAD_TYPE = 'schema'
INVOKE_PAYLOAD_TYPE = 'invoke'
REINVOKE_PAYLOAD_TYPE = 'reinvoke'
SCHEMA_KEY = 'x-faas-form-schema'
RESULT_KEY = 'x-faas-form-result'
def _set_payload_type(payload, type):
payload[PAYLOAD_TYPE_KEY] = type
def _is_payload_type(obj, type):
return isinstance(obj, dict) and obj.get(PAYLOAD_TYPE_KEY) == type
def _schema_to_json(schema):
if isinstance(schema, dict):
return schema
else:
return schema.to_json()
def _set_schema(payload, schema):
payload[SCHEMA_KEY] = _schema_to_json(schema)
def set_schema_request(request):
_set_payload_type(request, SCHEMA_PAYLOAD_TYPE)
def is_schema_request(request):
return _is_payload_type(request, SCHEMA_PAYLOAD_TYPE)
def set_schema_reponse(response, schema):
_set_schema(response, schema)
def get_schema(response):
if SCHEMA_KEY not in response:
raise MissingSchemaError
return response[SCHEMA_KEY]
def set_invoke_request(request):
_set_payload_type(request, INVOKE_PAYLOAD_TYPE)
def is_invoke_request(obj):
return _is_payload_type(obj, INVOKE_PAYLOAD_TYPE)
def set_reinvoke_response(response, schema, result=None):
_set_payload_type(response, REINVOKE_PAYLOAD_TYPE)
_set_schema(response, schema)
if result is not None:
set_result(response, result)
def is_reinvoke_response(obj):
return _is_payload_type(obj, REINVOKE_PAYLOAD_TYPE)
def set_result(response, result):
response[RESULT_KEY] = result
def get_result(response):
return response.get(RESULT_KEY)
def _strip_payload(payload):
return dict((key, value) for key, value in payload.items() if not key.startswith('x-faas-form')) | 24.605263 | 100 | 0.759358 | 261 | 1,870 | 5.08046 | 0.199234 | 0.174208 | 0.05279 | 0.027149 | 0.165913 | 0.134238 | 0.057315 | 0 | 0 | 0 | 0 | 0.003774 | 0.149733 | 1,870 | 76 | 100 | 24.605263 | 0.830189 | 0.02139 | 0 | 0.042553 | 0 | 0 | 0.047175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.319149 | false | 0.021277 | 0.021277 | 0.12766 | 0.553191 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
be134ba4a0ecc1aeed3d6c84c64dc3205942017c | 835 | py | Python | graph4nlp/pytorch/modules/evaluation/bleu_translation.py | cminusQAQ/graph4nlp | d980e897131f1b9d3766750c06316d94749904fa | [
"Apache-2.0"
] | 1,269 | 2021-06-06T03:27:41.000Z | 2022-03-30T06:33:53.000Z | graph4nlp/pytorch/modules/evaluation/bleu_translation.py | cminusQAQ/graph4nlp | d980e897131f1b9d3766750c06316d94749904fa | [
"Apache-2.0"
] | 106 | 2021-06-07T05:24:01.000Z | 2022-03-31T19:18:48.000Z | graph4nlp/pytorch/modules/evaluation/bleu_translation.py | cminusQAQ/graph4nlp | d980e897131f1b9d3766750c06316d94749904fa | [
"Apache-2.0"
] | 160 | 2021-06-06T15:09:17.000Z | 2022-03-23T02:06:33.000Z | import sacrebleu
from .base import EvaluationMetricBase
class BLEUTranslation(EvaluationMetricBase):
def __init__(self):
super(BLEUTranslation, self).__init__()
def calculate_scores(self, ground_truth, predict):
"""
The standard BLEU calculation function for translation. It will compute the BLEU \
scores using sacrebleu tools.
Parameters
----------
ground_truth: list[string]
The ground truth (correct) target values. It is a list of strings.
predict: list[string]
The predicted target values. It is a list of strings.
Returns
-------
score: float
The final bleu score
"""
bleu = sacrebleu.corpus_bleu(predict, [ground_truth], lowercase=True)
return bleu.score
| 30.925926 | 94 | 0.620359 | 88 | 835 | 5.738636 | 0.534091 | 0.087129 | 0.051485 | 0.063366 | 0.118812 | 0.118812 | 0.118812 | 0.118812 | 0 | 0 | 0 | 0 | 0.299401 | 835 | 26 | 95 | 32.115385 | 0.863248 | 0.45509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
be1479a16f3a1f5c04598436d3126f5646c6c68f | 1,496 | py | Python | src/psiz/keras/regularizers/squeeze.py | greenfieldvision/psiz | 37068530a78e08792e827ee55cf55e627add115e | [
"Apache-2.0"
] | 21 | 2020-04-03T21:10:05.000Z | 2021-12-02T01:31:11.000Z | src/psiz/keras/regularizers/squeeze.py | greenfieldvision/psiz | 37068530a78e08792e827ee55cf55e627add115e | [
"Apache-2.0"
] | 14 | 2020-04-10T00:48:02.000Z | 2021-05-25T18:06:55.000Z | psiz/keras/regularizers/squeeze.py | rgerkin/psiz | d540738462b6436a08a472d5e349ca2b813e6d47 | [
"Apache-2.0"
] | 4 | 2020-10-13T16:46:14.000Z | 2021-11-10T00:08:47.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 The PsiZ Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
"""Module of custom TensorFlow regularizers.
Classes:
Squeeze:
"""
import tensorflow as tf
@tf.keras.utils.register_keras_serializable(package='psiz.keras.regularizers')
class Squeeze(tf.keras.regularizers.Regularizer):
"""Squeeze representation into a low number of dimensions."""
def __init__(self, rate=0.):
"""Initialize.
Arguments:
rate: Rate at which regularization is applied.
"""
self.rate = rate
def __call__(self, z):
"""Call."""
# Sum across stimuli, but within a dimension.
dimension_usage = tf.reduce_max(tf.math.abs(z), axis=0)
return self.rate * tf.reduce_sum(dimension_usage)
def get_config(self):
"""Return config."""
return {'rate': float(self.rate)}
| 31.166667 | 78 | 0.651738 | 191 | 1,496 | 5.026178 | 0.60733 | 0.0625 | 0.027083 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009182 | 0.199198 | 1,496 | 47 | 79 | 31.829787 | 0.792154 | 0.625668 | 0 | 0 | 0 | 0 | 0.05499 | 0.046843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
be166aabdd3ac1bcbeae9f75cf64760f9395f531 | 4,249 | py | Python | dse_do_utils/__init__.py | IBM/dse-decision-optimization-utilities | 45d315bc8201932ad99504ef65434a5ab5582d25 | [
"Apache-2.0"
] | 2 | 2020-01-16T14:58:34.000Z | 2021-11-17T21:33:22.000Z | dse_do_utils/__init__.py | IBM/dse-decision-optimization-utilities | 45d315bc8201932ad99504ef65434a5ab5582d25 | [
"Apache-2.0"
] | 26 | 2019-07-09T23:05:57.000Z | 2022-03-21T15:46:24.000Z | dse_do_utils/__init__.py | IBM/dse-decision-optimization-utilities | 45d315bc8201932ad99504ef65434a5ab5582d25 | [
"Apache-2.0"
] | 6 | 2019-11-02T16:42:01.000Z | 2022-03-17T16:43:38.000Z | # Copyright IBM All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from .version import __version__
from .datamanager import DataManager
from .optimizationengine import OptimizationEngine
from .scenariomanager import ScenarioManager
# from .scenariopicker import ScenarioPicker
# from .deployeddomodel import DeployedDOModel
# from .mapmanager import MapManager
name = "dse_do_utils"
def module_reload():
"""DEPRECATED. Requires updates to Python 3.6
Reloads all component modules. Use when you want to force a reload of this module with imp.reload().
This avoids having to code somewhat complex reloading logic in the notebook that is using this module.
Challenge with imp.reload of dse-do_utils. The following is NOT (!) sufficient::
import imp
import dse_do_utils
imp.reload(dse_do_utils)
The package dse_do_utils internally contains a number of sub modules that each contain a part of the code.
This keeps development easier and more organized. But to make importing easier, the classes are exposed
in the top level `init.py`, which allows for a simple import statement like from dse_do_utils import ScenarioManager.
Unfortunately, reloading the top-level module dse_do_utils doesn't force a reload of the internal modules.
In case of subclassing, reloading needs to be done in the right order, i.e. first the parent classes.
Usage::
import imp
import dse_do_utils # You have to do the import, otherwise not possible to do the next 2 steps
dse_do_utils.module_reload() #This function
imp.reload(dse_do_utils) # Necessary to ensure all following expressions `from dse_do_utils import class` are using the updated classes
from dse_do_utils import DataManager, OptimizationEngine, ScenarioManager, ScenarioPicker, DeployedDOModel, MapManager # This needs to be done AFTER the reload to refresh the definitions
Note that this function assumes that the set of classes and component modules is not part of the update.
If it is, you may need to add another reload::
import imp
import dse_do_utils # You have to do the import, otherwise not possible to do the next 2 steps
imp.reload(dse_do_utils) # To reload this function
dse_do_utils.module_reload() #This function
imp.reload(dse_do_utils) # Necessary to ensure all future expressions `from dse_do_utils import class` are using the updated classes
from dse_do_utils import DataManager, OptimizationEngine, ScenarioManager, ScenarioPicker, DeployedDOModel, MapManager # This needs to be done AFTER the reload to refresh the definitions
If not using this function, in the notebook you would need to do the following (or the relevant parts of it)::
import imp
import dse_do_utils
imp.reload(dse_do_utils.datamanager)
imp.reload(dse_do_utils.optimizationengine)
imp.reload(dse_do_utils.scenariomanager)
imp.reload(dse_do_utils.scenariopicker)
imp.reload(dse_do_utils.deployeddomodel)
imp.reload(dse_do_utils.mapmanager)
imp.reload(dse_do_utils)
from dse_do_utils import DataManager, OptimizationEngine, ScenarioManager, ScenarioPicker, DeployedDOModel, MapManager
Returns:
"""
import importlib
import datamanager
import optimizationengine
import scenariomanager
import scenariopicker
import deployeddomodel
import mapmanager
import multiscenariomanager
importlib.reload(datamanager)
importlib.reload(optimizationengine)
importlib.reload(scenariomanager)
importlib.reload(scenariopicker)
importlib.reload(deployeddomodel)
importlib.reload(mapmanager)
importlib.reload(multiscenariomanager)
# The imports below cannot be done here.
# You need to redo the class imports from the notebook that is calling this function
# from .version import __version__
# from .datamanager import DataManager
# from .optimizationengine import OptimizationEngine
# from .scenariomanager import ScenarioManager
# from .scenariopicker import ScenarioPicker
# from .deployeddomodel import DeployedDOModel
# from .mapmanager import MapManager
| 44.260417 | 195 | 0.756413 | 557 | 4,249 | 5.655296 | 0.265709 | 0.042857 | 0.085714 | 0.048889 | 0.504762 | 0.45619 | 0.45619 | 0.45619 | 0.45619 | 0.45619 | 0 | 0.001764 | 0.199341 | 4,249 | 95 | 196 | 44.726316 | 0.924162 | 0.784655 | 0 | 0 | 0 | 0 | 0.016173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.904762 | 0 | 0.952381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
be1916af5d0992848d95d5cd069dfff1d35dfca1 | 2,060 | py | Python | plugins/swole.py | loonyuni/fitnessbot | fe768e33157ddde52197c209607282264cf65ce0 | [
"MIT"
] | null | null | null | plugins/swole.py | loonyuni/fitnessbot | fe768e33157ddde52197c209607282264cf65ce0 | [
"MIT"
] | null | null | null | plugins/swole.py | loonyuni/fitnessbot | fe768e33157ddde52197c209607282264cf65ce0 | [
"MIT"
] | null | null | null | import os, sys
import pickle
import threading
import json
import random
# change where to look for imports
here = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.normpath(os.path.join(here, '..')))
print os.getcwd()
from User import User
CONFIG_FILE = '../slackbot-workout/config.json'
CACHE_FILE = '../slackbot-workout/user_cache.save'
CONFIG = json.load(open(CONFIG_FILE))
def callouts(bot):
se.main(bot)
def process_message(data):
print data
if data['channel'].startswith("D"):
text = data['text'].encode('ascii', 'ignore')
user_id = data['user']
user_cache = pickle.load(open(CACHE_FILE, 'rb'))
user = user_cache[user_id]
print user.username
if ('swole' in text.lower()) or ('stat' in text.lower()):
motivator = getMotivationalContent()
print motivator
outputs.append([data['channel'], motivator])
s = getUserExercise(user)
print s
outputs.append([data['channel'], s])
# send out stats
elif ('done' in text):
#complete and send stat
outputs.append([data['channel'],"YOU GO GLEN COCO"])
if data['channel'].encode('ascii','ignore') == 'C06T76C8N':
text = data['text'].encode('ascii', 'ignore')
if ('done' in text.lower()):
motivator = getMotivationalContent()
outputs.append([data['channel'], motivator])
def getUserExercise(user):
exercises = CONFIG["exercises"]
s = "```\n"
for (ex_id,reps) in user.exercises.iteritems():
exercise_name = exercises[ex_id]['name'].encode('ascii','ignore')
exercise_units = exercises[ex_id]['units'].encode('ascii', 'ignore')
#TODO: pluralize using inflect package
s += exercise_name + ": " + str(reps) + " " + exercise_units+'s' + "\n"
s += "```\n"
return s
def getMotivationalContent():
fname = "motivate.txt"
lines = open(fname).read().splitlines()
return random.choice(lines)
#rtm = threading.Thread(target=process_message, args=(data))
#calloutThread = threading.Thread(target=callouts, args=(bot))
#rtm.start()
#calloutThread.start()
| 29.855072 | 75 | 0.663592 | 263 | 2,060 | 5.114068 | 0.391635 | 0.049071 | 0.063197 | 0.071375 | 0.154647 | 0.043123 | 0 | 0 | 0 | 0 | 0 | 0.003501 | 0.167961 | 2,060 | 68 | 76 | 30.294118 | 0.781214 | 0.125243 | 0 | 0.122449 | 0 | 0 | 0.149554 | 0.03683 | 0 | 0 | 0 | 0.014706 | 0 | 0 | null | null | 0 | 0.122449 | null | null | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be28d52e0fcdf1207d3fd691b1c78dafe6dd036e | 2,617 | py | Python | Module-09-Dictionaries/dictionary-02-check-get-set-add.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | 1 | 2021-12-23T07:52:08.000Z | 2021-12-23T07:52:08.000Z | Module-09-Dictionaries/dictionary-02-check-get-set-add.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | null | null | null | Module-09-Dictionaries/dictionary-02-check-get-set-add.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | null | null | null | # Dictionary
# length (len), check a key, get, set, add
# Dictionary 1 -------------------------------------------
print(" Dictionary with string keys ".center(44, "-"))
dict_employee_IDs = {"ID01": 'John Papa',
"ID02": 'David Thompson',
"ID03": 'Terry Gao',
"ID04": 'Barry Tex'}
print(dict_employee_IDs)
# len -------------------------------------------
print(" dictionary length ".center(44, "-"))
dict_employee_IDs_length = len(dict_employee_IDs)
print(str(dict_employee_IDs_length))
# Check if a key is in dictionary -------------------------------------------
print(" Check if a key is in dictionary ".center(44, "-"))
emp_id = "ID02"
# emp_id = "ID05" # Invalid Key
if emp_id in dict_employee_IDs:
name = dict_employee_IDs[emp_id]
print('Employee ID {} is {}.'.format(emp_id, name))
else:
print('Employee ID {} not found!'.format(emp_id))
# Dictionary 2 -------------------------------------------
print(" Dictionary with string keys ".center(44, "-"))
dict_employee1_Info = {"Name": 'John Papa',
"Department": 'Network',
"DataOfBirth": '02/24/1975',
"Salary": '$60K US'}
print(dict_employee1_Info)
# get -------------------------------------------
print(" Getting data from dictionary ".center(44, "-"))
name = dict_employee1_Info.get("Name")
department = dict_employee1_Info.get("Department")
dob = dict_employee1_Info.get("DataOfBirth")
salary = dict_employee1_Info.get("Salary")
print('{} works in {} department with a salary of {}. His data of birth is {}'.format(name, department, salary, dob))
print(dict_employee1_Info.get("City"))
print(dict_employee1_Info.get("Branch", "Unknown"))
# set -------------------------------------------
print(" Setting value for an item in dictionary ".center(60, "-"))
dict_employee1_Info["Department"] = 'Development'
dict_employee1_Info["Salary"] = '$70K US'
print('{} works in {} department with a salary of {}. His data of birth is {}'.format(name, department, salary, dob))
department = dict_employee1_Info.get("Department")
salary = dict_employee1_Info.get("Salary")
print('{} works in {} department with a salary of {}. His data of birth is {}'.format(name, department, salary, dob))
print(dict_employee1_Info)
# add -------------------------------------------
print(" Add to dictionary ".center(60, "-"))
dict_employee1_Info["Branch"] = "Airport Branch"
dict_employee1_Info["City"] = "Boston"
print(dict_employee1_Info)
print(dict_employee1_Info.get("City"))
print(dict_employee1_Info.get("Branch", "Unknown")) | 41.539683 | 117 | 0.596102 | 312 | 2,617 | 4.814103 | 0.25 | 0.155792 | 0.203728 | 0.146471 | 0.533289 | 0.494008 | 0.394141 | 0.360852 | 0.306258 | 0.306258 | 0 | 0.026185 | 0.153611 | 2,617 | 63 | 118 | 41.539683 | 0.651919 | 0.176538 | 0 | 0.363636 | 0 | 0 | 0.341884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.477273 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
076d97ea970f0b4163beb019c8f5c81f6c52c5e4 | 4,964 | py | Python | app/process.py | GeoJamesJones/MessageTraffic | d5f6460ed2c6607b7b6d8d12ad7a95f68f042800 | [
"MIT"
] | 1 | 2019-01-18T20:43:05.000Z | 2019-01-18T20:43:05.000Z | app/process.py | GeoJamesJones/MessageTraffic | d5f6460ed2c6607b7b6d8d12ad7a95f68f042800 | [
"MIT"
] | null | null | null | app/process.py | GeoJamesJones/MessageTraffic | d5f6460ed2c6607b7b6d8d12ad7a95f68f042800 | [
"MIT"
] | null | null | null | # Processing functions for various USMTF message formats
def tacelint(logger_item, message_dict, lines_list, processed_message_list):
prev_soi = []
prev_line = []
for line in lines_list:
if len(prev_line) == 0:
prev_line.append(line)
else:
del prev_line[0]
prev_line.append(line)
line_split = line.split("/")
if line_split[0] == 'SOI':
if len(prev_soi) == 0:
prev_soi.append(line)
else:
del prev_soi[0]
prev_soi.append(line)
message_dict['tar-sig-id'] = line_split[1]
message_dict['time-up'] = line_split[2]
message_dict['time-down'] = line_split[3]
message_dict['sort-code'] = line_split[4]
message_dict['emitter-desig'] = line_split[5]
try: message_dict['event-loc'] = line_split[6]
except: pass
try: message_dict['tgt-id'] = line_split[7]
except: pass
try: message_dict['enemy-uid'] = line_split[8]
except: pass
try: message_dict['wpn-type'] = line_split[9]
except: pass
try: message_dict['emitter-func-code'] = line_split[10]
except: pass
continue
if line_split[0] == 'EMLOC':
message_dict['data-entry'] = line_split[1]
message_dict['emitter-loc-cat'] = line_split[2]
message_dict['loc'] = line_split[3].split(":")[1]
message_dict['orientation'] = line_split[5][:-1]
message_dict['semi-major'] = line_split[6][:-2]
message_dict['semi-minor'] = line_split[7][:-2]
message_dict['units'] = line_split[6][-2:]
continue
if line_split[0] == 'PRM':
message_dict['data-entry'] = line_split[1]
message_dict['freq'] = line_split[2][:-3]
message_dict['freq-units'] = line_split[2][-3:]
message_dict['rf-op-mode'] = line_split[3]
message_dict['pri'] = line_split[4].split(":")[1]
try: message_dict['pri-ac'] = line_split[5]
except: pass
try: message_dict['pd'] = line_split[6].split(":")[1]
except: pass
try: message_dict['scan-type'] = line_split[7]
except: pass
try: message_dict['scan-rate'] = line_split[8]
except: pass
try: message_dict['ant-pol'] = line_split[9]
except: pass
processed_message_list.append(message_dict)
continue
if line_split[0] == 'REF':
message_dict['serial-letter'] = line_split[1]
message_dict['ref-type'] = line_split[2]
message_dict['originiator'] = line_split[3]
message_dict['dt-ref'] = line_split[4]
continue
if line_split[0] == 'AMPN':
message_dict['ampn'] = line_split[1]
processed_message_list.append(message_dict)
continue
if line_split[0] == 'NARR':
message_dict['narr'] = line_split[1]
processed_message_list.append(message_dict)
continue
if line_split[0] == 'COLLINFO':
try: message_dict['collector-di'] = line_split[1]
except: pass
try: message_dict['collector-tri'] = line_split[2]
except: pass
try: message_dict['coll-msn-num'] = line_split[3]
except: pass
try: message_dict['coll-proj-name'] = line_split[4]
except: pass
continue
if line_split[0] == 'FORCODE':
message_dict['forcode'] = line_split[1]
processed_message_list.append(message_dict)
continue
if line_split[0] == 'PLATID':
message_dict['scn'] = line_split[1]
message_dict['pt-d'] = line_split[2]
message_dict['pt'] = line_split[3]
message_dict['plat-name'] = line_split[4]
message_dict['ship-name'] = line_split[5]
try: message_dict['pen-num'] = line_split[6]
except: pass
try: message_dict['nationality'] = line_split[7]
except: pass
try: message_dict['track-num'] = line_split[8]
except: pass
processed_message_list.append(message_dict)
continue
if line_split[0] == 'DECL':
message_dict['source-class'] = line_split[1]
message_dict['class-reason'] = line_split[2]
message_dict['dg-inst'] = line_split[3]
try: message_dict['dg-exempt-code'] = line_split[4]
except: pass
processed_message_list.append(message_dict)
continue | 32.233766 | 76 | 0.523973 | 573 | 4,964 | 4.286213 | 0.195462 | 0.227199 | 0.102606 | 0.105863 | 0.633958 | 0.443811 | 0.380293 | 0.289088 | 0.192182 | 0.136401 | 0 | 0.02301 | 0.352135 | 4,964 | 154 | 77 | 32.233766 | 0.740672 | 0.010878 | 0 | 0.385321 | 0 | 0 | 0.098798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0.165138 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
07825e1c58739243a06eecfa523bf26391f1bbc6 | 8,205 | py | Python | sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
try:
from ._models_py3 import AttachedDatabaseConfiguration
from ._models_py3 import AzureCapacity
from ._models_py3 import AzureEntityResource
from ._models_py3 import AzureResourceSku
from ._models_py3 import AzureSku
from ._models_py3 import CheckNameRequest
from ._models_py3 import CheckNameResult
from ._models_py3 import Cluster
from ._models_py3 import ClusterCheckNameRequest
from ._models_py3 import ClusterPrincipalAssignment
from ._models_py3 import ClusterPrincipalAssignmentCheckNameRequest
from ._models_py3 import ClusterUpdate
from ._models_py3 import Database
from ._models_py3 import DatabasePrincipal
from ._models_py3 import DatabasePrincipalAssignment
from ._models_py3 import DatabasePrincipalAssignmentCheckNameRequest
from ._models_py3 import DatabasePrincipalListRequest
from ._models_py3 import DatabasePrincipalListResult
from ._models_py3 import DatabaseStatistics
from ._models_py3 import DataConnection
from ._models_py3 import DataConnectionCheckNameRequest
from ._models_py3 import DataConnectionValidation
from ._models_py3 import DataConnectionValidationListResult
from ._models_py3 import DataConnectionValidationResult
from ._models_py3 import DiagnoseVirtualNetworkResult
from ._models_py3 import EventGridDataConnection
from ._models_py3 import EventHubDataConnection
from ._models_py3 import FollowerDatabaseDefinition
from ._models_py3 import Identity
from ._models_py3 import IdentityUserAssignedIdentitiesValue
from ._models_py3 import IotHubDataConnection
from ._models_py3 import KeyVaultProperties
from ._models_py3 import LanguageExtension
from ._models_py3 import LanguageExtensionsList
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OptimizedAutoscale
from ._models_py3 import ProxyResource
from ._models_py3 import ReadOnlyFollowingDatabase
from ._models_py3 import ReadWriteDatabase
from ._models_py3 import Resource
from ._models_py3 import SkuDescription
from ._models_py3 import SkuLocationInfoItem
from ._models_py3 import TrackedResource
from ._models_py3 import TrustedExternalTenant
from ._models_py3 import VirtualNetworkConfiguration
except (SyntaxError, ImportError):
from ._models import AttachedDatabaseConfiguration
from ._models import AzureCapacity
from ._models import AzureEntityResource
from ._models import AzureResourceSku
from ._models import AzureSku
from ._models import CheckNameRequest
from ._models import CheckNameResult
from ._models import Cluster
from ._models import ClusterCheckNameRequest
from ._models import ClusterPrincipalAssignment
from ._models import ClusterPrincipalAssignmentCheckNameRequest
from ._models import ClusterUpdate
from ._models import Database
from ._models import DatabasePrincipal
from ._models import DatabasePrincipalAssignment
from ._models import DatabasePrincipalAssignmentCheckNameRequest
from ._models import DatabasePrincipalListRequest
from ._models import DatabasePrincipalListResult
from ._models import DatabaseStatistics
from ._models import DataConnection
from ._models import DataConnectionCheckNameRequest
from ._models import DataConnectionValidation
from ._models import DataConnectionValidationListResult
from ._models import DataConnectionValidationResult
from ._models import DiagnoseVirtualNetworkResult
from ._models import EventGridDataConnection
from ._models import EventHubDataConnection
from ._models import FollowerDatabaseDefinition
from ._models import Identity
from ._models import IdentityUserAssignedIdentitiesValue
from ._models import IotHubDataConnection
from ._models import KeyVaultProperties
from ._models import LanguageExtension
from ._models import LanguageExtensionsList
from ._models import Operation
from ._models import OperationDisplay
from ._models import OptimizedAutoscale
from ._models import ProxyResource
from ._models import ReadOnlyFollowingDatabase
from ._models import ReadWriteDatabase
from ._models import Resource
from ._models import SkuDescription
from ._models import SkuLocationInfoItem
from ._models import TrackedResource
from ._models import TrustedExternalTenant
from ._models import VirtualNetworkConfiguration
from ._paged_models import AttachedDatabaseConfigurationPaged
from ._paged_models import AzureResourceSkuPaged
from ._paged_models import ClusterPaged
from ._paged_models import ClusterPrincipalAssignmentPaged
from ._paged_models import DatabasePaged
from ._paged_models import DatabasePrincipalAssignmentPaged
from ._paged_models import DatabasePrincipalPaged
from ._paged_models import DataConnectionPaged
from ._paged_models import FollowerDatabaseDefinitionPaged
from ._paged_models import LanguageExtensionPaged
from ._paged_models import OperationPaged
from ._paged_models import SkuDescriptionPaged
from ._kusto_management_client_enums import (
State,
ProvisioningState,
LanguageExtensionName,
AzureSkuName,
AzureSkuTier,
AzureScaleType,
DefaultPrincipalsModificationKind,
PrincipalsModificationKind,
EventHubDataFormat,
Compression,
IotHubDataFormat,
EventGridDataFormat,
IdentityType,
DatabasePrincipalRole,
DatabasePrincipalType,
PrincipalType,
ClusterPrincipalRole,
Type,
Reason,
)
__all__ = [
'AttachedDatabaseConfiguration',
'AzureCapacity',
'AzureEntityResource',
'AzureResourceSku',
'AzureSku',
'CheckNameRequest',
'CheckNameResult',
'Cluster',
'ClusterCheckNameRequest',
'ClusterPrincipalAssignment',
'ClusterPrincipalAssignmentCheckNameRequest',
'ClusterUpdate',
'Database',
'DatabasePrincipal',
'DatabasePrincipalAssignment',
'DatabasePrincipalAssignmentCheckNameRequest',
'DatabasePrincipalListRequest',
'DatabasePrincipalListResult',
'DatabaseStatistics',
'DataConnection',
'DataConnectionCheckNameRequest',
'DataConnectionValidation',
'DataConnectionValidationListResult',
'DataConnectionValidationResult',
'DiagnoseVirtualNetworkResult',
'EventGridDataConnection',
'EventHubDataConnection',
'FollowerDatabaseDefinition',
'Identity',
'IdentityUserAssignedIdentitiesValue',
'IotHubDataConnection',
'KeyVaultProperties',
'LanguageExtension',
'LanguageExtensionsList',
'Operation',
'OperationDisplay',
'OptimizedAutoscale',
'ProxyResource',
'ReadOnlyFollowingDatabase',
'ReadWriteDatabase',
'Resource',
'SkuDescription',
'SkuLocationInfoItem',
'TrackedResource',
'TrustedExternalTenant',
'VirtualNetworkConfiguration',
'FollowerDatabaseDefinitionPaged',
'ClusterPaged',
'SkuDescriptionPaged',
'AzureResourceSkuPaged',
'LanguageExtensionPaged',
'ClusterPrincipalAssignmentPaged',
'DatabasePaged',
'DatabasePrincipalPaged',
'DatabasePrincipalAssignmentPaged',
'AttachedDatabaseConfigurationPaged',
'DataConnectionPaged',
'OperationPaged',
'State',
'ProvisioningState',
'LanguageExtensionName',
'AzureSkuName',
'AzureSkuTier',
'AzureScaleType',
'DefaultPrincipalsModificationKind',
'PrincipalsModificationKind',
'EventHubDataFormat',
'Compression',
'IotHubDataFormat',
'EventGridDataFormat',
'IdentityType',
'DatabasePrincipalRole',
'DatabasePrincipalType',
'PrincipalType',
'ClusterPrincipalRole',
'Type',
'Reason',
]
| 37.465753 | 76 | 0.771968 | 628 | 8,205 | 9.815287 | 0.207006 | 0.149254 | 0.097015 | 0.141791 | 0.097664 | 0.097664 | 0.097664 | 0.097664 | 0.097664 | 0.097664 | 0 | 0.006841 | 0.162706 | 8,205 | 218 | 77 | 37.637615 | 0.890393 | 0.055088 | 0 | 0 | 0 | 0 | 0.196203 | 0.117153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.514563 | 0 | 0.514563 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
078c756cad7cad8808fa355832f4361f48528673 | 3,423 | py | Python | src/onegov/translator_directory/app.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/translator_directory/app.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/translator_directory/app.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from datetime import datetime
from sqlalchemy.orm import object_session
from onegov.core import utils
from onegov.core.crypto import random_token
from onegov.file.utils import as_fileintent, extension_for_content_type, \
content_type_from_fileobj
from onegov.gis import Coordinates
from onegov.translator_directory.initial_content import create_new_organisation
from onegov.org import OrgApp
from onegov.org.app import get_common_asset as default_common_asset
from onegov.org.app import get_i18n_localedirs as get_org_i18n_localedirs
from onegov.translator_directory.models.voucher import TranslatorVoucherFile
from onegov.translator_directory.request import TranslatorAppRequest
from onegov.translator_directory.theme import TranslatorDirectoryTheme
class TranslatorDirectoryApp(OrgApp):
send_daily_ticket_statistics = False
request_class = TranslatorAppRequest
def es_may_use_private_search(self, request):
return request.is_admin
def configure_organisation(self, **cfg):
cfg.setdefault('enable_user_registration', False)
cfg.setdefault('enable_yubikey', False)
cfg.setdefault('disable_password_reset', False)
super().configure_organisation(**cfg)
@property
def coordinates(self):
return self.org.meta.get('translator_directory_home') or Coordinates()
@coordinates.setter
def coordinates(self, value):
self.org.meta['translator_directory_home'] = value or {}
@property
def voucher_excel(self):
return object_session(self.org).query(TranslatorVoucherFile).first()
@property
def voucher_excel_file(self):
return self.voucher_excel and self.voucher_excel.reference.file
@voucher_excel_file.setter
def voucher_excel_file(self, value):
content_type = extension_for_content_type(
content_type_from_fileobj(value)
) or 'xls'
year = datetime.now().year
filename = f'abrechnungsvorlage_{year}.{content_type}'
if self.voucher_excel:
self.voucher_excel.reference = as_fileintent(value, filename)
self.voucher_excel.name = filename
else:
file = TranslatorVoucherFile(id=random_token())
file.reference = as_fileintent(value, filename)
file.name = filename
session = object_session(self.org)
session.add(file)
session.flush()
@TranslatorDirectoryApp.template_directory()
def get_template_directory():
return 'templates'
@TranslatorDirectoryApp.static_directory()
def get_static_directory():
return 'static'
@TranslatorDirectoryApp.setting(section='core', name='theme')
def get_theme():
return TranslatorDirectoryTheme()
@TranslatorDirectoryApp.setting(section='org', name='create_new_organisation')
def get_create_new_organisation_factory():
return create_new_organisation
@TranslatorDirectoryApp.setting(section='i18n', name='localedirs')
def get_i18n_localedirs():
mine = utils.module_path('onegov.translator_directory', 'locale')
return [mine] + get_org_i18n_localedirs()
@TranslatorDirectoryApp.webasset_path()
def get_js_path():
return 'assets/js'
@TranslatorDirectoryApp.webasset_output()
def get_webasset_output():
return 'assets/bundles'
@TranslatorDirectoryApp.webasset('common')
def get_common_asset():
yield from default_common_asset()
yield 'translator_directory.js'
| 31.694444 | 79 | 0.752848 | 392 | 3,423 | 6.308673 | 0.285714 | 0.04448 | 0.050546 | 0.046907 | 0.102709 | 0.056611 | 0.036393 | 0.036393 | 0 | 0 | 0 | 0.003493 | 0.163599 | 3,423 | 107 | 80 | 31.990654 | 0.860286 | 0 | 0 | 0.037975 | 0 | 0 | 0.088227 | 0.061058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189873 | false | 0.012658 | 0.164557 | 0.126582 | 0.531646 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
07924f499fc3ed936ee7b72d28c8798734b6c0a6 | 131,699 | py | Python | tests/examples/minlplib/rsyn0840m02m.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/rsyn0840m02m.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/rsyn0840m02m.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:54:08
#
# Equation counts
# Total E G L N X C B
# 1481 195 380 906 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc si
# Total cont binary integer sos1 sos2 scont sint
# 721 433 288 0 0 0 0 0
# FX 0 0 0 0 0 0 0 0
#
# Nonzero counts
# Total const NL DLL
# 3705 3649 56 0
#
# Reformulation has removed 1 variable and 1 equation
from pyomo.environ import *
model = m = ConcreteModel()
m.x2 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x3 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x4 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x5 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x6 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x7 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x8 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x9 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x10 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x11 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x12 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x13 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x14 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x15 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x16 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x17 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x18 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x19 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x20 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x21 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x22 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x23 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x24 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x25 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x26 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x27 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x28 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x29 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x30 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x31 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x32 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x33 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x34 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x35 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x36 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x37 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x38 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x39 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x40 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x41 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x42 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x43 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x44 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x45 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x46 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x47 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x48 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x49 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x50 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x51 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x52 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x53 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x54 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x55 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x56 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x57 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x58 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x59 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x60 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x61 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x62 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x63 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x64 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x65 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x66 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x67 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x68 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x69 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x70 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x71 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x72 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x73 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x74 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x75 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x76 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x77 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x78 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x79 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x80 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x81 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x82 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x83 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x84 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x85 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x86 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x87 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x88 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x89 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x90 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x91 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x92 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x93 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x94 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x95 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x96 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x97 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x98 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x99 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x100 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x101 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x102 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x103 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x104 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x105 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x106 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x107 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x108 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x109 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x110 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x111 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x112 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x113 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x114 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x115 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x116 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x117 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x118 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x119 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x120 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x121 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x122 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x123 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x124 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x125 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x126 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x127 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x128 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x129 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x130 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x131 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x132 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x133 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x134 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x135 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x136 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x137 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x138 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x139 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x140 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x141 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x142 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x143 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x144 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x145 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x146 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x147 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x148 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x149 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x150 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x151 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x152 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x153 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x154 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x155 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x156 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x157 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x158 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x159 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x160 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x161 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x162 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x163 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x164 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x165 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x166 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x167 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x168 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x169 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x170 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x171 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x172 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x173 = Var(within=Reals,bounds=(0,None),initialize=0)
m.b174 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b175 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b176 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b177 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b178 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b179 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b180 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b181 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b182 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b183 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b184 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b185 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b186 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b187 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b188 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b189 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b190 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b191 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b192 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b193 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b194 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b195 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b196 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b197 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b198 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b199 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b200 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b201 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b202 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b203 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b204 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b205 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b206 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b207 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b208 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b209 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b210 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b211 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b212 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b213 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b214 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b215 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b216 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b217 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b218 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b219 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b220 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b221 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b222 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b223 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b224 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b225 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b226 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b227 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b228 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b229 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b230 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b231 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b232 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b233 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b234 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b235 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b236 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b237 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b238 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b239 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b240 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b241 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b242 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b243 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b244 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b245 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b246 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b247 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b248 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b249 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b250 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b251 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b252 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b253 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b254 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b255 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b256 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b257 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b258 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b259 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b260 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b261 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b262 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b263 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b264 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b265 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b266 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b267 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b268 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b269 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b270 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b271 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b272 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b273 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b274 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b275 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b276 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b277 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b278 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b279 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b280 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b281 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b282 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b283 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b284 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b285 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b286 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b287 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b288 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b289 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b290 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b291 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b292 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b293 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b294 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b295 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b296 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b297 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b298 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b299 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b300 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b301 = Var(within=Binary,bounds=(0,1),initialize=0)
m.x302 = Var(within=Reals,bounds=(0,10),initialize=0)
m.x303 = Var(within=Reals,bounds=(0,10),initialize=0)
m.x304 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x305 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x306 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x307 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x308 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x309 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x310 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x311 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x312 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x313 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x314 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x315 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x316 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x317 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x318 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x319 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x320 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x321 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x322 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x323 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x324 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x325 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x326 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x327 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x328 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x329 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x330 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x331 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x332 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x333 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x334 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x335 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x336 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x337 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x338 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x339 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x340 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x341 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x342 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x343 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x344 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x345 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x346 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x347 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x348 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x349 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x350 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x351 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x352 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x353 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x354 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x355 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x356 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x357 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x358 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x359 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x360 = Var(within=Reals,bounds=(0,5),initialize=0)
m.x361 = Var(within=Reals,bounds=(0,5),initialize=0)
m.x362 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x363 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x364 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x365 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x366 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x367 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x368 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x369 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x370 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x371 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x372 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x373 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x374 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x375 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x376 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x377 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x378 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x379 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x380 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x381 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x382 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x383 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x384 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x385 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x386 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x387 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x388 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x389 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x390 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x391 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x392 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x393 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x394 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x395 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x396 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x397 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x398 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x399 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x400 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x401 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x402 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x403 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x404 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x405 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x406 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x407 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x408 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x409 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x410 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x411 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x412 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x413 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x414 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x415 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x416 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x417 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x418 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x419 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x420 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x421 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x422 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x423 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x424 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x425 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x426 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x427 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x428 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x429 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x430 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x431 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x432 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x433 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x434 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x435 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x436 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x437 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x438 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x439 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x440 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x441 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x442 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x443 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x444 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x445 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x446 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x447 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x448 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x449 = Var(within=Reals,bounds=(0,7),initialize=0)
m.x450 = Var(within=Reals,bounds=(0,5),initialize=0)
m.x451 = Var(within=Reals,bounds=(0,5),initialize=0)
m.x452 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x453 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x454 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x455 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x456 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x457 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x458 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x459 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x460 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x461 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x462 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x463 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x464 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x465 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x466 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x467 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x468 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x469 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x470 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x471 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x472 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x473 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x474 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x475 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x476 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x477 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x478 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x479 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x480 = Var(within=Reals,bounds=(0,None),initialize=0)
m.x481 = Var(within=Reals,bounds=(0,None),initialize=0)
m.b482 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b483 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b484 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b485 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b486 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b487 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b488 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b489 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b490 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b491 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b492 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b493 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b494 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b495 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b496 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b497 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b498 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b499 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b500 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b501 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b502 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b503 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b504 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b505 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b506 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b507 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b508 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b509 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b510 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b511 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b512 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b513 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b514 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b515 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b516 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b517 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b518 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b519 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b520 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b521 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b522 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b523 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b524 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b525 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b526 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b527 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b528 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b529 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b530 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b531 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b532 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b533 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b534 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b535 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b536 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b537 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b538 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b539 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b540 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b541 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b542 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b543 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b544 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b545 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b546 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b547 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b548 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b549 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b550 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b551 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b552 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b553 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b554 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b555 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b556 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b557 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b558 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b559 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b560 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b561 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b562 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b563 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b564 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b565 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b566 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b567 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b568 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b569 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b570 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b571 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b572 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b573 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b574 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b575 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b576 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b577 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b578 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b579 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b580 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b581 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b582 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b583 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b584 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b585 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b586 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b587 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b588 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b589 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b590 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b591 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b592 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b593 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b594 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b595 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b596 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b597 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b598 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b599 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b600 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b601 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b602 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b603 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b604 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b605 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b606 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b607 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b608 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b609 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b610 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b611 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b612 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b613 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b614 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b615 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b616 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b617 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b618 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b619 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b620 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b621 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b622 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b623 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b624 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b625 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b626 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b627 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b628 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b629 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b630 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b631 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b632 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b633 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b634 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b635 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b636 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b637 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b638 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b639 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b640 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b641 = Var(within=Binary,bounds=(0,1),initialize=0)
m.x642 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x643 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x644 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x645 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x646 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x647 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x648 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x649 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x650 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x651 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x652 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x653 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x654 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x655 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x656 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x657 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x658 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x659 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x660 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x661 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x662 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x663 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x664 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x665 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x666 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x667 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x668 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x669 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x670 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x671 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x672 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x673 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x674 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x675 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x676 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x677 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x678 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x679 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x680 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x681 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x682 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x683 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x684 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x685 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x686 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x687 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x688 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x689 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x690 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x691 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x692 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x693 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x694 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x695 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x696 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x697 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x698 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x699 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x700 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x701 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x702 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x703 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x704 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x705 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x706 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x707 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x708 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x709 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x710 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x711 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x712 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x713 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x714 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x715 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x716 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x717 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x718 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x719 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x720 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x721 = Var(within=Reals,bounds=(None,None),initialize=0)
m.obj = Objective(expr= - 20*m.x2 - 17*m.x3 - 20*m.x12 - 21*m.x13 - 18*m.x20 - 20*m.x21 - 16*m.x44 - 19*m.x45 + 26*m.x52
+ 31*m.x53 + 30*m.x56 + 29*m.x57 - 20*m.x58 - 18*m.x59 + 2*m.x64 + 2*m.x65 + 3*m.x66 + 2*m.x67
+ 3*m.x68 + 3*m.x69 + 2*m.x70 + 2*m.x71 - 6*m.b240 - 4*m.b241 - 40*m.b242 - 35*m.b243
- 46*m.b244 - 39*m.b245 - 7*m.b248 - 4*m.b249 - 30*m.b250 - 25*m.b251 - 37*m.b252 - 29*m.b253
- 7*m.b256 - 5*m.b257 - 15*m.b258 - 5*m.b259 - 22*m.b260 - 10*m.b261 - 11*m.b264 - 8*m.b265
- 13*m.b266 - 8*m.b267 - 24*m.b268 - 16*m.b269 - 10*m.b272 - 7*m.b273 - 13*m.b274 - 8*m.b275
- 23*m.b276 - 15*m.b277 - 9*m.b280 - 9*m.b281 - 30*m.b282 - 30*m.b283 - 39*m.b284 - 39*m.b285
- 8*m.b288 - 7*m.b289 - 20*m.b290 - 15*m.b291 - 28*m.b292 - 22*m.b293 - 8*m.b296 - 6*m.b297
- 15*m.b298 - 10*m.b299 - 23*m.b300 - 16*m.b301 - m.x302 - m.x303 + 5*m.x314 + 10*m.x315
- m.x324 - m.x325 - 10*m.x358 - 5*m.x359 - 5*m.x360 - 5*m.x361 + 40*m.x374 + 30*m.x375
+ 15*m.x376 + 20*m.x377 + 10*m.x378 + 30*m.x379 + 30*m.x380 + 20*m.x381 + 35*m.x382 + 50*m.x383
+ 20*m.x384 + 30*m.x385 + 25*m.x386 + 50*m.x387 + 15*m.x388 + 20*m.x389 + 30*m.x404 + 40*m.x405
- m.x414 - m.x415 - 5*m.x448 - 3*m.x449 - m.x450 - m.x451 + 220*m.x464 + 210*m.x465 + 240*m.x466
+ 220*m.x467 + 190*m.x468 + 160*m.x469 + 190*m.x470 + 190*m.x471 + 385*m.x472 + 490*m.x473
+ 390*m.x474 + 505*m.x475 + 480*m.x476 + 600*m.x477 + 490*m.x478 + 600*m.x479 + 550*m.x480
+ 550*m.x481 - 5*m.b562 - 4*m.b563 - 8*m.b564 - 7*m.b565 - 6*m.b566 - 9*m.b567 - 10*m.b568
- 9*m.b569 - 6*m.b570 - 10*m.b571 - 7*m.b572 - 7*m.b573 - 4*m.b574 - 3*m.b575 - 5*m.b576
- 6*m.b577 - 2*m.b578 - 5*m.b579 - 4*m.b580 - 7*m.b581 - 3*m.b582 - 9*m.b583 - 7*m.b584
- 2*m.b585 - 3*m.b586 - m.b587 - 2*m.b588 - 6*m.b589 - 4*m.b590 - 8*m.b591 - 2*m.b592 - 5*m.b593
- 3*m.b594 - 4*m.b595 - 5*m.b596 - 7*m.b597 - 2*m.b598 - 8*m.b599 - m.b600 - 4*m.b601 - 2*m.b602
- 5*m.b603 - 9*m.b604 - 2*m.b605 - 5*m.b606 - 8*m.b607 - 2*m.b608 - 3*m.b609 - 10*m.b610
- 6*m.b611 - 4*m.b612 - 8*m.b613 - 7*m.b614 - 3*m.b615 - 4*m.b616 - 8*m.b617 - 2*m.b618 - m.b619
- 8*m.b620 - 3*m.b621 - 9*m.b622 - 5*m.b623 - 3*m.b624 - 9*m.b625 - 5*m.b626 - 3*m.b627
- 5*m.b628 - 3*m.b629 - 6*m.b630 - 4*m.b631 - 2*m.b632 - 6*m.b633 - 6*m.b634 - 4*m.b635
- 3*m.b636 - 2*m.b637 - 5*m.b638 - 8*m.b639 - 9*m.b640 - 5*m.b641, sense=maximize)
m.c2 = Constraint(expr= m.x2 - 0.2*m.x72 == 0)
m.c3 = Constraint(expr= m.x3 - 0.2*m.x73 == 0)
m.c4 = Constraint(expr= m.x4 - 0.2*m.x74 == 0)
m.c5 = Constraint(expr= m.x5 - 0.2*m.x75 == 0)
m.c6 = Constraint(expr= m.x6 - 0.2*m.x76 == 0)
m.c7 = Constraint(expr= m.x7 - 0.2*m.x77 == 0)
m.c8 = Constraint(expr= m.x8 - 0.2*m.x78 == 0)
m.c9 = Constraint(expr= m.x9 - 0.2*m.x79 == 0)
m.c10 = Constraint(expr= m.x10 - 0.2*m.x80 == 0)
m.c11 = Constraint(expr= m.x11 - 0.2*m.x81 == 0)
m.c12 = Constraint(expr= m.x12 - 0.5*m.x82 == 0)
m.c13 = Constraint(expr= m.x13 - 0.5*m.x83 == 0)
m.c14 = Constraint(expr= m.x14 - 0.5*m.x84 == 0)
m.c15 = Constraint(expr= m.x15 - 0.5*m.x85 == 0)
m.c16 = Constraint(expr= m.x16 - 0.7*m.x86 == 0)
m.c17 = Constraint(expr= m.x17 - 0.7*m.x87 == 0)
m.c18 = Constraint(expr= m.x18 - 0.7*m.x88 == 0)
m.c19 = Constraint(expr= m.x19 - 0.7*m.x89 == 0)
m.c20 = Constraint(expr= m.x20 - 1.2*m.x90 == 0)
m.c21 = Constraint(expr= m.x21 - 1.2*m.x91 == 0)
m.c22 = Constraint(expr= m.x22 - 1.2*m.x92 == 0)
m.c23 = Constraint(expr= m.x23 - 1.2*m.x93 == 0)
m.c24 = Constraint(expr= m.x24 - 0.5*m.x94 == 0)
m.c25 = Constraint(expr= m.x25 - 0.5*m.x95 == 0)
m.c26 = Constraint(expr= m.x26 - 0.7*m.x96 == 0)
m.c27 = Constraint(expr= m.x27 - 0.7*m.x97 == 0)
m.c28 = Constraint(expr= m.x28 - 1.2*m.x98 == 0)
m.c29 = Constraint(expr= m.x29 - 1.2*m.x99 == 0)
m.c30 = Constraint(expr= m.x30 - 1.2*m.x100 == 0)
m.c31 = Constraint(expr= m.x31 - 1.2*m.x101 == 0)
m.c32 = Constraint(expr= m.x32 - 1.2*m.x102 == 0)
m.c33 = Constraint(expr= m.x33 - 1.2*m.x103 == 0)
m.c34 = Constraint(expr= m.x34 - 1.2*m.x104 == 0)
m.c35 = Constraint(expr= m.x35 - 1.2*m.x105 == 0)
m.c36 = Constraint(expr= m.x36 - 0.3*m.x106 == 0)
m.c37 = Constraint(expr= m.x37 - 0.3*m.x107 == 0)
m.c38 = Constraint(expr= m.x38 - 0.9*m.x108 == 0)
m.c39 = Constraint(expr= m.x39 - 0.9*m.x109 == 0)
m.c40 = Constraint(expr= m.x40 - 0.3*m.x110 == 0)
m.c41 = Constraint(expr= m.x41 - 0.3*m.x111 == 0)
m.c42 = Constraint(expr= m.x42 - 0.9*m.x112 == 0)
m.c43 = Constraint(expr= m.x43 - 0.9*m.x113 == 0)
m.c44 = Constraint(expr= m.x44 - 0.4*m.x114 == 0)
m.c45 = Constraint(expr= m.x45 - 0.4*m.x115 == 0)
m.c46 = Constraint(expr= m.x46 - 0.4*m.x116 == 0)
m.c47 = Constraint(expr= m.x47 - 0.4*m.x117 == 0)
m.c48 = Constraint(expr= m.x48 - 0.4*m.x118 == 0)
m.c49 = Constraint(expr= m.x49 - 0.4*m.x119 == 0)
m.c50 = Constraint(expr= m.x50 - 1.6*m.x120 == 0)
m.c51 = Constraint(expr= m.x51 - 1.6*m.x121 == 0)
m.c52 = Constraint(expr= m.x52 - 1.6*m.x122 == 0)
m.c53 = Constraint(expr= m.x53 - 1.6*m.x123 == 0)
m.c54 = Constraint(expr= m.x54 - 1.1*m.x124 == 0)
m.c55 = Constraint(expr= m.x55 - 1.1*m.x125 == 0)
m.c56 = Constraint(expr= m.x56 - 1.1*m.x126 == 0)
m.c57 = Constraint(expr= m.x57 - 1.1*m.x127 == 0)
m.c58 = Constraint(expr= m.x58 - 0.7*m.x128 == 0)
m.c59 = Constraint(expr= m.x59 - 0.7*m.x129 == 0)
m.c60 = Constraint(expr= m.x60 - 0.7*m.x130 == 0)
m.c61 = Constraint(expr= m.x61 - 0.7*m.x131 == 0)
m.c62 = Constraint(expr= m.x62 - 0.7*m.x132 == 0)
m.c63 = Constraint(expr= m.x63 - 0.7*m.x133 == 0)
m.c64 = Constraint(expr= m.x64 - 0.2*m.x134 == 0)
m.c65 = Constraint(expr= m.x65 - 0.2*m.x135 == 0)
m.c66 = Constraint(expr= m.x66 - 0.7*m.x136 == 0)
m.c67 = Constraint(expr= m.x67 - 0.7*m.x137 == 0)
m.c68 = Constraint(expr= m.x68 - 0.3*m.x138 == 0)
m.c69 = Constraint(expr= m.x69 - 0.3*m.x139 == 0)
m.c70 = Constraint(expr= m.x70 - 0.9*m.x140 == 0)
m.c71 = Constraint(expr= m.x71 - 0.9*m.x141 == 0)
m.c72 = Constraint(expr= m.x52 >= 1.2)
m.c73 = Constraint(expr= m.x53 >= 1.15)
m.c74 = Constraint(expr= m.x56 >= 1.2)
m.c75 = Constraint(expr= m.x57 >= 1.15)
m.c76 = Constraint(expr= m.x64 >= 1.1)
m.c77 = Constraint(expr= m.x65 >= 1.1)
m.c78 = Constraint(expr= m.x66 >= 1.1)
m.c79 = Constraint(expr= m.x67 >= 1.1)
m.c80 = Constraint(expr= m.x68 >= 1.4)
m.c81 = Constraint(expr= m.x69 >= 1.3)
m.c82 = Constraint(expr= m.x70 >= 1.3)
m.c83 = Constraint(expr= m.x71 >= 1.2)
m.c84 = Constraint(expr= m.x2 <= 55)
m.c85 = Constraint(expr= m.x3 <= 40)
m.c86 = Constraint(expr= m.x12 <= 46)
m.c87 = Constraint(expr= m.x13 <= 41)
m.c88 = Constraint(expr= m.x20 <= 45)
m.c89 = Constraint(expr= m.x21 <= 62)
m.c90 = Constraint(expr= m.x44 <= 54)
m.c91 = Constraint(expr= m.x45 <= 51)
m.c92 = Constraint(expr= m.x58 <= 40)
m.c93 = Constraint(expr= m.x59 <= 45)
m.c94 = Constraint(expr= m.x2 - m.x4 - m.x6 == 0)
m.c95 = Constraint(expr= m.x3 - m.x5 - m.x7 == 0)
m.c96 = Constraint(expr= m.x8 - m.x10 == 0)
m.c97 = Constraint(expr= m.x9 - m.x11 == 0)
m.c98 = Constraint(expr= m.x12 - m.x14 + m.x24 == 0)
m.c99 = Constraint(expr= m.x13 - m.x15 + m.x25 == 0)
m.c100 = Constraint(expr= m.x16 - m.x18 + m.x26 == 0)
m.c101 = Constraint(expr= m.x17 - m.x19 + m.x27 == 0)
m.c102 = Constraint(expr= m.x20 - m.x22 - m.x28 == 0)
m.c103 = Constraint(expr= m.x21 - m.x23 - m.x29 == 0)
m.c104 = Constraint(expr= m.x30 - m.x32 - m.x34 == 0)
m.c105 = Constraint(expr= m.x31 - m.x33 - m.x35 == 0)
m.c106 = Constraint(expr= m.x36 - m.x40 == 0)
m.c107 = Constraint(expr= m.x37 - m.x41 == 0)
m.c108 = Constraint(expr= m.x38 - m.x42 == 0)
m.c109 = Constraint(expr= m.x39 - m.x43 == 0)
m.c110 = Constraint(expr= m.x44 - m.x46 - m.x48 == 0)
m.c111 = Constraint(expr= m.x45 - m.x47 - m.x49 == 0)
m.c112 = Constraint(expr= m.x50 - m.x52 == 0)
m.c113 = Constraint(expr= m.x51 - m.x53 == 0)
m.c114 = Constraint(expr= m.x54 - m.x56 == 0)
m.c115 = Constraint(expr= m.x55 - m.x57 == 0)
m.c116 = Constraint(expr= m.x58 - m.x60 == 0)
m.c117 = Constraint(expr= m.x59 - m.x61 == 0)
m.c118 = Constraint(expr= m.x4 - m.x8 - m.x142 == 0)
m.c119 = Constraint(expr= m.x5 - m.x9 - m.x143 == 0)
m.c120 = Constraint(expr= m.x6 + m.x14 - m.x16 - m.x144 == 0)
m.c121 = Constraint(expr= m.x7 + m.x15 - m.x17 - m.x145 == 0)
m.c122 = Constraint(expr= m.x22 - m.x24 - m.x26 - m.x146 == 0)
m.c123 = Constraint(expr= m.x23 - m.x25 - m.x27 - m.x147 == 0)
m.c124 = Constraint(expr= m.x28 - m.x30 - m.x148 == 0)
m.c125 = Constraint(expr= m.x29 - m.x31 - m.x149 == 0)
m.c126 = Constraint(expr= m.x34 - m.x36 - m.x38 - m.x150 == 0)
m.c127 = Constraint(expr= m.x35 - m.x37 - m.x39 - m.x151 == 0)
m.c128 = Constraint(expr= m.x32 + m.x46 - m.x50 - m.x152 == 0)
m.c129 = Constraint(expr= m.x33 + m.x47 - m.x51 - m.x153 == 0)
m.c130 = Constraint(expr= m.x48 - m.x54 + m.x62 - m.x154 == 0)
m.c131 = Constraint(expr= m.x49 - m.x55 + m.x63 - m.x155 == 0)
m.c132 = Constraint(expr= m.x60 - m.x62 - m.x156 == 0)
m.c133 = Constraint(expr= m.x61 - m.x63 - m.x157 == 0)
m.c134 = Constraint(expr= m.x76 - m.x84 <= 0)
m.c135 = Constraint(expr= m.x77 - m.x85 <= 0)
m.c136 = Constraint(expr= m.x102 - m.x116 <= 0)
m.c137 = Constraint(expr= m.x103 - m.x117 <= 0)
m.c138 = Constraint(expr= m.x118 - m.x132 <= 0)
m.c139 = Constraint(expr= m.x119 - m.x133 <= 0)
m.c140 = Constraint(expr= - 0.8*m.x74 + m.x78 + 233.75*m.b174 <= 233.75)
m.c141 = Constraint(expr= - 0.8*m.x75 + m.x79 + 170*m.b175 <= 170)
m.c142 = Constraint(expr= - 0.85*m.x74 + m.x78 + 233.75*m.b176 <= 233.75)
m.c143 = Constraint(expr= - 0.85*m.x75 + m.x79 + 170*m.b177 <= 170)
m.c144 = Constraint(expr= - 0.8*m.x74 + m.x78 + 233.75*m.b178 <= 233.75)
m.c145 = Constraint(expr= - 0.8*m.x75 + m.x79 + 170*m.b179 <= 170)
m.c146 = Constraint(expr= - 0.85*m.x74 + m.x78 + 233.75*m.b180 <= 233.75)
m.c147 = Constraint(expr= - 0.85*m.x75 + m.x79 + 170*m.b181 <= 170)
m.c148 = Constraint(expr= - 0.8*m.x74 + m.x78 - 233.75*m.b174 >= -233.75)
m.c149 = Constraint(expr= - 0.8*m.x75 + m.x79 - 170*m.b175 >= -170)
m.c150 = Constraint(expr= - 0.85*m.x74 + m.x78 - 233.75*m.b176 >= -233.75)
m.c151 = Constraint(expr= - 0.85*m.x75 + m.x79 - 170*m.b177 >= -170)
m.c152 = Constraint(expr= - 0.8*m.x74 + m.x78 - 233.75*m.b178 >= -233.75)
m.c153 = Constraint(expr= - 0.8*m.x75 + m.x79 - 170*m.b179 >= -170)
m.c154 = Constraint(expr= - 0.85*m.x74 + m.x78 - 233.75*m.b180 >= -233.75)
m.c155 = Constraint(expr= - 0.85*m.x75 + m.x79 - 170*m.b181 >= -170)
m.c156 = Constraint(expr= - 0.9*m.x76 + m.x86 + 383.5625*m.b182 <= 383.5625)
m.c157 = Constraint(expr= - 0.9*m.x77 + m.x87 + 316.001666666667*m.b183 <= 316.001666666667)
m.c158 = Constraint(expr= - 0.95*m.x76 + m.x86 + 383.5625*m.b184 <= 383.5625)
m.c159 = Constraint(expr= - 0.95*m.x77 + m.x87 + 316.001666666667*m.b185 <= 316.001666666667)
m.c160 = Constraint(expr= - 0.9*m.x76 + m.x86 + 383.5625*m.b186 <= 383.5625)
m.c161 = Constraint(expr= - 0.9*m.x77 + m.x87 + 316.001666666667*m.b187 <= 316.001666666667)
m.c162 = Constraint(expr= - 0.95*m.x76 + m.x86 + 383.5625*m.b188 <= 383.5625)
m.c163 = Constraint(expr= - 0.95*m.x77 + m.x87 + 316.001666666667*m.b189 <= 316.001666666667)
m.c164 = Constraint(expr= - 0.9*m.x76 + m.x86 - 261.25*m.b182 >= -261.25)
m.c165 = Constraint(expr= - 0.9*m.x77 + m.x87 - 190*m.b183 >= -190)
m.c166 = Constraint(expr= - 0.95*m.x76 + m.x86 - 261.25*m.b184 >= -261.25)
m.c167 = Constraint(expr= - 0.95*m.x77 + m.x87 - 190*m.b185 >= -190)
m.c168 = Constraint(expr= - 0.9*m.x76 + m.x86 - 261.25*m.b186 >= -261.25)
m.c169 = Constraint(expr= - 0.9*m.x77 + m.x87 - 190*m.b187 >= -190)
m.c170 = Constraint(expr= - 0.95*m.x76 + m.x86 - 261.25*m.b188 >= -261.25)
m.c171 = Constraint(expr= - 0.95*m.x77 + m.x87 - 190*m.b189 >= -190)
m.c172 = Constraint(expr= - 0.85*m.x92 + m.x94 + 36.75*m.b190 <= 36.75)
m.c173 = Constraint(expr= - 0.85*m.x93 + m.x95 + 50.6333333333333*m.b191 <= 50.6333333333333)
m.c174 = Constraint(expr= - 0.98*m.x92 + m.x94 + 36.75*m.b192 <= 36.75)
m.c175 = Constraint(expr= - 0.98*m.x93 + m.x95 + 50.6333333333333*m.b193 <= 50.6333333333333)
m.c176 = Constraint(expr= - 0.85*m.x92 + m.x94 + 36.75*m.b194 <= 36.75)
m.c177 = Constraint(expr= - 0.85*m.x93 + m.x95 + 50.6333333333333*m.b195 <= 50.6333333333333)
m.c178 = Constraint(expr= - 0.98*m.x92 + m.x94 + 36.75*m.b196 <= 36.75)
m.c179 = Constraint(expr= - 0.98*m.x93 + m.x95 + 50.6333333333333*m.b197 <= 50.6333333333333)
m.c180 = Constraint(expr= - 0.85*m.x92 + m.x96 + 36.75*m.b190 <= 36.75)
m.c181 = Constraint(expr= - 0.85*m.x93 + m.x97 + 50.6333333333333*m.b191 <= 50.6333333333333)
m.c182 = Constraint(expr= - 0.98*m.x92 + m.x96 + 36.75*m.b192 <= 36.75)
m.c183 = Constraint(expr= - 0.98*m.x93 + m.x97 + 50.6333333333333*m.b193 <= 50.6333333333333)
m.c184 = Constraint(expr= - 0.85*m.x92 + m.x96 + 36.75*m.b194 <= 36.75)
m.c185 = Constraint(expr= - 0.85*m.x93 + m.x97 + 50.6333333333333*m.b195 <= 50.6333333333333)
m.c186 = Constraint(expr= - 0.98*m.x92 + m.x96 + 36.75*m.b196 <= 36.75)
m.c187 = Constraint(expr= - 0.98*m.x93 + m.x97 + 50.6333333333333*m.b197 <= 50.6333333333333)
m.c188 = Constraint(expr= - 0.85*m.x92 + m.x94 - 36.75*m.b190 >= -36.75)
m.c189 = Constraint(expr= - 0.85*m.x93 + m.x95 - 50.6333333333333*m.b191 >= -50.6333333333333)
m.c190 = Constraint(expr= - 0.98*m.x92 + m.x94 - 36.75*m.b192 >= -36.75)
m.c191 = Constraint(expr= - 0.98*m.x93 + m.x95 - 50.6333333333333*m.b193 >= -50.6333333333333)
m.c192 = Constraint(expr= - 0.85*m.x92 + m.x94 - 36.75*m.b194 >= -36.75)
m.c193 = Constraint(expr= - 0.85*m.x93 + m.x95 - 50.6333333333333*m.b195 >= -50.6333333333333)
m.c194 = Constraint(expr= - 0.98*m.x92 + m.x94 - 36.75*m.b196 >= -36.75)
m.c195 = Constraint(expr= - 0.98*m.x93 + m.x95 - 50.6333333333333*m.b197 >= -50.6333333333333)
m.c196 = Constraint(expr= - 0.85*m.x92 + m.x96 - 36.75*m.b190 >= -36.75)
m.c197 = Constraint(expr= - 0.85*m.x93 + m.x97 - 50.6333333333333*m.b191 >= -50.6333333333333)
m.c198 = Constraint(expr= - 0.98*m.x92 + m.x96 - 36.75*m.b192 >= -36.75)
m.c199 = Constraint(expr= - 0.98*m.x93 + m.x97 - 50.6333333333333*m.b193 >= -50.6333333333333)
m.c200 = Constraint(expr= - 0.85*m.x92 + m.x96 - 36.75*m.b194 >= -36.75)
m.c201 = Constraint(expr= - 0.85*m.x93 + m.x97 - 50.6333333333333*m.b195 >= -50.6333333333333)
m.c202 = Constraint(expr= - 0.98*m.x92 + m.x96 - 36.75*m.b196 >= -36.75)
m.c203 = Constraint(expr= - 0.98*m.x93 + m.x97 - 50.6333333333333*m.b197 >= -50.6333333333333)
m.c204 = Constraint(expr= - 0.85*m.x98 + m.x100 + 33.75*m.b198 <= 33.75)
m.c205 = Constraint(expr= - 0.85*m.x99 + m.x101 + 46.5*m.b199 <= 46.5)
m.c206 = Constraint(expr= - 0.9*m.x98 + m.x100 + 33.75*m.b200 <= 33.75)
m.c207 = Constraint(expr= - 0.9*m.x99 + m.x101 + 46.5*m.b201 <= 46.5)
m.c208 = Constraint(expr= - 0.85*m.x98 + m.x100 + 33.75*m.b202 <= 33.75)
m.c209 = Constraint(expr= - 0.85*m.x99 + m.x101 + 46.5*m.b203 <= 46.5)
m.c210 = Constraint(expr= - 0.9*m.x98 + m.x100 + 33.75*m.b204 <= 33.75)
m.c211 = Constraint(expr= - 0.9*m.x99 + m.x101 + 46.5*m.b205 <= 46.5)
m.c212 = Constraint(expr= - 0.85*m.x98 + m.x100 - 33.75*m.b198 >= -33.75)
m.c213 = Constraint(expr= - 0.85*m.x99 + m.x101 - 46.5*m.b199 >= -46.5)
m.c214 = Constraint(expr= - 0.9*m.x98 + m.x100 - 33.75*m.b200 >= -33.75)
m.c215 = Constraint(expr= - 0.9*m.x99 + m.x101 - 46.5*m.b201 >= -46.5)
m.c216 = Constraint(expr= - 0.85*m.x98 + m.x100 - 33.75*m.b202 >= -33.75)
m.c217 = Constraint(expr= - 0.85*m.x99 + m.x101 - 46.5*m.b203 >= -46.5)
m.c218 = Constraint(expr= - 0.9*m.x98 + m.x100 - 33.75*m.b204 >= -33.75)
m.c219 = Constraint(expr= - 0.9*m.x99 + m.x101 - 46.5*m.b205 >= -46.5)
m.c220 = Constraint(expr= - 0.75*m.x104 + m.x106 + 32.0625*m.b206 <= 32.0625)
m.c221 = Constraint(expr= - 0.75*m.x105 + m.x107 + 44.175*m.b207 <= 44.175)
m.c222 = Constraint(expr= - 0.95*m.x104 + m.x106 + 32.0625*m.b208 <= 32.0625)
m.c223 = Constraint(expr= - 0.95*m.x105 + m.x107 + 44.175*m.b209 <= 44.175)
m.c224 = Constraint(expr= - 0.9*m.x104 + m.x106 + 32.0625*m.b210 <= 32.0625)
m.c225 = Constraint(expr= - 0.9*m.x105 + m.x107 + 44.175*m.b211 <= 44.175)
m.c226 = Constraint(expr= - 0.95*m.x104 + m.x106 + 32.0625*m.b212 <= 32.0625)
m.c227 = Constraint(expr= - 0.95*m.x105 + m.x107 + 44.175*m.b213 <= 44.175)
m.c228 = Constraint(expr= - 0.75*m.x104 + m.x108 + 32.0625*m.b206 <= 32.0625)
m.c229 = Constraint(expr= - 0.75*m.x105 + m.x109 + 44.175*m.b207 <= 44.175)
m.c230 = Constraint(expr= - 0.95*m.x104 + m.x108 + 32.0625*m.b208 <= 32.0625)
m.c231 = Constraint(expr= - 0.95*m.x105 + m.x109 + 44.175*m.b209 <= 44.175)
m.c232 = Constraint(expr= - 0.9*m.x104 + m.x108 + 32.0625*m.b210 <= 32.0625)
m.c233 = Constraint(expr= - 0.9*m.x105 + m.x109 + 44.175*m.b211 <= 44.175)
m.c234 = Constraint(expr= - 0.95*m.x104 + m.x108 + 32.0625*m.b212 <= 32.0625)
m.c235 = Constraint(expr= - 0.95*m.x105 + m.x109 + 44.175*m.b213 <= 44.175)
m.c236 = Constraint(expr= - 0.75*m.x104 + m.x106 - 32.0625*m.b206 >= -32.0625)
m.c237 = Constraint(expr= - 0.75*m.x105 + m.x107 - 44.175*m.b207 >= -44.175)
m.c238 = Constraint(expr= - 0.95*m.x104 + m.x106 - 32.0625*m.b208 >= -32.0625)
m.c239 = Constraint(expr= - 0.95*m.x105 + m.x107 - 44.175*m.b209 >= -44.175)
m.c240 = Constraint(expr= - 0.9*m.x104 + m.x106 - 32.0625*m.b210 >= -32.0625)
m.c241 = Constraint(expr= - 0.9*m.x105 + m.x107 - 44.175*m.b211 >= -44.175)
m.c242 = Constraint(expr= - 0.95*m.x104 + m.x106 - 32.0625*m.b212 >= -32.0625)
m.c243 = Constraint(expr= - 0.95*m.x105 + m.x107 - 44.175*m.b213 >= -44.175)
m.c244 = Constraint(expr= - 0.75*m.x104 + m.x108 - 32.0625*m.b206 >= -32.0625)
m.c245 = Constraint(expr= - 0.75*m.x105 + m.x109 - 44.175*m.b207 >= -44.175)
m.c246 = Constraint(expr= - 0.95*m.x104 + m.x108 - 32.0625*m.b208 >= -32.0625)
m.c247 = Constraint(expr= - 0.95*m.x105 + m.x109 - 44.175*m.b209 >= -44.175)
m.c248 = Constraint(expr= - 0.9*m.x104 + m.x108 - 32.0625*m.b210 >= -32.0625)
m.c249 = Constraint(expr= - 0.9*m.x105 + m.x109 - 44.175*m.b211 >= -44.175)
m.c250 = Constraint(expr= - 0.95*m.x104 + m.x108 - 32.0625*m.b212 >= -32.0625)
m.c251 = Constraint(expr= - 0.95*m.x105 + m.x109 - 44.175*m.b213 >= -44.175)
m.c252 = Constraint(expr= - 0.8*m.x102 + m.x120 + 143.4375*m.b214 <= 143.4375)
m.c253 = Constraint(expr= - 0.8*m.x103 + m.x121 + 147.9*m.b215 <= 147.9)
m.c254 = Constraint(expr= - 0.85*m.x102 + m.x120 + 143.4375*m.b216 <= 143.4375)
m.c255 = Constraint(expr= - 0.85*m.x103 + m.x121 + 147.9*m.b217 <= 147.9)
m.c256 = Constraint(expr= - 0.8*m.x102 + m.x120 + 143.4375*m.b218 <= 143.4375)
m.c257 = Constraint(expr= - 0.8*m.x103 + m.x121 + 147.9*m.b219 <= 147.9)
m.c258 = Constraint(expr= - 0.85*m.x102 + m.x120 + 143.4375*m.b220 <= 143.4375)
m.c259 = Constraint(expr= - 0.85*m.x103 + m.x121 + 147.9*m.b221 <= 147.9)
m.c260 = Constraint(expr= - 0.8*m.x102 + m.x120 - 28.6875*m.b214 >= -28.6875)
m.c261 = Constraint(expr= - 0.8*m.x103 + m.x121 - 39.525*m.b215 >= -39.525)
m.c262 = Constraint(expr= - 0.85*m.x102 + m.x120 - 28.6875*m.b216 >= -28.6875)
m.c263 = Constraint(expr= - 0.85*m.x103 + m.x121 - 39.525*m.b217 >= -39.525)
m.c264 = Constraint(expr= - 0.8*m.x102 + m.x120 - 28.6875*m.b218 >= -28.6875)
m.c265 = Constraint(expr= - 0.8*m.x103 + m.x121 - 39.525*m.b219 >= -39.525)
m.c266 = Constraint(expr= - 0.85*m.x102 + m.x120 - 28.6875*m.b220 >= -28.6875)
m.c267 = Constraint(expr= - 0.85*m.x103 + m.x121 - 39.525*m.b221 >= -39.525)
m.c268 = Constraint(expr= - 0.85*m.x118 + m.x124 + 178.192857142857*m.b222 <= 178.192857142857)
m.c269 = Constraint(expr= - 0.85*m.x119 + m.x125 + 177.310714285714*m.b223 <= 177.310714285714)
m.c270 = Constraint(expr= - 0.95*m.x118 + m.x124 + 178.192857142857*m.b224 <= 178.192857142857)
m.c271 = Constraint(expr= - 0.95*m.x119 + m.x125 + 177.310714285714*m.b225 <= 177.310714285714)
m.c272 = Constraint(expr= - 0.85*m.x118 + m.x124 + 178.192857142857*m.b226 <= 178.192857142857)
m.c273 = Constraint(expr= - 0.85*m.x119 + m.x125 + 177.310714285714*m.b227 <= 177.310714285714)
m.c274 = Constraint(expr= - 0.95*m.x118 + m.x124 + 178.192857142857*m.b228 <= 178.192857142857)
m.c275 = Constraint(expr= - 0.95*m.x119 + m.x125 + 177.310714285714*m.b229 <= 177.310714285714)
m.c276 = Constraint(expr= - 0.85*m.x118 + m.x124 - 128.25*m.b222 >= -128.25)
m.c277 = Constraint(expr= - 0.85*m.x119 + m.x125 - 121.125*m.b223 >= -121.125)
m.c278 = Constraint(expr= - 0.95*m.x118 + m.x124 - 128.25*m.b224 >= -128.25)
m.c279 = Constraint(expr= - 0.95*m.x119 + m.x125 - 121.125*m.b225 >= -121.125)
m.c280 = Constraint(expr= - 0.85*m.x118 + m.x124 - 128.25*m.b226 >= -128.25)
m.c281 = Constraint(expr= - 0.85*m.x119 + m.x125 - 121.125*m.b227 >= -121.125)
m.c282 = Constraint(expr= - 0.95*m.x118 + m.x124 - 128.25*m.b228 >= -128.25)
m.c283 = Constraint(expr= - 0.95*m.x119 + m.x125 - 121.125*m.b229 >= -121.125)
m.c284 = Constraint(expr= - 0.8*m.x130 + m.x132 + 52.5714285714286*m.b230 <= 52.5714285714286)
m.c285 = Constraint(expr= - 0.8*m.x131 + m.x133 + 59.1428571428572*m.b231 <= 59.1428571428572)
m.c286 = Constraint(expr= - 0.92*m.x130 + m.x132 + 52.5714285714286*m.b232 <= 52.5714285714286)
m.c287 = Constraint(expr= - 0.92*m.x131 + m.x133 + 59.1428571428572*m.b233 <= 59.1428571428572)
m.c288 = Constraint(expr= - 0.8*m.x130 + m.x132 + 52.5714285714286*m.b234 <= 52.5714285714286)
m.c289 = Constraint(expr= - 0.8*m.x131 + m.x133 + 59.1428571428572*m.b235 <= 59.1428571428572)
m.c290 = Constraint(expr= - 0.92*m.x130 + m.x132 + 52.5714285714286*m.b236 <= 52.5714285714286)
m.c291 = Constraint(expr= - 0.92*m.x131 + m.x133 + 59.1428571428572*m.b237 <= 59.1428571428572)
m.c292 = Constraint(expr= - 0.8*m.x130 + m.x132 - 52.5714285714286*m.b230 >= -52.5714285714286)
m.c293 = Constraint(expr= - 0.8*m.x131 + m.x133 - 59.1428571428572*m.b231 >= -59.1428571428572)
m.c294 = Constraint(expr= - 0.92*m.x130 + m.x132 - 52.5714285714286*m.b232 >= -52.5714285714286)
m.c295 = Constraint(expr= - 0.92*m.x131 + m.x133 - 59.1428571428572*m.b233 >= -59.1428571428572)
m.c296 = Constraint(expr= - 0.8*m.x130 + m.x132 - 52.5714285714286*m.b234 >= -52.5714285714286)
m.c297 = Constraint(expr= - 0.8*m.x131 + m.x133 - 59.1428571428572*m.b235 >= -59.1428571428572)
m.c298 = Constraint(expr= - 0.92*m.x130 + m.x132 - 52.5714285714286*m.b236 >= -52.5714285714286)
m.c299 = Constraint(expr= - 0.92*m.x131 + m.x133 - 59.1428571428572*m.b237 >= -59.1428571428572)
m.c300 = Constraint(expr= m.x4 + 45*m.b174 <= 55)
m.c301 = Constraint(expr= m.x5 + 30*m.b175 <= 40)
m.c302 = Constraint(expr= m.x4 + 45*m.b176 <= 55)
m.c303 = Constraint(expr= m.x5 + 30*m.b177 <= 40)
m.c304 = Constraint(expr= m.x4 + 5*m.b178 <= 55)
m.c305 = Constraint(expr= m.x5 - 10*m.b179 <= 40)
m.c306 = Constraint(expr= m.x4 + 5*m.b180 <= 55)
m.c307 = Constraint(expr= m.x5 - 10*m.b181 <= 40)
m.c308 = Constraint(expr= m.x6 + m.x14 + 106*m.b182 <= 146)
m.c309 = Constraint(expr= m.x7 + m.x15 + 103*m.b183 <= 143)
m.c310 = Constraint(expr= m.x6 + m.x14 + 106*m.b184 <= 146)
m.c311 = Constraint(expr= m.x7 + m.x15 + 103*m.b185 <= 143)
m.c312 = Constraint(expr= m.x6 + m.x14 + 86*m.b186 <= 146)
m.c313 = Constraint(expr= m.x7 + m.x15 + 83*m.b187 <= 143)
m.c314 = Constraint(expr= m.x6 + m.x14 + 86*m.b188 <= 146)
m.c315 = Constraint(expr= m.x7 + m.x15 + 83*m.b189 <= 143)
m.c316 = Constraint(expr= m.x22 + 30*m.b190 <= 45)
m.c317 = Constraint(expr= m.x23 + 47*m.b191 <= 62)
m.c318 = Constraint(expr= m.x22 + 30*m.b192 <= 45)
m.c319 = Constraint(expr= m.x23 + 47*m.b193 <= 62)
m.c320 = Constraint(expr= m.x22 + 20*m.b194 <= 45)
m.c321 = Constraint(expr= m.x23 + 37*m.b195 <= 62)
m.c322 = Constraint(expr= m.x22 + 20*m.b196 <= 45)
m.c323 = Constraint(expr= m.x23 + 37*m.b197 <= 62)
m.c324 = Constraint(expr= m.x28 + 30*m.b198 <= 45)
m.c325 = Constraint(expr= m.x29 + 47*m.b199 <= 62)
m.c326 = Constraint(expr= m.x28 + 30*m.b200 <= 45)
m.c327 = Constraint(expr= m.x29 + 47*m.b201 <= 62)
m.c328 = Constraint(expr= m.x28 + 25*m.b202 <= 45)
m.c329 = Constraint(expr= m.x29 + 42*m.b203 <= 62)
m.c330 = Constraint(expr= m.x28 + 25*m.b204 <= 45)
m.c331 = Constraint(expr= m.x29 + 42*m.b205 <= 62)
m.c332 = Constraint(expr= m.x34 + 35*m.b206 <= 45)
m.c333 = Constraint(expr= m.x35 + 52*m.b207 <= 62)
m.c334 = Constraint(expr= m.x34 + 35*m.b208 <= 45)
m.c335 = Constraint(expr= m.x35 + 52*m.b209 <= 62)
m.c336 = Constraint(expr= m.x34 + 25*m.b210 <= 45)
m.c337 = Constraint(expr= m.x35 + 42*m.b211 <= 62)
m.c338 = Constraint(expr= m.x34 + 25*m.b212 <= 45)
m.c339 = Constraint(expr= m.x35 + 42*m.b213 <= 62)
m.c340 = Constraint(expr= m.x32 + m.x46 + 79*m.b214 <= 99)
m.c341 = Constraint(expr= m.x33 + m.x47 + 93*m.b215 <= 113)
m.c342 = Constraint(expr= m.x32 + m.x46 + 79*m.b216 <= 99)
m.c343 = Constraint(expr= m.x33 + m.x47 + 93*m.b217 <= 113)
m.c344 = Constraint(expr= m.x32 + m.x46 + 44*m.b218 <= 99)
m.c345 = Constraint(expr= m.x33 + m.x47 + 58*m.b219 <= 113)
m.c346 = Constraint(expr= m.x32 + m.x46 + 44*m.b220 <= 99)
m.c347 = Constraint(expr= m.x33 + m.x47 + 58*m.b221 <= 113)
m.c348 = Constraint(expr= m.x48 + m.x62 + 69*m.b222 <= 94)
m.c349 = Constraint(expr= m.x49 + m.x63 + 71*m.b223 <= 96)
m.c350 = Constraint(expr= m.x48 + m.x62 + 69*m.b224 <= 94)
m.c351 = Constraint(expr= m.x49 + m.x63 + 71*m.b225 <= 96)
m.c352 = Constraint(expr= m.x48 + m.x62 + 44*m.b226 <= 94)
m.c353 = Constraint(expr= m.x49 + m.x63 + 46*m.b227 <= 96)
m.c354 = Constraint(expr= m.x48 + m.x62 + 44*m.b228 <= 94)
m.c355 = Constraint(expr= m.x49 + m.x63 + 46*m.b229 <= 96)
m.c356 = Constraint(expr= m.x60 + 25*m.b230 <= 40)
m.c357 = Constraint(expr= m.x61 + 30*m.b231 <= 45)
m.c358 = Constraint(expr= m.x60 + 25*m.b232 <= 40)
m.c359 = Constraint(expr= m.x61 + 30*m.b233 <= 45)
m.c360 = Constraint(expr= m.x60 + 5*m.b234 <= 40)
m.c361 = Constraint(expr= m.x61 + 10*m.b235 <= 45)
m.c362 = Constraint(expr= m.x60 + 5*m.b236 <= 40)
m.c363 = Constraint(expr= m.x61 + 10*m.b237 <= 45)
m.c364 = Constraint(expr= m.x158 + 46*m.b238 <= 46)
m.c365 = Constraint(expr= m.x159 + 39*m.b239 <= 39)
m.c366 = Constraint(expr= m.x158 + 40*m.b240 <= 46)
m.c367 = Constraint(expr= m.x159 + 35*m.b241 <= 39)
m.c368 = Constraint(expr= m.x158 + 6*m.b242 <= 46)
m.c369 = Constraint(expr= m.x159 + 4*m.b243 <= 39)
m.c370 = Constraint(expr= m.x158 <= 46)
m.c371 = Constraint(expr= m.x159 <= 39)
m.c372 = Constraint(expr= m.x160 + 37*m.b246 <= 37)
m.c373 = Constraint(expr= m.x161 + 29*m.b247 <= 29)
m.c374 = Constraint(expr= m.x160 + 30*m.b248 <= 37)
m.c375 = Constraint(expr= m.x161 + 25*m.b249 <= 29)
m.c376 = Constraint(expr= m.x160 + 7*m.b250 <= 37)
m.c377 = Constraint(expr= m.x161 + 4*m.b251 <= 29)
m.c378 = Constraint(expr= m.x160 <= 37)
m.c379 = Constraint(expr= m.x161 <= 29)
m.c380 = Constraint(expr= m.x162 + 22*m.b254 <= 22)
m.c381 = Constraint(expr= m.x163 + 10*m.b255 <= 10)
m.c382 = Constraint(expr= m.x162 + 15*m.b256 <= 22)
m.c383 = Constraint(expr= m.x163 + 5*m.b257 <= 10)
m.c384 = Constraint(expr= m.x162 + 7*m.b258 <= 22)
m.c385 = Constraint(expr= m.x163 + 5*m.b259 <= 10)
m.c386 = Constraint(expr= m.x162 <= 22)
m.c387 = Constraint(expr= m.x163 <= 10)
m.c388 = Constraint(expr= m.x164 + 24*m.b262 <= 24)
m.c389 = Constraint(expr= m.x165 + 16*m.b263 <= 16)
m.c390 = Constraint(expr= m.x164 + 13*m.b264 <= 24)
m.c391 = Constraint(expr= m.x165 + 8*m.b265 <= 16)
m.c392 = Constraint(expr= m.x164 + 11*m.b266 <= 24)
m.c393 = Constraint(expr= m.x165 + 8*m.b267 <= 16)
m.c394 = Constraint(expr= m.x164 <= 24)
m.c395 = Constraint(expr= m.x165 <= 16)
m.c396 = Constraint(expr= m.x166 + 23*m.b270 <= 23)
m.c397 = Constraint(expr= m.x167 + 15*m.b271 <= 15)
m.c398 = Constraint(expr= m.x166 + 13*m.b272 <= 23)
m.c399 = Constraint(expr= m.x167 + 8*m.b273 <= 15)
m.c400 = Constraint(expr= m.x166 + 10*m.b274 <= 23)
m.c401 = Constraint(expr= m.x167 + 7*m.b275 <= 15)
m.c402 = Constraint(expr= m.x166 <= 23)
m.c403 = Constraint(expr= m.x167 <= 15)
m.c404 = Constraint(expr= m.x168 + 39*m.b278 <= 39)
m.c405 = Constraint(expr= m.x169 + 39*m.b279 <= 39)
m.c406 = Constraint(expr= m.x168 + 30*m.b280 <= 39)
m.c407 = Constraint(expr= m.x169 + 30*m.b281 <= 39)
m.c408 = Constraint(expr= m.x168 + 9*m.b282 <= 39)
m.c409 = Constraint(expr= m.x169 + 9*m.b283 <= 39)
m.c410 = Constraint(expr= m.x168 <= 39)
m.c411 = Constraint(expr= m.x169 <= 39)
m.c412 = Constraint(expr= m.x170 + 28*m.b286 <= 28)
m.c413 = Constraint(expr= m.x171 + 22*m.b287 <= 22)
m.c414 = Constraint(expr= m.x170 + 20*m.b288 <= 28)
m.c415 = Constraint(expr= m.x171 + 15*m.b289 <= 22)
m.c416 = Constraint(expr= m.x170 + 8*m.b290 <= 28)
m.c417 = Constraint(expr= m.x171 + 7*m.b291 <= 22)
m.c418 = Constraint(expr= m.x170 <= 28)
m.c419 = Constraint(expr= m.x171 <= 22)
m.c420 = Constraint(expr= m.x172 + 23*m.b294 <= 23)
m.c421 = Constraint(expr= m.x173 + 16*m.b295 <= 16)
m.c422 = Constraint(expr= m.x172 + 15*m.b296 <= 23)
m.c423 = Constraint(expr= m.x173 + 10*m.b297 <= 16)
m.c424 = Constraint(expr= m.x172 + 8*m.b298 <= 23)
m.c425 = Constraint(expr= m.x173 + 6*m.b299 <= 16)
m.c426 = Constraint(expr= m.x172 <= 23)
m.c427 = Constraint(expr= m.x173 <= 16)
m.c428 = Constraint(expr= m.x158 >= 0)
m.c429 = Constraint(expr= m.x159 >= 0)
m.c430 = Constraint(expr= m.x158 - 6*m.b240 >= 0)
m.c431 = Constraint(expr= m.x159 - 4*m.b241 >= 0)
m.c432 = Constraint(expr= m.x158 - 40*m.b242 >= 0)
m.c433 = Constraint(expr= m.x159 - 35*m.b243 >= 0)
m.c434 = Constraint(expr= m.x158 - 46*m.b244 >= 0)
m.c435 = Constraint(expr= m.x159 - 39*m.b245 >= 0)
m.c436 = Constraint(expr= m.x160 >= 0)
m.c437 = Constraint(expr= m.x161 >= 0)
m.c438 = Constraint(expr= m.x160 - 7*m.b248 >= 0)
m.c439 = Constraint(expr= m.x161 - 4*m.b249 >= 0)
m.c440 = Constraint(expr= m.x160 - 30*m.b250 >= 0)
m.c441 = Constraint(expr= m.x161 - 25*m.b251 >= 0)
m.c442 = Constraint(expr= m.x160 - 37*m.b252 >= 0)
m.c443 = Constraint(expr= m.x161 - 29*m.b253 >= 0)
m.c444 = Constraint(expr= m.x162 >= 0)
m.c445 = Constraint(expr= m.x163 >= 0)
m.c446 = Constraint(expr= m.x162 - 7*m.b256 >= 0)
m.c447 = Constraint(expr= m.x163 - 5*m.b257 >= 0)
m.c448 = Constraint(expr= m.x162 - 15*m.b258 >= 0)
m.c449 = Constraint(expr= m.x163 - 5*m.b259 >= 0)
m.c450 = Constraint(expr= m.x162 - 22*m.b260 >= 0)
m.c451 = Constraint(expr= m.x163 - 10*m.b261 >= 0)
m.c452 = Constraint(expr= m.x164 >= 0)
m.c453 = Constraint(expr= m.x165 >= 0)
m.c454 = Constraint(expr= m.x164 - 11*m.b264 >= 0)
m.c455 = Constraint(expr= m.x165 - 8*m.b265 >= 0)
m.c456 = Constraint(expr= m.x164 - 13*m.b266 >= 0)
m.c457 = Constraint(expr= m.x165 - 8*m.b267 >= 0)
m.c458 = Constraint(expr= m.x164 - 24*m.b268 >= 0)
m.c459 = Constraint(expr= m.x165 - 16*m.b269 >= 0)
m.c460 = Constraint(expr= m.x166 >= 0)
m.c461 = Constraint(expr= m.x167 >= 0)
m.c462 = Constraint(expr= m.x166 - 10*m.b272 >= 0)
m.c463 = Constraint(expr= m.x167 - 7*m.b273 >= 0)
m.c464 = Constraint(expr= m.x166 - 13*m.b274 >= 0)
m.c465 = Constraint(expr= m.x167 - 8*m.b275 >= 0)
m.c466 = Constraint(expr= m.x166 - 23*m.b276 >= 0)
m.c467 = Constraint(expr= m.x167 - 15*m.b277 >= 0)
m.c468 = Constraint(expr= m.x168 >= 0)
m.c469 = Constraint(expr= m.x169 >= 0)
m.c470 = Constraint(expr= m.x168 - 9*m.b280 >= 0)
m.c471 = Constraint(expr= m.x169 - 9*m.b281 >= 0)
m.c472 = Constraint(expr= m.x168 - 30*m.b282 >= 0)
m.c473 = Constraint(expr= m.x169 - 30*m.b283 >= 0)
m.c474 = Constraint(expr= m.x168 - 39*m.b284 >= 0)
m.c475 = Constraint(expr= m.x169 - 39*m.b285 >= 0)
m.c476 = Constraint(expr= m.x170 >= 0)
m.c477 = Constraint(expr= m.x171 >= 0)
m.c478 = Constraint(expr= m.x170 - 8*m.b288 >= 0)
m.c479 = Constraint(expr= m.x171 - 7*m.b289 >= 0)
m.c480 = Constraint(expr= m.x170 - 20*m.b290 >= 0)
m.c481 = Constraint(expr= m.x171 - 15*m.b291 >= 0)
m.c482 = Constraint(expr= m.x170 - 28*m.b292 >= 0)
m.c483 = Constraint(expr= m.x171 - 22*m.b293 >= 0)
m.c484 = Constraint(expr= m.x172 >= 0)
m.c485 = Constraint(expr= m.x173 >= 0)
m.c486 = Constraint(expr= m.x172 - 8*m.b296 >= 0)
m.c487 = Constraint(expr= m.x173 - 6*m.b297 >= 0)
m.c488 = Constraint(expr= m.x172 - 15*m.b298 >= 0)
m.c489 = Constraint(expr= m.x173 - 10*m.b299 >= 0)
m.c490 = Constraint(expr= m.x172 - 23*m.b300 >= 0)
m.c491 = Constraint(expr= m.x173 - 16*m.b301 >= 0)
m.c492 = Constraint(expr= 20000*m.x2 + 20000*m.x12 + 18000*m.x20 + 16000*m.x44 + 20000*m.x58 + 1000*m.x158
+ 1000*m.x160 + 1000*m.x162 + 1000*m.x164 + 1000*m.x166 + 1000*m.x168 + 1000*m.x170
+ 1000*m.x172 <= 4000000)
m.c493 = Constraint(expr= 17000*m.x3 + 21000*m.x13 + 20000*m.x21 + 19000*m.x45 + 18000*m.x59 + 1000*m.x159
+ 1000*m.x161 + 1000*m.x163 + 1000*m.x165 + 1000*m.x167 + 1000*m.x169 + 1000*m.x171
+ 1000*m.x173 <= 3800000)
m.c494 = Constraint(expr= m.b174 + m.b176 + m.b178 + m.b180 == 1)
m.c495 = Constraint(expr= m.b175 + m.b177 + m.b179 + m.b181 == 1)
m.c496 = Constraint(expr= m.b182 + m.b184 + m.b186 + m.b188 == 1)
m.c497 = Constraint(expr= m.b183 + m.b185 + m.b187 + m.b189 == 1)
m.c498 = Constraint(expr= m.b190 + m.b192 + m.b194 + m.b196 == 1)
m.c499 = Constraint(expr= m.b191 + m.b193 + m.b195 + m.b197 == 1)
m.c500 = Constraint(expr= m.b198 + m.b200 + m.b202 + m.b204 == 1)
m.c501 = Constraint(expr= m.b199 + m.b201 + m.b203 + m.b205 == 1)
m.c502 = Constraint(expr= m.b206 + m.b208 + m.b210 + m.b212 == 1)
m.c503 = Constraint(expr= m.b207 + m.b209 + m.b211 + m.b213 == 1)
m.c504 = Constraint(expr= m.b214 + m.b216 + m.b218 + m.b220 == 1)
m.c505 = Constraint(expr= m.b215 + m.b217 + m.b219 + m.b221 == 1)
m.c506 = Constraint(expr= m.b222 + m.b224 + m.b226 + m.b228 == 1)
m.c507 = Constraint(expr= m.b223 + m.b225 + m.b227 + m.b229 == 1)
m.c508 = Constraint(expr= m.b230 + m.b232 + m.b234 + m.b236 == 1)
m.c509 = Constraint(expr= m.b231 + m.b233 + m.b235 + m.b237 == 1)
m.c510 = Constraint(expr= m.b238 + m.b240 + m.b242 + m.b244 == 1)
m.c511 = Constraint(expr= m.b239 + m.b241 + m.b243 + m.b245 == 1)
m.c512 = Constraint(expr= m.b246 + m.b248 + m.b250 + m.b252 == 1)
m.c513 = Constraint(expr= m.b247 + m.b249 + m.b251 + m.b253 == 1)
m.c514 = Constraint(expr= m.b254 + m.b256 + m.b258 + m.b260 == 1)
m.c515 = Constraint(expr= m.b255 + m.b257 + m.b259 + m.b261 == 1)
m.c516 = Constraint(expr= m.b262 + m.b264 + m.b266 + m.b268 == 1)
m.c517 = Constraint(expr= m.b263 + m.b265 + m.b267 + m.b269 == 1)
m.c518 = Constraint(expr= m.b270 + m.b272 + m.b274 + m.b276 == 1)
m.c519 = Constraint(expr= m.b271 + m.b273 + m.b275 + m.b277 == 1)
m.c520 = Constraint(expr= m.b278 + m.b280 + m.b282 + m.b284 == 1)
m.c521 = Constraint(expr= m.b279 + m.b281 + m.b283 + m.b285 == 1)
m.c522 = Constraint(expr= m.b286 + m.b288 + m.b290 + m.b292 == 1)
m.c523 = Constraint(expr= m.b287 + m.b289 + m.b291 + m.b293 == 1)
m.c524 = Constraint(expr= m.b294 + m.b296 + m.b298 + m.b300 == 1)
m.c525 = Constraint(expr= m.b295 + m.b297 + m.b299 + m.b301 == 1)
m.c526 = Constraint(expr= m.b176 - m.b177 <= 0)
m.c527 = Constraint(expr= m.b178 - m.b179 <= 0)
m.c528 = Constraint(expr= m.b180 - m.b181 <= 0)
m.c529 = Constraint(expr= m.b184 - m.b185 <= 0)
m.c530 = Constraint(expr= m.b186 - m.b187 <= 0)
m.c531 = Constraint(expr= m.b188 - m.b189 <= 0)
m.c532 = Constraint(expr= m.b192 - m.b193 <= 0)
m.c533 = Constraint(expr= m.b194 - m.b195 <= 0)
m.c534 = Constraint(expr= m.b196 - m.b197 <= 0)
m.c535 = Constraint(expr= m.b200 - m.b201 <= 0)
m.c536 = Constraint(expr= m.b202 - m.b203 <= 0)
m.c537 = Constraint(expr= m.b204 - m.b205 <= 0)
m.c538 = Constraint(expr= m.b208 - m.b209 <= 0)
m.c539 = Constraint(expr= m.b210 - m.b211 <= 0)
m.c540 = Constraint(expr= m.b212 - m.b213 <= 0)
m.c541 = Constraint(expr= m.b216 - m.b217 <= 0)
m.c542 = Constraint(expr= m.b218 - m.b219 <= 0)
m.c543 = Constraint(expr= m.b220 - m.b221 <= 0)
m.c544 = Constraint(expr= m.b224 - m.b225 <= 0)
m.c545 = Constraint(expr= m.b226 - m.b227 <= 0)
m.c546 = Constraint(expr= m.b228 - m.b229 <= 0)
m.c547 = Constraint(expr= m.b232 - m.b233 <= 0)
m.c548 = Constraint(expr= m.b234 - m.b235 <= 0)
m.c549 = Constraint(expr= m.b236 - m.b237 <= 0)
m.c550 = Constraint(expr= - m.b239 + m.b240 <= 0)
m.c551 = Constraint(expr= - m.b238 + m.b241 <= 0)
m.c552 = Constraint(expr= - m.b239 + m.b242 <= 0)
m.c553 = Constraint(expr= - m.b238 + m.b243 <= 0)
m.c554 = Constraint(expr= - m.b239 + m.b244 <= 0)
m.c555 = Constraint(expr= - m.b238 + m.b245 <= 0)
m.c556 = Constraint(expr= - m.b247 + m.b248 <= 0)
m.c557 = Constraint(expr= - m.b246 + m.b249 <= 0)
m.c558 = Constraint(expr= - m.b247 + m.b250 <= 0)
m.c559 = Constraint(expr= - m.b246 + m.b251 <= 0)
m.c560 = Constraint(expr= - m.b247 + m.b252 <= 0)
m.c561 = Constraint(expr= - m.b246 + m.b253 <= 0)
m.c562 = Constraint(expr= - m.b255 + m.b256 <= 0)
m.c563 = Constraint(expr= - m.b254 + m.b257 <= 0)
m.c564 = Constraint(expr= - m.b255 + m.b258 <= 0)
m.c565 = Constraint(expr= - m.b254 + m.b259 <= 0)
m.c566 = Constraint(expr= - m.b255 + m.b260 <= 0)
m.c567 = Constraint(expr= - m.b254 + m.b261 <= 0)
m.c568 = Constraint(expr= - m.b263 + m.b264 <= 0)
m.c569 = Constraint(expr= - m.b262 + m.b265 <= 0)
m.c570 = Constraint(expr= - m.b263 + m.b266 <= 0)
m.c571 = Constraint(expr= - m.b262 + m.b267 <= 0)
m.c572 = Constraint(expr= - m.b263 + m.b268 <= 0)
m.c573 = Constraint(expr= - m.b262 + m.b269 <= 0)
m.c574 = Constraint(expr= - m.b271 + m.b272 <= 0)
m.c575 = Constraint(expr= - m.b270 + m.b273 <= 0)
m.c576 = Constraint(expr= - m.b271 + m.b274 <= 0)
m.c577 = Constraint(expr= - m.b270 + m.b275 <= 0)
m.c578 = Constraint(expr= - m.b271 + m.b276 <= 0)
m.c579 = Constraint(expr= - m.b270 + m.b277 <= 0)
m.c580 = Constraint(expr= - m.b279 + m.b280 <= 0)
m.c581 = Constraint(expr= - m.b278 + m.b281 <= 0)
m.c582 = Constraint(expr= - m.b279 + m.b282 <= 0)
m.c583 = Constraint(expr= - m.b278 + m.b283 <= 0)
m.c584 = Constraint(expr= - m.b279 + m.b284 <= 0)
m.c585 = Constraint(expr= - m.b278 + m.b285 <= 0)
m.c586 = Constraint(expr= - m.b287 + m.b288 <= 0)
m.c587 = Constraint(expr= - m.b286 + m.b289 <= 0)
m.c588 = Constraint(expr= - m.b287 + m.b290 <= 0)
m.c589 = Constraint(expr= - m.b286 + m.b291 <= 0)
m.c590 = Constraint(expr= - m.b287 + m.b292 <= 0)
m.c591 = Constraint(expr= - m.b286 + m.b293 <= 0)
m.c592 = Constraint(expr= - m.b295 + m.b296 <= 0)
m.c593 = Constraint(expr= - m.b294 + m.b297 <= 0)
m.c594 = Constraint(expr= - m.b295 + m.b298 <= 0)
m.c595 = Constraint(expr= - m.b294 + m.b299 <= 0)
m.c596 = Constraint(expr= - m.b295 + m.b300 <= 0)
m.c597 = Constraint(expr= - m.b294 + m.b301 <= 0)
m.c598 = Constraint(expr= m.b174 - m.b238 <= 0)
m.c599 = Constraint(expr= m.b175 - m.b239 <= 0)
m.c600 = Constraint(expr= m.b182 - m.b246 <= 0)
m.c601 = Constraint(expr= m.b183 - m.b247 <= 0)
m.c602 = Constraint(expr= m.b190 - m.b254 <= 0)
m.c603 = Constraint(expr= m.b191 - m.b255 <= 0)
m.c604 = Constraint(expr= m.b198 - m.b262 <= 0)
m.c605 = Constraint(expr= m.b199 - m.b263 <= 0)
m.c606 = Constraint(expr= m.b206 - m.b270 <= 0)
m.c607 = Constraint(expr= m.b207 - m.b271 <= 0)
m.c608 = Constraint(expr= m.b214 - m.b278 <= 0)
m.c609 = Constraint(expr= m.b215 - m.b279 <= 0)
m.c610 = Constraint(expr= m.b222 - m.b286 <= 0)
m.c611 = Constraint(expr= m.b223 - m.b287 <= 0)
m.c612 = Constraint(expr= m.b230 - m.b294 <= 0)
m.c613 = Constraint(expr= m.b231 - m.b295 <= 0)
m.c614 = Constraint(expr= m.b176 - m.b240 <= 0)
m.c615 = Constraint(expr= - m.b176 + m.b177 - m.b241 <= 0)
m.c616 = Constraint(expr= m.b178 - m.b242 <= 0)
m.c617 = Constraint(expr= - m.b178 + m.b179 - m.b243 <= 0)
m.c618 = Constraint(expr= m.b180 - m.b244 <= 0)
m.c619 = Constraint(expr= - m.b180 + m.b181 - m.b245 <= 0)
m.c620 = Constraint(expr= m.b184 - m.b248 <= 0)
m.c621 = Constraint(expr= - m.b184 + m.b185 - m.b249 <= 0)
m.c622 = Constraint(expr= m.b186 - m.b250 <= 0)
m.c623 = Constraint(expr= - m.b186 + m.b187 - m.b251 <= 0)
m.c624 = Constraint(expr= m.b188 - m.b252 <= 0)
m.c625 = Constraint(expr= - m.b188 + m.b189 - m.b253 <= 0)
m.c626 = Constraint(expr= m.b192 - m.b256 <= 0)
m.c627 = Constraint(expr= - m.b192 + m.b193 - m.b257 <= 0)
m.c628 = Constraint(expr= m.b194 - m.b258 <= 0)
m.c629 = Constraint(expr= - m.b194 + m.b195 - m.b259 <= 0)
m.c630 = Constraint(expr= m.b196 - m.b260 <= 0)
m.c631 = Constraint(expr= - m.b196 + m.b197 - m.b261 <= 0)
m.c632 = Constraint(expr= m.b200 - m.b264 <= 0)
m.c633 = Constraint(expr= - m.b200 + m.b201 - m.b265 <= 0)
m.c634 = Constraint(expr= m.b202 - m.b266 <= 0)
m.c635 = Constraint(expr= - m.b202 + m.b203 - m.b267 <= 0)
m.c636 = Constraint(expr= m.b204 - m.b268 <= 0)
m.c637 = Constraint(expr= - m.b204 + m.b205 - m.b269 <= 0)
m.c638 = Constraint(expr= m.b208 - m.b272 <= 0)
m.c639 = Constraint(expr= - m.b208 + m.b209 - m.b273 <= 0)
m.c640 = Constraint(expr= m.b210 - m.b274 <= 0)
m.c641 = Constraint(expr= - m.b210 + m.b211 - m.b275 <= 0)
m.c642 = Constraint(expr= m.b212 - m.b276 <= 0)
m.c643 = Constraint(expr= - m.b212 + m.b213 - m.b277 <= 0)
m.c644 = Constraint(expr= m.b216 - m.b280 <= 0)
m.c645 = Constraint(expr= - m.b216 + m.b217 - m.b281 <= 0)
m.c646 = Constraint(expr= m.b218 - m.b282 <= 0)
m.c647 = Constraint(expr= - m.b218 + m.b219 - m.b283 <= 0)
m.c648 = Constraint(expr= m.b220 - m.b284 <= 0)
m.c649 = Constraint(expr= - m.b220 + m.b221 - m.b285 <= 0)
m.c650 = Constraint(expr= m.b224 - m.b288 <= 0)
m.c651 = Constraint(expr= - m.b224 + m.b225 - m.b289 <= 0)
m.c652 = Constraint(expr= m.b226 - m.b290 <= 0)
m.c653 = Constraint(expr= - m.b226 + m.b227 - m.b291 <= 0)
m.c654 = Constraint(expr= m.b228 - m.b292 <= 0)
m.c655 = Constraint(expr= - m.b228 + m.b229 - m.b293 <= 0)
m.c656 = Constraint(expr= m.b232 - m.b296 <= 0)
m.c657 = Constraint(expr= - m.b232 + m.b233 - m.b297 <= 0)
m.c658 = Constraint(expr= m.b234 - m.b298 <= 0)
m.c659 = Constraint(expr= - m.b234 + m.b235 - m.b299 <= 0)
m.c660 = Constraint(expr= m.b236 - m.b300 <= 0)
m.c661 = Constraint(expr= - m.b236 + m.b237 - m.b301 <= 0)
m.c662 = Constraint(expr= m.x10 - m.x64 - m.x302 == 0)
m.c663 = Constraint(expr= m.x11 - m.x65 - m.x303 == 0)
m.c664 = Constraint(expr= m.x18 - m.x66 - m.x324 == 0)
m.c665 = Constraint(expr= m.x19 - m.x67 - m.x325 == 0)
m.c666 = Constraint(expr= m.x40 - m.x68 - m.x358 == 0)
m.c667 = Constraint(expr= m.x41 - m.x69 - m.x359 == 0)
m.c668 = Constraint(expr= m.x42 - m.x70 - m.x360 == 0)
m.c669 = Constraint(expr= m.x43 - m.x71 - m.x361 == 0)
m.c670 = Constraint(expr= m.x302 - m.x304 - m.x306 == 0)
m.c671 = Constraint(expr= m.x303 - m.x305 - m.x307 == 0)
m.c672 = Constraint(expr= - m.x308 - m.x310 + m.x312 == 0)
m.c673 = Constraint(expr= - m.x309 - m.x311 + m.x313 == 0)
m.c674 = Constraint(expr= m.x312 - m.x314 - m.x316 == 0)
m.c675 = Constraint(expr= m.x313 - m.x315 - m.x317 == 0)
m.c676 = Constraint(expr= m.x316 - m.x318 - m.x320 - m.x322 == 0)
m.c677 = Constraint(expr= m.x317 - m.x319 - m.x321 - m.x323 == 0)
m.c678 = Constraint(expr= m.x326 - m.x332 - m.x334 == 0)
m.c679 = Constraint(expr= m.x327 - m.x333 - m.x335 == 0)
m.c680 = Constraint(expr= m.x330 - m.x336 - m.x338 - m.x340 == 0)
m.c681 = Constraint(expr= m.x331 - m.x337 - m.x339 - m.x341 == 0)
m.c682 = Constraint(expr= m.x346 - m.x354 - m.x356 == 0)
m.c683 = Constraint(expr= m.x347 - m.x355 - m.x357 == 0)
m.c684 = Constraint(expr= - m.x348 - m.x360 + m.x362 == 0)
m.c685 = Constraint(expr= - m.x349 - m.x361 + m.x363 == 0)
m.c686 = Constraint(expr= m.x350 - m.x364 - m.x366 == 0)
m.c687 = Constraint(expr= m.x351 - m.x365 - m.x367 == 0)
m.c688 = Constraint(expr= m.x352 - m.x368 - m.x370 - m.x372 == 0)
m.c689 = Constraint(expr= m.x353 - m.x369 - m.x371 - m.x373 == 0)
m.c690 = Constraint(expr= m.x390 - m.x392 == 0)
m.c691 = Constraint(expr= m.x391 - m.x393 == 0)
m.c692 = Constraint(expr= m.x392 - m.x394 - m.x396 == 0)
m.c693 = Constraint(expr= m.x393 - m.x395 - m.x397 == 0)
m.c694 = Constraint(expr= - m.x398 - m.x400 + m.x402 == 0)
m.c695 = Constraint(expr= - m.x399 - m.x401 + m.x403 == 0)
m.c696 = Constraint(expr= m.x402 - m.x404 - m.x406 == 0)
m.c697 = Constraint(expr= m.x403 - m.x405 - m.x407 == 0)
m.c698 = Constraint(expr= m.x406 - m.x408 - m.x410 - m.x412 == 0)
m.c699 = Constraint(expr= m.x407 - m.x409 - m.x411 - m.x413 == 0)
m.c700 = Constraint(expr= m.x416 - m.x422 - m.x424 == 0)
m.c701 = Constraint(expr= m.x417 - m.x423 - m.x425 == 0)
m.c702 = Constraint(expr= m.x420 - m.x426 - m.x428 - m.x430 == 0)
m.c703 = Constraint(expr= m.x421 - m.x427 - m.x429 - m.x431 == 0)
m.c704 = Constraint(expr= m.x436 - m.x444 - m.x446 == 0)
m.c705 = Constraint(expr= m.x437 - m.x445 - m.x447 == 0)
m.c706 = Constraint(expr= - m.x438 - m.x450 + m.x452 == 0)
m.c707 = Constraint(expr= - m.x439 - m.x451 + m.x453 == 0)
m.c708 = Constraint(expr= m.x440 - m.x454 - m.x456 == 0)
m.c709 = Constraint(expr= m.x441 - m.x455 - m.x457 == 0)
m.c710 = Constraint(expr= m.x442 - m.x458 - m.x460 - m.x462 == 0)
m.c711 = Constraint(expr= m.x443 - m.x459 - m.x461 - m.x463 == 0)
m.c712 = Constraint(expr=-log(1 + m.x304) + m.x308 + m.b482 <= 1)
m.c713 = Constraint(expr=-log(1 + m.x305) + m.x309 + m.b483 <= 1)
m.c714 = Constraint(expr= m.x304 - 10*m.b482 <= 0)
m.c715 = Constraint(expr= m.x305 - 10*m.b483 <= 0)
m.c716 = Constraint(expr= m.x308 - 2.39789527279837*m.b482 <= 0)
m.c717 = Constraint(expr= m.x309 - 2.39789527279837*m.b483 <= 0)
m.c718 = Constraint(expr=-1.2*log(1 + m.x306) + m.x310 + m.b484 <= 1)
m.c719 = Constraint(expr=-1.2*log(1 + m.x307) + m.x311 + m.b485 <= 1)
m.c720 = Constraint(expr= m.x306 - 10*m.b484 <= 0)
m.c721 = Constraint(expr= m.x307 - 10*m.b485 <= 0)
m.c722 = Constraint(expr= m.x310 - 2.87747432735804*m.b484 <= 0)
m.c723 = Constraint(expr= m.x311 - 2.87747432735804*m.b485 <= 0)
m.c724 = Constraint(expr= - 0.75*m.x318 + m.x326 + m.b486 <= 1)
m.c725 = Constraint(expr= - 0.75*m.x319 + m.x327 + m.b487 <= 1)
m.c726 = Constraint(expr= - 0.75*m.x318 + m.x326 - m.b486 >= -1)
m.c727 = Constraint(expr= - 0.75*m.x319 + m.x327 - m.b487 >= -1)
m.c728 = Constraint(expr= m.x318 - 2.87747432735804*m.b486 <= 0)
m.c729 = Constraint(expr= m.x319 - 2.87747432735804*m.b487 <= 0)
m.c730 = Constraint(expr= m.x326 - 2.15810574551853*m.b486 <= 0)
m.c731 = Constraint(expr= m.x327 - 2.15810574551853*m.b487 <= 0)
m.c732 = Constraint(expr=-1.5*log(1 + m.x320) + m.x328 + m.b488 <= 1)
m.c733 = Constraint(expr=-1.5*log(1 + m.x321) + m.x329 + m.b489 <= 1)
m.c734 = Constraint(expr= m.x320 - 2.87747432735804*m.b488 <= 0)
m.c735 = Constraint(expr= m.x321 - 2.87747432735804*m.b489 <= 0)
m.c736 = Constraint(expr= m.x328 - 2.03277599268042*m.b488 <= 0)
m.c737 = Constraint(expr= m.x329 - 2.03277599268042*m.b489 <= 0)
m.c738 = Constraint(expr= - m.x322 + m.x330 + m.b490 <= 1)
m.c739 = Constraint(expr= - m.x323 + m.x331 + m.b491 <= 1)
m.c740 = Constraint(expr= - m.x322 + m.x330 - m.b490 >= -1)
m.c741 = Constraint(expr= - m.x323 + m.x331 - m.b491 >= -1)
m.c742 = Constraint(expr= - 0.5*m.x324 + m.x330 + m.b490 <= 1)
m.c743 = Constraint(expr= - 0.5*m.x325 + m.x331 + m.b491 <= 1)
m.c744 = Constraint(expr= - 0.5*m.x324 + m.x330 - m.b490 >= -1)
m.c745 = Constraint(expr= - 0.5*m.x325 + m.x331 - m.b491 >= -1)
m.c746 = Constraint(expr= m.x322 - 2.87747432735804*m.b490 <= 0)
m.c747 = Constraint(expr= m.x323 - 2.87747432735804*m.b491 <= 0)
m.c748 = Constraint(expr= m.x324 - 7*m.b490 <= 0)
m.c749 = Constraint(expr= m.x325 - 7*m.b491 <= 0)
m.c750 = Constraint(expr= m.x330 - 3.5*m.b490 <= 0)
m.c751 = Constraint(expr= m.x331 - 3.5*m.b491 <= 0)
m.c752 = Constraint(expr=-1.25*log(1 + m.x332) + m.x342 + m.b492 <= 1)
m.c753 = Constraint(expr=-1.25*log(1 + m.x333) + m.x343 + m.b493 <= 1)
m.c754 = Constraint(expr= m.x332 - 2.15810574551853*m.b492 <= 0)
m.c755 = Constraint(expr= m.x333 - 2.15810574551853*m.b493 <= 0)
m.c756 = Constraint(expr= m.x342 - 1.43746550029693*m.b492 <= 0)
m.c757 = Constraint(expr= m.x343 - 1.43746550029693*m.b493 <= 0)
m.c758 = Constraint(expr=-0.9*log(1 + m.x334) + m.x344 + m.b494 <= 1)
m.c759 = Constraint(expr=-0.9*log(1 + m.x335) + m.x345 + m.b495 <= 1)
m.c760 = Constraint(expr= m.x334 - 2.15810574551853*m.b494 <= 0)
m.c761 = Constraint(expr= m.x335 - 2.15810574551853*m.b495 <= 0)
m.c762 = Constraint(expr= m.x344 - 1.03497516021379*m.b494 <= 0)
m.c763 = Constraint(expr= m.x345 - 1.03497516021379*m.b495 <= 0)
m.c764 = Constraint(expr=-log(1 + m.x328) + m.x346 + m.b496 <= 1)
m.c765 = Constraint(expr=-log(1 + m.x329) + m.x347 + m.b497 <= 1)
m.c766 = Constraint(expr= m.x328 - 2.03277599268042*m.b496 <= 0)
m.c767 = Constraint(expr= m.x329 - 2.03277599268042*m.b497 <= 0)
m.c768 = Constraint(expr= m.x346 - 1.10947836929589*m.b496 <= 0)
m.c769 = Constraint(expr= m.x347 - 1.10947836929589*m.b497 <= 0)
m.c770 = Constraint(expr= - 0.9*m.x336 + m.x348 + m.b498 <= 1)
m.c771 = Constraint(expr= - 0.9*m.x337 + m.x349 + m.b499 <= 1)
m.c772 = Constraint(expr= - 0.9*m.x336 + m.x348 - m.b498 >= -1)
m.c773 = Constraint(expr= - 0.9*m.x337 + m.x349 - m.b499 >= -1)
m.c774 = Constraint(expr= m.x336 - 3.5*m.b498 <= 0)
m.c775 = Constraint(expr= m.x337 - 3.5*m.b499 <= 0)
m.c776 = Constraint(expr= m.x348 - 3.15*m.b498 <= 0)
m.c777 = Constraint(expr= m.x349 - 3.15*m.b499 <= 0)
m.c778 = Constraint(expr= - 0.6*m.x338 + m.x350 + m.b500 <= 1)
m.c779 = Constraint(expr= - 0.6*m.x339 + m.x351 + m.b501 <= 1)
m.c780 = Constraint(expr= - 0.6*m.x338 + m.x350 - m.b500 >= -1)
m.c781 = Constraint(expr= - 0.6*m.x339 + m.x351 - m.b501 >= -1)
m.c782 = Constraint(expr= m.x338 - 3.5*m.b500 <= 0)
m.c783 = Constraint(expr= m.x339 - 3.5*m.b501 <= 0)
m.c784 = Constraint(expr= m.x350 - 2.1*m.b500 <= 0)
m.c785 = Constraint(expr= m.x351 - 2.1*m.b501 <= 0)
m.c786 = Constraint(expr=-1.1*log(1 + m.x340) + m.x352 + m.b502 <= 1)
m.c787 = Constraint(expr=-1.1*log(1 + m.x341) + m.x353 + m.b503 <= 1)
m.c788 = Constraint(expr= m.x340 - 3.5*m.b502 <= 0)
m.c789 = Constraint(expr= m.x341 - 3.5*m.b503 <= 0)
m.c790 = Constraint(expr= m.x352 - 1.6544851364539*m.b502 <= 0)
m.c791 = Constraint(expr= m.x353 - 1.6544851364539*m.b503 <= 0)
m.c792 = Constraint(expr= - 0.9*m.x342 + m.x374 + m.b504 <= 1)
m.c793 = Constraint(expr= - 0.9*m.x343 + m.x375 + m.b505 <= 1)
m.c794 = Constraint(expr= - 0.9*m.x342 + m.x374 - m.b504 >= -1)
m.c795 = Constraint(expr= - 0.9*m.x343 + m.x375 - m.b505 >= -1)
m.c796 = Constraint(expr= - m.x358 + m.x374 + m.b504 <= 1)
m.c797 = Constraint(expr= - m.x359 + m.x375 + m.b505 <= 1)
m.c798 = Constraint(expr= - m.x358 + m.x374 - m.b504 >= -1)
m.c799 = Constraint(expr= - m.x359 + m.x375 - m.b505 >= -1)
m.c800 = Constraint(expr= m.x342 - 1.43746550029693*m.b504 <= 0)
m.c801 = Constraint(expr= m.x343 - 1.43746550029693*m.b505 <= 0)
m.c802 = Constraint(expr= m.x358 - 7*m.b504 <= 0)
m.c803 = Constraint(expr= m.x359 - 7*m.b505 <= 0)
m.c804 = Constraint(expr= m.x374 - 7*m.b504 <= 0)
m.c805 = Constraint(expr= m.x375 - 7*m.b505 <= 0)
m.c806 = Constraint(expr=-log(1 + m.x344) + m.x376 + m.b506 <= 1)
m.c807 = Constraint(expr=-log(1 + m.x345) + m.x377 + m.b507 <= 1)
m.c808 = Constraint(expr= m.x344 - 1.03497516021379*m.b506 <= 0)
m.c809 = Constraint(expr= m.x345 - 1.03497516021379*m.b507 <= 0)
m.c810 = Constraint(expr= m.x376 - 0.710483612536911*m.b506 <= 0)
m.c811 = Constraint(expr= m.x377 - 0.710483612536911*m.b507 <= 0)
m.c812 = Constraint(expr=-0.7*log(1 + m.x354) + m.x378 + m.b508 <= 1)
m.c813 = Constraint(expr=-0.7*log(1 + m.x355) + m.x379 + m.b509 <= 1)
m.c814 = Constraint(expr= m.x354 - 1.10947836929589*m.b508 <= 0)
m.c815 = Constraint(expr= m.x355 - 1.10947836929589*m.b509 <= 0)
m.c816 = Constraint(expr= m.x378 - 0.522508489006913*m.b508 <= 0)
m.c817 = Constraint(expr= m.x379 - 0.522508489006913*m.b509 <= 0)
m.c818 = Constraint(expr=-0.65*log(1 + m.x356) + m.x380 + m.b510 <= 1)
m.c819 = Constraint(expr=-0.65*log(1 + m.x357) + m.x381 + m.b511 <= 1)
m.c820 = Constraint(expr=-0.65*log(1 + m.x362) + m.x380 + m.b510 <= 1)
m.c821 = Constraint(expr=-0.65*log(1 + m.x363) + m.x381 + m.b511 <= 1)
m.c822 = Constraint(expr= m.x356 - 1.10947836929589*m.b510 <= 0)
m.c823 = Constraint(expr= m.x357 - 1.10947836929589*m.b511 <= 0)
m.c824 = Constraint(expr= m.x362 - 8.15*m.b510 <= 0)
m.c825 = Constraint(expr= m.x363 - 8.15*m.b511 <= 0)
m.c826 = Constraint(expr= m.x380 - 1.43894002153683*m.b510 <= 0)
m.c827 = Constraint(expr= m.x381 - 1.43894002153683*m.b511 <= 0)
m.c828 = Constraint(expr= - m.x364 + m.x382 + m.b512 <= 1)
m.c829 = Constraint(expr= - m.x365 + m.x383 + m.b513 <= 1)
m.c830 = Constraint(expr= - m.x364 + m.x382 - m.b512 >= -1)
m.c831 = Constraint(expr= - m.x365 + m.x383 - m.b513 >= -1)
m.c832 = Constraint(expr= m.x364 - 2.1*m.b512 <= 0)
m.c833 = Constraint(expr= m.x365 - 2.1*m.b513 <= 0)
m.c834 = Constraint(expr= m.x382 - 2.1*m.b512 <= 0)
m.c835 = Constraint(expr= m.x383 - 2.1*m.b513 <= 0)
m.c836 = Constraint(expr= - m.x366 + m.x384 + m.b514 <= 1)
m.c837 = Constraint(expr= - m.x367 + m.x385 + m.b515 <= 1)
m.c838 = Constraint(expr= - m.x366 + m.x384 - m.b514 >= -1)
m.c839 = Constraint(expr= - m.x367 + m.x385 - m.b515 >= -1)
m.c840 = Constraint(expr= m.x366 - 2.1*m.b514 <= 0)
m.c841 = Constraint(expr= m.x367 - 2.1*m.b515 <= 0)
m.c842 = Constraint(expr= m.x384 - 2.1*m.b514 <= 0)
m.c843 = Constraint(expr= m.x385 - 2.1*m.b515 <= 0)
m.c844 = Constraint(expr=-0.75*log(1 + m.x368) + m.x386 + m.b516 <= 1)
m.c845 = Constraint(expr=-0.75*log(1 + m.x369) + m.x387 + m.b517 <= 1)
m.c846 = Constraint(expr= m.x368 - 1.6544851364539*m.b516 <= 0)
m.c847 = Constraint(expr= m.x369 - 1.6544851364539*m.b517 <= 0)
m.c848 = Constraint(expr= m.x386 - 0.732188035236726*m.b516 <= 0)
m.c849 = Constraint(expr= m.x387 - 0.732188035236726*m.b517 <= 0)
m.c850 = Constraint(expr=-0.8*log(1 + m.x370) + m.x388 + m.b518 <= 1)
m.c851 = Constraint(expr=-0.8*log(1 + m.x371) + m.x389 + m.b519 <= 1)
m.c852 = Constraint(expr= m.x370 - 1.6544851364539*m.b518 <= 0)
m.c853 = Constraint(expr= m.x371 - 1.6544851364539*m.b519 <= 0)
m.c854 = Constraint(expr= m.x388 - 0.781000570919175*m.b518 <= 0)
m.c855 = Constraint(expr= m.x389 - 0.781000570919175*m.b519 <= 0)
m.c856 = Constraint(expr=-0.85*log(1 + m.x372) + m.x390 + m.b520 <= 1)
m.c857 = Constraint(expr=-0.85*log(1 + m.x373) + m.x391 + m.b521 <= 1)
m.c858 = Constraint(expr= m.x372 - 1.6544851364539*m.b520 <= 0)
m.c859 = Constraint(expr= m.x373 - 1.6544851364539*m.b521 <= 0)
m.c860 = Constraint(expr= m.x390 - 0.829813106601623*m.b520 <= 0)
m.c861 = Constraint(expr= m.x391 - 0.829813106601623*m.b521 <= 0)
m.c862 = Constraint(expr=-log(1 + m.x394) + m.x398 + m.b522 <= 1)
m.c863 = Constraint(expr=-log(1 + m.x395) + m.x399 + m.b523 <= 1)
m.c864 = Constraint(expr= m.x394 - 0.829813106601623*m.b522 <= 0)
m.c865 = Constraint(expr= m.x395 - 0.829813106601623*m.b523 <= 0)
m.c866 = Constraint(expr= m.x398 - 0.604213834097861*m.b522 <= 0)
m.c867 = Constraint(expr= m.x399 - 0.604213834097861*m.b523 <= 0)
m.c868 = Constraint(expr=-1.2*log(1 + m.x396) + m.x400 + m.b524 <= 1)
m.c869 = Constraint(expr=-1.2*log(1 + m.x397) + m.x401 + m.b525 <= 1)
m.c870 = Constraint(expr= m.x396 - 0.829813106601623*m.b524 <= 0)
m.c871 = Constraint(expr= m.x397 - 0.829813106601623*m.b525 <= 0)
m.c872 = Constraint(expr= m.x400 - 0.725056600917433*m.b524 <= 0)
m.c873 = Constraint(expr= m.x401 - 0.725056600917433*m.b525 <= 0)
m.c874 = Constraint(expr= - 0.75*m.x408 + m.x416 + m.b526 <= 1)
m.c875 = Constraint(expr= - 0.75*m.x409 + m.x417 + m.b527 <= 1)
m.c876 = Constraint(expr= - 0.75*m.x408 + m.x416 - m.b526 >= -1)
m.c877 = Constraint(expr= - 0.75*m.x409 + m.x417 - m.b527 >= -1)
m.c878 = Constraint(expr= m.x408 - 0.725056600917433*m.b526 <= 0)
m.c879 = Constraint(expr= m.x409 - 0.725056600917433*m.b527 <= 0)
m.c880 = Constraint(expr= m.x416 - 0.543792450688075*m.b526 <= 0)
m.c881 = Constraint(expr= m.x417 - 0.543792450688075*m.b527 <= 0)
m.c882 = Constraint(expr=-1.5*log(1 + m.x410) + m.x418 + m.b528 <= 1)
m.c883 = Constraint(expr=-1.5*log(1 + m.x411) + m.x419 + m.b529 <= 1)
m.c884 = Constraint(expr= m.x410 - 0.725056600917433*m.b528 <= 0)
m.c885 = Constraint(expr= m.x411 - 0.725056600917433*m.b529 <= 0)
m.c886 = Constraint(expr= m.x418 - 0.817889793106597*m.b528 <= 0)
m.c887 = Constraint(expr= m.x419 - 0.817889793106597*m.b529 <= 0)
m.c888 = Constraint(expr= - m.x412 + m.x420 + m.b530 <= 1)
m.c889 = Constraint(expr= - m.x413 + m.x421 + m.b531 <= 1)
m.c890 = Constraint(expr= - m.x412 + m.x420 - m.b530 >= -1)
m.c891 = Constraint(expr= - m.x413 + m.x421 - m.b531 >= -1)
m.c892 = Constraint(expr= - 0.5*m.x414 + m.x420 + m.b530 <= 1)
m.c893 = Constraint(expr= - 0.5*m.x415 + m.x421 + m.b531 <= 1)
m.c894 = Constraint(expr= - 0.5*m.x414 + m.x420 - m.b530 >= -1)
m.c895 = Constraint(expr= - 0.5*m.x415 + m.x421 - m.b531 >= -1)
m.c896 = Constraint(expr= m.x412 - 0.725056600917433*m.b530 <= 0)
m.c897 = Constraint(expr= m.x413 - 0.725056600917433*m.b531 <= 0)
m.c898 = Constraint(expr= m.x414 - 7*m.b530 <= 0)
m.c899 = Constraint(expr= m.x415 - 7*m.b531 <= 0)
m.c900 = Constraint(expr= m.x420 - 3.5*m.b530 <= 0)
m.c901 = Constraint(expr= m.x421 - 3.5*m.b531 <= 0)
m.c902 = Constraint(expr=-1.25*log(1 + m.x422) + m.x432 + m.b532 <= 1)
m.c903 = Constraint(expr=-1.25*log(1 + m.x423) + m.x433 + m.b533 <= 1)
m.c904 = Constraint(expr= m.x422 - 0.543792450688075*m.b532 <= 0)
m.c905 = Constraint(expr= m.x423 - 0.543792450688075*m.b533 <= 0)
m.c906 = Constraint(expr= m.x432 - 0.542802524296876*m.b532 <= 0)
m.c907 = Constraint(expr= m.x433 - 0.542802524296876*m.b533 <= 0)
m.c908 = Constraint(expr=-0.9*log(1 + m.x424) + m.x434 + m.b534 <= 1)
m.c909 = Constraint(expr=-0.9*log(1 + m.x425) + m.x435 + m.b535 <= 1)
m.c910 = Constraint(expr= m.x424 - 0.543792450688075*m.b534 <= 0)
m.c911 = Constraint(expr= m.x425 - 0.543792450688075*m.b535 <= 0)
m.c912 = Constraint(expr= m.x434 - 0.39081781749375*m.b534 <= 0)
m.c913 = Constraint(expr= m.x435 - 0.39081781749375*m.b535 <= 0)
m.c914 = Constraint(expr=-log(1 + m.x418) + m.x436 + m.b536 <= 1)
m.c915 = Constraint(expr=-log(1 + m.x419) + m.x437 + m.b537 <= 1)
m.c916 = Constraint(expr= m.x418 - 0.817889793106597*m.b536 <= 0)
m.c917 = Constraint(expr= m.x419 - 0.817889793106597*m.b537 <= 0)
m.c918 = Constraint(expr= m.x436 - 0.597676374064473*m.b536 <= 0)
m.c919 = Constraint(expr= m.x437 - 0.597676374064473*m.b537 <= 0)
m.c920 = Constraint(expr= - 0.9*m.x426 + m.x438 + m.b538 <= 1)
m.c921 = Constraint(expr= - 0.9*m.x427 + m.x439 + m.b539 <= 1)
m.c922 = Constraint(expr= - 0.9*m.x426 + m.x438 - m.b538 >= -1)
m.c923 = Constraint(expr= - 0.9*m.x427 + m.x439 - m.b539 >= -1)
m.c924 = Constraint(expr= m.x426 - 3.5*m.b538 <= 0)
m.c925 = Constraint(expr= m.x427 - 3.5*m.b539 <= 0)
m.c926 = Constraint(expr= m.x438 - 3.15*m.b538 <= 0)
m.c927 = Constraint(expr= m.x439 - 3.15*m.b539 <= 0)
m.c928 = Constraint(expr= - 0.6*m.x428 + m.x440 + m.b540 <= 1)
m.c929 = Constraint(expr= - 0.6*m.x429 + m.x441 + m.b541 <= 1)
m.c930 = Constraint(expr= - 0.6*m.x428 + m.x440 - m.b540 >= -1)
m.c931 = Constraint(expr= - 0.6*m.x429 + m.x441 - m.b541 >= -1)
m.c932 = Constraint(expr= m.x428 - 3.5*m.b540 <= 0)
m.c933 = Constraint(expr= m.x429 - 3.5*m.b541 <= 0)
m.c934 = Constraint(expr= m.x440 - 2.1*m.b540 <= 0)
m.c935 = Constraint(expr= m.x441 - 2.1*m.b541 <= 0)
m.c936 = Constraint(expr=-1.1*log(1 + m.x430) + m.x442 + m.b542 <= 1)
m.c937 = Constraint(expr=-1.1*log(1 + m.x431) + m.x443 + m.b543 <= 1)
m.c938 = Constraint(expr= m.x430 - 3.5*m.b542 <= 0)
m.c939 = Constraint(expr= m.x431 - 3.5*m.b543 <= 0)
m.c940 = Constraint(expr= m.x442 - 1.6544851364539*m.b542 <= 0)
m.c941 = Constraint(expr= m.x443 - 1.6544851364539*m.b543 <= 0)
m.c942 = Constraint(expr= - 0.9*m.x432 + m.x464 + m.b544 <= 1)
m.c943 = Constraint(expr= - 0.9*m.x433 + m.x465 + m.b545 <= 1)
m.c944 = Constraint(expr= - 0.9*m.x432 + m.x464 - m.b544 >= -1)
m.c945 = Constraint(expr= - 0.9*m.x433 + m.x465 - m.b545 >= -1)
m.c946 = Constraint(expr= - m.x448 + m.x464 + m.b544 <= 1)
m.c947 = Constraint(expr= - m.x449 + m.x465 + m.b545 <= 1)
m.c948 = Constraint(expr= - m.x448 + m.x464 - m.b544 >= -1)
m.c949 = Constraint(expr= - m.x449 + m.x465 - m.b545 >= -1)
m.c950 = Constraint(expr= m.x432 - 0.542802524296876*m.b544 <= 0)
m.c951 = Constraint(expr= m.x433 - 0.542802524296876*m.b545 <= 0)
m.c952 = Constraint(expr= m.x448 - 7*m.b544 <= 0)
m.c953 = Constraint(expr= m.x449 - 7*m.b545 <= 0)
m.c954 = Constraint(expr= m.x464 - 7*m.b544 <= 0)
m.c955 = Constraint(expr= m.x465 - 7*m.b545 <= 0)
m.c956 = Constraint(expr=-log(1 + m.x434) + m.x466 + m.b546 <= 1)
m.c957 = Constraint(expr=-log(1 + m.x435) + m.x467 + m.b547 <= 1)
m.c958 = Constraint(expr= m.x434 - 0.39081781749375*m.b546 <= 0)
m.c959 = Constraint(expr= m.x435 - 0.39081781749375*m.b547 <= 0)
m.c960 = Constraint(expr= m.x466 - 0.329891932037118*m.b546 <= 0)
m.c961 = Constraint(expr= m.x467 - 0.329891932037118*m.b547 <= 0)
m.c962 = Constraint(expr=-0.7*log(1 + m.x444) + m.x468 + m.b548 <= 1)
m.c963 = Constraint(expr=-0.7*log(1 + m.x445) + m.x469 + m.b549 <= 1)
m.c964 = Constraint(expr= m.x444 - 0.597676374064473*m.b548 <= 0)
m.c965 = Constraint(expr= m.x445 - 0.597676374064473*m.b549 <= 0)
m.c966 = Constraint(expr= m.x468 - 0.327985215232756*m.b548 <= 0)
m.c967 = Constraint(expr= m.x469 - 0.327985215232756*m.b549 <= 0)
m.c968 = Constraint(expr=-0.65*log(1 + m.x446) + m.x470 + m.b550 <= 1)
m.c969 = Constraint(expr=-0.65*log(1 + m.x447) + m.x471 + m.b551 <= 1)
m.c970 = Constraint(expr=-0.65*log(1 + m.x452) + m.x470 + m.b550 <= 1)
m.c971 = Constraint(expr=-0.65*log(1 + m.x453) + m.x471 + m.b551 <= 1)
m.c972 = Constraint(expr= m.x446 - 0.597676374064473*m.b550 <= 0)
m.c973 = Constraint(expr= m.x447 - 0.597676374064473*m.b551 <= 0)
m.c974 = Constraint(expr= m.x452 - 8.15*m.b550 <= 0)
m.c975 = Constraint(expr= m.x453 - 8.15*m.b551 <= 0)
m.c976 = Constraint(expr= m.x470 - 1.43894002153683*m.b550 <= 0)
m.c977 = Constraint(expr= m.x471 - 1.43894002153683*m.b551 <= 0)
m.c978 = Constraint(expr= - m.x454 + m.x472 + m.b552 <= 1)
m.c979 = Constraint(expr= - m.x455 + m.x473 + m.b553 <= 1)
m.c980 = Constraint(expr= - m.x454 + m.x472 - m.b552 >= -1)
m.c981 = Constraint(expr= - m.x455 + m.x473 - m.b553 >= -1)
m.c982 = Constraint(expr= m.x454 - 2.1*m.b552 <= 0)
m.c983 = Constraint(expr= m.x455 - 2.1*m.b553 <= 0)
m.c984 = Constraint(expr= m.x472 - 2.1*m.b552 <= 0)
m.c985 = Constraint(expr= m.x473 - 2.1*m.b553 <= 0)
m.c986 = Constraint(expr= - m.x456 + m.x474 + m.b554 <= 1)
m.c987 = Constraint(expr= - m.x457 + m.x475 + m.b555 <= 1)
m.c988 = Constraint(expr= - m.x456 + m.x474 - m.b554 >= -1)
m.c989 = Constraint(expr= - m.x457 + m.x475 - m.b555 >= -1)
m.c990 = Constraint(expr= m.x456 - 2.1*m.b554 <= 0)
m.c991 = Constraint(expr= m.x457 - 2.1*m.b555 <= 0)
m.c992 = Constraint(expr= m.x474 - 2.1*m.b554 <= 0)
m.c993 = Constraint(expr= m.x475 - 2.1*m.b555 <= 0)
m.c994 = Constraint(expr=-0.75*log(1 + m.x458) + m.x476 + m.b556 <= 1)
m.c995 = Constraint(expr=-0.75*log(1 + m.x459) + m.x477 + m.b557 <= 1)
m.c996 = Constraint(expr= m.x458 - 1.6544851364539*m.b556 <= 0)
m.c997 = Constraint(expr= m.x459 - 1.6544851364539*m.b557 <= 0)
m.c998 = Constraint(expr= m.x476 - 0.732188035236726*m.b556 <= 0)
m.c999 = Constraint(expr= m.x477 - 0.732188035236726*m.b557 <= 0)
m.c1000 = Constraint(expr=-0.8*log(1 + m.x460) + m.x478 + m.b558 <= 1)
m.c1001 = Constraint(expr=-0.8*log(1 + m.x461) + m.x479 + m.b559 <= 1)
m.c1002 = Constraint(expr= m.x460 - 1.6544851364539*m.b558 <= 0)
m.c1003 = Constraint(expr= m.x461 - 1.6544851364539*m.b559 <= 0)
m.c1004 = Constraint(expr= m.x478 - 0.781000570919175*m.b558 <= 0)
m.c1005 = Constraint(expr= m.x479 - 0.781000570919175*m.b559 <= 0)
m.c1006 = Constraint(expr=-0.85*log(1 + m.x462) + m.x480 + m.b560 <= 1)
m.c1007 = Constraint(expr=-0.85*log(1 + m.x463) + m.x481 + m.b561 <= 1)
m.c1008 = Constraint(expr= m.x462 - 1.6544851364539*m.b560 <= 0)
m.c1009 = Constraint(expr= m.x463 - 1.6544851364539*m.b561 <= 0)
m.c1010 = Constraint(expr= m.x480 - 0.829813106601623*m.b560 <= 0)
m.c1011 = Constraint(expr= m.x481 - 0.829813106601623*m.b561 <= 0)
m.c1012 = Constraint(expr= 5*m.b562 + m.x642 <= 0)
m.c1013 = Constraint(expr= 4*m.b563 + m.x643 <= 0)
m.c1014 = Constraint(expr= 8*m.b564 + m.x644 <= 0)
m.c1015 = Constraint(expr= 7*m.b565 + m.x645 <= 0)
m.c1016 = Constraint(expr= 6*m.b566 + m.x646 <= 0)
m.c1017 = Constraint(expr= 9*m.b567 + m.x647 <= 0)
m.c1018 = Constraint(expr= 10*m.b568 + m.x648 <= 0)
m.c1019 = Constraint(expr= 9*m.b569 + m.x649 <= 0)
m.c1020 = Constraint(expr= 6*m.b570 + m.x650 <= 0)
m.c1021 = Constraint(expr= 10*m.b571 + m.x651 <= 0)
m.c1022 = Constraint(expr= 7*m.b572 + m.x652 <= 0)
m.c1023 = Constraint(expr= 7*m.b573 + m.x653 <= 0)
m.c1024 = Constraint(expr= 4*m.b574 + m.x654 <= 0)
m.c1025 = Constraint(expr= 3*m.b575 + m.x655 <= 0)
m.c1026 = Constraint(expr= 5*m.b576 + m.x656 <= 0)
m.c1027 = Constraint(expr= 6*m.b577 + m.x657 <= 0)
m.c1028 = Constraint(expr= 2*m.b578 + m.x658 <= 0)
m.c1029 = Constraint(expr= 5*m.b579 + m.x659 <= 0)
m.c1030 = Constraint(expr= 4*m.b580 + m.x660 <= 0)
m.c1031 = Constraint(expr= 7*m.b581 + m.x661 <= 0)
m.c1032 = Constraint(expr= 3*m.b582 + m.x662 <= 0)
m.c1033 = Constraint(expr= 9*m.b583 + m.x663 <= 0)
m.c1034 = Constraint(expr= 7*m.b584 + m.x664 <= 0)
m.c1035 = Constraint(expr= 2*m.b585 + m.x665 <= 0)
m.c1036 = Constraint(expr= 3*m.b586 + m.x666 <= 0)
m.c1037 = Constraint(expr= m.b587 + m.x667 <= 0)
m.c1038 = Constraint(expr= 2*m.b588 + m.x668 <= 0)
m.c1039 = Constraint(expr= 6*m.b589 + m.x669 <= 0)
m.c1040 = Constraint(expr= 4*m.b590 + m.x670 <= 0)
m.c1041 = Constraint(expr= 8*m.b591 + m.x671 <= 0)
m.c1042 = Constraint(expr= 2*m.b592 + m.x672 <= 0)
m.c1043 = Constraint(expr= 5*m.b593 + m.x673 <= 0)
m.c1044 = Constraint(expr= 3*m.b594 + m.x674 <= 0)
m.c1045 = Constraint(expr= 4*m.b595 + m.x675 <= 0)
m.c1046 = Constraint(expr= 5*m.b596 + m.x676 <= 0)
m.c1047 = Constraint(expr= 7*m.b597 + m.x677 <= 0)
m.c1048 = Constraint(expr= 2*m.b598 + m.x678 <= 0)
m.c1049 = Constraint(expr= 8*m.b599 + m.x679 <= 0)
m.c1050 = Constraint(expr= m.b600 + m.x680 <= 0)
m.c1051 = Constraint(expr= 4*m.b601 + m.x681 <= 0)
m.c1052 = Constraint(expr= 2*m.b602 + m.x682 <= 0)
m.c1053 = Constraint(expr= 5*m.b603 + m.x683 <= 0)
m.c1054 = Constraint(expr= 9*m.b604 + m.x684 <= 0)
m.c1055 = Constraint(expr= 2*m.b605 + m.x685 <= 0)
m.c1056 = Constraint(expr= 5*m.b606 + m.x686 <= 0)
m.c1057 = Constraint(expr= 8*m.b607 + m.x687 <= 0)
m.c1058 = Constraint(expr= 2*m.b608 + m.x688 <= 0)
m.c1059 = Constraint(expr= 3*m.b609 + m.x689 <= 0)
m.c1060 = Constraint(expr= 10*m.b610 + m.x690 <= 0)
m.c1061 = Constraint(expr= 6*m.b611 + m.x691 <= 0)
m.c1062 = Constraint(expr= 4*m.b612 + m.x692 <= 0)
m.c1063 = Constraint(expr= 8*m.b613 + m.x693 <= 0)
m.c1064 = Constraint(expr= 7*m.b614 + m.x694 <= 0)
m.c1065 = Constraint(expr= 3*m.b615 + m.x695 <= 0)
m.c1066 = Constraint(expr= 4*m.b616 + m.x696 <= 0)
m.c1067 = Constraint(expr= 8*m.b617 + m.x697 <= 0)
m.c1068 = Constraint(expr= 2*m.b618 + m.x698 <= 0)
m.c1069 = Constraint(expr= m.b619 + m.x699 <= 0)
m.c1070 = Constraint(expr= 8*m.b620 + m.x700 <= 0)
m.c1071 = Constraint(expr= 3*m.b621 + m.x701 <= 0)
m.c1072 = Constraint(expr= 9*m.b622 + m.x702 <= 0)
m.c1073 = Constraint(expr= 5*m.b623 + m.x703 <= 0)
m.c1074 = Constraint(expr= 3*m.b624 + m.x704 <= 0)
m.c1075 = Constraint(expr= 9*m.b625 + m.x705 <= 0)
m.c1076 = Constraint(expr= 5*m.b626 + m.x706 <= 0)
m.c1077 = Constraint(expr= 3*m.b627 + m.x707 <= 0)
m.c1078 = Constraint(expr= 5*m.b628 + m.x708 <= 0)
m.c1079 = Constraint(expr= 3*m.b629 + m.x709 <= 0)
m.c1080 = Constraint(expr= 6*m.b630 + m.x710 <= 0)
m.c1081 = Constraint(expr= 4*m.b631 + m.x711 <= 0)
m.c1082 = Constraint(expr= 2*m.b632 + m.x712 <= 0)
m.c1083 = Constraint(expr= 6*m.b633 + m.x713 <= 0)
m.c1084 = Constraint(expr= 6*m.b634 + m.x714 <= 0)
m.c1085 = Constraint(expr= 4*m.b635 + m.x715 <= 0)
m.c1086 = Constraint(expr= 3*m.b636 + m.x716 <= 0)
m.c1087 = Constraint(expr= 2*m.b637 + m.x717 <= 0)
m.c1088 = Constraint(expr= 5*m.b638 + m.x718 <= 0)
m.c1089 = Constraint(expr= 8*m.b639 + m.x719 <= 0)
m.c1090 = Constraint(expr= 9*m.b640 + m.x720 <= 0)
m.c1091 = Constraint(expr= 5*m.b641 + m.x721 <= 0)
m.c1092 = Constraint(expr= 5*m.b562 + m.x642 >= 0)
m.c1093 = Constraint(expr= 4*m.b563 + m.x643 >= 0)
m.c1094 = Constraint(expr= 8*m.b564 + m.x644 >= 0)
m.c1095 = Constraint(expr= 7*m.b565 + m.x645 >= 0)
m.c1096 = Constraint(expr= 6*m.b566 + m.x646 >= 0)
m.c1097 = Constraint(expr= 9*m.b567 + m.x647 >= 0)
m.c1098 = Constraint(expr= 10*m.b568 + m.x648 >= 0)
m.c1099 = Constraint(expr= 9*m.b569 + m.x649 >= 0)
m.c1100 = Constraint(expr= 6*m.b570 + m.x650 >= 0)
m.c1101 = Constraint(expr= 10*m.b571 + m.x651 >= 0)
m.c1102 = Constraint(expr= 7*m.b572 + m.x652 >= 0)
m.c1103 = Constraint(expr= 7*m.b573 + m.x653 >= 0)
m.c1104 = Constraint(expr= 4*m.b574 + m.x654 >= 0)
m.c1105 = Constraint(expr= 3*m.b575 + m.x655 >= 0)
m.c1106 = Constraint(expr= 5*m.b576 + m.x656 >= 0)
m.c1107 = Constraint(expr= 6*m.b577 + m.x657 >= 0)
m.c1108 = Constraint(expr= 2*m.b578 + m.x658 >= 0)
m.c1109 = Constraint(expr= 5*m.b579 + m.x659 >= 0)
m.c1110 = Constraint(expr= 4*m.b580 + m.x660 >= 0)
m.c1111 = Constraint(expr= 7*m.b581 + m.x661 >= 0)
m.c1112 = Constraint(expr= 3*m.b582 + m.x662 >= 0)
m.c1113 = Constraint(expr= 9*m.b583 + m.x663 >= 0)
m.c1114 = Constraint(expr= 7*m.b584 + m.x664 >= 0)
m.c1115 = Constraint(expr= 2*m.b585 + m.x665 >= 0)
m.c1116 = Constraint(expr= 3*m.b586 + m.x666 >= 0)
m.c1117 = Constraint(expr= m.b587 + m.x667 >= 0)
m.c1118 = Constraint(expr= 2*m.b588 + m.x668 >= 0)
m.c1119 = Constraint(expr= 6*m.b589 + m.x669 >= 0)
m.c1120 = Constraint(expr= 4*m.b590 + m.x670 >= 0)
m.c1121 = Constraint(expr= 8*m.b591 + m.x671 >= 0)
m.c1122 = Constraint(expr= 2*m.b592 + m.x672 >= 0)
m.c1123 = Constraint(expr= 5*m.b593 + m.x673 >= 0)
m.c1124 = Constraint(expr= 3*m.b594 + m.x674 >= 0)
m.c1125 = Constraint(expr= 4*m.b595 + m.x675 >= 0)
m.c1126 = Constraint(expr= 5*m.b596 + m.x676 >= 0)
m.c1127 = Constraint(expr= 7*m.b597 + m.x677 >= 0)
m.c1128 = Constraint(expr= 2*m.b598 + m.x678 >= 0)
m.c1129 = Constraint(expr= 8*m.b599 + m.x679 >= 0)
m.c1130 = Constraint(expr= m.b600 + m.x680 >= 0)
m.c1131 = Constraint(expr= 4*m.b601 + m.x681 >= 0)
m.c1132 = Constraint(expr= 2*m.b602 + m.x682 >= 0)
m.c1133 = Constraint(expr= 5*m.b603 + m.x683 >= 0)
m.c1134 = Constraint(expr= 9*m.b604 + m.x684 >= 0)
m.c1135 = Constraint(expr= 2*m.b605 + m.x685 >= 0)
m.c1136 = Constraint(expr= 5*m.b606 + m.x686 >= 0)
m.c1137 = Constraint(expr= 8*m.b607 + m.x687 >= 0)
m.c1138 = Constraint(expr= 2*m.b608 + m.x688 >= 0)
m.c1139 = Constraint(expr= 3*m.b609 + m.x689 >= 0)
m.c1140 = Constraint(expr= 10*m.b610 + m.x690 >= 0)
m.c1141 = Constraint(expr= 6*m.b611 + m.x691 >= 0)
m.c1142 = Constraint(expr= 4*m.b612 + m.x692 >= 0)
m.c1143 = Constraint(expr= 8*m.b613 + m.x693 >= 0)
m.c1144 = Constraint(expr= 7*m.b614 + m.x694 >= 0)
m.c1145 = Constraint(expr= 3*m.b615 + m.x695 >= 0)
m.c1146 = Constraint(expr= 4*m.b616 + m.x696 >= 0)
m.c1147 = Constraint(expr= 8*m.b617 + m.x697 >= 0)
m.c1148 = Constraint(expr= 2*m.b618 + m.x698 >= 0)
m.c1149 = Constraint(expr= m.b619 + m.x699 >= 0)
m.c1150 = Constraint(expr= 8*m.b620 + m.x700 >= 0)
m.c1151 = Constraint(expr= 3*m.b621 + m.x701 >= 0)
m.c1152 = Constraint(expr= 9*m.b622 + m.x702 >= 0)
m.c1153 = Constraint(expr= 5*m.b623 + m.x703 >= 0)
m.c1154 = Constraint(expr= 3*m.b624 + m.x704 >= 0)
m.c1155 = Constraint(expr= 9*m.b625 + m.x705 >= 0)
m.c1156 = Constraint(expr= 5*m.b626 + m.x706 >= 0)
m.c1157 = Constraint(expr= 3*m.b627 + m.x707 >= 0)
m.c1158 = Constraint(expr= 5*m.b628 + m.x708 >= 0)
m.c1159 = Constraint(expr= 3*m.b629 + m.x709 >= 0)
m.c1160 = Constraint(expr= 6*m.b630 + m.x710 >= 0)
m.c1161 = Constraint(expr= 4*m.b631 + m.x711 >= 0)
m.c1162 = Constraint(expr= 2*m.b632 + m.x712 >= 0)
m.c1163 = Constraint(expr= 6*m.b633 + m.x713 >= 0)
m.c1164 = Constraint(expr= 6*m.b634 + m.x714 >= 0)
m.c1165 = Constraint(expr= 4*m.b635 + m.x715 >= 0)
m.c1166 = Constraint(expr= 3*m.b636 + m.x716 >= 0)
m.c1167 = Constraint(expr= 2*m.b637 + m.x717 >= 0)
m.c1168 = Constraint(expr= 5*m.b638 + m.x718 >= 0)
m.c1169 = Constraint(expr= 8*m.b639 + m.x719 >= 0)
m.c1170 = Constraint(expr= 9*m.b640 + m.x720 >= 0)
m.c1171 = Constraint(expr= 5*m.b641 + m.x721 >= 0)
m.c1172 = Constraint(expr= m.b482 - m.b483 <= 0)
m.c1173 = Constraint(expr= m.b484 - m.b485 <= 0)
m.c1174 = Constraint(expr= m.b486 - m.b487 <= 0)
m.c1175 = Constraint(expr= m.b488 - m.b489 <= 0)
m.c1176 = Constraint(expr= m.b490 - m.b491 <= 0)
m.c1177 = Constraint(expr= m.b492 - m.b493 <= 0)
m.c1178 = Constraint(expr= m.b494 - m.b495 <= 0)
m.c1179 = Constraint(expr= m.b496 - m.b497 <= 0)
m.c1180 = Constraint(expr= m.b498 - m.b499 <= 0)
m.c1181 = Constraint(expr= m.b500 - m.b501 <= 0)
m.c1182 = Constraint(expr= m.b502 - m.b503 <= 0)
m.c1183 = Constraint(expr= m.b504 - m.b505 <= 0)
m.c1184 = Constraint(expr= m.b506 - m.b507 <= 0)
m.c1185 = Constraint(expr= m.b508 - m.b509 <= 0)
m.c1186 = Constraint(expr= m.b510 - m.b511 <= 0)
m.c1187 = Constraint(expr= m.b512 - m.b513 <= 0)
m.c1188 = Constraint(expr= m.b514 - m.b515 <= 0)
m.c1189 = Constraint(expr= m.b516 - m.b517 <= 0)
m.c1190 = Constraint(expr= m.b518 - m.b519 <= 0)
m.c1191 = Constraint(expr= m.b520 - m.b521 <= 0)
m.c1192 = Constraint(expr= m.b522 - m.b523 <= 0)
m.c1193 = Constraint(expr= m.b524 - m.b525 <= 0)
m.c1194 = Constraint(expr= m.b526 - m.b527 <= 0)
m.c1195 = Constraint(expr= m.b528 - m.b529 <= 0)
m.c1196 = Constraint(expr= m.b530 - m.b531 <= 0)
m.c1197 = Constraint(expr= m.b532 - m.b533 <= 0)
m.c1198 = Constraint(expr= m.b534 - m.b535 <= 0)
m.c1199 = Constraint(expr= m.b536 - m.b537 <= 0)
m.c1200 = Constraint(expr= m.b538 - m.b539 <= 0)
m.c1201 = Constraint(expr= m.b540 - m.b541 <= 0)
m.c1202 = Constraint(expr= m.b542 - m.b543 <= 0)
m.c1203 = Constraint(expr= m.b544 - m.b545 <= 0)
m.c1204 = Constraint(expr= m.b546 - m.b547 <= 0)
m.c1205 = Constraint(expr= m.b548 - m.b549 <= 0)
m.c1206 = Constraint(expr= m.b550 - m.b551 <= 0)
m.c1207 = Constraint(expr= m.b552 - m.b553 <= 0)
m.c1208 = Constraint(expr= m.b554 - m.b555 <= 0)
m.c1209 = Constraint(expr= m.b556 - m.b557 <= 0)
m.c1210 = Constraint(expr= m.b558 - m.b559 <= 0)
m.c1211 = Constraint(expr= m.b560 - m.b561 <= 0)
m.c1212 = Constraint(expr= m.b562 + m.b563 <= 1)
m.c1213 = Constraint(expr= m.b562 + m.b563 <= 1)
m.c1214 = Constraint(expr= m.b564 + m.b565 <= 1)
m.c1215 = Constraint(expr= m.b564 + m.b565 <= 1)
m.c1216 = Constraint(expr= m.b566 + m.b567 <= 1)
m.c1217 = Constraint(expr= m.b566 + m.b567 <= 1)
m.c1218 = Constraint(expr= m.b568 + m.b569 <= 1)
m.c1219 = Constraint(expr= m.b568 + m.b569 <= 1)
m.c1220 = Constraint(expr= m.b570 + m.b571 <= 1)
m.c1221 = Constraint(expr= m.b570 + m.b571 <= 1)
m.c1222 = Constraint(expr= m.b572 + m.b573 <= 1)
m.c1223 = Constraint(expr= m.b572 + m.b573 <= 1)
m.c1224 = Constraint(expr= m.b574 + m.b575 <= 1)
m.c1225 = Constraint(expr= m.b574 + m.b575 <= 1)
m.c1226 = Constraint(expr= m.b576 + m.b577 <= 1)
m.c1227 = Constraint(expr= m.b576 + m.b577 <= 1)
m.c1228 = Constraint(expr= m.b578 + m.b579 <= 1)
m.c1229 = Constraint(expr= m.b578 + m.b579 <= 1)
m.c1230 = Constraint(expr= m.b580 + m.b581 <= 1)
m.c1231 = Constraint(expr= m.b580 + m.b581 <= 1)
m.c1232 = Constraint(expr= m.b582 + m.b583 <= 1)
m.c1233 = Constraint(expr= m.b582 + m.b583 <= 1)
m.c1234 = Constraint(expr= m.b584 + m.b585 <= 1)
m.c1235 = Constraint(expr= m.b584 + m.b585 <= 1)
m.c1236 = Constraint(expr= m.b586 + m.b587 <= 1)
m.c1237 = Constraint(expr= m.b586 + m.b587 <= 1)
m.c1238 = Constraint(expr= m.b588 + m.b589 <= 1)
m.c1239 = Constraint(expr= m.b588 + m.b589 <= 1)
m.c1240 = Constraint(expr= m.b590 + m.b591 <= 1)
m.c1241 = Constraint(expr= m.b590 + m.b591 <= 1)
m.c1242 = Constraint(expr= m.b592 + m.b593 <= 1)
m.c1243 = Constraint(expr= m.b592 + m.b593 <= 1)
m.c1244 = Constraint(expr= m.b594 + m.b595 <= 1)
m.c1245 = Constraint(expr= m.b594 + m.b595 <= 1)
m.c1246 = Constraint(expr= m.b596 + m.b597 <= 1)
m.c1247 = Constraint(expr= m.b596 + m.b597 <= 1)
m.c1248 = Constraint(expr= m.b598 + m.b599 <= 1)
m.c1249 = Constraint(expr= m.b598 + m.b599 <= 1)
m.c1250 = Constraint(expr= m.b600 + m.b601 <= 1)
m.c1251 = Constraint(expr= m.b600 + m.b601 <= 1)
m.c1252 = Constraint(expr= m.b602 + m.b603 <= 1)
m.c1253 = Constraint(expr= m.b602 + m.b603 <= 1)
m.c1254 = Constraint(expr= m.b604 + m.b605 <= 1)
m.c1255 = Constraint(expr= m.b604 + m.b605 <= 1)
m.c1256 = Constraint(expr= m.b606 + m.b607 <= 1)
m.c1257 = Constraint(expr= m.b606 + m.b607 <= 1)
m.c1258 = Constraint(expr= m.b608 + m.b609 <= 1)
m.c1259 = Constraint(expr= m.b608 + m.b609 <= 1)
m.c1260 = Constraint(expr= m.b610 + m.b611 <= 1)
m.c1261 = Constraint(expr= m.b610 + m.b611 <= 1)
m.c1262 = Constraint(expr= m.b612 + m.b613 <= 1)
m.c1263 = Constraint(expr= m.b612 + m.b613 <= 1)
m.c1264 = Constraint(expr= m.b614 + m.b615 <= 1)
m.c1265 = Constraint(expr= m.b614 + m.b615 <= 1)
m.c1266 = Constraint(expr= m.b616 + m.b617 <= 1)
m.c1267 = Constraint(expr= m.b616 + m.b617 <= 1)
m.c1268 = Constraint(expr= m.b618 + m.b619 <= 1)
m.c1269 = Constraint(expr= m.b618 + m.b619 <= 1)
m.c1270 = Constraint(expr= m.b620 + m.b621 <= 1)
m.c1271 = Constraint(expr= m.b620 + m.b621 <= 1)
m.c1272 = Constraint(expr= m.b622 + m.b623 <= 1)
m.c1273 = Constraint(expr= m.b622 + m.b623 <= 1)
m.c1274 = Constraint(expr= m.b624 + m.b625 <= 1)
m.c1275 = Constraint(expr= m.b624 + m.b625 <= 1)
m.c1276 = Constraint(expr= m.b626 + m.b627 <= 1)
m.c1277 = Constraint(expr= m.b626 + m.b627 <= 1)
m.c1278 = Constraint(expr= m.b628 + m.b629 <= 1)
m.c1279 = Constraint(expr= m.b628 + m.b629 <= 1)
m.c1280 = Constraint(expr= m.b630 + m.b631 <= 1)
m.c1281 = Constraint(expr= m.b630 + m.b631 <= 1)
m.c1282 = Constraint(expr= m.b632 + m.b633 <= 1)
m.c1283 = Constraint(expr= m.b632 + m.b633 <= 1)
m.c1284 = Constraint(expr= m.b634 + m.b635 <= 1)
m.c1285 = Constraint(expr= m.b634 + m.b635 <= 1)
m.c1286 = Constraint(expr= m.b636 + m.b637 <= 1)
m.c1287 = Constraint(expr= m.b636 + m.b637 <= 1)
m.c1288 = Constraint(expr= m.b638 + m.b639 <= 1)
m.c1289 = Constraint(expr= m.b638 + m.b639 <= 1)
m.c1290 = Constraint(expr= m.b640 + m.b641 <= 1)
m.c1291 = Constraint(expr= m.b640 + m.b641 <= 1)
m.c1292 = Constraint(expr= m.b482 - m.b562 <= 0)
m.c1293 = Constraint(expr= - m.b482 + m.b483 - m.b563 <= 0)
m.c1294 = Constraint(expr= m.b484 - m.b564 <= 0)
m.c1295 = Constraint(expr= - m.b484 + m.b485 - m.b565 <= 0)
m.c1296 = Constraint(expr= m.b486 - m.b566 <= 0)
m.c1297 = Constraint(expr= - m.b486 + m.b487 - m.b567 <= 0)
m.c1298 = Constraint(expr= m.b488 - m.b568 <= 0)
m.c1299 = Constraint(expr= - m.b488 + m.b489 - m.b569 <= 0)
m.c1300 = Constraint(expr= m.b490 - m.b570 <= 0)
m.c1301 = Constraint(expr= - m.b490 + m.b491 - m.b571 <= 0)
m.c1302 = Constraint(expr= m.b492 - m.b572 <= 0)
m.c1303 = Constraint(expr= - m.b492 + m.b493 - m.b573 <= 0)
m.c1304 = Constraint(expr= m.b494 - m.b574 <= 0)
m.c1305 = Constraint(expr= - m.b494 + m.b495 - m.b575 <= 0)
m.c1306 = Constraint(expr= m.b496 - m.b576 <= 0)
m.c1307 = Constraint(expr= - m.b496 + m.b497 - m.b577 <= 0)
m.c1308 = Constraint(expr= m.b498 - m.b578 <= 0)
m.c1309 = Constraint(expr= - m.b498 + m.b499 - m.b579 <= 0)
m.c1310 = Constraint(expr= m.b500 - m.b580 <= 0)
m.c1311 = Constraint(expr= - m.b500 + m.b501 - m.b581 <= 0)
m.c1312 = Constraint(expr= m.b502 - m.b582 <= 0)
m.c1313 = Constraint(expr= - m.b502 + m.b503 - m.b583 <= 0)
m.c1314 = Constraint(expr= m.b504 - m.b584 <= 0)
m.c1315 = Constraint(expr= - m.b504 + m.b505 - m.b585 <= 0)
m.c1316 = Constraint(expr= m.b506 - m.b586 <= 0)
m.c1317 = Constraint(expr= - m.b506 + m.b507 - m.b587 <= 0)
m.c1318 = Constraint(expr= m.b508 - m.b588 <= 0)
m.c1319 = Constraint(expr= - m.b508 + m.b509 - m.b589 <= 0)
m.c1320 = Constraint(expr= m.b510 - m.b590 <= 0)
m.c1321 = Constraint(expr= - m.b510 + m.b511 - m.b591 <= 0)
m.c1322 = Constraint(expr= m.b512 - m.b592 <= 0)
m.c1323 = Constraint(expr= - m.b512 + m.b513 - m.b593 <= 0)
m.c1324 = Constraint(expr= m.b514 - m.b594 <= 0)
m.c1325 = Constraint(expr= - m.b514 + m.b515 - m.b595 <= 0)
m.c1326 = Constraint(expr= m.b516 - m.b596 <= 0)
m.c1327 = Constraint(expr= - m.b516 + m.b517 - m.b597 <= 0)
m.c1328 = Constraint(expr= m.b518 - m.b598 <= 0)
m.c1329 = Constraint(expr= - m.b518 + m.b519 - m.b599 <= 0)
m.c1330 = Constraint(expr= m.b520 - m.b600 <= 0)
m.c1331 = Constraint(expr= - m.b520 + m.b521 - m.b601 <= 0)
m.c1332 = Constraint(expr= m.b522 - m.b602 <= 0)
m.c1333 = Constraint(expr= - m.b522 + m.b523 - m.b603 <= 0)
m.c1334 = Constraint(expr= m.b524 - m.b604 <= 0)
m.c1335 = Constraint(expr= - m.b524 + m.b525 - m.b605 <= 0)
m.c1336 = Constraint(expr= m.b526 - m.b606 <= 0)
m.c1337 = Constraint(expr= - m.b526 + m.b527 - m.b607 <= 0)
m.c1338 = Constraint(expr= m.b528 - m.b608 <= 0)
m.c1339 = Constraint(expr= - m.b528 + m.b529 - m.b609 <= 0)
m.c1340 = Constraint(expr= m.b530 - m.b610 <= 0)
m.c1341 = Constraint(expr= - m.b530 + m.b531 - m.b611 <= 0)
m.c1342 = Constraint(expr= m.b532 - m.b612 <= 0)
m.c1343 = Constraint(expr= - m.b532 + m.b533 - m.b613 <= 0)
m.c1344 = Constraint(expr= m.b534 - m.b614 <= 0)
m.c1345 = Constraint(expr= - m.b534 + m.b535 - m.b615 <= 0)
m.c1346 = Constraint(expr= m.b536 - m.b616 <= 0)
m.c1347 = Constraint(expr= - m.b536 + m.b537 - m.b617 <= 0)
m.c1348 = Constraint(expr= m.b538 - m.b618 <= 0)
m.c1349 = Constraint(expr= - m.b538 + m.b539 - m.b619 <= 0)
m.c1350 = Constraint(expr= m.b540 - m.b620 <= 0)
m.c1351 = Constraint(expr= - m.b540 + m.b541 - m.b621 <= 0)
m.c1352 = Constraint(expr= m.b542 - m.b622 <= 0)
m.c1353 = Constraint(expr= - m.b542 + m.b543 - m.b623 <= 0)
m.c1354 = Constraint(expr= m.b544 - m.b624 <= 0)
m.c1355 = Constraint(expr= - m.b544 + m.b545 - m.b625 <= 0)
m.c1356 = Constraint(expr= m.b546 - m.b626 <= 0)
m.c1357 = Constraint(expr= - m.b546 + m.b547 - m.b627 <= 0)
m.c1358 = Constraint(expr= m.b548 - m.b628 <= 0)
m.c1359 = Constraint(expr= - m.b548 + m.b549 - m.b629 <= 0)
m.c1360 = Constraint(expr= m.b550 - m.b630 <= 0)
m.c1361 = Constraint(expr= - m.b550 + m.b551 - m.b631 <= 0)
m.c1362 = Constraint(expr= m.b552 - m.b632 <= 0)
m.c1363 = Constraint(expr= - m.b552 + m.b553 - m.b633 <= 0)
m.c1364 = Constraint(expr= m.b554 - m.b634 <= 0)
m.c1365 = Constraint(expr= - m.b554 + m.b555 - m.b635 <= 0)
m.c1366 = Constraint(expr= m.b556 - m.b636 <= 0)
m.c1367 = Constraint(expr= - m.b556 + m.b557 - m.b637 <= 0)
m.c1368 = Constraint(expr= m.b558 - m.b638 <= 0)
m.c1369 = Constraint(expr= - m.b558 + m.b559 - m.b639 <= 0)
m.c1370 = Constraint(expr= m.b560 - m.b640 <= 0)
m.c1371 = Constraint(expr= - m.b560 + m.b561 - m.b641 <= 0)
m.c1372 = Constraint(expr= m.b482 + m.b484 == 1)
m.c1373 = Constraint(expr= m.b483 + m.b485 == 1)
m.c1374 = Constraint(expr= - m.b486 + m.b492 + m.b494 >= 0)
m.c1375 = Constraint(expr= - m.b487 + m.b493 + m.b495 >= 0)
m.c1376 = Constraint(expr= - m.b492 + m.b504 >= 0)
m.c1377 = Constraint(expr= - m.b493 + m.b505 >= 0)
m.c1378 = Constraint(expr= - m.b494 + m.b506 >= 0)
m.c1379 = Constraint(expr= - m.b495 + m.b507 >= 0)
m.c1380 = Constraint(expr= - m.b488 + m.b496 >= 0)
m.c1381 = Constraint(expr= - m.b489 + m.b497 >= 0)
m.c1382 = Constraint(expr= - m.b496 + m.b508 + m.b510 >= 0)
m.c1383 = Constraint(expr= - m.b497 + m.b509 + m.b511 >= 0)
m.c1384 = Constraint(expr= - m.b490 + m.b498 + m.b500 + m.b502 >= 0)
m.c1385 = Constraint(expr= - m.b491 + m.b499 + m.b501 + m.b503 >= 0)
m.c1386 = Constraint(expr= - m.b498 + m.b510 >= 0)
m.c1387 = Constraint(expr= - m.b499 + m.b511 >= 0)
m.c1388 = Constraint(expr= - m.b500 + m.b512 + m.b514 >= 0)
m.c1389 = Constraint(expr= - m.b501 + m.b513 + m.b515 >= 0)
m.c1390 = Constraint(expr= - m.b502 + m.b516 + m.b518 + m.b520 >= 0)
m.c1391 = Constraint(expr= - m.b503 + m.b517 + m.b519 + m.b521 >= 0)
m.c1392 = Constraint(expr= m.b486 - m.b492 >= 0)
m.c1393 = Constraint(expr= m.b487 - m.b493 >= 0)
m.c1394 = Constraint(expr= m.b486 - m.b494 >= 0)
m.c1395 = Constraint(expr= m.b487 - m.b495 >= 0)
m.c1396 = Constraint(expr= m.b488 - m.b496 >= 0)
m.c1397 = Constraint(expr= m.b489 - m.b497 >= 0)
m.c1398 = Constraint(expr= m.b490 - m.b498 >= 0)
m.c1399 = Constraint(expr= m.b491 - m.b499 >= 0)
m.c1400 = Constraint(expr= m.b490 - m.b500 >= 0)
m.c1401 = Constraint(expr= m.b491 - m.b501 >= 0)
m.c1402 = Constraint(expr= m.b490 - m.b502 >= 0)
m.c1403 = Constraint(expr= m.b491 - m.b503 >= 0)
m.c1404 = Constraint(expr= m.b492 - m.b504 >= 0)
m.c1405 = Constraint(expr= m.b493 - m.b505 >= 0)
m.c1406 = Constraint(expr= m.b494 - m.b506 >= 0)
m.c1407 = Constraint(expr= m.b495 - m.b507 >= 0)
m.c1408 = Constraint(expr= m.b496 - m.b508 >= 0)
m.c1409 = Constraint(expr= m.b497 - m.b509 >= 0)
m.c1410 = Constraint(expr= m.b496 - m.b510 >= 0)
m.c1411 = Constraint(expr= m.b497 - m.b511 >= 0)
m.c1412 = Constraint(expr= m.b500 - m.b512 >= 0)
m.c1413 = Constraint(expr= m.b501 - m.b513 >= 0)
m.c1414 = Constraint(expr= m.b500 - m.b514 >= 0)
m.c1415 = Constraint(expr= m.b501 - m.b515 >= 0)
m.c1416 = Constraint(expr= m.b502 - m.b516 >= 0)
m.c1417 = Constraint(expr= m.b503 - m.b517 >= 0)
m.c1418 = Constraint(expr= m.b502 - m.b518 >= 0)
m.c1419 = Constraint(expr= m.b503 - m.b519 >= 0)
m.c1420 = Constraint(expr= m.b502 - m.b520 >= 0)
m.c1421 = Constraint(expr= m.b503 - m.b521 >= 0)
m.c1422 = Constraint(expr= - m.b520 + m.b522 + m.b524 >= 0)
m.c1423 = Constraint(expr= - m.b521 + m.b523 + m.b525 >= 0)
m.c1424 = Constraint(expr= - m.b526 + m.b532 + m.b534 >= 0)
m.c1425 = Constraint(expr= - m.b527 + m.b533 + m.b535 >= 0)
m.c1426 = Constraint(expr= - m.b532 + m.b544 >= 0)
m.c1427 = Constraint(expr= - m.b533 + m.b545 >= 0)
m.c1428 = Constraint(expr= - m.b534 + m.b546 >= 0)
m.c1429 = Constraint(expr= - m.b535 + m.b547 >= 0)
m.c1430 = Constraint(expr= - m.b528 + m.b536 >= 0)
m.c1431 = Constraint(expr= - m.b529 + m.b537 >= 0)
m.c1432 = Constraint(expr= - m.b536 + m.b548 + m.b550 >= 0)
m.c1433 = Constraint(expr= - m.b537 + m.b549 + m.b551 >= 0)
m.c1434 = Constraint(expr= - m.b530 + m.b538 + m.b540 + m.b542 >= 0)
m.c1435 = Constraint(expr= - m.b531 + m.b539 + m.b541 + m.b543 >= 0)
m.c1436 = Constraint(expr= - m.b538 + m.b550 >= 0)
m.c1437 = Constraint(expr= - m.b539 + m.b551 >= 0)
m.c1438 = Constraint(expr= - m.b540 + m.b552 + m.b554 >= 0)
m.c1439 = Constraint(expr= - m.b541 + m.b553 + m.b555 >= 0)
m.c1440 = Constraint(expr= - m.b542 + m.b556 + m.b558 + m.b560 >= 0)
m.c1441 = Constraint(expr= - m.b543 + m.b557 + m.b559 + m.b561 >= 0)
m.c1442 = Constraint(expr= m.b526 - m.b532 >= 0)
m.c1443 = Constraint(expr= m.b527 - m.b533 >= 0)
m.c1444 = Constraint(expr= m.b526 - m.b534 >= 0)
m.c1445 = Constraint(expr= m.b527 - m.b535 >= 0)
m.c1446 = Constraint(expr= m.b532 - m.b544 >= 0)
m.c1447 = Constraint(expr= m.b533 - m.b545 >= 0)
m.c1448 = Constraint(expr= m.b534 - m.b546 >= 0)
m.c1449 = Constraint(expr= m.b535 - m.b547 >= 0)
m.c1450 = Constraint(expr= m.b528 - m.b536 >= 0)
m.c1451 = Constraint(expr= m.b529 - m.b537 >= 0)
m.c1452 = Constraint(expr= m.b536 - m.b548 >= 0)
m.c1453 = Constraint(expr= m.b537 - m.b549 >= 0)
m.c1454 = Constraint(expr= m.b536 - m.b550 >= 0)
m.c1455 = Constraint(expr= m.b537 - m.b551 >= 0)
m.c1456 = Constraint(expr= m.b530 - m.b538 >= 0)
m.c1457 = Constraint(expr= m.b531 - m.b539 >= 0)
m.c1458 = Constraint(expr= m.b530 - m.b540 >= 0)
m.c1459 = Constraint(expr= m.b531 - m.b541 >= 0)
m.c1460 = Constraint(expr= m.b530 - m.b542 >= 0)
m.c1461 = Constraint(expr= m.b531 - m.b543 >= 0)
m.c1462 = Constraint(expr= m.b540 - m.b552 >= 0)
m.c1463 = Constraint(expr= m.b541 - m.b553 >= 0)
m.c1464 = Constraint(expr= m.b540 - m.b554 >= 0)
m.c1465 = Constraint(expr= m.b541 - m.b555 >= 0)
m.c1466 = Constraint(expr= m.b542 - m.b556 >= 0)
m.c1467 = Constraint(expr= m.b543 - m.b557 >= 0)
m.c1468 = Constraint(expr= m.b542 - m.b558 >= 0)
m.c1469 = Constraint(expr= m.b543 - m.b559 >= 0)
m.c1470 = Constraint(expr= m.b542 - m.b560 >= 0)
m.c1471 = Constraint(expr= m.b543 - m.b561 >= 0)
m.c1472 = Constraint(expr= m.b482 + m.b484 - m.b486 >= 0)
m.c1473 = Constraint(expr= m.b483 + m.b485 - m.b487 >= 0)
m.c1474 = Constraint(expr= m.b482 + m.b484 - m.b488 >= 0)
m.c1475 = Constraint(expr= m.b483 + m.b485 - m.b489 >= 0)
m.c1476 = Constraint(expr= m.b482 + m.b484 - m.b490 >= 0)
m.c1477 = Constraint(expr= m.b483 + m.b485 - m.b491 >= 0)
m.c1478 = Constraint(expr= m.b520 - m.b522 >= 0)
m.c1479 = Constraint(expr= m.b521 - m.b523 >= 0)
m.c1480 = Constraint(expr= m.b520 - m.b524 >= 0)
m.c1481 = Constraint(expr= m.b521 - m.b525 >= 0)
| 35.260776 | 120 | 0.633498 | 24,170 | 131,699 | 3.451841 | 0.099586 | 0.039434 | 0.192015 | 0.103559 | 0.685273 | 0.63341 | 0.542412 | 0.516642 | 0.475219 | 0.11051 | 0 | 0.239444 | 0.156577 | 131,699 | 3,734 | 121 | 35.27022 | 0.511658 | 0.005163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000448 | 0 | 0.000448 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
07b09eeba2d5ffb87c4feb8caec2b3a89bef242c | 246 | py | Python | local_app.py | akinniyi/-GoogleCloudFunctionTemplate | 0bee6ec8b8e97f8bec46f3bb6e7b6c2a07751232 | [
"MIT"
] | null | null | null | local_app.py | akinniyi/-GoogleCloudFunctionTemplate | 0bee6ec8b8e97f8bec46f3bb6e7b6c2a07751232 | [
"MIT"
] | null | null | null | local_app.py | akinniyi/-GoogleCloudFunctionTemplate | 0bee6ec8b8e97f8bec46f3bb6e7b6c2a07751232 | [
"MIT"
] | null | null | null | from flask import Flask, request
from main import main
app = Flask(__name__)
# Create a local "app" for generating request contexts for local development.
def index():
return main(request)
if __name__ == '__main__':
app.run(debug=True)
| 22.363636 | 77 | 0.735772 | 35 | 246 | 4.828571 | 0.6 | 0.08284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174797 | 246 | 10 | 78 | 24.6 | 0.832512 | 0.304878 | 0 | 0 | 0 | 0 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
07b3b65f186bc572ae88494bf6387d0db432068e | 493 | py | Python | src/test/test_service.py | diversemix/learn-python3.7 | 2ec3165f608a6f0df93d4f58ea11ac824c91d718 | [
"MIT"
] | null | null | null | src/test/test_service.py | diversemix/learn-python3.7 | 2ec3165f608a6f0df93d4f58ea11ac824c91d718 | [
"MIT"
] | null | null | null | src/test/test_service.py | diversemix/learn-python3.7 | 2ec3165f608a6f0df93d4f58ea11ac824c91d718 | [
"MIT"
] | null | null | null | import pytest
from ..widget.service import WidgetService
# Expect DeprecationWarning, see
# https://github.com/pallets/jinja/issues/969
@pytest.fixture
def config(tmpdir):
return { "database_uri" : tmpdir + "/tmp.sqlite3"}
def test_service_has_controller(config):
widget_service = WidgetService(config)
assert widget_service.get_controller() is not None
def test_service_has_api(config):
widget_service = WidgetService(config)
assert widget_service.get_api() is not None
| 27.388889 | 54 | 0.774848 | 64 | 493 | 5.765625 | 0.53125 | 0.176152 | 0.075881 | 0.092141 | 0.325203 | 0.325203 | 0.325203 | 0.325203 | 0.325203 | 0 | 0 | 0.009324 | 0.129817 | 493 | 17 | 55 | 29 | 0.850816 | 0.150101 | 0 | 0.181818 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.272727 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.